mnalis / ironseed_fpc

Iron Seed is a science-fiction DOS game from 1994, which was both developed and published by Channel 7. Gameplay is real-time, featuring trading, diplomacy, and strategy. This version has been changed to make it possible to compile it with the freepascal compiler under Linux.
GNU General Public License v3.0
17 stars 0 forks source link

Unable to find usable savedir #85

Closed nukebloodaxe closed 3 years ago

nukebloodaxe commented 3 years ago

Fresh compilation in Debian and OpenSuse Tumbleweed fails to run with the error "Unable to find usable savedir"

Debian 10: image

Tumbleweed: image

Works great in Ubuntu 20.4: image

I suspect that some directories are not being generated on the first run, or an assumption is being made about locations. There is also the possibility that I played a brief test game on the Ubuntu box in the past, and that is why it is working there.

mnalis commented 3 years ago

there was a integer size bug with free disk calculation which could provoke this; can you try with latest master 22c1507720b61d379a9f27a111087dae1e1ab801 if it fixes it?

mnalis commented 3 years ago

@nukebloodaxe did you perhaps had a chance to see if this fixed the failed to find usable savedir ?

nukebloodaxe commented 3 years ago

Thank you for the reminder, I've finally had a moment after dealing with the jungle outside my house ;) So, I've applied the changes and tested it on Debian 10 and Tumbleweed my end, and it's working fine. Any chance you could set up a pull to bring the changes into the upstream repository my end?

mnalis commented 3 years ago

Sure, I wanted first to confirm that fix works - thanks for confirmation! PR sent now