KCDS 1.1.1

KCDS 1.1.1

New in the SDK

  • Inventory: a signal that a change is really on the player.
    • playerInventoryShown(player, revision) (server event, new): fires once for each newer revision of a player's inventory that their game shows, with its items, what the body wears and the weapons in its quickslots all on. After Inventory.set (or any other change) wait for its revision here before drawing a weapon or checking what the player wears. Revisions the game went past to a newer one are not told.
    • A stock with quickslots is reported shown, and Inventory.ready / playerInventoryReady come, only once its quickslots and the weapons they put on are on. Before, they came a few frames early, while the game was still putting the weapon in its slot, and a script's check could see the weapon's row not yet worn (stock_mismatch on equipped).
    • To switch between two weapon rows: set the rows' equipped counts and the quickslot in one Inventory.set, wait for playerInventoryShown with the returned revision, then draw. No two-step workaround is needed.
  • World.entitiesAround(centre, radius, options) (client): each entity now also has its rotation (a Quaternion), besides position, distance, guid, name, class, physicalized and entityId.

Crashes and stops

  • Dice: a match whose other player left the server (or whose game stopped) no longer crashes the client of the player still seated. The game frees the dice minigame with the other player's body; KCDS stops reading it before that, the seated player gets the server's end of the match and gets up from the table. If the server's end does not come, the match ends after the other player's body has been gone 5 s.
  • A fault in one gameplay feature no longer stops the whole client (before, the game kept running but nothing synced until the game and the launcher were restarted). Knockout and revive, crafting, dice, gathering, cooking pots, placed objects, lights and carts are each switched off on their own until the next connection; the rest keeps running and the log names the feature (FEATURE <name> faulted).
  • World Architect: a level entity edit no longer touches an entity the game deleted. Moving a chair's seat and then rebuilding or deleting the chair crashed the game when the edit was removed.
  • The clothing preset guard reads a locked copy of the dressed replicas (a crash while replicas loaded), and a dressed replica whose soul came after its outfit is not dressed again by the game.
  • The level items sweep leaves alone an item Player.holdItem laid for a carry, a crafting station's tools, items hung on something, equipped items and the bodies passing a removed pile.

Crafting

  • Smithing: a finished product is no longer taken back. The game closes the smithy as it hands the product over and takes the workpiece's materials in the same moment; those materials now count for the workpiece, so the product fits its recipe. Before, it was taken out of the inventory as a client error and the player got nothing (craftingEnded reason clientError).
  • Smithing: the product is told once, as received. The server swaps the unit the game made for its own without a notice; before, players saw "received" and "parted with" for the same item.
  • Smithing on other screens: a workpiece flipped in the tongs turns at once, the tongs that hold a piece on the anvil stay with it, and the smith's hammer and tongs are drawn on the skeleton (they no longer blink or jump with each stroke).

Players and replicas

  • Sitting: a chair a player pulls out, sits on and pushes back is mirrored on every screen. The player's game tells the chair's place from where the level has it twenty times a second, in the hand or not, and every other game moves its own chair there; it goes back home when the player's game stops telling it. Before, other players saw a second chair in the hand while the real one stayed put.
  • Sitting: a body that stood up collides again only once its stand-up took it off the seat; its legs no longer jump onto the chair on the other screens.
  • Seats: a moved or hidden level entity blocks only its own seat. Before, one moved chair took the seats of every chair around its table.
  • Weapons: a weapon Player.equip gives is equipped as the inventory screen does before it goes into its quickslot, so it can be holstered and drawn as usual. Replicas draw weapons and shields in hand themselves, as on the owner's body: no more white shields or invisible weapons beside a shield; only torches and KCDS props are mirrored.
  • Rejoining the same server after a disconnect from the menu reports gameplay ready again (LoadingScreen.stage reached "ready" only on the first join).
  • Client audio: npc.playVoice, Audio.playFile and the other entity sounds find an entity named by its network id as this game's body or prop (the local player, a placed body, a prop).

NPCs

  • npc.moveTo, follow, flee and patrol rest the NPC's brain while they move it: an NPC in a conversation or another activity of the game's own breaks it off and goes, instead of sliding away still talking. The brain runs again when the order ends.
  • A person's replica keeps its body when another player takes over simulating it (no new body, no blink).
  • Replicas draw the weapon set their simulator selected, so every player sees the same weapon in an NPC's hand.
  • A player who opens the inventory, map or another game screen hands the NPCs and animals their game simulates to another player meanwhile (the game takes the world's characters away during those screens, and they stood frozen for everyone).

World

  • With the level's items off (the default), the level's own containers hold nothing either: a sack, basket or chest of the level (Stash) and a corpse the level lays out (StashCorpse) open empty, and stay lootable for what players put in.
  • Performance: the dice tables are looked up once a minute instead of walking every entity of the world every 5 s (a short lag every 5 s on large maps), and the level items sweep looks for crafting stations every 30 s instead of on every sweep.

World Architect

  • A chair (or other furniture) you placed is picked whole; old level edits of its seat are dropped when a work opens, which repairs works where a moved seat had broken sitting.
  • A level chair you move or hide takes its seat, its Sit and where a body sits down and gets up along, so it can still be sat on where you put it.
  • Buildings tilt on the Rotate tool's X and Y rings, as props do; the tilt is kept in the work and goes into Export for server.
  • The move arrows and the Rotate rings follow the size of what is selected (from 25 cm for the rings), so a small thing's can be grabbed up close.
  • While you map, your character grows neither tired nor hungry.

Display

  • Settings > Graphics > Window mode has a third choice, Borderless window: the game in a window without a frame at the chosen resolution (centred; at the monitor's resolution it fills the screen). The game's own profile keeps its last vanilla mode; KCDS remembers the choice in %LOCALAPPDATA%\KCDS\window-mode.json and starts the game in it.