opentomb / OpenTomb

An open-source Tomb Raider 1-5 engine remake
http://opentomb.github.io/
GNU Lesser General Public License v3.0
1.38k stars 143 forks source link

Overwriting game saves is buggy #612

Open Helenah2020 opened 1 year ago

Helenah2020 commented 1 year ago

Preamble for Improvements

Looking at the file and directory structure of the engine's route directory or as you've named it in the code base "base_path". Compiling and/or running the game has created the directories:

However you could also benefit from just creating the following directories too:

Onto the actual problem

While saving seems to work, loading seems to not. When loaded, I just end up at the level 1 initial position in the game, I have also tried loading other levels (2 and beyond) of the game and then saving, same result, taken to level 1 initial position.

Upon investigating the save file

I have noticed that the content of the save file is set to load he level 1 map, I thought "Why always level 1? I mean there is level 0, why not there?" so I investigated further, I went into level 2, created a brand new save file with a different name and it saved successfully and loaded the correct state when loading.

Conclusion

I have made the conclusion that overwriting of game save files either is not being done or is failing.

If you need further information, please let me know.