-
Notifications
You must be signed in to change notification settings - Fork 0
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
Clean up / refactor save file logic #6
Comments
Edit: The landing point for the error Could also try to tolerate save file oddities better, like "dropping" extra inventory items if a save contains more than the allowed limit. |
There's a lot of save file loading code to work with files from older UMoria 5.x versions. Should probably consider just removing support for old save files, since this is a fork. Maybe support whatever the oldest version is that doesn't currently require version checks? At the very least, duplicate code resulting from data being at different places in different versions should be collapsed via use of a shared function for loading that data from the current file position. |
Save file loading code has a bunch of status messages that aren't even visible on modern computers because they go by too fast... Might be worth thinking about printing messages sequentially and then having the player hit a key before continuing on to the game proper. Another option might be to put the loading messages in the previous messages log, but I think the log gets saved to and read from the save file, so some of that data would be lost/displaced. |
Current implementation of "accepted"/"risky" notice for version-mismatched save files is pretty bogus. A more meaningful implementation might be to say "risky" for anything where version-dependent code was applied in an attempt to get an older save working, and "accepted" for everything else. |
This is all now fixed!
|
|
Duplicate character logic seems odd, and is currently only supported under *nix. Remove? |
Looking at
save.c
turned up a lot of notes:externs.h
include order concernsave.c
file globalsfile_ptr
andxor_byte
fixed.from_savefile
andstart_time
need more thoughtwhile()
loop insave_char()
._save_char()
goes awrysave_char()
eitherunlink()
seems problematicThe text was updated successfully, but these errors were encountered: