FS#41371 - [dwarffortress] Show user message to upgrade ~/.dwarffortress after upgrade

Attached to Project: Community Packages
Opened by Noel Kuntze (thermi) - Monday, 28 July 2014, 20:58 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 12 August 2014, 00:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading to 0.40.05-1 today, I couldn't start dwarffortress, as it complained about an invalid/corrupt index file in data/.
I fixed that by copying my saves to a safe location and then removing the whole ~/.dwarffortress directory.
I could now successfully start dwarffortress.
After quitting dwarffortress, I restored the saves.
I think this procedure should be shown to the user upon upgrading from an old dwarffortress package version to a newer one,
as it will not work without puring ~/.dwarffortress.


Steps to reproduce:
1. install dwarffortress
2. start and quit dwarffortress
3. wait for a package upgrade
4. Install the package upgrade
5. Try to play dwarffortress
6. Get an error message.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 12 August 2014, 00:53 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 29 July 2014, 23:58 GMT
Well this is obviously not the right solution. It would be a better solution if the user didn't have to do anything to begin with. I will figure something out.
Comment by Noel Kuntze (thermi) - Sunday, 03 August 2014, 10:39 GMT
You could copy the saves to a temporary directory and then delete the tree and restore it by doing what Dwarf Fortress does, if ~/.dwarffortress doesn't exist. Then restore the saves.
That, however, will delete any customization by the user.

Loading...