Indefinite Wait Bug?

I'm having an issue with the 'wait' command for RPG Maker MV. I'm currently using the trial version, because I didn't want to purchase it until I could make sure it did what I wanted it to do, but at this rate I'm ready to uninstall.

I'm trying to create my own custom battle system, which is no doubt getting a bit heavy with Common Events (reason, I wanted more freedom than what the standard battle system that MV came with could provide). I have the process set up so that it loops through several of the same events as it guides you through combat, but after the third time, the entire thing just gave up for some unknown reason.

I troubleshot my way through it and found that the standard 'Wait' command was causing indefinite waiting. 1 frame wait to help fade in and out pixitext, waiting to finish character movement, I even tried adding in a small 4 frame wait during perfectly working moments and it has caused this indefinite wait bug. When I break the work up and use each part alone, again, I have no issues. It just seems to happen as the events run for too long.

Is this a known bug? Maybe with the trial version? Again, I don't want to shell out $80 on something that isn't going to do what I want it to.

Has anybody run into this before, or have a work around?

I'm not so great with java script. I tried "$gameMap._interpreter.wait(x);", but this seems to only work when I put it on a map event, and not when it's being used in a Common Event. Is there a Common Event version?

I would post a screen shot, but I've got Common Events 0002 to 0021 filled with this combat process, and again, it doesn't seem to be a problem with my work, but with one of the commands itself.
No, the wait command is not bugged - somewhere you're using it wrong, most probably either due to a wrong loop logic or page priority or something like that.

That is because there is no wait function in the engine at all - what the wait command really does is tell the engine "skip processing this event until x frames have passed".
No, the wait command is not bugged - somewhere you're using it wrong, most probably either due to a wrong loop logic or page priority or something like that.

That is because there is no wait function in the engine at all - what the wait command really does is tell the engine "skip processing this event until x frames have passed".

You beautiful genius, thank you.

"Loop Logic" left me confused for a moment, because I wasn't using any actual loops (I was having issues with those and stuck with labels, but that's another topic). What I was doing was creating a Common Event which would do a function, then pass the player off to another Common Event, which would also do something, and again pass you along. Not every time of course, usually, I would use a Common Event for something like a damage formula, or a makeshift AI to pick out what player to attack, which would come to a proper ending and return you to where you came from. A few of them though had no trigger, would carry the player through its process, and pass you along to the next event, but what I failed to realize when I made the post, the event you left was still running, waiting for you to come back and finish it. And eventually, you would get brought back to the same Common Event, which was already running, and you run through it again.

I was making sure to properly clean up my variables and switches when I finished with them, but it seems like it was several of the same Common Events running which caused my issue. I switched those that would keep running to an Autorun trigger, and made sure they were properly turned off behind the player. This seems to have solved my infinite wait issue. I'm not sure how, but I've always been terrible with programming anyways, it's probably best not to think about it.

Thank you for making me use my brain. I've got 19 days left on my trial run to hammer out this combat system, hopefully all goes well.
Any event (common event or map event) that you have set to parallel process or autorun will loop by default, even if you don't have commands in there telling them to do so (in fact, it's preferable to NOT have commands in there telling them to do so, and let them handle looping with their own logic).

An autorun event that is currently running will prevent any player input.


You've picked a heck of a system to try and get running during the trial version! Good luck!
follow the link to "bughunting" in my signature, that will give you some very important background info including why your concept has a lot of flaws...
Steam version of RPG maker is currently on sale on humble bundle for around $20, for another day. One of the cheapest sales I've ever seen.
https://www.humblebundle.com/store/rpg-maker-mv?hmb_source=search_bar
So you won't have to pay $80.
And in the worst case you can always wait for another sales while using RPG maker VXAce lite, which is a free version of RMVXAce, just with disabled script window and some other limitations of events per map, max amount of maps... But it is permafree.
Any event (common event or map event) that you have set to parallel process or autorun will loop by default, even if you don't have commands in there telling them to do so (in fact, it's preferable to NOT have commands in there telling them to do so, and let them handle looping with their own logic).

An autorun event that is currently running will prevent any player input.


You've picked a heck of a system to try and get running during the trial version! Good luck!

I just need to get the framework running. Anything beyond that I know I can do. I'm about finished that framework now, I've got every character on the field capable of doing a basic attack, and it all loops around without issue. I just need to establish how to break that loop (ie. victory, defeat, escape), which should be easy, and I'll be purchasing MV for full use.

follow the link to "bughunting" in my signature, that will give you some very important background info including why your concept has a lot of flaws...

I've been thorough, so bugs have been manageable. The "Common event call has exceeded maximum limit." error had me busy for a bit, but the solution wasn't too different from this 'wait' issue I was having. Other than that, I'll keep the link in mind if I'm having issues. Thank you.

Steam version of RPG maker is currently on sale on humble bundle for around $20, for another day. One of the cheapest sales I've ever seen.
https://www.humblebundle.com/store/rpg-maker-mv?hmb_source=search_bar
So you won't have to pay $80.
And in the worst case you can always wait for another sales while using RPG maker VXAce lite, which is a free version of RMVXAce, just with disabled script window and some other limitations of events per map, max amount of maps... But it is permafree.

Thanks for the heads up, but I've got this steam card here I've got on standby. It wasn't really about the money, more about the principle of buying something that I wasn't satisfied with. I couldn't stand the resolution issues RPG Maker had prior to MV, and there was always some random error that made me give up on whatever idea of inspiration I had at the time

And thank you for all the PIXIText guides. A custom battle system just wouldn't be possible without it... Or it would, but just totally suck. Menu's would be a nightmare, ugh, one picture for each different combination of text. The horror.
Other than that, I'll keep the link in mind if I'm having issues. Thank you.
you misunderstood me.
Half of that bughunting tutorial is NOT steps to do when a bug happens, but background info on how the engine works to prevent making mistakes. As such it is not intended to be read only if you can't find the cause of a specific bug, but also to be read as bughunt prevention help.
And some of your descriptions farther above sounded as if you are already making two of the bigger mistakes: splitting events that should be handled by a single controlling event, and having too many connected parallel processes.

Original thread: https://forums.rpgmakerweb.com/threads/indefinite-wait-bug.90361/