-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Expose client version information in non-debug builds #15708
base: master
Are you sure you want to change the base?
Conversation
The PR has been changed to only expose the version string field now. |
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.
I'm fine with the PR in the current version (pun intended)
I think what we should do to further discourage doing version comparisons is to actually provide documentation on which protocol version maps to which engine version (or perhaps just link to networkprotocol.h?). |
IRC:
|
I took the liberty to implement this. Is it fine now? One minor question perhaps: We want |
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.
Makes sense.
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.
One minor question perhaps: We want
core.protocol_versions
to not contain patch versions, even if they entailed a protocol version bump, correct?
Hmm, I feel like it's inconsistent to leave a protocol version out just because it corresponds to a patch version. The reason to bump the protocol version for a patch version would be to make it detectable on the server, so leaving it out of the mechanism for making detection easier doesn't make sense. In builtin, one of the two cases where the protocol version is used for client feature detection is actually the 45/5.9.1 case.
|
||
-- The version information is provided by the client and may be spoofed | ||
-- or inconsistent in engine forks. You must not use this for checking | ||
-- feature availability of clients. Instead, do use the fields |
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.
could you make it explicit on core.features
and core.has_feature
above that they're for server-side feature detection? so we get a clear differentiation between server-side feature detection and client--side feature detection
Closes #14151.
The client version information that has previously only been available in debug builds are now always available. Serialisation version and client status still remain behind the debug check.
To do
This PR is a Ready for Review.
How to test
e.g. worldedit //lua command in singleplayer: