Skip to content

Add: Availability for BaNaNaS content.#36

Open
Rito13 wants to merge 1 commit intoOpenTTD:mainfrom
Rito13:add_availability
Open

Add: Availability for BaNaNaS content.#36
Rito13 wants to merge 1 commit intoOpenTTD:mainfrom
Rito13:add_availability

Conversation

@Rito13
Copy link
Copy Markdown

@Rito13 Rito13 commented Mar 25, 2026

When information about the content are sent to the client, it does not know whether it gets info. for the latest version of the content or for an older one.

Client could speculate the availability based on what it has asked server for or the string representation of the version that we already send, but both of this solutions would be inaccurate.
The one based on what client has asked server for, would rely on timing and break with slow internet connection and increasing number of content.
The version solution, would rely on compering string version from server with int version contained inside the grf file that the user has already downloaded. Different GRF autors use different systems for representing the version number as a string.

So just send the information about availability at the end of message which maintains backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant