Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

error?: stack level too deep

Script'  4-Misc Code' line 40: SystemStackError occurred.

stack level too deep



Still fairly new at scripting, and I really have no idea what this error means. I checked the script and it occurs with mnk_init. If anyone has any general suggestions for me, or if I need to post more information, let me know. Anything would be appreciated.


edit: the same error is occurring on another line, with

    lbadd2_init
 
I'm working at it again. I have too many scripts running, which is what I'm thinking is the problem. I am using SDK 2.2, DerVVulfman's Grouping, DVV's Limit Breaks with Seph Slant, Minkoff's Animated Battlers, Guillaume777's Multi-slot, Tons of Addons, Easy LvlUp Notifier, DDNS, UMS, Weather, and trying to get a new ATB system into the mix. Hopefully with a Remodeled Damage Display too.

I'm going to work at it for a while tonight, then likely post what I've got later on, if I can't figure it out.
 
This error happens usually when there is an infinite loop somewhere.

Every time you call a method, the computer puts it on the "stack" so it can remember where to go when the method is finished. This error happens when there is not enough room on the stack to place another method.

Look for places where a method calls itself or two methods repeatedly call each other. You may find the culprit there. Good luck  :thumb:
 
I changed some things around, and a problem now appears in the the compatibility between Grouping&Details and the RATB scripts. For some reason unknown to me, it will not divide the skills anymore, and when hitting esc to cancel back out of the skills screen, the game crashes.

This is a link to just the scripts:
http://www.uploading.com/files/MMQRPO33/Scripts.rar.html
There's some problem with my internet connection, I guess, because it keeps cancelling the upload after a short time. I couldn't manage to upload the whole game, just the scripts... I'll try again tomorrow.


As of now, I've just cut out the ATB system, and it seems to be working alright again.

Astromech: Thanks for the advice. I looked through, and couldn't see anything obvious, but I'm probably blind to half the likely suspects anyways. I still have that set of scripts saved, so I can check it out another time when I get the gumption.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top