Skip to content

Fix inconsistent serialization of GlobalTargetInfo#840

Merged
notfood merged 1 commit intorwmt:devfrom
mibac138:sync-global-target-info
Mar 19, 2026
Merged

Fix inconsistent serialization of GlobalTargetInfo#840
notfood merged 1 commit intorwmt:devfrom
mibac138:sync-global-target-info

Conversation

@mibac138
Copy link
Contributor

Found in rwmt/Multiplayer-Compatibility#553

Rewrite vehicle launch/flight sync to work around MP's broken GlobalTargetInfo serializer (PlanetTile 8-byte write vs 4-byte read in RW 1.6)

I believe this is just a simple omission that caused this issue. The cause of it is an asymmetry in reading vs writing. For reading, the code just did ReadInt, while for writing it called WriteSync<PlanetTile>, which consists of 2 ints.

cc @sviyh as you discovered the bug. With this patch merged, the work around you did should no longer be necessary. I'd appreciate it if you could verify it, as I'm not familiar with that mod

@sviyh
Copy link

sviyh commented Mar 19, 2026

Thanks! Will check in game when have time and it's merged and released

@notfood notfood added fix Fixes for a bug or desync. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). labels Mar 19, 2026
@notfood notfood moved this to In review in 1.6 and Odyssey Mar 19, 2026
@mibac138 mibac138 force-pushed the sync-global-target-info branch from 8aa96b9 to 64b567d Compare March 19, 2026 16:43
@notfood notfood merged commit 10ed41c into rwmt:dev Mar 19, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in 1.6 and Odyssey Mar 19, 2026
@mibac138 mibac138 deleted the sync-global-target-info branch March 20, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). fix Fixes for a bug or desync.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants