Stack level too deep

[IMG]http://i.imgur.com/3VII3JO.jpg[/IMG]


Does anyone have any idea on how to fix this error i heard it has something to with conflicting scripts so i removed one of my element scripts and still got the error the werid thing is i only got the error doing like the 4th time i ran the project 


it might be the fact i added ace shop and stuff like that but how do i know what is causing this error?
That error only happens when you've copied a script into the editor too many times. So, most likely, you got impatient while pasting and pasted it multiple times. 
I didn't use Ace enough for it, but I did make MV do that once by inadvertently having a common event call itself.
It occurs when the same method/s are being called over and over and over again. So in that matter two scripts could be calling the same method constantly or you copied the same script twice  


I can be wrong tho, but I'm pretty sure you have the same script twice because I've had the same issue before.
It occurs when the same method/s are being called over and over and over again. So in that matter two scripts could be calling the same method constantly or you copied the same script twice  


I can be wrong tho, but I'm pretty sure you have the same script twice because I've had the same issue before.

problem i do not have the same script twice i had to similar scripts but i deleted one of them like all the scripts i have do diffrent things so i don't assume they are calling for the same methoad so i just don't know
Check your slots that don't have names - it's common for people to add a script and not name it, thinking they'll just test it out and see if it's what they want, then they forget it's in there.


Putting the same script in twice will do it.  This could be having the same script in two different slots, or pasting the code and then accidentally pasting it again below itself - it has happened.  Also having two scripts that change the same method could cause a stack too deep error.  I think it has something to do with giving them the same alias name or something - not too sure on that.


How many scripts do you have?  If you don't have many, it might be easier to just copy a script file from a new project and just add your scripts back again.  Or disable them all and play, ensure the issue doesn't happen, then enable them all one by one, saving and playing after each one.  The moment the error happens, you know it's something about the script you just enabled, and it gives you a point to start further investigations from.


Check your slots that don't have names - it's common for people to add a script and not name it, thinking they'll just test it out and see if it's what they want, then they forget it's in there.


Putting the same script in twice will do it.  This could be having the same script in two different slots, or pasting the code and then accidentally pasting it again below itself - it has happened.  Also having two scripts that change the same method could cause a stack too deep error.  I think it has something to do with giving them the same alias name or something - not too sure on that.


How many scripts do you have?  If you don't have many, it might be easier to just copy a script file from a new project and just add your scripts back again.  Or disable them all and play, ensure the issue doesn't happen, then enable them all one by one, saving and playing after each one.  The moment the error happens, you know it's something about the script you just enabled, and it gives you a point to start further investigations from.

i have 10 scripts i once had 11 and that missing script was similar to another script which i assumed caused the error but after deleting that similar script the error still occured and i no longer assume its do to that script cause once it was running fine with both of the scripts installed
It's still got to be in your scripts.  So there's something happening there that you aren't aware of.



Look through each one and make sure you don't have it pasted twice into the same slot.  Look at your empty slots and make sure there's no script in there.


At what point does the error occur?  Is it immediately on launching a play test?  Or do you do something that triggers it to happen?
It's still got to be in your scripts.  So there's something happening there that you aren't aware of.



Look through each one and make sure you don't have it pasted twice into the same slot.  Look at your empty slots and make sure there's no script in there.


At what point does the error occur?  Is it immediately on launching a play test?  Or do you do something that triggers it to happen?

it happens immaitly 
then please check all empty slots on your script editor.


This error can only be caused by a script problem, and either by one script installed two times (most often) or by two incompatible scripts using the same functions names (much rarer due to technical requirements). The third option would be a damaged script causing a loop on itself.


Now you need to find the cause by checking for the different possibilities.


1) check every unnamed slot in the script editor, if it is really empty when selected or if you placed something there and then forgot to name the slot.


That is the fastest check, and also one of the more common causes for this error


2) check if all added scripts are unchanged. This is not as easy, especially if you needed to configure the scripts, so it's a two-part check.


2a) compare the number of lines of a script in your editor with the number of lines on the original script on its website - if that is different, then you have a candidate (it might be different due to added configuration lines, but then again it needs to be checked in detail.


2b) for all scripts that needed configuration (no matter if that changed the number of lines or not), you need to check if you made the configuration in the correct way. That will require either basic script knowledge, or you need to test that in new projects independently


3) try to use the backtracer script (see link "how to use a script" in my signature) for better error output.


Most likely it will not give more infos as its purpose are a different type of errors, but it's worth a try


EDIT:


4) check if all slots contain the script you named the slot after - it is easy to mix that up with copy&paste if you installed several scripts at the same time. And also make sure that each script is there only once (no double paste)
You are not really helping us help you.  We have given you many suggestions of what to do and where to look, and you are giving us minimal answers that do not address all our suggestions.  Are you doing the things we are telling you to do?  Are you looking for the things we are telling you to look for?  We can only guide you, but you have to actually do what we say in order to find the problem.
then please check all empty slots on your script editor.


This error can only be caused by a script problem, and either by one script installed two times (most often) or by two incompatible scripts using the same functions names (much rarer due to technical requirements). The third option would be a damaged script causing a loop on itself.


Now you need to find the cause by checking for the different possibilities.


1) check every unnamed slot in the script editor, if it is really empty when selected or if you placed something there and then forgot to name the slot.


That is the fastest check, and also one of the more common causes for this error


2) check if all added scripts are unchanged. This is not as easy, especially if you needed to configure the scripts, so it's a two-part check.


2a) compare the number of lines of a script in your editor with the number of lines on the original script on its website - if that is different, then you have a candidate (it might be different due to added configuration lines, but then again it needs to be checked in detail.


2b) for all scripts that needed configuration (no matter if that changed the number of lines or not), you need to check if you made the configuration in the correct way. That will require either basic script knowledge, or you need to test that in new projects independently

You are not really helping us help you.  We have given you many suggestions of what to do and where to look, and you are giving us minimal answers that do not address all our suggestions.  Are you doing the things we are telling you to do?  Are you looking for the things we are telling you to look for?  We can only guide you, but you have to actually do what we say in order to find the problem.

3) try to use the backtracer script (see link "how to use a script" in my signature) for better error output.


Most likely it will not give more infos as its purpose are a different type of errors, but it's worth a try


EDIT:


4) check if all slots contain the script you named the slot after - it is easy to mix that up with copy&paste if you installed several scripts at the same time. And also make sure that each script is there only once (no double paste)


That error only happens when you've copied a script into the editor too many times. So, most likely, you got impatient while pasting and pasted it multiple times. 

it actually wasn't that i had the same script copied over and over again it was actually do to my party script i had thanks to the backtracer script line 262 of the party script was causing the error i do not know scripting enough to know what was causing the error but i did notice there was a null which i know means blink


so yeah it was this script https://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/ that was causing the issue at line 262
@golden112 Please don't quote whole posts to indicate who you are replying to this makes the page slow to load especially for those who are looking at this on their phones.  If you want to make it clear who you are answering use the @username convention as I have done with this post.
So have you solved the problem, or have you just located where it is and still need help fixing it?
But I did't I'am having the same problem check my thread I had given my whole information help me plz.
Necro-post notice: @Negi-Mox
closing

Original thread: https://forums.rpgmakerweb.com/threads/stack-level-too-deep.69836/