How to protect assests[solved]

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
kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

How to protect assests[solved]

#1 Post by kahmehkahzeh »

So I understand it doesnt really protect it it, but what I want to do is have as few files as possible when distributed, and I am unsure where or how to use the build commands.

could you give me a slight example using basic folders? and where to put it?
Last edited by kahmehkahzeh on Thu Apr 27, 2017 3:02 am, edited 1 time in total.

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

Re: How to protect assests

#2 Post by Imperf3kt »

Well...
What I do is this:
Audio goes in a folder called "audio"
I might split that up to include sfx, music and voice.

Images go in images. I don't split this up.

GUI elements go in GUI. I sort this by folders depending on what part of the GUI it is.

As to building, if you want the files archived (bundled together so others cannot freely view them) just select the archive option during build. There's nothing special you really need to do unless you're adding features Ren'Py needs additional dependencies for which need to be packaged with it.
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

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: How to protect assests

#3 Post by kahmehkahzeh »

I could not find the archive options anywhere

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

Re: How to protect assests

#4 Post by Imperf3kt »

IIRC, The bottom of options.rpy
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

kahmehkahzeh
Regular
Posts: 62
Joined: Thu Apr 13, 2017 6:47 am
Contact:

Re: How to protect assests

#5 Post by kahmehkahzeh »

Found it thank you I used game/*/*.* to grab all files in each
worked very well

willanik
Regular
Posts: 35
Joined: Fri Mar 24, 2017 7:44 pm
Contact:

Re: How to protect assests[solved]

#6 Post by willanik »

Hi guys,

I also want to be able to build a version that does not allow recipients to access my images. I tried the suggestion above…in the bottom of options.rpy (lines 182 and 183 for me) I found

# build.classify('game/**.png', 'archive')
# build.classify('game/**.jpg', 'archive')

And I changed it to:

# build.classify('game/*/*.*', 'archive')
# build.classify('game/*/*.*', 'archive')

But when I did a build I found that this change had no effect on hiding my images, which were still freely accessible in the build version.

Very grateful for some help with this.

Thanks,
W

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: How to protect assests[solved]

#7 Post by Divona »

willanik wrote:Hi guys,

I also want to be able to build a version that does not allow recipients to access my images. I tried the suggestion above…in the bottom of options.rpy (lines 182 and 183 for me) I found

# build.classify('game/**.png', 'archive')
# build.classify('game/**.jpg', 'archive')

And I changed it to:

# build.classify('game/*/*.*', 'archive')
# build.classify('game/*/*.*', 'archive')

But when I did a build I found that this change had no effect on hiding my images, which were still freely accessible in the build version.

Very grateful for some help with this.

Thanks,
W
Remove the comment tag (#) from the front of the lines.

Code: Select all

build.classify('game/**.png', 'archive')
build.classify('game/**.jpg', 'archive')
Completed:
Image

willanik
Regular
Posts: 35
Joined: Fri Mar 24, 2017 7:44 pm
Contact:

Re: How to protect assests[solved]

#8 Post by willanik »

Thanks Divona, real simple answer and it worked perfectly!

W

Post Reply

Who is online

Users browsing this forum: No registered users