Infinite Loop Loading sarven-shepherd

sarven-shepherd won’t load for me regardless of which “reset-level” button I push. Is it broken?

The Development Console is showing two possible errors:
1)
DevTools failed to load SourceMap: Could not parse content for https://codecombat.com/play/level/treema.css.map: Unexpected token < in JSON at position 0

and

2aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Programming mistake finding a build type! NaN 2 [object Object],[object Object]
app.js:38 Saw view load event #infinite-loop-modal #infinite-loop-modal

Here’s the context of those:
1 loaded false null
app.js:34 1 loaded false null
app.js:34 1 loaded false null
DevTools failed to load SourceMap: Could not parse content for https://codecombat.com/play/level/treema.css.map: Unexpected token < in JSON at position 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 Torngarsuk: Let there be light upon Sarven Shepherd! (preload: false)
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Using modern language plugin: python
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Generated random seed 6512657336 of type submissionCount from sessionIDs 5f8e18953c97390047ba815f submissionCount 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 65 to wave wave0 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 65 to wave wave1 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 65 to wave wave2 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 65 to wave wave3 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 3500 to wave yak0 with difficulty 0
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Assigned power 3500 to wave yak1 with difficulty 0
2aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Programming mistake finding a build type! NaN 2 [object Object],[object Object]
app.js:38 Saw view load event #infinite-loop-modal #infinite-loop-modal
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Modern javascript detected, aw yeah!
aether-app-59b52c79a8e22f39b229.bundle.js:123 |Torngarsuk’s Archer| Worker initialized after 803ms

Did you wait a little bit after you pushed it?

also

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!

You can try log out and login again.
Lydia

um can someone help? is says infinite loop but i cant seem to find it also im using python (dont discriminate me because i use python)

return #Commented out to stop infinite loop.
# Use while loops to pick out the ogre

while True:
    enemies = hero.findEnemies()
    enemyIndex = 0
    
    # Wrap this logic in a while loop to attack all enemies.
    while enemyIndex < len(enemies):
        
        # Find the array's length with:  len(enemies)
        
        enemy = enemies[enemyIndex]
        # "!=" means "not equal to."
        if enemy.type != "sand-yak":
            # While the enemy's health is greater than 0, attack it!
            
            if enemy.health > 0:
                hero.attack(enemy)
            pass
    enemyIndex += 1
    return
    # Between waves, move back to the center.
    hero.moveXY(hero.pos.x, 32)
    

this is a safe community where this type of stuff isn’t allowed, so don’t worry at all :slight_smile:

as for your code, i believe that you should indent this an extra tab →

Once you do that, remove this return at the top

thank you
it worked perfectly