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

Support OpenTTD 14 admin interface changes (protocol 3) #4

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

duckfullstop
Copy link
Contributor

This PR better handles cases where data is unexpectedly missing from the incoming packet buffer, most notably in OpenTTD 14 where the company shares have been removed from company update packets.

For OpenTTD 14.0 support - maybe we should add support for detecting game version and decoding as such? This isn't backwards compatible.

Signed-off-by: duck. <me@duck.me.uk>
Do this by performing buffer length checking when unmarshalling data.

Signed-off-by: duck. <me@duck.me.uk>
@duckfullstop duckfullstop linked an issue Apr 9, 2024 that may be closed by this pull request
@duckfullstop duckfullstop self-assigned this Apr 9, 2024
@duckfullstop duckfullstop added bug Something isn't working enhancement New feature or request labels Apr 9, 2024
@duckfullstop duckfullstop merged commit 2a6f2b9 into master Apr 9, 2024
6 checks passed
@duckfullstop duckfullstop deleted the ottd14 branch April 9, 2024 13:39
@duckfullstop
Copy link
Contributor Author

(please let me know if this breaks your implementation!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenTTD 14 removed share owners
1 participant