This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
How would I replace it? and how would I detect when an exception occurs?
Even if you could replace global handler, it would not do you any good: when execution is handed to exception handler, game is already dead. Game loop is broken from, game context is destroyed. Only thing you can do is to load game or restart it.
If you want to to handle errors, do it inside your game: wrap parts of script you know how to fix in try/exception blocks, for example.
- Ren'Py Creator
- Posts: 15443
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Users browsing this forum: Bing [Bot]