Sorry to bump an old topic, but I’m facing I think an infinite loop that prevent the level Grim Determination from loading. I was able to play with it until I must haveforgotten a } or a ) somewhere that crashed the execution and Chrome.
Anytime I try to reload this particular level I’m stuck with the same loading crash 100% cpu usage. I can’t find a way to reset myself my code (sometimes CodeCombat asks me if I want to reset or comment my whole code, but here no.)
Here is my Console :
Failed to load resource: the server responded with a status of 404 (Not Found)
(program):582 There are no more polls left.
(program):1374 Hmm, should have torso femaleBack paper doll image, but don’t have it.
InventoryModal.coffee:507 setting me.heroConfig to {“inventory”:{“head”:“546d4ca19df4a17d0d449abf”,“eyes”:“546941fda2b1f53ce794441d”,“neck”:“54693363a2b1f53ce79443d1”,“torso”:“546d4a549df4a17d0d449a97”,“gloves”:“5469425ca2b1f53ce7944421”,“wrists”:“54693830a2b1f53ce79443f1”,“left-hand”:“546375a43839c6e02811d311”,“right-hand”:“54eab7f52b7506e891ca7202”,“waist”:“5437002a7beba4a82024a97d”,“feet”:“53e214f153457600003e3eab”,“left-ring”:“5523224b0676ecb7d5c89319”,“right-ring”:“54692d2aa2b1f53ce794438f”,“minion”:“54eb5c8f49fa2d5c905ddf4e”,“flag”:“5478b97e8707a2c3a2493b2f”,“programming-book”:“546e25d99df4a17d0d449be1”},“thangType”:“52fd1524c7e6cf99160e7bc9”}
CocoModel.coffee:183 Patching Vincent Maths [“heroConfig”]
CocoModel.coffee:92 Populated defaults for Level Grim Determination in 17ms
Level.coffee:173 Samurai couldn’t find lc for Object {original: “53178759a508f6e7b3464001”, majorVersion: 0, config: Object} of [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]f @ Level.coffee:173f @ Level.coffee:182t.exports.t.sortThangComponents @ Level.coffee:202t.exports.t.serialize @ Level.coffee:32e.exports.e.initWorld @ LevelLoader.coffee:407e.exports.e.onWorldNecessitiesLoaded @ LevelLoader.coffee:276e.exports.e.onWorldNecessityLoaded @ LevelLoader.coffee:266h @ backbone.js:205t.Events.trigger @ backbone.js:146t.exports.t.onResourceLoaded @ SuperModel.coffee:185(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:205t.Events.trigger @ backbone.js:146t.markLoaded @ SuperModel.coffee:227(anonymous function) @ SuperModel.coffee:261(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:207t.Events.trigger @ backbone.js:146t.success @ backbone.js:434u @ jquery.js:3099c.fireWith @ jquery.js:3211i @ jquery.js:8264(anonymous function) @ jquery.js:8605
Level.coffee:173 Samurai couldn’t find lc for Object {original: “53178759a508f6e7b3464001”, majorVersion: 0, config: Object} of [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]f @ Level.coffee:173t.exports.t.sortThangComponents @ Level.coffee:202t.exports.t.serialize @ Level.coffee:32e.exports.e.initWorld @ LevelLoader.coffee:407e.exports.e.onWorldNecessitiesLoaded @ LevelLoader.coffee:276e.exports.e.onWorldNecessityLoaded @ LevelLoader.coffee:266h @ backbone.js:205t.Events.trigger @ backbone.js:146t.exports.t.onResourceLoaded @ SuperModel.coffee:185(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:205t.Events.trigger @ backbone.js:146t.markLoaded @ SuperModel.coffee:227(anonymous function) @ SuperModel.coffee:261(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:207t.Events.trigger @ backbone.js:146t.success @ backbone.js:434u @ jquery.js:3099c.fireWith @ jquery.js:3211i @ jquery.js:8264(anonymous function) @ jquery.js:8605
Level.coffee:173 Trapper couldn’t find lc for Object {original: “5466d12d417c8b48a9811e42”, majorVersion: 0} of [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]f @ Level.coffee:173f @ Level.coffee:182t.exports.t.sortThangComponents @ Level.coffee:202t.exports.t.serialize @ Level.coffee:32e.exports.e.initWorld @ LevelLoader.coffee:407e.exports.e.onWorldNecessitiesLoaded @ LevelLoader.coffee:276e.exports.e.onWorldNecessityLoaded @ LevelLoader.coffee:266h @ backbone.js:205t.Events.trigger @ backbone.js:146t.exports.t.onResourceLoaded @ SuperModel.coffee:185(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:205t.Events.trigger @ backbone.js:146t.markLoaded @ SuperModel.coffee:227(anonymous function) @ SuperModel.coffee:261(anonymous function) @ backbone.js:98(anonymous function) @ lodash.js:5605h @ backbone.js:207t.Events.trigger @ backbone.js:146t.success @ backbone.js:434u @ jquery.js:3099c.fireWith @ jquery.js:3211i @ jquery.js:8264(anonymous function) @ jquery.js:8605
In the middle of hundreds of similar errors ([HeroType] couldn’t find lc for Object …), there is also those two lines :
I hope this feedback is useful.