Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 F12 Fix
#1
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
Reply }




Users browsing this thread: