How to hide files when you build distributiong (Solved.)

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
Nyu
Regular
Posts: 49
Joined: Mon May 31, 2010 8:01 am
Contact:

How to hide files when you build distributiong (Solved.)

#1 Post by Nyu » Sun Jun 13, 2010 3:51 am

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!
Last edited by Nyu on Fri Feb 22, 2013 2:22 am, edited 1 time in total.

Zumi
Regular
Posts: 89
Joined: Fri Sep 11, 2009 9:28 pm
Contact:

Re: Does anyone know how to hide files when you build distri

#2 Post by Zumi » Sun Jun 13, 2010 4:21 am

On the Ren'Py launcher, there should be an option to "Archive Files".
Click it and choose/type what files you wanna "hide".

User avatar
shahab96
Veteran
Posts: 228
Joined: Mon May 24, 2010 5:40 am
Location: Lahore, Pakistan
Contact:

Re: Does anyone know how to hide files when you build distri

#3 Post by shahab96 » Sun Jun 13, 2010 11:44 am

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.

User avatar
Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Does anyone know how to hide files when you build distri

#4 Post by Jake » Sun Jun 13, 2010 12:53 pm

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.
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?

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

User avatar
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

#5 Post by Bolt » Sun Jun 13, 2010 2:28 pm

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)
Project Burnt memories (name to be confirmed :P) --> WIP

User avatar
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

#6 Post by Spiky Caterpillar » Sun Jun 13, 2010 2:32 pm

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.

Nyu
Regular
Posts: 49
Joined: Mon May 31, 2010 8:01 am
Contact:

Re: Does anyone know how to hide files when you build distri

#7 Post by Nyu » Mon Jun 14, 2010 7:07 am

Thanks so muchh everyone~ ^ ^ My game will be out soon thanks to the help of you guys!

Post Reply

Who is online

Users browsing this forum: No registered users