-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Savegame list fix and filename changes #375
Conversation
update from main
(ready) New monsters (Attnam#349)
update from main
… one also hardened savegame filename, will now only contain a-zA-Z0-9
(ready) bug fix for show items under (Attnam#369)
(ready) Fantasy name generator (Attnam#363)
update from main
# Conflicts: # Main/Source/game.cpp
Sorry for another possible bug. If I load an autosave file, the character's name is missing. |
@fejoa actually if as many bugs as possible are found before release is a great thing :) |
Shall I merge this and .AutoSave.sav can be a new job? |
sure! :> |
mmm... I am not being able to recreate the problem. btw, wizard mode has a problem about that. |
@AquariusPower I had a similar problem. Game crashed and I tried to recoved from savefile. There was an autosave, but for whatever reason the game instead tried to use normal savefile. I didn't save before, though, so it threw me back to the story at the very beginning. When the game started, I had no name. Is there a way to tell the game to recover from an autosave and not the normal save? I would rather not loose a lot of progress if the game crashes and instead of going back to the nearest autosave, it throws me all the way back to the last regular save. |
as I remember, I had this issue and fixed it, so I guess this was from a previous commit than the latest I did on that branch. so in case you still have such savegames, it would be interesting to paste here the file list, speaking of that... we seriously need to find a way to generate stacktraces for the windows build. I am trying to find a post I did about windows stacktraces on stackexchange, brb EDIT: #386 :) |
I emptied my Save path.
Created a new char and played thru some dungeons w/o saving to main menu.
As I was also testing things, it crashed, and I ended up only with .bkp and .AutoSave.sav files, but the main PlayerName.sav was missing.
The list would not be populated.
To test it, do the same but crash it manually by killing the game process.
I also hardened the filenaming to only allow a-zA-Z0-9 preventing some derivative problems if not (like if user typed dots in the player's name that would mess the savegame listing).
This one will be ready after we make many tests and find no troubles in:
TODO: To properly show the player's name on the savegame list, we need to create a new file during the savegame, it can be a simple text file like PlayerName.info may be, and there can be put many things, including the player name with all fancy characters and also current game/dungeon progress, etc. Not need to be on this PR, that is more a bug fix and code hardening.