- Show reason why levels didn't load in verifier

- Remove multiplayer levels from default verifier level list.
This commit is contained in:
Rob 2016-05-03 14:36:27 -07:00
parent aed5e6b8ac
commit 1734a1b46f
3 changed files with 6 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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()