How to protect assests[solved]
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.
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.
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
How to protect assests[solved]
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?
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.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to protect assests
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.
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
Re: How to protect assests
I could not find the archive options anywhere
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to protect assests
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
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 62
- Joined: Thu Apr 13, 2017 6:47 am
- Contact:
Re: How to protect assests
Found it thank you I used game/*/*.* to grab all files in each
worked very well
worked very well
Re: How to protect assests[solved]
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
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
- 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]
Remove the comment tag (#) from the front of the lines.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
Code: Select all
build.classify('game/**.png', 'archive')
build.classify('game/**.jpg', 'archive')
Re: How to protect assests[solved]
Thanks Divona, real simple answer and it worked perfectly!
W
W
Who is online
Users browsing this forum: Google [Bot]