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:
github.com
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?
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:
Fix the game screen freezes occasionally even though you hear the sounds by krmbn0576 · Pull Request #191 · rpgtkoolmv/corescript
The problem of "the screen freezes extremely occasionally despite the sound being heard" was previously reported. It turned out that the reason for this is that this._skipCount is a negat...
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?