[Solved] To maximize compatibility, can I use _ or - in folder or filenames?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
henvu50
Veteran
Posts: 337
Joined: Wed Aug 22, 2018 1:22 am
Contact:

[Solved] To maximize compatibility, can I use _ or - in folder or filenames?

#1 Post by henvu50 »

I want my Ren'py project to be compatible with almost everything imaginable: Mobile phone, Desktop PC, linux, mac, etc.

Is there a list or guide that tells you do's and don'ts?

For example, can I use folder and filenames like this?

folder_img01
folder_img02
folder-img03
folder-img04
folder hello weird folder with spaces in it constantly and super long
Last edited by henvu50 on Sat Jun 12, 2021 10:49 pm, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: To maximize compatibilty, can I use _ or - in folder or filenames?

#2 Post by Imperf3kt »

You can name your folders whatever you want as long as you use ascii characters
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: To maximize compatibilty, can I use _ or - in folder or filenames?

#3 Post by zmook »

Any of these characters in filenames will cause you pain sooner or later:

Code: Select all

/ * " | \ [ ] : ; , < > + = 
 (and maybe) ! ? @
Underscore `_` and hyphen `-` should both be fine.

the completist documentation is here, for if you want your game to run on Amiga or Commodore 64:

https://en.wikipedia.org/wiki/Filename# ... imitations
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: To maximize compatibilty, can I use _ or - in folder or filenames?

#4 Post by PyTom »

The only restriction is that filenames beginning with _ are reserved for Ren'Py. (Putting _ in the middle is fine.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot]