mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
- Show reason why levels didn't load in verifier
- Remove multiplayer levels from default verifier level list.
This commit is contained in:
parent
aed5e6b8ac
commit
1734a1b46f
3 changed files with 6 additions and 7 deletions
|
@ -38,7 +38,8 @@ block content
|
||||||
if test.solution
|
if test.solution
|
||||||
pre #{test.solution.source}
|
pre #{test.solution.source}
|
||||||
else
|
else
|
||||||
h4 Solution not found...
|
h4 Error Loading Test
|
||||||
|
pre #{test.error}
|
||||||
div.col-xs-4.well
|
div.col-xs-4.well
|
||||||
if test.goals
|
if test.goals
|
||||||
if test.frames == test.solution.frameCount
|
if test.frames == test.solution.frameCount
|
||||||
|
|
|
@ -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
|
session.solution.seed = undefined unless _.isNumber session.solution.seed # TODO: migrate away from submissionCount/sessionID seed objects
|
||||||
catch e
|
catch e
|
||||||
@state = 'error'
|
@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: ->
|
grabLevelLoaderData: ->
|
||||||
@world = @levelLoader.world
|
@world = @levelLoader.world
|
||||||
|
|
|
@ -20,9 +20,9 @@ module.exports = class VerifierView extends RootView
|
||||||
'loop-da-loop', 'haunted-kithmaze', 'riddling-kithmaze', 'descending-further', 'the-second-kithmaze',
|
'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',
|
'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',
|
'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',
|
'the-gauntlet', 'radiant-aura', 'kithgard-gates', 'destroying-angel', 'deadly-dungeon-rescue',
|
||||||
'cavern-survival', 'breakout', 'attack-wisely', 'kithgard-mastery', 'kithgard-apprentice', 'robot-ragnarok',
|
'breakout', 'attack-wisely', 'kithgard-mastery', 'kithgard-apprentice', 'robot-ragnarok',
|
||||||
'defense-of-plainswood', 'peasant-protection', 'forest-fire-dancing', 'wakka-maul', 'course-winding-trail',
|
'defense-of-plainswood', 'peasant-protection', 'forest-fire-dancing', 'course-winding-trail',
|
||||||
'patrol-buster', 'endangered-burl', 'thumb-biter', 'gems-or-death', 'village-guard', 'thornbush-farm',
|
'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',
|
'back-to-back', 'ogre-encampment', 'woodland-cleaver', 'shield-rush', 'range-finder', 'munchkin-swarm',
|
||||||
'stillness-in-motion', 'the-agrippa-defense', 'backwoods-bombardier', 'coinucopia', 'copper-meadows',
|
'stillness-in-motion', 'the-agrippa-defense', 'backwoods-bombardier', 'coinucopia', 'copper-meadows',
|
||||||
|
@ -53,6 +53,4 @@ module.exports = class VerifierView extends RootView
|
||||||
update: (event) =>
|
update: (event) =>
|
||||||
# TODO: show unworkable tests instead of hiding them
|
# TODO: show unworkable tests instead of hiding them
|
||||||
# TODO: destroy them Tests after or something
|
# TODO: destroy them Tests after or something
|
||||||
console.log 'got event', event, 'on some test'
|
|
||||||
@tests = _.filter @tests, (test) -> test.state isnt 'error'
|
|
||||||
@render()
|
@render()
|
Loading…
Reference in a new issue