Skip to content

KCDS 1.2.3 - #358

Merged
Kharote merged 12 commits into
mainfrom
release/1.2.3
Nov 26, 2026
Merged

Kharote merged 12 commits into
mainfrom
release/1.2.3

Conversation

@Kharote

@Kharote Kharote commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

What this changes

KCDS 1.2.3. It brings together the five ready pull requests and the version bump.

Left out: the drafts #170 (bots) and #34 (visor).
Guides: KCD-Synced/KCDS-DOCS#102.

How it was tested

  • On this branch: format_source.py --check passes, and the C# SDK matches the API (build_csharp_sdk.py --check). Item patches, props, NPCs, people, HUD, inventory, recipes, ground items, SDK docs examples and languages, and Lua guide examples: 164/164.
  • Kit, current main plus these branches, 26.11:
    • NPC prop: a barrel on a server NPC's head, following it.
    • Exclude: in Suchdol the level's people within 60 m are gone, and back after the exclusion is lifted.
    • Opponent health: the opponent's health segment is hidden and comes back.
    • Mod hood: the game kept the patch on the first join and loaded it after a restart; the mod's hood is worn.
    • PvP fight at 0 ms and 120 ms delay: no crash with the new body test.
  • Also checked in the kit while testing the CrownRP list:
    • Arrows stick in the level's archery target at Trosky: the stuck stacks are pinned with the game's own rotation.
    • The Trosky guardhouse stairs can be climbed.
    • A woman's bow on her back looks right from another player's view and from her own third-person view.

Checklist

  • I read CONTRIBUTING.md and agree that my contribution is licensed as it says.
  • The change is my own work: no code, assets or dumps that are not mine or that come from the game.
  • python Dev/tools/format_source.py --check passes.
  • Tests cover the change, and the checks of this pull request pass.
  • Public behaviour that changed is documented (KCD-Synced/KCDS-DOCS) or needs no docs.

…horses

Player.attachProp hung a mesh on a joint of a player's body only. Every
game finds the body of an attached prop by its network id, and NPCs and
horses are found the same way, so they now carry props too: a basket on a
back, a lantern in a hand, a pack behind a saddle.

- New Npc.attachProp / Npc.detachProp and Horse.attachProp /
  Horse.detachProp, taking what Player.attachProp takes; the props go
  with the NPC or horse.
- New Prop.attachedBody: the player, NPC or horse a prop hangs on.
  Prop.attachedTo still names only a player.
A server with levelPeople on wanted its villages lived in but some towns
(Kuttenberg, Grund) empty for the players to live in.

- New setting exclude: Areas or area ids (a settlement's level area, or a
  script's own). The level's people placed inside get no body, and those
  already there go.
- With levelPeople every game has the level's own people, also those the
  server gives no body: the people of an excluded area are hidden in every
  game by a level edit of their entity, and given back once the area is no
  longer excluded.
A serious roleplay server wanted fights not to show the opponent's
health. The game draws it as its own bar beside the player's in the HUD's
stats (two clips: the bar and its break), apart from the nameplates.

- New HUD part OpponentHealth for Hud.setHudPart and hudPartShown: both
  clips are hidden again every frame while a resource hides it.
…rent

Telling whether a body that touched another is a replica read each replica's movement object
and the actor inside it. When that movement object was gone, the game crashed in the touch.
The replicas' entity ids are now kept when they are made and dropped when they go, and the touch
compares ids only. The replica tick also keeps each replica's movement as its actor holds it now,
with one log line when it changes.
…od's items join the catalog

A resource's replace/ table patches of any game table (Libs/Tables/<folder>/<table>__<name>.xml)
are now kept per server and loaded with the game's tables at the next start, not only perk
patches: a mod's items (item__<name>.xml) and its clothing and hair (CharacterComponent__<name>.xml)
reach every player like the game's own. The recipe and workpiece tables still load at once.

On the server the rows of a resource's item patches join the item catalog when it starts, so
inventories, shops, stashes and the ground take the mod's items. A worn piece gets the slot of its
clothing's armour type, from the resource's CharacterComponent patch or the game's clothing; a row
with a game item's GUID changes that item. The catalog now carries the game's clothing, the armour
type slots and the weapon classes for this.
function elementsOf(text) {
const elements = [];
const open = [];
const body = String(text).replace(/<!--[\s\S]*?-->/g, '');
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.

2 participants