KCDS 1.2.3

KCDS 1.2.3

A server can ship game mods, such as Nexus mods with new clothes, hair or weapons, and every player who joins gets them. Props hang on NPCs and horses, towns can be kept empty of the level's people, a fight can hide the opponent's health, and a crash when two players' bodies touched is fixed.

New for server owners

  • Game mods through a resource: copy a mod's .pak contents (each .pak is a zip) into the resource's replace/ folder and keep its table patches as they are, files named <table>__<name>.xml under replace/Libs/Tables/. Examples are Libs/Tables/item/item__mymod.xml for its items and Libs/Tables/Character/CharacterComponent__mymod.xml for its clothing and hair.
    • Every table patch is now kept per server and loaded with the game's own tables at the next start, as the game loads mods. Until now this was done only for perk patches. Models and textures arrive with the other replace/ files when the player joins.
    • A player joining for the first time sees "This server has game data of its own (perks, items or clothing). Restart the game to have them." Every later start for that server loads them.
    • Patches of the recipe and workpiece tables (AlchemyRecipe__, BlacksmithRecipes__, BlacksmithWorkpieces__) still load at once, without a restart.
  • A mod's items on the server: when the resource starts, the rows of its replace/Libs/Tables/item/item__*.xml join the server's item catalog. The log says "items mod_cloak_m01, ... added from item__mymod.xml".
    • Inventory.add, Player.equip, shops, stashes, the ground and Inventory.classes take them by name or GUID. Items.info describes them.
    • A worn piece goes in the slot of its clothing's armour type. That comes from the resource's CharacterComponent__*.xml (the nearest ArmorType of the clothing or the clothing it is nested in), or else from the game's clothing it wears or derives from.
    • Weapons get their weapon class and attack modifiers, and divisible items, ammunition and money stack.
    • A row with the GUID of one of the game's items changes that item for everyone, as the mod does.
    • Folders are found in any case (Libs/Tables or libs/tables).
  • Npc.attachProp(options) and Horse.attachProp(options): hang a mesh on an NPC's or horse's joint. The options are the same as Player.attachProp: model, joint, hand, position, rotation, scale. Examples: a lantern in a guard's hand, a sack on a pack horse, a barrel on a head.
    • The prop goes when the NPC or horse is destroyed. detachProp(prop) removes it sooner and returns true if it was that body's.
    • Prop.attachedBody is the Player, Npc or Horse a prop hangs on (null for none). Prop.attachedTo stays the player only.
    • In JS, TS, Lua and C#.
  • Npc.setPopulation({ exclude }): keeps places empty of the level's people. It takes up to 256 areas, as Area objects or their ids; Area.taggedWith('settlement') lists the towns and villages. Example: Kuttenberg 16b7ef9136cb4690 and Grund 6c0c8031c0a24813.
    • A person whose placement lies inside an excluded area gets no body.
    • With levelPeople, the game's own people placed there are hidden in every player's game.
    • setPopulation({ exclude: [] }) brings them back. The same key works in people-population.json.
  • Hud.setHudPart('OpponentHealth', false): hides the opponent's health and how close their guard is to breaking, shown above the compass in a fight. Serious roleplay servers can keep how hurt the other player is unknown. true shows it again, and the part stays hidden while any resource hides it.

Fixes

  • A crash when two players' bodies touched: the test of whether a touching body is another player's read that player's stored movement object, which the game could already have freed. It now compares entity ids kept when the other player's body is made, and the stored movement object is kept current each frame.

Checked for the reports of 25 November

  • Arrows stick in targets and wooden surfaces, for the shooter and for everyone else, since 1.2.1: the stuck arrow is laid where it hit, with the game's own rotation, and kept there. A server still on 1.2.0.x does not have this; update it.
  • The wooden stairs in the Trosky main gate guardhouse can be walked up.
  • A woman's bow worn on her back sits along her back, from another player's view and from her own third-person view.

Guides: Sounds and game files (Game mods), Props, NPCs, HUD and messages.