Following Text copied/pasted from ZeroK Discord: It documents both the issue, steps to recreate the issue, and a possible Solution to correct the issue.
-------------------------------------
[12:27 AM] Vu: SAVE GAME DOES NOT SAVE A GAME
Okay, Ive been tracking this one down for days. ISSUE: Saving a game does not save the game file extension (ssf), only the Header file (lua).
Recreate Issue: Start a game, play for a bit, save the game. Both the ssf and lua will be written correctly. Game will save properly.
Exit ZeroK, navigate go to \Users\Save Games* and rename the folder on disk (dont delete it for the test). Restart ZeroK. Start a second game. Play for a bit. Save the 2nd Game. Play some more. Save again. Now exit ZeroK again.
Navigate to the ZeroK Saves folder. Header (lua) will exist. Saved Game (ssf) will not exist. Restart ZeroK. Start a 3rd game, play a bit. Save 3rd game using the exact same savename as 2nd save. Prompts to replace. Yes to replace. Examine for ssf and lua in \Saves again. Only headers are saved. Exit ZeroK.
Rename \Users\Saved Games back to proper folder name. Restart ZeroK. Games will again be saved properly, but any previous saves that did not have the ssf files will not be present for LOAD of a saved game.
SOLUTION: The Game SAVE/LOAD functions rely on the \Users\Saved Games\ folder to exist on disk. This is not a folder that is always present on a box. OS's may or may not create this folder under User profiles folders.
ZeroK logic should not rely on this folder to be present, since it may not be. SETTINGS should be modified to include a PATH for games to be saved into, defaulting to \Users\Saved Games, if present, while also allowing prompt for users to navigate to a Path of their own selection on disk. This will provide Users the ability to save games external of the game/saves folder, such as to a USB drive or secondary installed hard drive.
ZeroK should only use the path present in the Settings to then save games into. (edited)
[12:33 AM] GoogleFrog: this sounds like a ticket
[12:34 AM] Vu: Just relying my findings. Dont know how many games of Chatka world ive been thru just figuring out where the 'ell are my saves
[12:35 AM] GoogleFrog: this will be lost if no ticket is created
[12:37 AM] GoogleFrog:
https://github.com/ZeroK-RTS/Zero-K/issuesGitHub
Issues · ZeroK-RTS/Zero-K
Open source RTS game running on the Spring engine. Contribute to ZeroK-RTS/Zero-K development by creating an account on GitHub.
[12:37 AM] GoogleFrog: I can't even begin to reproduce
[12:38 AM] GoogleFrog: \Users\Save Games* isn't a folder I have
[12:38 AM] GoogleFrog: every game I've saved, on steam and portable, saves to Zero-K\Saves
[12:39 AM] Vu: your profile name under \Users, then Saved Games...... no asterik...that was a typeo
[12:39 AM] GoogleFrog: I have that folder
[12:39 AM] GoogleFrog: it doesn't have anything ZK related in it
[12:40 AM] Vu: yes, it will end up there eventually, but the process is either routing thru \Users\Saved Games\ or the logic is Catching the TRY somewhere and falling thru without making or moving the ssf file over to ZeroK\Saves.
[12:42 AM] Vu: fyi, I dont have Steam, I run the Portable.
[12:43 AM] GoogleFrog: you should create a ticket and perhaps someone will chase it down
[12:44 AM] Vu: I will. And Ill edit the post above ...the asterick on the path is a typeo