[r1794-1891] Saves going into C:\Windows?!
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
[r1794-1891] Saves going into C:\Windows?!
Pray tell, when I open a zip file, why does it sometimes save into the godsdamn root of my Windows directory?
]save_dir
"save_dir" is ""
Running Windows Vista. When running under XP, it simply saved to where ZDoom is running (in this case, C:\Doom\Doom2).
EDIT: While ZDoom says the files are there, Explorer doesn't. I'm trying to find the save for a different bug that so occurred (the lighting issue).
]save_dir
"save_dir" is ""
Running Windows Vista. When running under XP, it simply saved to where ZDoom is running (in this case, C:\Doom\Doom2).
EDIT: While ZDoom says the files are there, Explorer doesn't. I'm trying to find the save for a different bug that so occurred (the lighting issue).
Re: [r1794-1891] Saves going into C:\Windows?!
Look in your user folder (read: user folder, eg 'C:\Documents and Settings\Owner\'). They sometimes wind up there for some absurd reason.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
I ran a search for save0.zds on my computer. Nothing from October 2009 is showing up at all.
And nothing in /Users or /Users/Project Dark Fox came up anyway.
And nothing in /Users or /Users/Project Dark Fox came up anyway.
Re: [r1794-1891] Saves going into C:\Windows?!
That's why I said Documents and settings... unless that's another thing Vista pointlessly changed.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
Documents and Settings is just called "Users" on Vista. PITA to keep typing out, so that's a change I was more than welcome to accept... 
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [r1794-1891] Saves going into C:\Windows?!
No problem here. Please note that an empty save_dir means the current working directory, not the one the EXE is in. Apparently you started ZDoom from somewhere else.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
Which is what I'm trying to understand, WHERE is the current directory when I open a ZIP in the godsdamn Desktop.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [r1794-1891] Saves going into C:\Windows?!
Only Windows knows.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
Well, I certainly didn't expect anything to be fixed (just maybe possibly addressed). But in either case, it still pisses me off. I've since changed my save_dir to where zdoom.exe is run.
Re: [r1794-1891] Saves going into C:\Windows?!
I just opened a zip on my desktop (Action Doom), and double-clicked the .wad to run... Saved the game, and the save file showed up on my Desktop. This is all in Vista. My save_dir cvar is blank.
The .zip file's contents are temporarily unzipped to a subfolder under C:\Users\username\AppData\Local\Temp. The subfolder is supposed to be deleted when you close the .zip file, though, so that won't help you find savegames if they're saved there for some reason.
The .zip file's contents are temporarily unzipped to a subfolder under C:\Users\username\AppData\Local\Temp. The subfolder is supposed to be deleted when you close the .zip file, though, so that won't help you find savegames if they're saved there for some reason.
Re: [r1794-1891] Saves going into C:\Windows?!
Clarify. Are you running a WAD directly out of its zip file? In that case, only WinZip (or whatever application you're using to view the ZIP file) knows.Project Dark Fox wrote:Pray tell, when I open a zip file...
Also you should not be doing that.
- bagheadspidey
- Posts: 1490
- Joined: Sat Oct 20, 2007 10:31 pm
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
Put something like this in a batch file, put it in the same dir as zdoom, and drag a wad or other file onto it, it will tell you what the working directory is...Project Dark Fox wrote:Which is what I'm trying to understand, WHERE is the current directory when I open a ZIP in the godsdamn Desktop.
Code: Select all
@echo off
echo Current working directory is %CD%
pause
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
Windows Explorer. I open the ZIP and double-click the WAD file from within the ZIP file. ZDoom opens it without any qualms.HotWax wrote:Clarify. Are you running a WAD directly out of its zip file? In that case, only WinZip (or whatever application you're using to view the ZIP file) knows.Project Dark Fox wrote:Pray tell, when I open a zip file...
..... Thanks. I think. If a bit late.Also you should not be doing that.
Anywho, setting a default path manually has definitely "fixed" everything (now all the saves go into one spot, just the way it should have been IMO), but a little warning would certainly be nice. Somehow. I dunno.
Thanks for trying to help, everyone.
Re: [r1794-1891] Saves going into C:\Windows?!
Project Dark Fox wrote:Windows Explorer. I open the ZIP and double-click the WAD file from within the ZIP file. ZDoom opens it without any qualms.
This is a case of the OS being "too" helpful, methinks. And it's damned-if-you-do-damned-if-you-don't as far as how they could have coded it to "fix" such "mistakes"....a little warning would certainly be nice. Somehow. I dunno.
As you can tell by my unabashed overuse of quotations, I don't think Windows or ZDoom is doing anything wrong here.
For convenience, Explorer displays the ZIP file like any other folder, without bothering you with the messy details like how it's actually only reading the contents and then extracting the files to a temporary folder on demand. Since the file you ran had ZDoom associated with it, it then ran ZDoom passing the temporary file in as an argument. And as is standard practice when running arbitrary files through the executable associated with them, it uses the current (temporary) folder as the working directory. ZDoom is coded to put saves in the working directory by default. Put all that in a nice big kettle and stir well, and you have your current conundrum.
There's a deeper problem here, though. What if the file you ran relied on other files within the ZIP? For example, if it was a batch file that ran ZDoom with two WADs and a DEH patch included in the ZIP, it wouldn't get very far. You really should just extract the contents of the ZIP and then run it from its permanent resting place on your hard drive. What you're doing is like trying to run a game directly off the CD without bothering to install it first. Chaos will naturally ensue.
- Project Shadowcat
- Posts: 9369
- Joined: Thu Jul 14, 2005 8:33 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: Blacksburg, SC USA
- Contact:
Re: [r1794-1891] Saves going into C:\Windows?!
If multiple files were in the ZIP, then I'd right-click the ZIP file and Run With... > ZDoom. With all of my IWADs in one spot and the IWAD picker dialogue always coming up, this hasn't failed (until the moment a certain order is specifically required, then I unzip and set up a shortcut).
Now, here's the funny part. When I ran before setting a default save directory, I could resume these saves from this temp location. Most puzzling, so that's probably why the searches weren't finding anything whatsoever (but ZDoom could).
Now, here's the funny part. When I ran before setting a default save directory, I could resume these saves from this temp location. Most puzzling, so that's probably why the searches weren't finding anything whatsoever (but ZDoom could).