Freezing character switch "bug"

Ok, I'm desperate.

I am/was in the final part of the development of my game, fixing typos and
little things like this. A game which until 24 hours ago was working well and
that I should have delivered tomorrow.
Without any apparent reason, today my main character freezes when I activate
the first switch at the very beginning of the game. Something very likely
to when an automatic event is triggered and you can't move but other events
still work around you.
It seems like the problem is the switch itself, since I erased
all the other events from the map, leaving only the activation of this switch,
and the player's character still cannot move, open menu, etc.
I also haven't add or modified any scripts, plugin, etc.
Of course I tested this on a new game, so there are no possible
"conflicts" from this point of view.
I attach a screenshot of the plugins I use and of the very simple event activating the switch, although I did
not modify it in the last days (actually months!) and has always worked fine.

Any idea to what could cause this and how to fix it?
Thank you very much.
If it's the event causing this, the first thing I would try would be creating a second event page without any commands that has your comparsa mostri switch (or better a self switch that activates on the forst page) as a condition. Since this event seems to be triggered by touching the player, be sure to set the event trigger of this second page to action button)

Since you said, you've already tried copying the event to a new project, without any plugins, I doubt it's a plugin related error.
It sounds like your switch has activated an autorun event. And if you've removed all the events on the map and it's still happening, then it's probably a common event. Even an event with NO commands will freeze the player if it's set to autorun and is activated.

If you still can't find it, grab my cross-reference tool and check where that switch is used. It won't show if it's used in plugins, but if it's used by an autorun event anywhere you'll find it with this.


I see that you've also used switch 1 there. Have you checked all of your plugins to see if they use this switch for anything? Also, are your few YEP plugins in the right order? I don't think either of those is the cause of the freezing, but if they're not set up properly, they'll cause other issues for you later.
It sounds like your switch has activated an autorun event. And if you've removed all the events on the map and it's still happening, then it's probably a common event. Even an event with NO commands will freeze the player if it's set to autorun and is activated.

If you still can't find it, grab my cross-reference tool and check where that switch is used. It won't show if it's used in plugins, but if it's used by an autorun event anywhere you'll find it with this.


I see that you've also used switch 1 there. Have you checked all of your plugins to see if they use this switch for anything? Also, are your few YEP plugins in the right order? I don't think either of those is the cause of the freezing, but if they're not set up properly, they'll cause other issues for you later.

You just saved my life! Thank you so much, it was a mistake in common event autorunning on the wrong switch. Thank you so much, really, REALLY.
I sure hope you have a backup prior to deleting all those events from the map!

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/freezing-character-switch-bug.134851/