-
-
Notifications
You must be signed in to change notification settings - Fork 484
Fixes #4299 - Isolate Client Resource Cache by Server #4311
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
base: master
Are you sure you want to change the base?
Conversation
…gacy resource migration
I like the idea. |
With the current automatic migration, shared resources will be copied into each server's folder the first time the client connects.
but if he don't have the resource, for sure it will be downloaded |
Will it only be copied after joining for the first time after this update? |
Yes it , it will only be copied once when you join a server for the first time after the update, as the migration only runs if the server's specific path doesn’t already have the file. After that, the resource in each server’s folder is independent, so if a player saves new handlings in one server, those changes will not appear in another server For real example , So, no the player’s handlings will not be shared across servers since each server has it's own directory. But the player could still do it manually by copying the data, or the server could use a database instead of relying on file based settings. |
Just asking: What happens with the default resources, especially if every server uses them? There will be countless of copies of the admin resource for example? What about race maps? |
Yes, in this approach there will be separate copies of default resources (like admin or race maps) for each server. |
What would happen to the servers that have multiple servers? such as Drift Paradise and Dayz? |
As I said, for now, to support backward compatibility, downloaded scripts will be copied to the server directory that uses them. But in the future, each server will have its own directory, which means scripts will be re-downloaded. |
We have 21 servers with the exact same gamemode (cache size is ~800 MB). 60% of permanent player base play on at least 4 servers on average. Some players play on 10+ servers. And most of players connect to different servers on a daily basis (due server specific events). So you want to tell me that our players will have to re-download cache files? Is this a joke? And I'm not even talking about wasted disk space on player PCs. This feature isn't feasible unless you add a way to use the same cache folder for multiple servers. |
For: #4299
the implementation includes automatic migration for legacy cached resources, allowing a smooth transition without user interaction or data loss.
While legacy support is currently maintained for backward compatibility, it may be deprecated in the future to simplify the system further. Removing legacy support would reduce maintenance overhead .. but if we didn't implement it for now .. it would require clients to re-download resources when connecting to servers for the first time after the change.