Page 1 of 1

Lock my project

Posted: Fri Mar 03, 2017 8:40 am
by Kamos
So I just finish my project and build it. But when i open it in renpy it is still possible to edit it...
How can I lock my project (script) to be uneditable to 3rd side?

Re: Lock my project

Posted: Fri Mar 03, 2017 9:32 am
by Kamos
hmm sorry for bothering i fuger it.... adding this will fix it:

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

Re: Lock my project

Posted: Fri Mar 03, 2017 10:37 am
by Ocelot
Notice, that those are simple archives, and are easy to unpack (I created a tool for it in half an hour, or so... Before I found already existing tools).

Generally, it is impossible to completely protect an offline application against editing or extracting.

Re: Lock my project

Posted: Fri Mar 03, 2017 10:50 am
by xavimat
I suggest:

Code: Select all

build.classify('game/**.rpy', None)
build.classify('game/**.rpyc', 'archive')
rpy files are not needed in the build. It's still possible to convert rpyc files to rpy, and then edit them, but a little harder (not really easy for the average player).

Re: Lock my project

Posted: Sat Mar 04, 2017 2:45 am
by Imperf3kt
What about .rpa files, such as with Demon Master Chris
I don't have the slightest clue how to read those. Trying results in the following:
http://puu.sh/utujq/3ff264f6fc.png
http://puu.sh/utukH/3b93dd7061.png

Links valid for 30 days only (may be up to three months depending on traffic)

Re: Lock my project

Posted: Sat Mar 04, 2017 7:20 am
by Ozitiho
.rpa is an archive format. Use extracting tools to read. I used the following tool to extract all of Fault Milestone.
https://github.com/Shizmob/rpatool

Renpy has tools to obscure the source files. However, you'll find that people will find ways to access the source files to all games if they want to.