NG World

Combat and synchronisation

Kingdom Come: Deliverance II was made as a single-player game. To let dozens of people live and fight in it, the NG MP mod synchronises the world the way large multiplayer platforms do: the server is the judge, each client controls only its own character, and everything else is shown smoothly, with network latency taken into account.

Movement of other players

  • Your client sends its position 30 times per second (5 when standing still).
  • You see other players with a small adaptive delay (50–250 ms depending on the network) — this keeps their movement smooth, without jerks. If a packet arrives late, the movement is briefly predicted ahead and corrections are blended in softly; a “jump” happens only when the discrepancy exceeds 4 m.
  • Players appear at ~150 m and disappear beyond 180 m; nearby players are updated every frame, distant ones less often.

NPCs and animals

Each NPC is controlled by one nearby player — its “owner” — and everyone else sees it through the same smooth interpolation. That way everyone sees the same merchant in the same spot. Animals the server has not confirmed are hidden — so the herd is the same for everyone.

Living world (in testing) People and animals “live” even when nobody is around:

  • The loading screen after logging in and after a teleport stays up until the residents and animals around you (within 100 m) have appeared in their places and the buildings and trees of the new location have finished loading — so you don't see them “pop in”. After a long-distance teleport or logging in, the screen waits until the game has loaded the textures and buildings of the location: 3–6 s in open country, up to 9 s in a village, about 8 s in a town; a short teleport takes about 1.5 s; the longest wait is 15 s.
  • Herds exist on the server permanently: how many animals are in an area, which ones are wounded, where a carcass lies — all of it is stored, and slain animals respawn over game time even when there's nobody in the forest. When you approach, the animals are already standing where they were left.
  • Residents follow their schedules: if nobody has been near a person for a long time, the server places them where they should be at that hour (at work by day, at home by night), not where they were seen an hour ago. The schedule is taken from the game, so it's approximate.

While this is being tested in the live game, these modes are switched off on the server.

Combat

When you strike, the server checks the hit: it “rewinds” the positions and guard of both fighters to the moment of the strike (compensating for ping, up to 250 ms), and checks the weapon's reach, the angle of attack and whether the target was holding a block. The possible verdicts are a hit, a block, a perfect block (the attacker is stunned), a dodge and a miss.

Shadow mode Right now combat on the server runs in shadow mode: damage is still calculated by the game itself, while the server reaches its own verdict in parallel and compares it with what the players see. Once they match consistently, we'll switch on the “server decides” mode — this will make combat fair for everyone, regardless of ping.

How it feels: you see your own swing immediately, and the result after your ping (usually 40–80 ms). Your combat stance drops on its own after a few seconds without fighting — a drawn sword in the street frightens people and the guards.

What's being tested

In the new build, other players' swings, blocks, dodges and hit reactions play on their avatars on time and in sync with their body movement, and combat with NPCs (a player's strikes at NPCs and NPCs' strikes at a player) goes through the same arbiter. The /combatstat command (or /бій) shows the combat mode and the percentage of server verdicts that match the game's. This is still being checked in the live game.