Page 1 of 1

No module named 'renpy.display.scenelists'

Posted: Fri Apr 19, 2024 9:58 am
by mold.FF
Hello,

When attempting to launch the project on Mac through Steam, an error occurs. It doesn't happen immediately, but after the splash screen. On Windows, the project launches and functions normally.

I want to clarify that instead of the main menu, I'm using the following construction:

Code: Select all

label main_menu:
    if persistent.story_progress is not None:
        if persistent.unlog_label is None:
            $ FileLoad (1, confirm = False, page = "auto", newest = True)()
        else:
            $ Start("re_log")()
    $ Start()()
label re_log:
    $ act2_loop_visited = persistent.unlog_visited
    $ lbl = persistent.unlog_label
    $ persistent.unlog_visited = None
    $ persistent.unlog_label = None
    
    jump expression lbl
The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.

How can I fix this?
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 7, in <module>
File "renpy/common/00action_file.rpy", line 479, in __call__
renpy.load(fn)
ModuleNotFoundError: No module named 'renpy.display.scenelists'

— Full Traceback —----------------------------------------------------------

Full traceback:
File "script.rpyc", line 7, in script
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/ast.py", line 1138, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/python.py", line 1122, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/script.rpy", line 7, in <module>
File "renpy/common/00action_file.rpy", line 479, in __call__
renpy.load(fn)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/loadsave.py", line 815, in load
roots, log = loads(log_data)
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 100, in loads
return load(io.BytesIO(s))
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 97, in load
return up.load()
File "/Users/tim/Library/Application Support/Steam/steamapps/common/Altushka dlya skufa/renpy/compat/pickle.py", line 93, in find_class
return super().find_class(module, name)
ModuleNotFoundError: No module named 'renpy.display.scenelists'

macOS-14.3-arm64-arm-64bit arm64
Ren'Py 8.1.3.23091805
Altushka dlya skufa 0.9.4
Fri Apr 19 17:11:31 2024

Re: No module named 'renpy.display.scenelists'

Posted: Sat Apr 20, 2024 12:32 am
by PyTom
It looks like you're loading a save made in a newer version of Ren'Py into an older version of Ren'Py. That's not supported.

Re: No module named 'renpy.display.scenelists'

Posted: Sat Apr 20, 2024 1:57 am
by Imperf3kt
mold.FF wrote: Fri Apr 19, 2024 9:58 am The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.
Would a persistent variable and the before_main_menu label work for you?

Re: No module named 'renpy.display.scenelists'

Posted: Sat Apr 20, 2024 6:11 am
by mold.FF
Update: turns out the issue occurs only on one single machine, no issues on others.
PyTom wrote: Sat Apr 20, 2024 12:32 am It looks like you're loading a save made in a newer version of Ren'Py into an older version of Ren'Py. That's not supported.
I don't see how this scenario is possible - game is a month old, and user received a built distributive, with no saves beforehand.

So I consider this issue as "just bad luck dude, something wrong with your mac".
Imperf3kt wrote: Sat Apr 20, 2024 1:57 am
mold.FF wrote: Fri Apr 19, 2024 9:58 am The idea is that the player plays without saves, and in some cases, they have the option to "exit the game" - in this case, upon the next launch, the game will start from a special label.
Would a persistent variable and the before_main_menu label work for you?
Thanks for the advice, I would try to use before_main_menu if issue wasn't solved.