
I think it's one of the 400+ events on the map... but which one...
class Game_Interpreter alias_method :command_355_orig, :command_355 def command_355 command_355_orig rescue SyntaxError => e printf "EV%03d: bad call script\n", @event_id raise e endend#sb:event_debugger [debug]#===============================================================================# Game Interpreter#===============================================================================class Game_Interpreter #----------------------------------------------------------------------------- # Command 355 [ALIAS] #----------------------------------------------------------------------------- alias nap_debug_command_355 command_355 def command_355 begin nap_debug_command_355 rescue Exception => e p e str = "[Command_355] Crash in map_id: #{$game_map.map_id}, Event #{@event_id}: #{$game_map.events[@event_id].name} at location (#{$game_map.events[@event_id].x},#{$game_map.events[@event_id].y}).\n#{e}\n" print str log_error(str) if defined?(log_error) raise e end end #----------------------------------------------------------------------------- # command_111 [ALIAS] #----------------------------------------------------------------------------- alias nap_debug_command_111 command_111 def command_111 begin nap_debug_command_111 rescue Exception => e p e str = "[Command 111] Crash in map_id: #{$game_map.map_id}, Event #{@event_id}: #{$game_map.events[@event_id].name} at location (#{$game_map.events[@event_id].x},#{$game_map.events[@event_id].y}).\n#{e}\n" print str log_error(str) if defined?(log_error) raise e end endend # class Game_Interpreter#===============================================================================p scriptclass Game_Interpreter def eval(string) super rescue Exception => e # ... raise e endend#sb:event_debugger [debug]# Author: Napoleon# About: - Shows you more information about the crash inside an event when using a script-call.# - Plug and play.# Thanks to: [URL="http://forums.rpgmakerweb.com/index.php?/topic/31913-finding-what-script-causes-the-error-or-what-part/#"]http://forums.rpgmakerweb.com/index.php?/topic/31913-finding-what-script-causes-the-error-or-what-part/#[/URL] License: Public Domain#===============================================================================# Game Interpreter#===============================================================================class Game_Interpreter #----------------------------------------------------------------------------- # Command 355 [ALIAS] # For: Script Call #----------------------------------------------------------------------------- alias nap_debug_command_355 command_355 def command_355 begin nap_debug_command_355 rescue Exception => e nap_exception(e, __method__) end end #----------------------------------------------------------------------------- # Command 111 [ALIAS] # For: Conditional #----------------------------------------------------------------------------- alias nap_debug_command_111 command_111 def command_111 begin nap_debug_command_111 rescue Exception => e nap_exception(e, __method__) end end #----------------------------------------------------------------------------- # Napoleons Exception [NEW] #----------------------------------------------------------------------------- def nap_exception(exception, method) if $game_party.in_battle str = "[#{method}] crash in battle-event: #{exception}\n" elsif @event_id == 0 match = $data_common_events.compact.find { |ce| ce.list.equal?(@list) } if match str = "[#{method}] Crash in common event with ID: #{match.id}, Name: '#{match.name}'\n#{exception}\n", match.id, match.name else str "[#{method}] Crash occurred in unknown entity. @event_id:#{@event_id}.\n#{exception}\n" end else str = "[#{method}] Crash in map_id: #{$game_map.map_id}, Event #{@event_id}: #{$game_map.events[@event_id].name} at location (#{$game_map.events[@event_id].x},#{$game_map.events[@event_id].y}).\n#{exception}\n" end print str log_error(str) if defined?(log_error) raise exception endend#==================================================================================================================================Error Date & Time: 2014-09-11 19:53:44 +0200:Version: v1.0.0.1759===================================================[command_355] Crash in common event with ID: 3, Name: 'Crash Test'wrong number of arguments (0 for 2..3)3Crash Test===================================================Error Date & Time: 2014-09-11 19:57:34 +0200:Version: v1.0.0.1760===================================================[command_111] Crash in map_id: 39, Event 5: EV005 at location (4,3).uninitialized constant Game_Interpreter::Test===================================================Error Date & Time: 2014-09-12 15:27:48 +0200:Version: v1.0.0.1766===================================================[process_move_command] Crash in moveroute: 39.uninitialized constant Game_Character::Test===================================================Error Date & Time: 2014-09-12 15:33:17 +0200:Version: v1.0.0.1769===================================================Crash in move-route for map: 39, for event: 8, at location: (8,11)Script-line: Set Move Route Crash Test.uninitialized constant Game_Character::Test===================================================Error Date & Time: 2014-09-12 15:36:57 +0200:Version: v1.0.0.1774===================================================[command_122] Crash when setting a control-variable in map_id: 39.uninitialized constant Game_Interpreter::Test===================================================Error Date & Time: 2014-09-12 15:39:34 +0200:Version: v1.0.0.1777===================================================[command_122] Crash when setting a control-variable in map_id: 39 Params:[1, 1, 0, 4, "Control Variables Crash Test"].uninitialized constant Game_Interpreter::Test