Hey guys,
I've been experimenting with RGSS3 a lot recently but I came across an annoyance that I never had on previous RGSS versions.
I can't seem to rescue any exceptions from the main loop.
Back on RGSS1 and 2 my code would have looked like that:
On RGSS3, this code doesn't work. I tried the following to no avail:
I have also tried to add my begin/rescue clauses in the SceneManager.run method; still nothing.
Any idea on how I could make this work on RGSS3? I really have no clue why it doesn't work.
EDIT:
After more testing, I can rescue built-in exceptions, including RGSSReset, but I can't rescue SystemExit. Why?? O_o
Thanks,
- Dargor
I've been experimenting with RGSS3 a lot recently but I came across an annoyance that I never had on previous RGSS versions.
I can't seem to rescue any exceptions from the main loop.
Back on RGSS1 and 2 my code would have looked like that:
Code:
begin
# main loop code here...
rescue Exception => error
# my custom error handling here...
rescue Errno::ENOENT
# the usual ENOENT error handling here
end
On RGSS3, this code doesn't work. I tried the following to no avail:
Code:
rgss_main {
begin
SceneManager.run
rescue Exception => error
# my custom error handling here...
end
}
I have also tried to add my begin/rescue clauses in the SceneManager.run method; still nothing.
Any idea on how I could make this work on RGSS3? I really have no clue why it doesn't work.
EDIT:
After more testing, I can rescue built-in exceptions, including RGSSReset, but I can't rescue SystemExit. Why?? O_o
Thanks,
- Dargor