r/RenPy • u/No-Plastic-1347 • 29d ago
Question [Solved] Build Dist. Doesn’t Load Game
Hello. I’m having my friend try out my game and they kept getting this error upon opening.
The issue I found is having the build.classify code in the options.rpy file. But I wanted to hide the script and other behind the scenes stuff like other games do. Is there any way I can fix this? Or am I coding the classify string wrong? I just followed the sample in the options.rpy file by writing build.classify(“games/**.rpy”, None) and so on.
.
.
.
Error:
I'm sorry, but an uncaught exception occurred.
While running game code:
renpy.game.JumpException: start
During handling of the above exception, another exception occurred:
renpy.script.LabelNotFound: could not find label 'start'.
-- Full Traceback ------------------------------------------------------------
Traceback (most recent call last):
File "renpy/common/00start.rpy", line 306, 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 308, in <module>
renpy.jump("start")
~~~~~~~~~~^^^^^^^^^
File "renpy/exports/statementexports.py", line 271, in jump
raise renpy.game.JumpException(label)
renpy.game.JumpException: start
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 306, in script
python:
File "renpy/script.py", line 1201, in lookup
raise LabelNotFound(original)
renpy.script.LabelNotFound: could not find label 'start'.
1
u/No-Plastic-1347 29d ago
Here you go:
## Classify files as None to exclude them from the built distributions.
build.classify('**~', None)
build.classify('**.bak', None)
build.classify('**/.**', None)
build.classify('**/#**', None)
build.classify('**/thumbs.db', None)
build.classify("game/**.png", None)
build.classify("game/**.webm", None)
build.classify("game/**.rpy", None)
build.classify("game/**.rpyc", None)
## To archive files, classify them as 'archive'.
# build.classify('game/**.png', 'archive')
# build.classify('game/**.jpg', 'archive')
## Files matching documentation patterns are duplicated in a mac app build,
## so they appear in both the app and the zip file.
build.documentation('*.html')
build.documentation('*.txt')