You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add client version verification during connection to the server.
Details:
Use the reserved CHECK_VERSION packet.
The packet will transmit the version as either:
A string (e.g., "1.2.3").
Or as three separate fields:
uint16_t major
uint16_t minor
uint16_t patch
Versioning System:
Use the "Semantic Versioning" (SemVer) format for version control.
If version strings are used, you may use the SemVer library by Neargye for parsing and comparison.
Version Storage:
Store the client and server versions in stdafx.h as a macro or constexpr.
Ensure the same version is defined both on the server and client.
Rendering Version:
If the major version equals 0, display the text CoopAndreas v0.0.0 (replace v0.0.0 with the actual mod version) in the bottom-left corner of the screen in gray color.
For help with text rendering, please contact me.
The text was updated successfully, but these errors were encountered:
Task:
Add client version verification during connection to the server.
Details:
Use the reserved
CHECK_VERSION
packet.The packet will transmit the version as either:
A string (e.g., "1.2.3").
Or as three separate fields:
Versioning System:
Use the "Semantic Versioning" (SemVer) format for version control.
If version strings are used, you may use the
SemVer
library byNeargye
for parsing and comparison.Version Storage:
Store the client and server versions in
stdafx.h
as amacro
orconstexpr
.Ensure the same version is defined both on the server and client.
Rendering Version:
If the major version equals 0, display the text
CoopAndreas v0.0.0
(replace v0.0.0 with the actual mod version) in the bottom-left corner of the screen in gray color.For help with text rendering, please contact me.
The text was updated successfully, but these errors were encountered: