F12 Stack Level Too Deep Fix
Authors: ThallionDarkshine, CoderPuppy
Version: 1.1
Type: Error Fix
Key Term: Misc Add-on
IntroductionHave you ever been really annoyed when you press F12 to restart your game, and all of a sudden, a Stack Level Too Deep error appears? Well, this will fix that.
Features
- Fix those annoying stack level too deep errors when using the F12 restart.
ScreenshotsNot necessary. I can't think of how to show the absence of an error.
DemoNot at the moment, pretty self-explanatory.
ScriptPlace at the top of the script list before anything else.
if Graphics.frame_count > 0
begin
# Prepare for transition
Graphics.freeze
# Make scene object (title screen)
$scene = Scene_Title.new
# Call main method as long as $scene is effective
while $scene != nil
$scene.main
end
# Fade out
Graphics.transition(20)
rescue Errno::ENOENT
# Supplement Errno::ENOENT exception
# If unable to open file, display message and end
filename = $!.message.sub("No such file or directory - ", "")
print("Unable to find file #{filename}.")
end
exit
end
InstructionsNone needed. The script is pretty self-explanatory.
CompatibilityNo known issues.
Credits and Thanks
- ThallionDarkshine
- CoderPuppy (my brother) for the idea (which is basically all the script is)
Author's NotesNone. Use freely, no credit necessary.