Repository navigation
Conversation
…e wing show Co-op clients showed the host's AI ships and capital ships from scene pages, which carried only their place and two flags. A client never saw an enemy's damage, and the wing window was empty. Each mission object's slot is now copied to every client slot for slot (network/mirror.zig). The fields that travel follow from the engine's types, and a field added to a slot fails the build until it is marked as sent or kept. Each state goes as the change from the last one the client acknowledged, and the motion goes as a compact pose that the client's simulation carries and corrects as before. The wing comes with the objects. Protocol 48. Running the objects' orders on clients for show, pilots' ships and rocks, and a stream of the host's decisions are #1699, #1700 and #1701.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co-op clients showed the host's mission objects from scene pages, which carried only their place, their turn and two flags. A client never saw an enemy's damage, and the wing window (X) was empty.
What changed:
network/mirror.zig). The fields that travel follow from the engine's types: every field ofcreate.Slotis marked as sent or kept, and a new field fails the build until it is marked. Pointers into a machine's own memory never travel.correctLane).Measured headless with a simulated client: about 35 KB/s per client in mission 6 and 10 to 20 KB/s in mission 18, below what the scene pages used.
Left for later: running the objects' orders on clients for show, so explosions, spin-outs and cloaks appear (#1699); pilots' ships and arena rocks on the same path (#1700); a stream of the host's decisions in place of combat effects, wrecks and notices (#1701).