where is config.developer and how to build an exe file?

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
User avatar
renoa-heartilly
Regular
Posts: 115
Joined: Sat Jul 17, 2010 2:37 am
Completed: مقهى الضائعون, Arabic Translations for Ren'py, Pretty Please
Projects: حور, BB project, dentist drama
Organization: stanza studio (creative circle)
Contact:

where is config.developer and how to build an exe file?

#1 Post 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?

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: where is config.developer and how to build an exe file?

#2 Post 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)

User avatar
Darim
Regular
Posts: 67
Joined: Sun Jun 21, 2015 4:17 pm
Organization: Setsuna Ken
Github: SetsunaKen
Location: Germany
Contact:

Re: where is config.developer and how to build an exe file?

#3 Post 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')

User avatar
papiersam
Veteran
Posts: 231
Joined: Fri Aug 12, 2016 2:24 pm
Completed: Gem Hunt Beta, 1/Probably, Animunch
Projects: The Panda Who Dreamed
Contact:

Re: where is config.developer and how to build an exe file?

#4 Post 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.

User avatar
renoa-heartilly
Regular
Posts: 115
Joined: Sat Jul 17, 2010 2:37 am
Completed: مقهى الضائعون, Arabic Translations for Ren'py, Pretty Please
Projects: حور, BB project, dentist drama
Organization: stanza studio (creative circle)
Contact:

Re: where is config.developer and how to build an exe file?

#5 Post 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 :shock: 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

Code: Select all

    config.developer = False 
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 :mrgreen:

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: where is config.developer and how to build an exe file?

#6 Post 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

Code: Select all

    config.developer = False 
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
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

User avatar
Darim
Regular
Posts: 67
Joined: Sun Jun 21, 2015 4:17 pm
Organization: Setsuna Ken
Github: SetsunaKen
Location: Germany
Contact:

Re: where is config.developer and how to build an exe file?

#7 Post 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

User avatar
renoa-heartilly
Regular
Posts: 115
Joined: Sat Jul 17, 2010 2:37 am
Completed: مقهى الضائعون, Arabic Translations for Ren'py, Pretty Please
Projects: حور, BB project, dentist drama
Organization: stanza studio (creative circle)
Contact:

Re: where is config.developer and how to build an exe file?

#8 Post by renoa-heartilly »

Darim wrote:I don't know if this is up to date: https://www.renpy.org/wiki/renpy/doc/cookbook/NSIS
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 :shock: 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 :shock: :lol:

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: where is config.developer and how to build an exe file?

#9 Post by PyTom »

That's right, sorry about that. Sometimes I forget about the documentation, especially the non-normative docs.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot]