Skip to content
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

Version check #19

Open
Tornamic opened this issue Nov 16, 2024 · 0 comments
Open

Version check #19

Tornamic opened this issue Nov 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Tornamic
Copy link
Owner

Tornamic commented Nov 16, 2024

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:

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.

@Tornamic Tornamic converted this from a draft issue Nov 16, 2024
@Tornamic Tornamic added the enhancement New feature or request label Nov 28, 2024
@LYZENCORE-9 LYZENCORE-9 moved this from Backlog to In progress in CoopAndreas Alpha Release Prep Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

No branches or pull requests

1 participant