Page 1 of 1
where is config.developer and how to build an exe file?
Posted: Thu Sep 29, 2016 7:04 pm
by renoa-heartilly
hello everyone!
i've finally finished my game, but when i build the distribution files i get a zip file with my project simply collected inside. meaning the folders and music files and images are all out there for anyone to see.
i assumed config.developer needs to be set to false, but with the last few updates it disappeared from options.rpy!
i typed it in manually but it still did absolutely nothing, the distribution file still collects the game files without creating a single exe file for them.
where did config.developer go? and how do i tell renpy to build the distribution files correctly?
Re: where is config.developer and how to build an exe file?
Posted: Thu Sep 29, 2016 7:38 pm
by papiersam
but when i build the distribution files i get a zip file with my project simply collected inside. meaning the folders and music files and images are all out there for anyone to see.
Inside that zip is an .exe: that's the file you click to run the program.
If you're looking to compile everything into one .exe, you have to use a
separate wizard for that.
If you just want to archive your files, you add the
build classify stuff to the options.rpy (you also have to add config.developer = False to the options.rpy, I don't think it's there by default anymore)
Re: where is config.developer and how to build an exe file?
Posted: Thu Sep 29, 2016 7:43 pm
by Darim
Setting config.developer to False will only prevent access to the developer tools.
Add this lines at the end of your options.rpy to put all the file in an archive.
This is going to obscure your files for a little bit at least.
Code: Select all
build.classify('game/**.png', 'archive')
build.classify('game/**.jpg', 'archive')
build.classify('game/**.rpy', 'archive')
build.classify('game/**.mp3', 'archive')
Re: where is config.developer and how to build an exe file?
Posted: Thu Sep 29, 2016 7:47 pm
by papiersam
Ah, I should have been clearer with what I said:
You can use an .exe compiling software to compile the distributions (after the game has been compiled to it's own exe), and have it put all the files in select folder paths, make shortcuts, and all that jazz. It was something I looked into when I made my first larger-scale game.
Re: where is config.developer and how to build an exe file?
Posted: Fri Sep 30, 2016 8:02 am
by renoa-heartilly
You can use an .exe compiling software to compile the distributions (after the game has been compiled to it's own exe),
ooooh

it used to be done using only ren'py, when was this changed? ._.
Setting config.developer to False will only prevent access to the developer tools.
Add this lines at the end of your options.rpy to put all the file in an archive.
so basically:
1- developer.config is no longer a default string, and i have to add it myself to options.rpy using
or instead of False i can use "auto" with the quotation marks, right?
2- I can archive files to hide them from being copied, but if i wanted the user to download a single .exe file without the other folders, I can't do it using ren'py and must use another piece of software to do it?
I understand now, and it doesn't seem like a big deal because the project i'm building now is very small and compact, but it seems like ren'py is moving away from being simple and accessible for the simple everyday user
thank you Darim and r_sami for your quick and generous replies

Re: where is config.developer and how to build an exe file?
Posted: Fri Sep 30, 2016 8:15 am
by xavimat
renoa-heartilly wrote:1- developer.config is no longer a default string, and i have to add it myself to options.rpy using
or instead of False i can use "auto" with the quotation marks, right?
config.developer is by default set to "auto", so you need to do nothing. It will be True when you are developing the game and False when you build a distribution. This is the reason why it's no longer in options.rpy. You can simply forget it.
Doc:
https://www.renpy.org/doc/html/config.h ... .developer
Re: where is config.developer and how to build an exe file?
Posted: Fri Sep 30, 2016 8:21 am
by Darim
renoa-heartilly wrote: I can archive files to hide them from being copied, but if i wanted the user to download a single .exe file without the other folders, I can't do it using ren'py and must use another piece of software to do it?
I don't know if this is up to date:
https://www.renpy.org/wiki/renpy/doc/cookbook/NSIS
Re: where is config.developer and how to build an exe file?
Posted: Fri Sep 30, 2016 8:50 am
by renoa-heartilly
that's a great option, but what if i wanted the exe to be an executable without an installation? does NSIS give you the option?
renoa-heartilly wrote:You can use an .exe compiling software to compile the distributions (after the game has been compiled to it's own exe),
ooooh

it used to be done using only ren'py, when was this changed? ._.
xavimat wrote:
config.developer is by default set to "auto", so you need to do nothing. It will be True when you are developing the game and False when you build a distribution. This is the reason why it's no longer in options.rpy. You can simply forget it.
Doc:
https://www.renpy.org/doc/html/config.h ... .developer
so it's hidden but it's still functional?
that's a relief!
in that case, Ren'Py should stop telling me to 'make sure config.developer is set to False' when building distributions

Re: where is config.developer and how to build an exe file?
Posted: Sat Oct 01, 2016 2:01 am
by PyTom
That's right, sorry about that. Sometimes I forget about the documentation, especially the non-normative docs.