Just a little something I thought I might share, credit goes to Yeyinde who showed me how to do it, and to me who made it and added bits for Netplay+:
Replace the rescue error bit in Main with this: (backup main first!)
rescue Errno::ENOENT, Hangup
if $!.is_a?(Errno::ENOENT)
Network::Main.close_socket
# Supplement Errno::ENOENT exception
# If unable to open file, display message and end
filename = $!.message.sub("No such file or directory - ", "")
print("Unable to find file #{filename}.")
time = Time.now
time = time.strftime("%a %d %b %Y, %X")
File.open("ErrorLog.rxdata","a+"){ |fh| fh.puts("On <<#{time}>> the file <<#{filename}>> was missing." )}
elsif $!.is_a?(Hangup)
if $scene.is_a?(Scene_Connect)
# CHANGE MESSAGE BELOW
print '[color=red]Failed to load server list. You can report this error to the admin at the forums. Sorry for any inconvenience caused.[/color]'
else
print '[color=blue]A script is taking too long to process and the game has had to close. Sorry for any inconvenience caused.[/color]'
end
end
ensure
Network::Main.close_socket if Network::Main.socket != nil
end
MAKE SURE YOU BACKUP MAIN FIRST.
For non Netplay+ 1.6.x I think you can just delete:
ensure
Network::Main.close_socket if Network::Main.socket != nil
To edit this yourself:
Change the red bits to what you want it to say if it gets "script hanging" on the server select screen.
Change the blue bits to what you want it to say if it gets "script hanging" anywhere else.
This wont fix the error, but it will let the player know what's causing it so they can tell you so you can fix it easier, and also will be a bit more... hospitalitistic (if that is a word) to the player than just "script is hanging".
What it actually does:
It sees when the game gets the hangup (script hanging) error, and says the message and closes before the script hanging message is shown.