Help with Marin Script Utilities Crash after New Game

Marina

Cooltrainer
Member
Joined
Mar 10, 2018
Posts
129
Hello, I'm using RMXP Pokémon Essentials v.17.2 and Marin Script Utilities, I was play testing and when I clicked on F12 the load screen appeared and when I clicked on New Game, to start a new game, because my current save file has new events that I have to try on a new game, and when I clicked on New Game following Error appeared;

Ruby:
---------------------------
Error
---------------------------
Script 'Marins Utilities' line 1074: SystemStackError occurred.

stack level too deep

from 'Marins Utilities' line 1074 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
from 'Marins Utilities' line 1078 in `oldrand'
---------------------------
OK   
---------------------------
 

Nuri Yuri

.
Member
Joined
Sep 18, 2017
Posts
39
Marin Script Utilities is not RGSSReset compliant.
Basically, when you hit F12 the RGSS reload every scripts so if a script contain something like this :
Ruby:
alias old_meth meth
def meth
    old_meth
    # do something else
end
When you hit F12, you'll basically be aliasing old_meth to old_meth which cause the RGSSReset.

You have three solution :
- Disable F12 if possible
- Remove the Marin Script Utilities
- Change the script loader to prevent RGSSReset from reloading all the script.

The third solution can be done like this :
Ruby:
# in the Main script where the scene_title is called
begin
  $scene = Scene_Title.new
  $scene.main while $scene
rescue Exception => e
  retry if e.message.empty? or e.class.to_s == 'Reset'
  raise
end
Obviously, since Essentials has a different boot sequence than basic RPG Maker XP project, you'll have to perform some adaptations.
 
Top