Page 1 of 1
[GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat? [SOLVED]
Posted: Thu Sep 19, 2024 6:45 pm
by Nilex
Hi, returning player here.
Before (v4.7) I've set up a save path in .ini like so: "save_dir=.\Save" and lo and behold it worked as expected. Now I get back into the action and GZDoom takes upon itself to nest another clumsy folder in my organized structure. Why is that and is there a way to disable this seemingly hard-coded behavior?
I run mods on a non-system partition using BATs to pull IWADs and stuff from all kinds of places and separate configs for every one of them. It's simple but works perfectly except for that annoying folder in the title. Not liking the idea of manually creating/removing folders in every mod I played when coders change save paths on a whim.
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Fri Sep 20, 2024 1:31 am
by Gez
Saves are now sorted in folder by game played.
That said, if you use the -savedir command line parameter, then it'll be the path used, without filter subfolder.
https://github.com/ZDoom/gzdoom/blob/53 ... r.cpp#L539
You can make yourself a gzdoom.bat file that contains only
Then run this bat instead of GZDoom.
Alternatively, you may want to use a portable ini. This is done just by having your ini file named gzdoom_portable.ini and placed in the same folder as gzdoom.exe. When using a portable configuration, GZDoom uses just the install folder's Save subfolder to store saves, without further filtering, and that seems to be what you want.
https://github.com/ZDoom/gzdoom/blob/53 ... s.cpp#L366
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Fri Sep 20, 2024 5:19 am
by Blue Shadow
Gez wrote: ↑Fri Sep 20, 2024 1:31 am
When using a portable configuration, GZDoom uses just the install folder's Save subfolder to store saves, without further filtering, [...]
I always use a portable ini, but my saves are still organized by game. Why is that?
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Fri Sep 20, 2024 11:31 am
by Graf Zahl
THe portable install only changes the root dir of the save path. All the subdirectories inside will remain.
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Sat Sep 21, 2024 1:24 am
by Nilex
Thanks I modified my existing mod-specific BATs instead so they now look like:
Code: Select all
start "" ..\..\4_GZDoom\gzdoom.exe -savedir ./Save %* -iwad etc.
That done the trick.
Is it possible to make the string work in the -config defined ini? It'd look way cleaner.
save_dir=".\Save %*" doesn't work unfortunately (or without "") and I'm all out of ideas.
This seems to be the commit responsible for the change though the reasoning eludes me.
https://github.com/ZDoom/gzdoom/commit/ ... e4e2781422
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Sat Sep 21, 2024 4:01 am
by Gez
Just to be clear, the %* in the BAT file means "transmit all parameters", so if you have a gzdoom.bat file as I told you:
and then have do something like
Code: Select all
gzdoom.bat -iwad doom2.wad -file example.wad
the command that gets actually executed is:
Code: Select all
gzdoom.exe -savedir ./Save -iwad doom2.wad -file example.wad
It is not part of the -savedir parameter.
Re: [GZDoom v4.12.2] What's up with the "\doom.id.doom2.commercial" save folder bloat?
Posted: Sat Sep 21, 2024 6:00 am
by Nilex
Oh I thought %* was some kind of trickery that made the whole thing come together. Off it goes then.
That begs the question, why does this work in BAT (doesn't create commercial):
but this doesn't in config (does create commercial):
Guess BAT overrides GZDoom in a way it prevents hard-coded sub-folder creation.
Man I sure hope "screenshot_dir=" parameter doesn't get the same treatment lol.