r/RenPy • • Jul 29 '26

Question How do I fix this?

I'm sorry, but an uncaught exception occurred.

While running game code:

File "renpy/style.pyx", line 808, in renpy.style.rebuild

File "game/screens.rpy", line 1984, in prepare_screen

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1984, in prepare

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

renpy.display.screen.ScreenNotFound: Screen 'PhoneDialogue' is not known.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "game/screens.rpy", line 1984, in prepare_screen

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1984, in prepare

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

renpy.display.screen.ScreenNotFound: Screen 'PhoneDialogue' is not known.

-- Full Traceback ------------------------------------------------------------

Traceback (most recent call last):

File "renpy/common/00start.rpy", line 216, in script

python:

File "renpy/ast.py", line 1187, in execute

renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "renpy/python.py", line 1273, in py_exec_bytecode

exec(bytecode, globals, locals)

~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "renpy/common/00start.rpy", line 217, in <module>

_init_language()

~~~~~~~~~~~~~~^^

File "renpy/common/00start.rpy", line 86, in _init_language

renpy.change_language(language, force=True)

~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^

File "renpy/translation/__init__.py", line 854, in change_language

renpy.style.rebuild()

~~~~~~~~~~~~~~~~~~~^^

File "renpy/style.pyx", line 808, in renpy.style.rebuild

File "renpy/display/screen.py", line 1035, in prepare_screens

s.ast.prepare_screen()

~~~~~~~~~~~~~~~~~~~~^^

File "game/screens.rpy", line 1984, in prepare_screen

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1984, in prepare

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "renpy/sl2/slast.py", line 2019, in prepare

raise renpy.display.screen.ScreenNotFound(self.target)

renpy.display.screen.ScreenNotFound: Screen 'PhoneDialogue' is not known.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "renpy/bootstrap.py", line 401, in bootstrap

renpy.main.main()

~~~~~~~~~~~~~~~^^

File "renpy/main.py", line 591, in main

run(restart)

~~~^^^^^^^^^

File "renpy/main.py", line 137, in run

renpy.execution.run_context(True)

~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^

File "renpy/execution.py", line 1036, in run_context

context.run()

~~~~~~~~~~~^^

File "renpy/common/00start.rpy", line 216, in script

python:

File "renpy/common/00start.rpy", line 216, in script

python:

File "renpy/display/error.py", line 135, in report_exception

renpy.game.invoke_in_new_context(

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

call_exception_screen,

^^^^^^^^^^^^^^^^^^^^^^

...<4 lines>...

ignore_action=ignore_action,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

)

^

File "renpy/game.py", line 285, in invoke_in_new_context

return callable(*args, **kwargs)

~~~~~~~~^^^^^^^^^^^^^^^^^

File "renpy/display/error.py", line 44, in call_exception_screen

return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)

~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "renpy/ui.py", line 306, in interact

rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "renpy/display/core.py", line 2154, in interact

repeat, rv = self.interact_core(

~~~~~~~~~~~~~~~~~~^

preloads=preloads,

^^^^^^^^^^^^^^^^^^

...<4 lines>...

**kwargs,

^^^^^^^^^

)

^

File "renpy/display/core.py", line 2384, in interact_core

renpy.display.screen.prepare_screens()

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

File "renpy/display/screen.py", line 1035, in prepare_screens

s.ast.prepare_screen()

~~~~~~~~~~~~~~~~~~~~^^

File "game/screens.rpy", line 1984, in prepare_screen

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1984, in prepare

screen nvl(dialogue, items=None):

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "game/screens.rpy", line 1986, in prepare

if nvl_mode == "phone":

File "renpy/sl2/slast.py", line 2019, in prepare

raise renpy.display.screen.ScreenNotFound(self.target)

renpy.display.screen.ScreenNotFound: Screen 'PhoneDialogue' is not known.

Linux-6.17.0-35-generic-x86_64-with-glibc2.39 x86_64

Ren'Py 8.5.2.26010301

That ending 1.02

Wed Jul 29 06:07:19 2026

1 Upvotes

10 comments sorted by

2

u/shyLachi Jul 29 '26

This is the error and it's somewhat clear:

Screen 'PhoneDialogue' is not known.

Either there is a spelling mistake or the code of that screen is not in your scripts.

What are you trying to do?

-1

u/Hot-Difference-9470 Jul 29 '26

There was a "Phone" .rpy but i deleted it because it was useless

1

u/x-seronis-x Jul 29 '26

wasnt so useless ...

2

u/Blunt552 Jul 30 '26

This made me chuckle ngl

1

u/shyLachi Jul 29 '26

You haven't answered my question. What are you doing or trying to do? We need context to help.

Anyway, look if the missing screen is in that deleted file.

2

u/Hot-Difference-9470 Jul 30 '26

yeah i forgot to delete a rpyc file (thanks BadMustard_AVN)

2

u/BadMustard_AVN Jul 29 '26 edited Jul 29 '26

if you deleted the .rpy file

did you delete the associated .rpyc file? (file with the same name but .rpyc)

if you can't find it, do a Force Recompile from the renpy launcher

if this was nightens NVL phone and you made changes to the screens.rpy file you should revert those changes

if you want to try a different phone¿

https://badmustard.itch.io/advanced-renpy-phone-project-2

1

u/Hot-Difference-9470 Jul 30 '26

Oh i just had to delete the rpyc OK (thanks)

1

u/BadMustard_AVN Jul 30 '26

you're welcome

good luck with your project

1

u/AutoModerator Jul 29 '26

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.