How to hide files when you build distributiong (Solved.)
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
How to hide files when you build distributiong (Solved.)
When I click build distrubutions to make a zip file of the game, there will be a "game" folder in the result. And that folder contains all the game files, I was wondering if anyone know how to hide them, because I've seen some of the gamemakers do it... >_<
Thanks so much!
Thanks so much!
Last edited by Nyu on Fri Feb 22, 2013 2:22 am, edited 1 time in total.
Re: Does anyone know how to hide files when you build distri
On the Ren'Py launcher, there should be an option to "Archive Files".
Click it and choose/type what files you wanna "hide".
Click it and choose/type what files you wanna "hide".
Re: Does anyone know how to hide files when you build distri
I tried that but then when i tried to play the game myself it says that all of the files i archived are unloadable.
The true measure of a man is what he does with his power.
Re: Does anyone know how to hide files when you build distri
Could it be that the case (capital or lower-case) of the filenames varies between the files on disk and the filenames mentioned in your scripts?shahab96 wrote:I tried that but then when i tried to play the game myself it says that all of the files i archived are unloadable.
I seem to recall that Ren'Py on Windows will happily load in "Image.JPG" from the disk when asked for "image.jpg", but if you run it with the archived files - or just on the Mac or on Linux, archives or no - it'll complain it can't find "image.jpg" when "Image.JPG" exists...
Server error: user 'Jake' not found
- Bolt
- Newbie
- Posts: 16
- Joined: Fri Jun 11, 2010 6:50 pm
- Projects: Burnt Memories
- Location: Somewhere in Argentina
- Contact:
Re: Does anyone know how to hide files when you build distri
hidden files, also know as .rpa archives.
I have problem with these also, until I realised how to work it around XD
1: You select Archive files, then in include patterns u select the type of files u want to hide
(I use *.png *.gif *.ogg *.mp3 .*wav .*jpg)
"*" means all the files with that ending. If u want to say a determinated file use for example logo.png
2: Press Archive
Well u files are hidden
3: A Folder called "archived" will be created in the forlder with your game. Dont mind it, its just for backup if u delete your .rpa file
alse there you should put all the things u want to hide.
4: To call an image, just use the folders and subfolders inside archived
For example inside archived you have images folder, and music folder. Inside images: logo.png and inside music: bgm.mp3
When u declare the images do as this:
image logo = "images/logo.png"
and to play music like this:
$renpy.music.play("music/bgm.mp3", channel="music", loop=True)
And remember that linux and mac are case sensitive, so call your files with the real name, not capitalized (even though works in windows)
I have problem with these also, until I realised how to work it around XD
1: You select Archive files, then in include patterns u select the type of files u want to hide
(I use *.png *.gif *.ogg *.mp3 .*wav .*jpg)
"*" means all the files with that ending. If u want to say a determinated file use for example logo.png
2: Press Archive
Well u files are hidden
3: A Folder called "archived" will be created in the forlder with your game. Dont mind it, its just for backup if u delete your .rpa file
alse there you should put all the things u want to hide.
4: To call an image, just use the folders and subfolders inside archived
For example inside archived you have images folder, and music folder. Inside images: logo.png and inside music: bgm.mp3
When u declare the images do as this:
image logo = "images/logo.png"
and to play music like this:
$renpy.music.play("music/bgm.mp3", channel="music", loop=True)
And remember that linux and mac are case sensitive, so call your files with the real name, not capitalized (even though works in windows)
Project Burnt memories (name to be confirmed
) --> WIP
- Spiky Caterpillar
- Veteran
- Posts: 253
- Joined: Fri Nov 14, 2008 7:59 pm
- Completed: Lots.
- Projects: Black Closet
- Organization: Slipshod
- Location: Behind you.
- Contact:
Re: Does anyone know how to hide files when you build distri
Archiving files hides them from casual inspection, though anyone reasonably well-versed in Ren'Py's internals can extract them with a few minutes' work. You can also add '.rpy' to the 'Ignore extensions' field when building distributions if you don't want your source directly exposed - Ren'Py doesn't need the .rpy files, only the .rpyc files. (And if you've got any other files in the game directory that you don't need in the distributions - say, .xcf versions of your character sprites, they can also go in the ignore extensions list.)
Nom nom nom nom nom LEAVES.
Re: Does anyone know how to hide files when you build distri
Thanks so muchh everyone~ ^ ^ My game will be out soon thanks to the help of you guys!
Who is online
Users browsing this forum: No registered users

