Page 1 of 1
Is there still a way to hide the script/text files?
Posted: Fri Apr 12, 2019 11:18 pm
by nanashine
I did that at options:
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/**.mp3', 'archive')
I worked fine for me. But when I sent the game to my friend to test it, it didn't work. It said it couldn't find label start.
So I did only:
Code: Select all
build.classify('game/**.png', 'archive')
build.classify('game/**.jpg', 'archive')
build.classify('game/**.mp3', 'archive')
I wanted to hide my script and text files ("rpyc", "rpy"). I didn't want people to have access to that.
Is it still possible?
Thanks.
Re: Is there still a way to hide the script/text files?
Posted: Mon May 06, 2019 3:17 pm
by nature1996
Does the game work before you build the archive? I never encountered a problem with putting everything in the archive, but then again I never tried with a full game. Maybe try to force recompile (I do think it does that automatically before creating a build, but...) to see if the problem appear/persist. I also think the *.rpy file don't need to be in the release version, and the .rpyc file are generally pretty much unreadable.
If nothing, it might be due to a compatibility problem with python, though the traceback or a screen shot of the error could help.
Re: Is there still a way to hide the script/text files?
Posted: Mon May 06, 2019 7:52 pm
by nanashine
nature1996 wrote: ↑Mon May 06, 2019 3:17 pm
Does the game work before you build the archive? I never encountered a problem with putting everything in the archive, but then again I never tried with a full game. Maybe try to force recompile (I do think it does that automatically before creating a build, but...) to see if the problem appear/persist. I also think the *.rpy file don't need to be in the release version, and the .rpyc file are generally pretty much unreadable.
If nothing, it might be due to a compatibility problem with python, though the traceback or a screen shot of the error could help.
On my computer it was working, but on my friends computer It wasn't. She sent me the picture of the error message, and if I'm not mistaken, it said it could find the ".rpyc" or something.
I'll try to hide only the .rpy file and let the .rpyc there. Then I'll see if it works.
Thank you so much

Re: Is there still a way to hide the script/text files?
Posted: Tue May 07, 2019 10:55 am
by Donmai
nanashine wrote: ↑Fri Apr 12, 2019 11:18 pm
So I did only:
Code: Select all
build.classify('game/**.png', 'archive')
build.classify('game/**.jpg', 'archive')
build.classify('game/**.mp3', 'archive')
I wanted to hide my script and text files ("rpyc", "rpy"). I didn't want people to have access to that.
You're not telling Ren'Py to "hide" your scripts. You're telling Ren'Py to not include them in your distribution. A game without scripts won't run. You can safely include only the compiled scripts in your distribution, as they're not human readable (yes, they can be decompiled using unrpyc, but that's usually too much work for simple mortals

).
You can do:
Code: Select all
build.classify('game/**.rpy', None) # .rpy files won't be included
## To archive files, classify them as 'archive'.
build.classify('game/**.rpyc', 'archive') # .rpyc files will be included
Re: Is there still a way to hide the script/text files?
Posted: Tue May 07, 2019 11:06 am
by nature1996
Donmai wrote: ↑Tue May 07, 2019 10:55 am
You're not telling Ren'Py to "hide" your scripts. You're telling Ren'Py to not include them in your distribution.
nanashine wrote: ↑Fri Apr 12, 2019 11:18 pm
I did that at options:
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/**.mp3', 'archive')
I worked fine for me. But when I sent the game to my friend to test it, it didn't work. It said it couldn't find label start.
Actually she did (mostly) just that at first... I would kind of like a copy of that distribution for myself, but I would guess it is a python error on the friend computer that is the cause, rather than a ren'py one, maybe?