Got a ton of work done on Saturday Morning Marble Game over the past few days. Very proud.

Next I'll focus on some logic for the demo version of the game.

A global bool will do, but I also need to exclude a bunch of files from the build. Wonder if I can automate that. πŸ€”

#godotengine

I'm aware the export dialog had a field where excluded files can be specified, but it's a bit basic. Ideally I'd love to have something like this:

#ifdef DEMO_MODE
[file list to exclude from demo mode]
#else
[file list to exclude from full version]
#endif

@memoriesin8bit You can, because I have. Look at Export "resources" and "features" tabs. I use the exclude filters to leave out files only intended for full release, and a "demo"/"release" feature tag to determine certain other stuff when the game runs.
@memoriesin8bit The feature tags you can use like this:
if OS.has_feature("demo"):
@risingtail That may be what I need. I wasn't aware I could have conditionals in that field. Tho I hope I won't hit any limits there cause it may be a list of a hundred files or more.
@memoriesin8bit In that case having those files in one or a few folders may be the better choice πŸ˜„

@risingtail Yeah likely. It's just... so I am making a sandbox game where the player has access to many, many different parts to build with. I am already organizing those files into folders based on their category. And for the demo I want to leave some parts of some categories out.

Reorganizing them purely on demo/full version will make organization a lot harder for me. Hence having an "exclude list" would be a nicer choice...

@memoriesin8bit Ah, and you can't have conditionals in the export field. You have to use it in code. I use it to specify if the demo or full release datastore file should be read/parsed. So, if demo, use demo file (and have full release file excluded). If release, use full release file. Simple enough for my needs because I have everything game data related in a single file.
@risingtail I am not sure if I understand then. Because this now reads as if I CAN have a file in which I specify which files to in/exclude. That would help me greatly. But from your previous posts I understood that this isn't possible. I'm a bit slow today due to lack of sleep. I'm sorry - entirely my bad. I may need to look up some tutorials about that.
@memoriesin8bit You can't use conditional inside the export exclude field, is what I meant. Not to my knowledge at least.