RMMV Anyone tried this "game screen freezes but sounds play" fix?

EthanFox

Veteran
Veteran
Joined
Oct 15, 2018
Messages
529
Reaction score
349
First Language
English
Primarily Uses
RMMV
One of the very rare problems I've had with my game is a situation where the user is playing, and suddenly, the game freezes.
The "game" continues to run (you can hear the SFX etc.) but the visuals have totally frozen, and either a refresh or a reload is the only way to continue playing.

This problem is a "cosmic ray" error, in that it has absolutely no obvious cause and happens really rarely. I wasted quite a while trying to figure it out, until one day I had it happen literally between two dialogue calls in the first location of my game (which means it's been played many thousands of times without issue, and every player had the exact same switches/variables etc. because practically nothing before that point even happens).

Today I've seen this possible fix for it:


However, I see this is from 2018, and I know the engine has been patched since then.

Is anyone else familiar with this problem, and know if this will fix it? Or if this would cause problems with the present version of the engine? And for this code snippet, are there any likely side-effects I should watch out for?
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
452
Reaction score
360
First Language
English
Primarily Uses
RMMV
I answered a thread regarding this issue earlier. But to answer your question, the only change in that snippet is to increase the skip count check to include negative values. They can occur under certain situations and, by default, the code doesn't check for them which causes a freeze.

You should be fine to make the change. But if it doesn't end up working for some odd reason, just reverse it.
 

Latest Threads

Latest Profile Posts

brain fried, please help, when i open the shop menu to sell items it lists Weapons, Armor & Key Items as seperate categories with items to sell, but those items in my game are not meant to be sold. thus i ask, how do i remove Weapon/Armor/Key Item categories from the sell menu?
here's another RPG Maker remake idea: "Plumbers Don't Wear Ties". I'll salute to whomever does this
I won't finish it today, I only will have time to work on that next Saturday, what a shame... :(
I made something for @LittenDev [as he requested]

Forum statistics

Threads
111,391
Messages
1,060,759
Members
144,734
Latest member
flgudget
Top