document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. # Example of Main using DeadElf79\'s Game_Setting resource check
  2. # and DeadElf79\'s Simple Log Writer (ver.1.2)
  3. begin
  4.   begin
  5.     if $gs.need_to_check_up
  6.       $gs.check_up
  7.     end
  8.     while $scene != nil
  9.       $scene.main
  10.     end
  11.     Graphics.transition(20)
  12.   rescue Errno::ENOENT
  13.     # Supplement Errno::ENOENT exception
  14.     # If unable to open file, display message and end  
  15.     filename = $!.message.sub("No such file or directory - ", "")
  16.     wr \'End of game by exception\'
  17.     wr "Unable to find file #{filename}."
  18.     print("Unable to find file #{filename}.")
  19.   end
  20. rescue => error
  21.   wr \'End of game by exception\'
  22.   wr "Error: #{error.exception}"
  23.   wr error.backtrace.join("\\n"),nil,true
  24. end
');