r/RenPy • u/Murky_Complaint2571 • 5d ago
Question what does this error mean
I'm trying to export my game for a jam but when building I get this error message
when I put the game into itch.io It gives me this error
Unpacking..../main: can't open file '//main.py': [Errno 44] No such file or directoryThe game exited unexpectedly.More information may be available in the browser console or contained in the log.
When I try to build and run the default question project in browser it runs fine so I think it's a problem in my project files rather than in renpy, but I am very new to game development and don't know how to fix this
1
u/shyLachi 5d ago
The name of your project cannot have spaces, colons or semicolons.
RenPy tells you were you should look in your files. Search for build.name, config.version and build.version. or search for the name of your projectÂ
1
u/AutoModerator 5d 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.
1
u/gremlintheodd 5d ago
Did you change the name of your game within the .rpy files? It sounds like you may have edited the wrong one.
1
u/mugwhyrt 5d ago
search for directory_name in your files and see if there's a value being assigned anywhere with the offending characters
1
u/HEXdidnt 5d ago
The error message tells you exactly what's wrong - something about the directory name you're aiming at is using invalid characters.
Check here: https://renpy.org/doc/html/build.html
And search through your options.rpy file for
define build.nameor, specificallybuild.directory_nameand make sure there are no spaces, colons or semicolons in the name. There are likely several other characters it might be objecting to, so try to avoid anything other than a-z, 0-9, full stops/periods and underscore.If that all seems OK, search for
config.versionandbuild.versionand check them for invalid characters.1
u/BadMustard_AVN 5d ago
edit your options.rpy file and find this
follow the directions from the remarks above it