Skip to content

Fix stale Fresh data for multiplayer clients - #41

Open
user01010111 wants to merge 1 commit into
rittermod:mainfrom
user01010111:agent/fix-multiplayer-state-sync
Open

Fix stale Fresh data for multiplayer clients#41
user01010111 wants to merge 1 commit into
rittermod:mainfrom
user01010111:agent/fix-multiplayer-state-sync

Conversation

@user01010111

Copy link
Copy Markdown

Some container details were not included in the multiplayer event payloads, which could leave clients with stale or incomplete information.

This change:

  • sends the current fill type with container updates, so fermented bales change from grass to silage on connected clients without requiring a reconnect;
  • preserves the pallet flag during container registration and full state sync, so pallet grouping and "Items in World" storage overrides match the server;
  • includes storage class information when loss history is sent to a joining client.

The server remains authoritative. This only brings the client's copy of the affected state into line with the server.

Checks completed:

  • Lua syntax validation;
  • registration, incremental update, and full-sync round-trip checks;
  • full-sync coverage for loss entries with and without a storage class;
  • modDesc.xml validation against the FS25 1.21 schema.

@user01010111
user01010111 marked this pull request as ready for review July 29, 2026 05:09
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