08-14-2013, 06:36 AM
I don't know if you've freed yourself from this error, but if not, then do this, please:
1. Save your Main script in a file (copy the text and paste in a separated file, save it).
2. Replace your Main script (in RMXP) for this code:
3. Play your game until you get the mentioned error.
4. In your game's folder, there will be a file named ErrorLog.rxdata. Open it with a text editor, copy the contents and paste them here.
5. Restore your Main script.
1. Save your Main script in a file (copy the text and paste in a separated file, save it).
2. Replace your Main script (in RMXP) for this code:
Code:
begin
$defaultfonttype = $fontface = $fontname = Font.default_name = "Arial"
$defaultfontsize = $fontsize = Font.default_size = 22
Graphics.freeze
$scene = Scene_Title.new
while $scene != nil
$scene.main
end
Graphics.transition(20)
rescue Errno::ENOENT
filename = $!.message.sub("Arquivo não encontrado - ", "")
print("O Arquivo #{filename} não foi encontrado.")
rescue StandardError => stderr
p "Your error message here. See Instructions for more details."
if $DEBUG
p stderr.message
end
time = Time.now
time = time.strftime("%a %d %b %Y, %X")
File.open("ErrorLog.rxdata","a+") do |fh|
fh.puts("Time: #{time}")
fh.puts("Error type: #{stderr.class}")
fh.puts("Class: #{$scene.class}")
fh.puts("Message: #{stderr.message}")
fh.puts("at")
for location in stderr.backtrace
section = location[/(?#Section)(\d)*(:)/]
section_err = section[0, section.length - 1]
script_name = $RGSS_SCRIPTS[section_err.to_i][1]
line_num = location[/(:)(\d)*(\Z|(:))/]
line_num_err = line_num[1, line_num.length - 1]
line_num_err = line_num_err[/(\d)*/]
method = location[/\s\W(\w)*\W/]
method = method[1, method.length - 1] unless method == nil
loc_err = script_name + ", line " + line_num_err +
(method == nil ? "" : ", at " + method)
fh.puts(" #{loc_err}")
end
fh.puts("--------------------")
end
end
4. In your game's folder, there will be a file named ErrorLog.rxdata. Open it with a text editor, copy the contents and paste them here.
5. Restore your Main script.