Save-Point
F12 Fix - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: F12 Fix (/thread-2476.html)



F12 Fix - Zeriab - 03-06-2008

This small snippet opens a new game and closes the old game when you reset the game by pressing F12.
This should prevent any errors caused from the normal F12 reset.

Insert as the very first script. (Over Game_Temp)

Code:
#=begin
unless $f12_cleaner_F3XXEFA1.nil?
  # Opens the game executable in a new thread
  game_name = 'Game'  # "Game" = Name of the game executable
  if $DEBUG
    Thread.new{system (game_name + ' debug')}
  else
    Thread.new{system (game_name )}
  end
  # Exits this thread
  exit
end

# Modifying this global variable might cause this snippet to stop working properly.
# Some garbage have been added to lessen the chance of it already being used
$f12_cleaner_F3XXEFA1 = true
#=end
*hugs*
- Zeriab