Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 2 posts ] 
    Dargor
  Mon Apr 30, 2012 4:02 pm
User avatar
Retired Staff

Party Mascot

Location: Quebec / Canada
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:
Expand to see the code.


On RGSS3, this code doesn't work. I tried the following to no avail:
Expand to see the code.


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

_________________
Final Fantasy VI SDK
Image

Stay in touch, ask me anything, receive updates and try out the lastest versions!

Image Image Image Image Image

Tutorials


Top Top
Profile      
 

    Sarkilas
  Thu Dec 20, 2012 10:05 pm
User avatar
Member


Location: Norway
I don't know exactly how exceptions are stored in Ruby, and it's obviously something RGSS3 handles diffierently, but have you tried creating an instance of the SystemExit exception to see if it truly exists in the library? As I don't see why RGSS3 would prevent a rescue of a raised SystemExit exception, since it's just a library, not a wrapper, right?


Top Top
Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Homepage
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group