Quite often when i'm trying to get a script to work just right, it "locks up". In other words, can't input anything, no menus appear, nothing except the need to Alt-F4.
I know there's some obvious reason why a script lockup happens, but I thought it might be good to make this thread to try and get some answers to what i'm sure that plenty of budding developers run into from time to time.
What are the most common causes for this?
When a scene de-activates a window, but never activates another window.
Perhaps due to missing use case, forgot to implement, or other reasons.
When a script runs itself into an infinite loop.
This is possible with events as well since you have the loop command.
I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.
Good topic. I can't think of any other reasons off the top of my head.
Yep. Unintentional infinite loop. The bane of a novice eventer/scripter's existence.
I wonder if this will end up getting pinned or something 😳
Hmm I think I have something very similar to this.
In one of my test events I wish to make it that you can't save or enter your menu at this certain moment but you need to walk to continue the scene, now the problem here is that when I issue a command for a event to disable Menu and Save or just Menu, you can't move or do anything, is that another reason for a script lockup?
It seems like having autorun events can be quite tempermental on that sort of thing, Omega-Zero.
OM3GA-Z3RO, it sounds like you're asking for help, not contributing to the topic (because you haven't identified a cause). This is not a thread to ask for help.
A game can lock if you have an autorun event that's not turned off, even if it's doing nothing. But that's an event design issue, not a script issue.
"Exit Event Processing"
The event option that time forgot?
Exit Event Processing does not work for autorun or parallel processing events. Let's get back to the topic, please.
Doh. I actually thought that had something to do with lockups. Apologies.
So, basically, the causes seem to be:
Infinite Loops
Not putting an end to autorun or parallel processes through some means(i.e, a switch or variable)
That's what he have so far, right?
Loading an outdated save file after doing script changes.