Level: Munchkin Swarm


#1

Check out Munchkin Swarm! The goal with this level is to reinforce if/else logic. We’ve had a few issues with players being confused as to what they are supposed to do, so we would be especially interested to get feedback about goal clarity. Was it easy to understand the mission? Did it take a lot of trial and error to get the behaviors appropriately assigned to the if/else logic?


#2

Hi,

This level doesn’t finish loading for me. It pops up the dialog saying there might be an infinite loop in the code.

Thanks,
Nirav


#3

Hey @nirav_michelsen, can you help me debug this?

  1. Go to Munchkin Swarm.
  2. Open the Chrome developer console.
  3. Copy all the messages in the JS console and paste them in a reply here (you can use triple-backticks – the ` character – to surround the message for nice formatting).

That should let me figure out what’s going on here. Thanks!


#4
Failed to load resource: the server responded with a status of 404 (Not Found) http://codecombat.com/file/interface/game-menu-close.mp3
Populated defaults for Level Peasant Protection in 172ms CocoModel.coffee:84
Potion Master couldn't find lc for Object of Array[35] Level.coffee:163
Potion Master couldn't find lc for Object of Array[35] Level.coffee:163
Samurai couldn't find lc for Object of Array[35] Level.coffee:163
Samurai couldn't find lc for Object of Array[35] Level.coffee:163
Trapper couldn't find lc for Object of Array[35] Level.coffee:163
Trapper couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
World has been initialized from level loader. LevelLoader.coffee:365
Potion Master couldn't find lc for Object of Array[35] Level.coffee:163
Potion Master couldn't find lc for Object of Array[35] Level.coffee:163
Samurai couldn't find lc for Object of Array[35] Level.coffee:163
Samurai couldn't find lc for Object of Array[35] Level.coffee:163
Trapper couldn't find lc for Object of Array[35] Level.coffee:163
Trapper couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Forest Archer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Sorcerer couldn't find lc for Object of Array[35] Level.coffee:163
Inmar: Let there be light upon Peasant Protection! (preload: false) God.coffee:69
Built sheet:  Knight                 4461ms  Async  (Portrait) ThangType.coffee:210
|Inmar's Cyril| Worker initialized after 10043ms Angel.coffee:42
|Inmar's Pam| Worker initialized after 10220ms Angel.coffee:42
|Inmar's Cyril| Generated random seed 2055311124 of type submissionCount from sessionIDs Array[1] submissionCount 8 Angel.coffee:42
|Inmar's Cyril|   Loaded 53 of 675 (+1098ms) Angel.coffee:42
|Inmar's Cyril|   Loaded 123 of 675 (+1006ms) Angel.coffee:42
|Inmar's Cyril|   Loaded 202 of 675 (+1085ms) Angel.coffee:42
|Inmar's Cyril|   Loaded 332 of 675 (+1003ms) Angel.coffee:42
|Inmar's Cyril|   Loaded 455 of 675 (+1007ms) Angel.coffee:42
|Inmar's Cyril|   Loaded 589 of 675 (+1061ms) Angel.coffee:42
3|Inmar's Cyril| The world ended in won on frame 675 codecombat.com/javascripts/app.js:101
SuperModel for Level loaded in 18343 ms codecombat.com/javascripts/app.js:285
|Inmar's Cyril| And it was so: (11.427ms per frame, 675 frames)
Simulation   : 7713ms 
Serialization: 155ms
Delivery     : 192ms codecombat.com/javascripts/app.js:101
Level unveiled after 21.19s codecombat.com/javascripts/app.js:4761
2Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=X Marker)]] codecombat.com/javascripts/vendor.js:7557
Cannot show action build for Well because it DNE codecombat.com/javascripts/app.js:844
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Grass03)]] codecombat.com/javascripts/vendor.js:7557
2Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Grass02)]] codecombat.com/javascripts/vendor.js:7557
5Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Grass05)]] codecombat.com/javascripts/vendor.js:7557
4Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Grass01)]] codecombat.com/javascripts/vendor.js:7557
4Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Grass04)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=X Marker)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Selection)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[Sprite (name=Target)]] codecombat.com/javascripts/vendor.js:7557
Inmar: Let there be light upon Peasant Protection! (preload: false) codecombat.com/javascripts/app.js:202
should actually start in 1s codecombat.com/javascripts/app.js:765
|Inmar's Cyril| Generated random seed 2055311125 of type submissionCount from sessionIDs Array[1] submissionCount 9 codecombat.com/javascripts/app.js:101
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Peasant M)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Knight)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Tree 1)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Ogre Munchkin F)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Well)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Shrub 3)]] codecombat.com/javascripts/vendor.js:7557
3Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Cow)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Firewood 2)]] codecombat.com/javascripts/vendor.js:7557
3Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Firewood 1)]] codecombat.com/javascripts/vendor.js:7557
2Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Shrub 3)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Farm)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Rock 2)]] codecombat.com/javascripts/vendor.js:7557
2Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Shrub 1)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=House 2)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Rock Cluster 3)]] codecombat.com/javascripts/vendor.js:7557
3Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Shrub 2)]] codecombat.com/javascripts/vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=House 4)]] codecombat.com/javascripts/vendor.js:7557
65Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Tree 4)]] codecombat.com/javascripts/vendor.js:7557
52Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Tree 2)]] vendor.js:7557
50Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Tree 3)]] vendor.js:7557
56Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Tree 1)]] vendor.js:7557
Error: A child's spriteSheet must be equal to its parent spriteSheet and only use one image. [[SpriteContainer (name=Ogre Munchkin M)]] vendor.js:7557
3|Inmar's Cyril| The world ended in won on frame 675 app.js:101
|Inmar's Cyril| And it was so: (37.250ms per frame, 675 frames)
Simulation   : 25144ms 
Serialization: 59ms
Delivery     : 229ms app.js:101
First changed frame is 0 with hash 887512012 compared to 986892239 app.js:1594
Populated defaults for Achievement Peasant Protection Complete in 13ms app.js:1704
Failed to load resource: the server responded with a status of 404 (Not Found) http://codecombat.com/file/interface/victory-title-appear.mp3
WebSocket connection to 'ws://codecombat.com:9485/' failed: Error in connection establishment: net::ERR_TIMED_OUT treema.js:10
Trying to determine whether Basic Flags should be a silhouetted item, but it has no gem cost. ThangType.coffee:432
Cut Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Cut Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Engraved Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Engraved Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Fine Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Fine Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Metal Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Metal Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Trying to determine whether Programmaticon 2 should be a silhouetted item, but it has no gem cost. ThangType.coffee:432
Trying to determine whether Programmaticon 3 should be a silhouetted item, but it has no gem cost. ThangType.coffee:432
Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Stone Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Thoktar's Discarded Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Thoktar's Discarded Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Wooden Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
Wooden Builder's Hammer is not an item, but you are asking for its stats. ThangType.coffee:369
GET http://codecombat.com/file/undefined 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/5463755a3839c6e02811d30a/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546374bc3839c6e02811d308/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546375813839c6e02811d30e/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546375653839c6e02811d30b/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546375783839c6e02811d30d/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/5463756f3839c6e02811d30c/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/5463758f3839c6e02811d30f/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/5463759c3839c6e02811d310/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546375a43839c6e02811d311/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376ca3839c6e02811d31d/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376bf3839c6e02811d31c/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376b63839c6e02811d31b/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376ea3839c6e02811d320/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376da3839c6e02811d31e/portrait.png 404 (Not Found) jquery.js:5298
GET http://codecombat.com/file/db/thang.type/546376e23839c6e02811d31f/portrait.png 404 (Not Found) jquery.js:5298
Populated defaults for Level Munchkin Swarm in 51ms CocoModel.coffee:84
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
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] Level.coffee:163
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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "53c99b2eebba77000033ae9d", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "52bdf7f58c4289607b00002f", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "5466d574417c8b48a9811e88", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "53c99b2eebba77000033ae9d", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "52bdf7f58c4289607b00002f", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "5466d574417c8b48a9811e88", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466da88417c8b48a9811e96", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466dd15417c8b48a9811e99", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466da88417c8b48a9811e96", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466dd15417c8b48a9811e99", 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] Level.coffee:163
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] Level.coffee:163
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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
World has been initialized from level loader. LevelLoader.coffee:365
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
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] Level.coffee:163
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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "53c99b2eebba77000033ae9d", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "52bdf7f58c4289607b00002f", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "5466d574417c8b48a9811e88", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "53c99b2eebba77000033ae9d", 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] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "52bdf7f58c4289607b00002f", 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]0: Object1: Object2: Object3: Object4: Object5: Object6: Object7: Object8: Object9: Object10: Object11: Object12: Object13: Object14: Object15: Object16: Object17: Object18: Object19: Object20: Object21: Object22: Object23: Object24: Object25: Object26: Object27: Object28: Object29: Object30: Object31: Object32: Object33: Object34: Object35: Object36: Object37: Objectlength: 38__proto__: Array[0] Level.coffee:163
Forest Archer couldn't find lc for Object {original: "5466d574417c8b48a9811e88", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466da88417c8b48a9811e96", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466dd15417c8b48a9811e99", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466da88417c8b48a9811e96", 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] Level.coffee:163
Sorcerer couldn't find lc for Object {original: "5466dd15417c8b48a9811e99", 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] Level.coffee:163
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] Level.coffee:163
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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
Potion Master couldn't find lc for Object {original: "54627b59f44055a4b5e73536", 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] Level.coffee:163
Unknown method die: please add function parameters to lib/aether_utils.coffee. aether_utils.coffee:29
Populated defaults for User niravGi in 41ms CocoModel.coffee:84
Ishtar: Let there be light upon Munchkin Swarm! (preload: false) God.coffee:69
Built sheet:  Samurai                3051ms  Async  (Portrait) ThangType.coffee:210
|Ishtar's Woodhouse| Worker initialized after 12859ms Angel.coffee:42
|Ishtar's Woodhouse| Generated random seed 7057733162 of type submissionCount from sessionIDs ["5468cecee166c7080619d00f"] submissionCount 0 Angel.coffee:42
|Ishtar's Woodhouse| Hero Placeholder had new Programmable problem: Object {isUserCodeProblem: true, id: "unknown_TypeError", level: "error", type: "runtime", message: "Cannot read property 'apply' of undefined"…} Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 2 of 675 (+1083ms) Angel.coffee:42
|Ishtar's Cheryl| Worker initialized after 20727ms Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 10 of 675 (+1134ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 20 of 675 (+1096ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 37 of 675 (+1078ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 69 of 675 (+1050ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 126 of 675 (+1006ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 140 of 675 (+1125ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 183 of 675 (+1080ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 202 of 675 (+1057ms) Angel.coffee:42
|Ishtar's Woodhouse|   Loaded 222 of 675 (+1028ms) Angel.coffee:42
|Ishtar's Woodhouse| Worker initialized after 6042ms Angel.coffee:42```

#5

Looks like the random seed you got was buggy. I haven’t found out why, but I did switch your seed, so you should be able to play now. Sorry about that!


#6

I am getting a problem… ogres are attacking on Tharin. But i don’t know why… the code is here:

var enemy = this.findNearestEnemy();
var dist = this.distanceTo(enemy);
loop {
if (dist < 10 )
this.cleave(enemy);

else {
    this.attack("Chest");
}

}


#7

You need to put the enemy and distance variable assignments inside the loop, otherwise they’ll never get updated.


#8

why to update variables? whats the need? can you explain it … please


#9

Once you have killed the first enemy (with cleave) then you need to pick another one, and so the find needs to be in the loop.


#10

// If the ogres rush at you, cleave them!
// If they stay 10 meters away, attack the “Chest”.

loop {
var enemy = this.findNearestEnemy();
var dast = this.distanceTo(enemy);

if (dast < 3) {
    if (this.isReady("cleave")) {
        this.cleave(enemy);            
    }
    if (!this.isReady("cleave")) {
        this.attack(enemy);
    }
}
if (dast > 10) {
        this.attack("Chest");        
}

}


#11

hi i code the following program ,and i don’t know where is the problem

loop:
    enemy=self.findNearestEnemy()
    if self.distanceTo(enemy)<10:
        self.cleave(enemy)      
    else :
        self.attack("Chest")

#12

i don’t know where is wrong


#13

You’re missing is.ready("Cleave") in your code after the ‘if’, in your if self.distanceTo line :slight_smile:


#14

Thank you,problem solved :smile:


#15

I can’t figure out where I went wrong. My hero doesn’t seem to be completing the “cleave” action, but the rest of the code seems to be running okay.

loop:
    enemy = self.findNearestEnemy()
    
    if enemy <10:
        if self.isReady("cleave"):
            self.cleave(enemy)
        if not self.isReady("cleave"):
            self.shield()
            
    if enemy >10:
        self.attack("Chest")

#16

Katraitor: I think that your code might be asking, “What does enemy < 10 mean?” Maybe do a distancecheck in there with

self.distanceTo(enemy) 

#17

That makes a lot of sense. I added the “self.distanceTo(enemy)” is so it checks the distance relative from myself. It worked perfectly. I feel kind of silly now… Thanks for your help!


#18

wait, right after the if, or self.distanceto(enemy)<10?


#19

if isReady("Cleave") and distance < 10:


#20

im having trouble using the function if else and understanding how to use the if distance tool in these levels please help.