Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Rymdpotatis on July 18, 2008, 01:56:32 pm

Title: [RESOLVED] Blizz-ABS Too many enemies makes a stack level too deep error >_<
Post by: Rymdpotatis on July 18, 2008, 01:56:32 pm
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?
Title: Re: Blizz-ABS Too many enemies makes a stack level too deep error >_<
Post by: 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.
Title: Re: Blizz-ABS Too many enemies makes a stack level too deep error >_<
Post by: Rymdpotatis on July 18, 2008, 05:50:24 pm
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.^^
Title: Re: Blizz-ABS Too many enemies makes a stack level too deep error >_<
Post by: Blizzard on July 19, 2008, 11:13:23 am
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