From 1734a1b46ff3c658f854f387550e1490a73eef95 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 3 May 2016 14:36:27 -0700 Subject: [PATCH] - Show reason why levels didn't load in verifier - Remove multiplayer levels from default verifier level list. --- app/templates/editor/verifier/verifier-view.jade | 3 ++- app/views/editor/verifier/VerifierTest.coffee | 2 +- app/views/editor/verifier/VerifierView.coffee | 8 +++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/templates/editor/verifier/verifier-view.jade b/app/templates/editor/verifier/verifier-view.jade index 6b29385dc..dd01f0466 100644 --- a/app/templates/editor/verifier/verifier-view.jade +++ b/app/templates/editor/verifier/verifier-view.jade @@ -38,7 +38,8 @@ block content if test.solution pre #{test.solution.source} else - h4 Solution not found... + h4 Error Loading Test + pre #{test.error} div.col-xs-4.well if test.goals if test.frames == test.solution.frameCount diff --git a/app/views/editor/verifier/VerifierTest.coffee b/app/views/editor/verifier/VerifierTest.coffee index f726ae22c..8d15fde8b 100644 --- a/app/views/editor/verifier/VerifierTest.coffee +++ b/app/views/editor/verifier/VerifierTest.coffee @@ -59,7 +59,7 @@ module.exports = class VerifierTest extends CocoClass session.solution.seed = undefined unless _.isNumber session.solution.seed # TODO: migrate away from submissionCount/sessionID seed objects catch e @state = 'error' - @error = "Could not load the session solution for #{level.get('name')}: " + e.toString() + @error = "Could not load the session solution for #{level.get('name')}: " + e.toString() + "\n" + e.stack grabLevelLoaderData: -> @world = @levelLoader.world diff --git a/app/views/editor/verifier/VerifierView.coffee b/app/views/editor/verifier/VerifierView.coffee index 99f66f3aa..d8b841bd5 100644 --- a/app/views/editor/verifier/VerifierView.coffee +++ b/app/views/editor/verifier/VerifierView.coffee @@ -20,9 +20,9 @@ module.exports = class VerifierView extends RootView 'loop-da-loop', 'haunted-kithmaze', 'riddling-kithmaze', 'descending-further', 'the-second-kithmaze', 'dread-door', 'cupboards-of-kithgard', 'hack-and-dash', 'known-enemy', 'master-of-names', 'lowly-kithmen', 'closing-the-distance', 'tactical-strike', 'the-skeleton', 'a-mayhem-of-munchkins', 'the-final-kithmaze', - 'the-gauntlet', 'radiant-aura', 'kithgard-gates', 'destroying-angel', 'deadly-dungeon-rescue', 'kithgard-brawl', - 'cavern-survival', 'breakout', 'attack-wisely', 'kithgard-mastery', 'kithgard-apprentice', 'robot-ragnarok', - 'defense-of-plainswood', 'peasant-protection', 'forest-fire-dancing', 'wakka-maul', 'course-winding-trail', + 'the-gauntlet', 'radiant-aura', 'kithgard-gates', 'destroying-angel', 'deadly-dungeon-rescue', + 'breakout', 'attack-wisely', 'kithgard-mastery', 'kithgard-apprentice', 'robot-ragnarok', + 'defense-of-plainswood', 'peasant-protection', 'forest-fire-dancing', 'course-winding-trail', 'patrol-buster', 'endangered-burl', 'thumb-biter', 'gems-or-death', 'village-guard', 'thornbush-farm', 'back-to-back', 'ogre-encampment', 'woodland-cleaver', 'shield-rush', 'range-finder', 'munchkin-swarm', 'stillness-in-motion', 'the-agrippa-defense', 'backwoods-bombardier', 'coinucopia', 'copper-meadows', @@ -53,6 +53,4 @@ module.exports = class VerifierView extends RootView update: (event) => # TODO: show unworkable tests instead of hiding them # TODO: destroy them Tests after or something - console.log 'got event', event, 'on some test' - @tests = _.filter @tests, (test) -> test.state isnt 'error' @render() \ No newline at end of file