I would like to make a custom script for error handling that attempts to fix bugs by itself, and I want the default renpy exception screen to be replaced too.
How would I replace it? and how would I detect when an exception occurs?
How to change the default renpy exception screen
Forum rules
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.
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.
-
- Newbie
- Posts: 1
- Joined: Thu May 17, 2018 11:43 am
- Contact:
- Ocelot
- Lemma-Class Veteran
- Posts: 2402
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: How to change the default renpy exception screen
You edit RenPy source. This is the only way. Exception handling screen is not a part of the game and is not configurable. It intention is only to report an error and give traceback to aid in fixing the cause. It is not intended to be changed, because it is the last resort: if you see this screen, it means that your game have already failed error handling.
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.
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.
< < insert Rick Cook quote here > >
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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
- Contact:
Re: How to change the default renpy exception screen
Correct. This is is not a part of Ren'Py I support changing.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- badanni
- Newbie
- Posts: 9
- Joined: Fri Jan 24, 2020 11:57 am
- itch: badanni
- Location: Quito, Ecuador
- Contact:
Re: How to change the default renpy exception screen
override the screen _exception or loading again an custom _errorhandling.rpym (only with screen _exception)
Code: Select all
renpy.exports.load_module("core/_errorhandling")
Who is online
Users browsing this forum: Majestic-12 [Bot]