Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ren'Py GuiInspect

Inspect any Ren'Py Displayable and easily get to where they are defined in the source code · By brunoais

Hi, I get an error on game opening!

A topic by Tomuwa Entertainment created 55 days ago Views: 49 Replies: 1
Viewing posts 1 to 2

This looks great, but I can't use it on Ren'py 8.2.3. I get this error:

I'm sorry, but an uncaught exception occurred.  While running game code:   File "renpy/common/00start.rpy", line 211, in script call     call _gl_test   File "renpy/common/00gltest.rpy", line 388, in script     $ __gl_test()   File "renpy/common/00start.rpy", line 211, in script call     call _gl_test   File "renpy/common/00gltest.rpy", line 388, in script     $ __gl_test()   File "renpy/common/00gltest.rpy", line 388, in <module>     $ __gl_test()   File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test     _gl_performance_test()   File "renpy/common/00gltest.rpy", line 340, in _gl_performance_test     ui.interact(suppress_underlay=True, suppress_overlay=True) Exception: Unknown layer 'inspect'.  -- Full Traceback ------------------------------------------------------------  Full traceback:   File "/Applications/renpy-8.0.3-sdk/renpy/bootstrap.py", line 359, in bootstrap     renpy.main.main()   File "/Applications/renpy-8.0.3-sdk/renpy/main.py", line 637, in main     run(restart)   File "/Applications/renpy-8.0.3-sdk/renpy/main.py", line 145, in run     renpy.execution.run_context(True)   File "/Applications/renpy-8.0.3-sdk/renpy/execution.py", line 955, in run_context     context.run()   File "renpy/common/00start.rpy", line 211, in script call     call _gl_test   File "renpy/common/00gltest.rpy", line 388, in script     $ __gl_test()   File "lib/python3.9/future/utils/__init__.py", line 444, in raise_   File "renpy/common/00start.rpy", line 211, in script call     call _gl_test   File "renpy/common/00gltest.rpy", line 388, in script     $ __gl_test()   File "/Applications/renpy-8.0.3-sdk/renpy/ast.py", line 823, in execute     renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)   File "/Applications/renpy-8.0.3-sdk/renpy/python.py", line 1178, in py_exec_bytecode     exec(bytecode, globals, locals)   File "renpy/common/00gltest.rpy", line 388, in <module>     $ __gl_test()   File "renpy/common/00gltest.rpy", line 317, in _m1_00gltest__gl_test     _gl_performance_test()   File "renpy/common/00gltest.rpy", line 340, in _gl_performance_test     ui.interact(suppress_underlay=True, suppress_overlay=True)   File "/Applications/renpy-8.0.3-sdk/renpy/ui.py", line 301, in interact     rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)   File "/Applications/renpy-8.0.3-sdk/renpy/display/core.py", line 2166, in interact     repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore   File "/Applications/renpy-8.0.3-sdk/renpy/display/core.py", line 2371, in interact_core     renpy.display.screen.show_overlay_screens(suppress_overlay)   File "/Applications/renpy-8.0.3-sdk/renpy/display/screen.py", line 1626, in show_overlay_screens     if get_screen(i) is None:   File "/Applications/renpy-8.0.3-sdk/renpy/display/screen.py", line 1148, in get_screen     sd = sl.get_displayable_by_tag(layer, tag)   File "/Applications/renpy-8.0.3-sdk/renpy/display/scenelists.py", line 887, in get_displayable_by_tag     raise Exception("Unknown layer %r." % layer) Exception: Unknown layer 'inspect'.  macOS-15.5-arm64-arm-64bit arm64 Ren'Py 8.2.3.24061702 Samuda Interval Alpha-0.0.9 Sat Aug  2 20:59:40 2025</module></module>
Developer (1 edit)

I can't reproduce that, so I need more information which may help me knowing what's wrong.

What are you doing when you place the rpe file? Are you only reloading? Are you restarting renpy? Does this happen when you remove the rpe and only reload renpy without restarting renpy?

Do you have any code that tries to do something with layers which runs before init -5?
Do you have a non-updated version of ActionEditor3 (it had a bug which caused issues).

If you can send me a simplified version of the VN which also fails, that works too (you can replace all images with the same image as placeholder, if you prefer)