Where is the screen "_exception" kept?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
verysunshine
Veteran
Posts: 339
Joined: Wed Sep 24, 2014 5:03 pm
Organization: Wild Rose Interactive
Contact:

Where is the screen "_exception" kept?

#1 Post by verysunshine »

I'm trying to find the screen "_exception". I don't want to change anything about the exception-handling code. I just want to copy the formatting for the screen itself. It should be somewhere in renpy/common, but I can't find the correct file.

Build the basics first, then add all the fun bits.

Please check out my games on my itch.io page!

User avatar
Tayruu
Regular
Posts: 141
Joined: Sat Jul 05, 2014 7:57 pm

Re: Where is the screen "_exception" kept?

#2 Post by Tayruu »

I found def report_exception(e, editor=True) in renpy/error.py. It's not a screen, however.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Where is the screen "_exception" kept?

#3 Post by Imperf3kt »

Part of Renpy internals, not something you should mess with.
It isn't in the common folder.

The formatting won't be of any use as it isn't standard renpy language.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

verysunshine
Veteran
Posts: 339
Joined: Wed Sep 24, 2014 5:03 pm
Organization: Wild Rose Interactive
Contact:

Re: Where is the screen "_exception" kept?

#4 Post by verysunshine »

If the console gets screen language, the exception screen should too. Players might actually see the exeption screen, but they would never see the console.

What do you mean by "not standard Ren'py language"?

Build the basics first, then add all the fun bits.

Please check out my games on my itch.io page!

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Where is the screen "_exception" kept?

#5 Post by Imperf3kt »

The exception screen is renpy internal, it's not written with screen language, it is what you see once renpy fails. It can't do that if it's run by renpy.

I'll try to find it soon(ish) but honestly don't think it's of any use to you.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

verysunshine
Veteran
Posts: 339
Joined: Wed Sep 24, 2014 5:03 pm
Organization: Wild Rose Interactive
Contact:

Re: Where is the screen "_exception" kept?

#6 Post by verysunshine »

That's a fair point. I thought the screen was shown if an exeption had occured but Ren'py could still run. It's weird that the other (dangerous) files can be opened. I guess if I can't find it I'll decompile Doki Doki Literature Club and try to find ("Words...", False) recreate it by hand.

Build the basics first, then add all the fun bits.

Please check out my games on my itch.io page!

drKlauz
Veteran
Posts: 239
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: Where is the screen "_exception" kept?

#7 Post by drKlauz »

renpy/common/_errorhandling.rpym
Also it is written with screen language :D
I may be available for hire, check my thread: viewtopic.php?f=66&t=51350

verysunshine
Veteran
Posts: 339
Joined: Wed Sep 24, 2014 5:03 pm
Organization: Wild Rose Interactive
Contact:

Re: Where is the screen "_exception" kept?

#8 Post by verysunshine »

drKlauz wrote: Sat May 23, 2020 11:29 pm renpy/common/_errorhandling.rpym
Also it is written with screen language :D

Code: Select all

# This file contains the code for in-game Ren'Py error handling. It's a
# module (as opposed to a .rpy file) because that allows us to ensure
# that it is fully loaded or run before any other Ren'Py code runs.
Looks like the right thing. I'll edit this when I've found the part I need.

Edit: Got it! Thank you so much. It does have some legacy code, but I'm fixing it.

Build the basics first, then add all the fun bits.

Please check out my games on my itch.io page!

Post Reply

Who is online

Users browsing this forum: DewyNebula, Majestic-12 [Bot]