TECHNICAL NOTES
How the shared world is designed.
KuskiMP starts with host authority. That choice is less glamorous than promising “zero-latency sync”, but it gives the project one place to decide what actually happened to money, objects, vehicles and progress.
1. The host owns authoritative world state
The host decides world time, economy, NPC state and persistent actions. The local host player goes through the same validation path as remote clients where practical, so “host clicked it” does not become a special path that bypasses multiplayer rules.
actor, request ID, entity, generation, expected revision, action, payload
distance, current holder, availability, game rules, side effects
accepted/rejected, new revision, state/effect to replicate
2. Objects need identity that survives packets
Unity instance IDs and hierarchy order are not persistent network identity. The core therefore uses stable keys for static entities and host-assigned dynamic slots with a generation. When an object is destroyed, a tombstone and generation change keep an old delayed packet from recreating the previous object.
dynamic entity: host slot + generation
despawn: tombstone recorded
stale packet: generation mismatch → reject
3. A retry cannot mean “charge twice”
Protocol 7 carries a request ID and the host keeps a receipt of completed world actions. If an acknowledgement is lost and the client retries the same request, the request is not treated as a new purchase or reward. This matters far more for multiplayer correctness than simply retransmitting a packet.
4. Movement, persistent state and one-shot effects are different data
Vehicle movement is continuous and sequence-sensitive. A door state or removed part is persistent. A glass-break sound is a one-shot effect. Late join should receive the broken glass state, but it should not replay every old break sound from the session. The network model keeps those categories separate.
5. Joining is a snapshot plus live changes
The target join sequence is: identity → compatibility → consistent snapshot → entity load → queued live deltas → Ready → interactions enabled. The host may continue moving and interacting while a player joins, so changes after the snapshot boundary must not disappear.
transfer chunks(N)
queue live deltas N+1…M
apply snapshot
apply queued deltas
READY: enable player interactions
6. Drift should fail closed, then resync
If a critical subsystem revision no longer matches, KuskiMP is designed to stop the affected interaction and request a targeted resync rather than silently allowing two different worlds to continue. A full rejoin is the last fallback, not the first response to every mismatch.
7. One core, two game adapters
The protocol and entity model are shared between MSC and MWC. The actual game bindings are not. Unsupported or changed runtime contracts are supposed to fail with a concrete compatibility error before mutating world state.
Current implementation evidence
The documented protocol-7 milestone includes the generic world request/result channel, actor binding, retry with the same request ID, bounded client pending requests, disconnect cleanup and host-side deduplication receipts. Entity lifetime/generation registry is also present at the core level. Gameplay adapters and persistent whole-world save integration remain the larger open work.