Bay 12 Games Forum

Dwarf Fortress => DF General Discussion => Topic started by: hamlin on August 10, 2021, 02:39:36 pm

Title: Save Files using Ubuntu Package
Post by: hamlin on August 10, 2021, 02:39:36 pm
OK, I admit defeat. After several hours of scouring my system, I have located most of the data that I'm familiar with, (init, d_init, etc...) but I simply cannot locate the save data for my worlds.

Where does the Ubuntu package store that, please?
Title: Re: Save Files using Ubuntu Package
Post by: Bumber on August 10, 2021, 07:51:46 pm
Couldn't you try running a search for "region1" or whatever?
Title: Re: Save Files using Ubuntu Package
Post by: hamlin on August 10, 2021, 09:34:24 pm
Yep. I've done that. No results, even though I have two active worlds. Thanks, though.
Title: Re: Save Files using Ubuntu Package
Post by: Ziusudra on August 11, 2021, 05:29:02 pm
I would guess the same place as on Lunbuntu (http://www.bay12forums.com/smf/index.php?topic=177713.0)
Title: Re: Save Files using Ubuntu Package
Post by: Bumber on August 12, 2021, 01:00:24 am
I would guess the same place as on Lunbuntu (http://www.bay12forums.com/smf/index.php?topic=177713.0)

Thread doesn't mention where save files are stored.
Title: Re: Save Files using Ubuntu Package
Post by: Ziusudra on August 12, 2021, 02:10:32 am
Not, specifically - but they're almost certainly in the /home/user/.config/dwarf-fortress/ which is mentioned.
Title: Re: Save Files using Ubuntu Package
Post by: Bumber on August 13, 2021, 04:56:17 pm
Not, specifically - but they're almost certainly in the /home/user/.config/dwarf-fortress/ which is mentioned.

Could also be in "/usr/share/..."
Title: Re: Save Files using Ubuntu Package
Post by: Ziusudra on August 13, 2021, 06:33:08 pm
Very unlikely, that is where the files common to all users are put. User specific files - like saves - are put in each users /home/user/.config/dwarf-fortress/. That's the whole point of having two places.
Title: Re: Save Files using Ubuntu Package
Post by: Moeteru on August 14, 2021, 05:16:40 am
There are ways to list all the files which are accessed by a particular process. See the answers to this stackoverflow question (https://stackoverflow.com/questions/27428150/linux-track-all-files-accessed-by-process).
Try running
Code: [Select]
lsof -p [PID] (where [PID] is the ID of the Dwarf Fortress process) while saving or loading a fortress. There will probably be a lot of output but somewhere in there will be the save directory.

You can get the PID of DF from the System Monitor program, or with something like
Code: [Select]
ps -ef | grep dwarf
Title: Re: Save Files using Ubuntu Package
Post by: hamlin on August 15, 2021, 04:46:25 pm
There are ways to list all the files which are accessed by a particular process. See the answers to this stackoverflow question (https://stackoverflow.com/questions/27428150/linux-track-all-files-accessed-by-process).
Try running
Code: [Select]
lsof -p [PID] (where [PID] is the ID of the Dwarf Fortress process) while saving or loading a fortress. There will probably be a lot of output but somewhere in there will be the save directory.

You can get the PID of DF from the System Monitor program, or with something like
Code: [Select]
ps -ef | grep dwarf

Thank you SO much.

For the record, the files were located in ~/.local/share/dwarf-fortress/run/data/saves.