# Cloudrip Mountain 8 / Hunting Party Error message

**URL:** <https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273>\
**Category:** Level Help\
**Created:** [September 19, 2020, 6:35pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273 "2020-09-19T18:35:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GreenBadger540](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@GreenBadger540](https://discourse.codecombat.com/u/GreenBadger540)\
**Post date:** [September 19, 2020, 6:35pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/1 "2020-09-19T18:35:49Z")

</div>

When starting Cloudrip Mountain 8 / Hunting Party, I get an error message that says:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/2X/7/7242b69fe451827cb4724c33f0c0d5775cccbf8a.png)

Line 352 TypeError (picture attached)

I don’t even have a line 352 so I don’t know what to do about this. Does anyone have any advice?

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [September 19, 2020, 6:41pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/2 "2020-09-19T18:41:47Z")

</div>

Hello and welcome to codecombat discourse @GreenBadger540! 🥳 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](https://discourse.codecombat.com/t/welcome-to-codecombat-discourse-forums/15601), which shows all essentials of this board! Thanks!

That is wierd. I do not see any mistake in your code. Try to email [support@codecombat.com](mailto:support@codecombat.com) and tell them about the problem and send them the screenshot. They should be able to help you solve this issue.

Andrei

---

<div class="post-metadata">

**Author:** ![GreenBadger540](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@GreenBadger540](https://discourse.codecombat.com/u/GreenBadger540)\
**Post date:** [September 19, 2020, 6:42pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/3 "2020-09-19T18:42:57Z")

</div>

Thank you for your advice. I’ll try that!

---

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [September 19, 2020, 7:56pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/4 "2020-09-19T19:56:14Z")

</div>

Are you coming from javascript?

```python
soldiers = hero.findFriends() # I really like the place ( outside the while true )
                                              # where you find friends :-)
while True:
    for i in soldiers: # replace i with soldier
         # soldier = soldiers[i] // valid for javascript no need of it in python
         # your code 

```

---

<div class="post-metadata">

**Author:** ![Lydia\_Song](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/lydia_song/32/31461_2.png) [@Lydia\_Song](https://discourse.codecombat.com/u/Lydia_Song)\
**Post date:** [September 19, 2020, 9:28pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/5 "2020-09-19T21:28:09Z")

</div>

Hello and welcome to codecombat discourse @GreenBadger540 ! 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](https://discourse.codecombat.com/t/welcome-to-codecombat-discourse-forums/15601), which shows all essentials of this board! Thanks!

Maybe try restarting the level and writing your code again? Lydia

---

<div class="post-metadata">

**Author:** ![dedreous](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/dedreous/32/13849_2.png) [@dedreous](https://discourse.codecombat.com/u/dedreous)\
**Post date:** [September 20, 2020, 1:41am UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/6 "2020-09-20T01:41:05Z")

</div>

I think it’s referring to line 352 of the interpreter. And, I think xython is on to something…

---

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [September 20, 2020, 8:44pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/7 "2020-09-20T20:44:18Z")

</div>

How do you think if you send one of your soldiers to certain death at the beginning of the game will he see at its end his killers?

```python
soldiers = hero.findFriends()
while True:
    soldier = soldiers[0]
    if soldier.health > 0:
        hero.command(soldier, "move", {"x":65, "y":17})
    if hero.time> 29:    
        enemies = soldier.findEnemies()
        enemy = soldier.findNearest(enemies) 
        console.log("time:" + hero.time +
                    " closest enemy:" + enemy.id +
                    " number of enemies: " + enemies.length)

```

will the code work, what the console messages will be?

---

<div class="post-metadata">

**Author:** ![xython](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/xython/32/7269_2.png) [@xython](https://discourse.codecombat.com/u/xython)\
**Post date:** [September 21, 2020, 12:59pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/8 "2020-09-21T12:59:21Z")

</div>

@AnSeDra you liked my post, so can you share to all your answer?

---

<div class="post-metadata">

**Author:** ![AnSeDra](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/ansedra/32/13123_2.png) [@AnSeDra](https://discourse.codecombat.com/u/AnSeDra)\
**Post date:** [September 21, 2020, 2:42pm UTC](https://discourse.codecombat.com/t/cloudrip-mountain-8-hunting-party-error-message/24273/9 "2020-09-21T14:42:43Z")

</div>

This is what appears in my console:

```python
time:29.066666666666666 closest enemy:Karnaugh number of enemies: 4

```

Andrei
