Closed grepwood closed 6 years ago
The * in "quik_" should get removed in SV_SaveGame_f (svsavegame.cpp:510). It might be that it's *opened the file, but the contents of the save file isn't what it was expecting...
Needs further investigation
Here's my save: https://sucs.org/~grepwood/OpenJK/quik*.sav.xz When I actually rename it to "quik.sav", the game loads it successfully :)
Note that the previous changes to add screenshots break older saves in jk2 but bring back original save support.
The renaming to quik from quik* when saving seems to be working fine for me, I'm not sure what's going on here.
It's working because the generated save is a valid OpenJK JK2 save. What the problem is, is that OpenJK will generate a quicksave save bind with a filename inconsistent with the game's quicksave load bind.
Not for anyone else. It removes the * before it even reaches the actual saving.
https://github.com/JACoders/OpenJK/blob/master/code/server/sv_savegame.cpp#L509-L510
Pretty sure they work just fine. Close?
Sounds like you were using an older jk2 quicksave from before the changes took place really.
I'll try to check this next week. At the moment I'm pretty sure that my quicksave was generated by the same version of jk2 that I was trying to load it with.
Make sure you don't have a quicksave under fs_basepath that it might be loading too. It may load from there first.
This should be fixed now with #878 and bb0b2f0a541117aba77fc7b59ee51defda99a5b6
Note: there's no up to date windows prebuilt build currently.
Close?
@ensiform I will rebuild OpenJK this weekend and see if I can confirm everything.
Confirmed. Works fine.
Saving game "quik*"... Done. Loading... quik Failed to open savegame 'quik'
From code/ui/ui_shared.cpp:5388 I gathered that it literally saves it as "quik*.sav", and then code/ui/ui_main.cpp:1467 tries to load a "quik.sav" which doesn't exist. Since game saves are already stored in ~/.local/share/$GAME/base/saves, why would the quicksave name be different in JK2?