Switches cause game crash

ok so i'm making this fun little game. i'm working on Beta 0.2 and i''m trying to get more complex with the game. i'm using (global) switches and when the game activates these switches it freezes completely. Can't talk to npcs, can't open the menu. can't move. i need to use these witches to continue because it's getting way to complex. below i'll have the one example i have. (this is VX ace lite so...) thanks in advance for your help  

Quest page 1.png

Quest page 2.png

Quest page 3.png
No, what's causing the game to hang (not crash) is that you have an autorun event somewhere that's being activated - probably by one of these switches.


You don't need the Erase Event on page 3 - because that's set to Action Button, it'll never even trigger unless the player stands on that tile and presses space, which they're not likely to do since the event has no sprite.


Look at the other events on the map, and common events, to see which ones are set to autorun and have switch 1 as the condition.
You're activating switch # 001 - that is the default switch for common events set to autorun, so if you ever accidentally changed an unused common event to autorun setting without changing it's switch or giving it content, then activating that switch freezes the game.
No, what's causing the game to hang (not crash) is that you have an autorun event somewhere that's being activated - probably by one of these switches.

You don't need the Erase Event on page 3 - because that's set to Action Button, it'll never even trigger unless the player stands on that tile and presses space, which they're not likely to do since the event has no sprite.

Look at the other events on the map, and common events, to see which ones are set to autorun and have switch 1 as the condition.
i've only got auto run set once in the whole game and that's right before you verse the first boss. and it's when i set it with anything. as soon as a switch is turned on it, hangs? was that what it's called?
You need to turn off the auto-run event when it's done or else the game will continue to hang.
You need to turn off the auto-run event when it's done or else the game will continue to hang.
like i said the auto run event is only right before the first boss fight with absolutely no relation to this.
You're activating switch # 001 - that is the default switch for common events set to autorun, so if you ever accidentally changed an unused common event to autorun setting without changing it's switch or giving it content, then activating that switch freezes the game.
so what switch do i change to?
Wait i just managed to fix it thanks to Andar's advice so thanks to each of you for your help 🙂
so what switch do i change to?
The better solution would be to disable the autorun on the common events in the database, because an CE autorun that doesn't turn itself off is always a big problem.

Other than that, it's important to use different switches for different functions.

xMAJ3SRT1CL0RDx, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/switches-cause-game-crash.43465/