-
Notifications
You must be signed in to change notification settings - Fork 81
Reduce save size #1519
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
Reduce save size #1519
Conversation
grilledham
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding on_player_removed handlers for the modules is great, we should do this in case a scenario feature or mod removes player data.
The part about removing player data for afk players I need more convincing about.
- Do we have evidence that this makes a meaningful different to save file size? I would think that only really the player's blueprints would take up a noticeable amount of space. And I wonder if we can just remove those for afk players?
- I'm nervous about having this on by default. It will be difficult to know what the right default timeout should be. I could see some long term maps where a player might only play once per weekend. And one day they might play Saturday then the next week they play Sunday. Should those players have their data removed every time they play?
- When this is on do banned players still drop their inventories into a corpse? A common reason to ban players is they are stealing high value items. We wouldn't want such high value items to be lost on ban. Also for danger ore maps destroying items could be seen as cheating.
- Does this play nicely with the afk corpse feature? I wonder if this should only be on by default if we also have the afk corpses on too. That way items aren't lost.
Yes, indeed, BPs are the biggest concern. I've already opened a ticked on the forum to expose the remove BP api to servers (rn it is only available to "humans" and it's 1 or everybody).
Goal is not to harm players. This is a cleanup service that should reduce filesize without interferring w/ players. BP storage size is only a concern for eternal maps and "long" maps where hundreds of player join in its lifespan. This does not happen on weekly/daily maps. I'm happy to increase "AFK" time to 1 month, as in the long run, it'll achieve its goal of pruning unused BP storages.
Yes, player corpse module has been correctly integrated and instantly calls the drop inventory content before the player is removed (thats why in some module it is used
Ditto 3. Additionally, we could incorporate this with rank system and maybe only remove players that are below |
If the default was 1 month, then most of my concerns disappear and I would be happy with this being included.
Nice, hopefully this will get added, as this would allows us to be more aggressive with reducing map size. |
Changes
on_player_removedhandler for all modules that store data in global storage