-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use a different approach to check entity for modstorage #115
base: development
Are you sure you want to change the base?
Conversation
Only needs to keep track of players. See comments in CF_ModStorageModule.c near the top.
Important note: The wipefile version has been bumped to 129 (1.17 Experimental). If you are on 1.17 Exp and have existing storage, just add an empty |
Turns out identity is NULL at a point where I'm checking it, this went unnoticed because it doesn't seem to cause any readily visible problems. I'll try and come up with a fix for this later. |
Player may get booted before the game has had a chance to assign his identity, which will cause his inventory to be persisted immediately, so we need to add him for next load
…tion - ModStorage is now at version 5 (version 4 will be read and converted) - Moved from saving/reading all data as string to handling each data type separately (fixes memory leak in case of read errors) - Fixed unloaded mods array not being resized to correct size if read failed - Optimization: Do not save mods without data
This reverts commit 05733f1.
Just as a heads-up, this version of ModStorage is used by Expansion since the 14th by duplicating some of the bits to make it work until CF catches up |
Only needs to keep track of players. See comments in CF_ModStorageModule.c near the top.