[RESOLVED] Blizz-ABS Too many enemies makes a stack level too deep error >_<

Started by Rymdpotatis, July 18, 2008, 01:56:32 pm

Previous topic - Next topic

Rymdpotatis

I've created a dungeon 100*100 in size. I decided to try it out with some enemies, worked out great! However, I decided to increase the amount of enemies to 7 and that's where the error: Line 6241:SystemStackError occured. Saying the stack level is too deep. =/


This is the line of code:
    return (@lead != nil ? @lead.AI_data.sight : @sight)


Do I need to lower the A.I's line of sight or something like that?

Aqua

This error happens when 2 enemies with the leader attribute want to add each other under the other's command.
This problem will be fixed in 1.99 or you can just make sure that there aren't 2 enemies with the leader attribute.

Rymdpotatis

Quote from: Aqua on July 18, 2008, 02:03:24 pm
This error happens when 2 enemies with the leader attribute want to add each other under the other's command.
This problem will be fixed in 1.99 or you can just make sure that there aren't 2 enemies with the leader attribute.



Ah, I see. Many thanks for pointing that out. Would have taken me forever to figure out that there was two or more with the leader attributes.^^

Blizzard

It would have everybody. When I first out that bug I was wondering why I am getting that error. Then I noticed that variable @lead which has a pointer to the leading enemy. So I put two leaders on the map, both outside of the perception area of the other. As soon as they got too close, the game crashed. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.