cool cate87

New Member
Oct 16, 2022
2
0
The game seems to keep freezing for me? Like after a few mins of gameplay, the screen freezes but I can still interact with the game, just can't see what I'm doing.
 

Hunker453

Newbie
Sep 18, 2022
40
28
The game seems to keep freezing for me? Like after a few mins of gameplay, the screen freezes but I can still interact with the game, just can't see what I'm doing.
Age-old RPG maker bug occurring on certain systems.
In the game folder, navigate to and open up the file named "rpg_core.js"
Its relative path in the game folder should be: \www\js\rpg_core.js

Open it up in any old text editor, then find this exact portion (just CTRL+F "this._skipCount ===" or "Graphics.render" , or go to line 1872)

Code:
1871 Graphics.render = function(stage) {
1872     if (this._skipCount === 0) {
1873         var startTime = Date.now();
1874         if (stage) {
1875             this._renderer.render(stage);
1876             if (this._renderer.gl && this._renderer.gl.flush) {
1877                 this._renderer.gl.flush();
1878             }
1879         }
Change the operators on line 1872 from "===" to "<=".

from:
if (this._skipCount === 0) {
to:
if (this._skipCount <= 0) {

Save the file and try running the game - the screen image should no longer freeze with audio and game logic continuing.
 
Last edited:

Kredyn

Member
Game Developer
May 5, 2018
132
728
Age-old RPG maker bug occurring on certain systems.
In the game folder, navigate to and open up the file named "rpg_core.js"
Its relative path in the game folder should be: \www\js\rpg_core.js

Open it up in any old text editor, then find this exact portion (just CTRL+F "this._skipCount ===" or "Graphics.render" , or go to line 1872)

Code:
1871 Graphics.render = function(stage) {
1872     if (this._skipCount === 0) {
1873         var startTime = Date.now();
1874         if (stage) {
1875             this._renderer.render(stage);
1876             if (this._renderer.gl && this._renderer.gl.flush) {
1877                 this._renderer.gl.flush();
1878             }
1879         }
Change the operators on line 1872 from "===" to "<=".

from:
if (this._skipCount === 0) {
to:
if (this._skipCount <= 0) {

Save the file and try running the game - the screen image should no longer freeze with audio and game logic continuing.
I wanted to fix this, bug I forgot. Thanks, for bringing it to my attention!
 

cool cate87

New Member
Oct 16, 2022
2
0
Age-old RPG maker bug occurring on certain systems.
In the game folder, navigate to and open up the file named "rpg_core.js"
Its relative path in the game folder should be: \www\js\rpg_core.js

Open it up in any old text editor, then find this exact portion (just CTRL+F "this._skipCount ===" or "Graphics.render" , or go to line 1872)

Code:
1871 Graphics.render = function(stage) {
1872     if (this._skipCount === 0) {
1873         var startTime = Date.now();
1874         if (stage) {
1875             this._renderer.render(stage);
1876             if (this._renderer.gl && this._renderer.gl.flush) {
1877                 this._renderer.gl.flush();
1878             }
1879         }
Change the operators on line 1872 from "===" to "<=".

from:
if (this._skipCount === 0) {
to:
if (this._skipCount <= 0) {

Save the file and try running the game - the screen image should no longer freeze with audio and game logic continuing.
Thanks! It fixed the problem
 
4.30 star(s) 9 Votes