I've run into a bit of an issue with the Yanfly Battle Enemy Target Info script.
When I hold the shift key to check an enemy, I get this pop up:
If you're wondering, I'm running this as my Main script:
I removed the script and everything else functioned just fine. When I put it back in, I kept getting the error.
I'm not sure what the problem here is. Can anybody help. because I'd really like to use this in my game.
When I hold the shift key to check an enemy, I get this pop up:
If you're wondering, I'm running this as my Main script:
#==============================================================================
# ** Main
#------------------------------------------------------------------------------
# This processing is executed after module and class definition is finished.
#==============================================================================
begin
rgss_main do
begin
SceneManager.run
rescue RGSSReset
Graphics.transition(10)
retry
end
end
rescue SystemExit
exit
rescue Exception => error
scripts_name = load_data('Data/Scripts.rvdata2')
scripts_name.collect! {|script| script[1] }
backtrace = []
error.backtrace.each_with_index {|line,i|
if line =~ /{(.*)}(.*)/
backtrace << (scripts_name[$1.to_i] + $2)
elsif line.start_with?(':1:')
break
else
backtrace << line
end
}
error_line = backtrace.first
backtrace[0] = ''
print error_line, ": ", error.message, " (#{error.class})", backtrace.join("\n\tfrom "), "\n"
raise error.class, "Error ocurred, check the debug console for more information.", [error.backtrace.first]
end
# ** Main
#------------------------------------------------------------------------------
# This processing is executed after module and class definition is finished.
#==============================================================================
begin
rgss_main do
begin
SceneManager.run
rescue RGSSReset
Graphics.transition(10)
retry
end
end
rescue SystemExit
exit
rescue Exception => error
scripts_name = load_data('Data/Scripts.rvdata2')
scripts_name.collect! {|script| script[1] }
backtrace = []
error.backtrace.each_with_index {|line,i|
if line =~ /{(.*)}(.*)/
backtrace << (scripts_name[$1.to_i] + $2)
elsif line.start_with?(':1:')
break
else
backtrace << line
end
}
error_line = backtrace.first
backtrace[0] = ''
print error_line, ": ", error.message, " (#{error.class})", backtrace.join("\n\tfrom "), "\n"
raise error.class, "Error ocurred, check the debug console for more information.", [error.backtrace.first]
end
I'm not sure what the problem here is. Can anybody help. because I'd really like to use this in my game.