My game freezes after event

Hello, first post. I googled my problem and read similar threads. Tried to follow some of the advice but had no luck.

Thought I'd join and post here to get more personalized advice.
So I have this event and it used to work just fine, I did some other changes afterwards but undid them and it still didn't get fixed.

What am I doing wrong. I don't have a lot of experience with RPGmaker yet so I understand my might be more chaotic than they have to be ideally.

If you need screenshots of the other events too let me know and I'll provide.
Do you have anything else that happens when the toyhammer switch is on? I don't see anything in this event that would make the game freeze but another event triggered by that switch could have something in it.

I guess there could also be something wrong with the image as it's a black box
Agreed, there's nothing in this event that would freeze. The most likely cause is you're double-booking switch 7 and turning it on is activating a parallel or Autorun event someplace.

You can check with the Event Searcher tool on the toolbar, but that won't tell you about common events - you'll need to check those manually.
or it could be that you have a plugin that is configured for switch 7 and triggered by that - for example a stop all movement plugin as the obvious case, but could easily be something more hidden.

in all cases, you need to find out where else switch 7 is used as nothing else in that event could cause a freeze.
Do you have anything else that happens when the toyhammer switch is on? I don't see anything in this event that would make the game freeze but another event triggered by that switch could have something in it.

I guess there could also be something wrong with the image as it's a black box
I searched and didn't see it used elsewhere. What I'd added previously was had a line where it added an image as a placeholder for future use and after that a couple more events I changed the problem started. I removed that line and expected it to be fixed but it still persisted.
Agreed, there's nothing in this event that would freeze. The most likely cause is you're double-booking switch 7 and turning it on is activating a parallel or Autorun event someplace.

You can check with the Event Searcher tool on the toolbar, but that won't tell you about common events - you'll need to check those manually.
I searched and didn't find it anywhere. I use this event 4 times, around an object so it triggers in all directions, but it used to work find and none of it is auto run. I can include events I added later that might have an issue.

The cover_hole event has not been working as I intended but I think I finished adding the lines before I completed the toy hammer one, and it didn't clash, but I am still including it.

I think the break_wall event I added later, after toyhammer but it only triggers on player action.

The on_break event simply changed a tile into another. It is an autorun event but even when i changed it from autorun it didn't fix the issue. I also read some advice for autorun events to add self-switch so that's why I added the second page.


I can include the other autorun events too. Maybe I'm missing something.
Event 2 is the problem. Not sure what it is suppose to do but it's turning self switch A off but the highest page can only be active if self switch A is on, so 60 times a second, forever it is just turning self switch a off.
Just to expound on what @Slaughty said:

1720203821640.png


You're making it turn its self switch A off, but that has no effect on the current event page (the condition is global switch 5).

So that will run every frame, 60 times per second, turning its self switch off forever, and locking player input since it's Autorun.

I have no idea what you're trying to accomplish with this event at all. When switch 5 is off it won't appear on the map at all, and - presuming you meant to turn self switch 5 on - when switch 5 is on, this event will appear for one frame, turn on its self switch, and go to page 2 which does nothing.

So what's the point?
I
or it could be that you have a plugin that is configured for switch 7 and triggered by that - for example a stop all movement plugin as the obvious case, but could easily be something more hidden.

in all cases, you need to find out where else switch 7 is used as nothing else in that event could cause a freeze.
I have not added any plugins. Unless I am misunderstanding the term, in that case I am sorry. I haven't quite reached the level of integrating plugins yet.
Do you have anything else that happens when the toyhammer switch is on? I don't see anything in this event that would make the game freeze but another event triggered by that switch could have something in it.

I guess there could also be something wrong with the image as it's a black box

Event 2 is the problem. Not sure what it is suppose to do but it's turning self switch A off but the highest page can only be active if self switch A is on, so 60 times a second, forever it is just turning self switch a off.

Just to expound on what @Slaughty said:

View attachment 310524

You're making it turn its self switch A off, but that has no effect on the current event page (the condition is global switch 5).

So that will run every frame, 60 times per second, turning its self switch off forever, and locking player input since it's Autorun.

I have no idea what you're trying to accomplish with this event at all. When switch 5 is off it won't appear on the map at all, and - presuming you meant to turn self switch 5 on - when switch 5 is on, this event will appear for one frame, turn on its self switch, and go to page 2 which does nothing.

So what's the point?
Just wanted to update you guys. I loaded my map onto another project and loaded a map everytime and run different scenarios to see which map caused me trouble.

I guess my problem was very silly as I didn't find anything from the maps. So as a last resort tried to check the System tab and found out I probably added a common event last night when I was tired that triggered on toy_hammer switch. It's just that when I searched it didn't turn up. So I removed it since it had no lines and that fixed the issue.

Sorry for the trouble, but thanks for the ideas and advice.

Original thread: https://forums.rpgmakerweb.com/threads/my-game-freezes-after-event.170053/