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?
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.
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.^^
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