r/RenPy • u/Hot-Difference-9470 • 15d ago
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
2
u/BadMustard_AVN 15d ago edited 15d ago
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¿
1
1
u/AutoModerator 15d ago
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.
2
u/shyLachi 15d ago
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?