Repository navigation
Conversation
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.
This was referenced Nov 26, 2026
Merged
Collaborator
Author
|
Shipped in KCDS 1.2.3 through #358. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A server with
levelPeopleon wanted its villages lived in but some towns (Kuttenberg, Grund) empty for the players to live in.Npc.setPopulationsettingexclude: up to 256 Areas or area ids, level areas such as a settlement's outline (kkut_locationKutnaHoraArea_1is Kuttenberg's) or a script's own. The level's people placed inside get no body, and those already there go.levelPeopleevery 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 (their placement GUID is the edit's GUID), and given back once the area is no longer excluded. An added level's person has no level entity and only gets no body.Npc.setPopulationexclude, with Kuttenberg and Grund as the example; C# SDK regenerated.How it was tested
node --test Backend/scripting/runtimes/js/npcs/people.test.cjs: 22 passed (new: an excluded area keeps the level people out and they come back when it is lifted, ids and Areas, wrong values throw; with levelPeople the people inside are hidden by entity edits and given back).Checklist
python Dev/tools/format_source.py --checkpasses.