[SOLVED] Level Tabula Rasa won't load

I’ve tried reset level, comment out my code, reloading the page, but every time, after a few minutes, it says page unresponsive. In case this is relevant, here’s my code:

player = game.spawnPlayerXY("samurai", 40, 40)
y = 10
while y < 61:
    game.spawnXY("munchkin", 74, y)
    y += 2
y = 10
while y < 61:
    game.spawnXY("soldier", 6, y)
    y += 2
y = 10
while y < 61:
    game.spawnXY("thrower", 64, y)
    y += 2
y = 10
while y < 61:
    game.spawnXY("archer", 16, y)
    y += 2

no matter what I do, all I get is this
image

1 Like

Oh, geez, that’s a lot of troops… And CoCo doesn’t particularly like while loops for some reason.
I’m afraid I’m not exactly what you should do here. I once got locked out of a level (it didn’t load) on the level editor because I added too many troops and it bugged out. Maybe if you email support@codecombat.com they might be able to reset that level remotely?? You’ll have to ask them, I’m not sure what their capabilities are, but it’s worth a shot.
Danny

1 Like

Maybe it will help a little to change this line to

player = game.spawnPlayerXY("samurai", 40, 40)

that isn’t what stops me from getting into the level, though, and I wrote the code into the discourse from memory, so I probably just typed that wrong.

Oh, I see. I copied your code and it worked after only this thing changed.