Same server different address wont share LODs.
I have server with distant horizon installed. Due to some problems, I have to use several different address for players from different locations to connect to server. And different name in server browser is also needed for players to know which to connect. I have checked the DH config and found out it can only distinguish different server by ip or name, which both are not the same for each addresses. This caused the DH cant tell these are actually the same server.
A fingerprint from DH's server side would be great since it solved both servers behind proxy issue and this issue.
Or is there is already workaround for this issue? Please tell me. Helps are much much appreciated


14 Replies
can you not give every server the same name?
i guess that would become confusing though
You can try making a symlink for all server folders to point to the same DB
@пшш and I discussed the possibility of a unique server key once before, to let servers with multiple addresses share the same data
I think he made a branch with a test implementation, but dunno what happened after that
Yeah it's ready to be merged, i just assumed it'd be better to wait for implementation on your side
Do you think instead i should just merge it now?
Is the feature optional and/or backwards compatible? Ie. if someone updates to this version, will all clients suddenly have to re-download all LODs, or how till that affect it?
it's a no-op by default, but a protocol bump is required
otherwise yes, it should be backwards compatible
Cool :) I'll release 0.11.0, then add this to develop to make it available in nightlies
Just let me lie down for a bit. I just took painkillers for my back, so I'm a bit woozy x)
That will be a nightmare for players to figure out which they should connect. Despite the latency may the same but one may stutter a lot.
Good to hear that and appreciate your effort. Looking forward to the new nightly 🙂
@пшш Latest plugin snapshot now has server key feature
perfect, will merge in a bit
done
Folder names will be server id + folder name in the modded server, for the plugin it's probably different

The default is null for the value on my end, or a custom string like level key if specified in the config
It seems working now. For exising data, will they be merged or just abandoned?
Servers that don't use the feature will not notice anything, but once you configure a server key - clients will have to redownload the LODs they need.
The server does not need to regenerate LODs.