[SOLVED] Obfuscating entire files as .rpa?

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
User avatar
bluestorm369
Newbie
Posts: 3
Joined: Mon Oct 14, 2013 2:00 am
Projects: HetaNEXT Academy
Organization: Storm Studio
Location: Samarinda, Indonesia
Contact:

[SOLVED] Obfuscating entire files as .rpa?

#1 Post by bluestorm369 »

Hello, I'm still a newbie at Ren'py and I'm ready to release my first beta version :D
I want to know how do you obfuscate the game files and folders into .rpyc or .rpa files?

Yes, I read the tutorial at http://www.renpy.org/doc/html/build.html but I still don't understand... I'm kinda stupid with these things //otl
Sorry.

I want to achieve:
1. Hidden .rpy files (sript.rpyc, screens.rpyc, and options.rpyc)
2. Hidden sprites and gui folders (namely making them into sprites.rpa and gui.rpa or such)

Here's what I wrote?

Code: Select all

    build.classify('game/script.rpy', None)
    build.classify('game/screens.rpy', None)
    build.classify('game/options.rpy', None)
    build.classify('game/README.txt', "all")

    build.classify('game/sprites', 'archive')
    build.classify('game/gui', 'archive')
Help please?
Last edited by bluestorm369 on Sun Oct 27, 2013 12:08 am, edited 1 time in total.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Obfuscating entire files as .rpa?

#2 Post by SundownKid »

What you should use is:

Code: Select all

    build.classify('game/**.png', 'archive')
    build.classify('game/**.jpg', 'archive')
    build.classify('game/**.rpy', 'archive')
    build.classify('game/**.rpyc', 'archive')
    build.classify('game/**.ogg', 'archive')
    build.classify('game/**.ogv', 'archive')
That puts any image, sound, video or script files into the archive. Change the extension if you are using a different type.

User avatar
xavimat
Eileen-Class Veteran
Posts: 1460
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love, unknown
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Contact:

Re: [SOLVED] Obfuscating entire files as .rpa?

#3 Post by xavimat »

You can also dismiss the rpy files, because the rpyc are enough:

Code: Select all

build.classify('game/**.rpy', None)
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]