Docs · Engineering reference
Residents
docs/features/residents.mdEdit on GitHub
LF_ResidentTimetable — Feature/Residents/LF_ResidentTimetable.c (#2665, 2026-11-17)
- A resident's day is data and the server can say where they should be at any game minute (home or work, the anchor there, the activity), with nobody walking. Tests:
residents/resident-timetable(LOGIC).
LF_ResidentDef — Feature/Residents/LF_ResidentDef.c, Configs/Residents/LF_Residents.conf (#2665, 2026-11-17)
- A resident is config: id, home and work place kinds (found through
LF_Places), and a per-game-day timetable ofHH:MMlines. The core ships two neutral example residents; a pack adds, replaces or removes residents by id through an overlay (replaceswaps the whole record;patchof a timetable is not supported). Tests:residents/resident-timetable(LOGIC).
LF_ResidentMemory - Feature/Residents/LF_ResidentMemory.c, LF_ResidentMemoryConfig.c, Configs/Residents/LF_ResidentMemory.conf (#2859, 2026-11-18)
- How each resident feels about each character, as pure server rules keyed
residentId|uid:helpedraises,crime_seenlowers, clamped -100..100, no decay. Callers read a word (refuses,wary,neutral,friendly,regular) from config thresholds, never the number. A per-pair cooldown stops the same reason twice; a crime seen is gossiped one hop to the residents the witness knows (m_aKnows) at the config share, rounded toward zero. An unknown reason is refused with aResidentswarning. Tests:residents/resident-memory(LOGIC). - Resident memory survives a restart (#2861): the
residentmemorysave section holds one row per resident and character uid with the score and each reason's last award time (unix seconds, so a cooldown running at the save still runs after it). A neutral row (score 0, no cooldown running) is not written. A row for a resident the residents config no longer lists is kept, since a pack may bring the resident back, and logged once per resident per load. A save from before the section leaves memory as the session holds it (empty on a boot). The admin character wipe (LF_Progression.Forget) makes every resident forget that character. Tests:residents/memory-persist(PERSISTENCE, restart check inwt e2e).
LF_ResidentAnchors — Feature/Residents/LF_ResidentAnchors.c, LF_ResidentAnchorComponent.c, Prefabs/Systems/Residents/LF_ResidentAnchor.et (#2857, 2026-11-18)
- A map maker drops a resident anchor (id
counter,bench,door) inside a place;LF_ResidentAnchors.Resolve(kind, anchorId, near, spot)turns a timetable line into a world position and facing. The place is the nearestLF_Placesplace of the kind tonear; an anchor belongs to it by parent hierarchy, else loose within 30 m. An empty anchor id is the place origin; an unknown id falls back to the origin and logsLF_Debug.Warn("Residents", ...)once per kind and id pair. Server side, nothing persisted. Tests:residents/anchors(WORLD).
LF_ResidentSpawner — Feature/Residents/LF_ResidentSpawner.c, LF_ResidentDef.c (LF_ResidentsConfig spawner fields, LF_ResidentDef.m_sPrefab), Configs/Residents/LF_Residents.conf (#2858, 2026-11-18)
- A server sweep every 5 s (
CallLaterfrom the game mode) spawns each due resident on their timetable anchor when a player is withinm_iSpawnRadiusM(150 m) and despawns them when none is withinm_iDespawnRadiusM(200 m) or the line moved on;m_iMaxLive(24) caps the live count (which due residents take the slots:LF_ResidentDirector, below), each waiting resident logged once. Residents stand (no pathing, AI deactivated); the line's activity is acted on byLF_ResidentActivity(#2907, below). Ordinary replicated entity, no RPC, nothing persisted. Tests:residents/spawner(WORLD).
LF_ResidentNeeds - Feature/Residents/LF_ResidentNeeds.c, Configs/Quests/LF_ResidentNeedQuests.conf, Prefabs/Characters/Residents/Resident_Needy.et (#2862, 2026-11-18)
- A resident whose
LF_ResidentDef.m_sNeedQuestnames a quest asks a passing player for help: the spawner callsLF_ResidentNeeds.Attachafter spawn, which makes the character (theResident_Needycivilian, a quest giver) offer that quest from the need quests conf (two neutral examples: deliver a water bottle, bring three apples). Reward and pay stay in the quest definition. Turning the quest in applieshelpedto that resident's memory of the player; a resident whose memory tier of the player isrefusesanswers withLF-ResidentNeed_Refusedand hands no errand. An unknown need quest id is logged at spawn and the resident stands with no offer. The need is a fixed quest this wave; economy-driven needs are the next wave. Not saved. Tests:residents/need(WORLD).
LF_ResidentCrimeReaction — Feature/Residents/LF_ResidentCrimeReaction.c, LF_Witness.NpcKey (#2860, 2026-11-18)
- A live resident within NPC sight range (30 m) of a crime is listed on the report's witness scene as
resident:<id>(notnpc:<entityid>);LF_Witness.RecordCrimethen callsLF_ResidentCrimeReaction.OnScene, which appliescrime_seeninLF_ResidentMemoryfor each resident witness about the suspect (gossip reaches the people they know, cooldown applies). The scene is the seam, notLF_OnCrimeCommitted, which is published before the scene exists and carries no report number. A dormant (not spawned) resident is never a witness. Server only, nothing persisted here (#2861). Tests:residents/witness(WORLD).
LF_ResidentActivity — Feature/Residents/LF_ResidentActivity.c (#2907, 2026-11-18)
- A spawned resident does what their timetable line says instead of standing like a mannequin; the spawner calls
LF_ResidentActivity.Apply(entity, activity, spot)once per spawn. The body is first turned to the anchor's facing.sit: a freeLF_SitActionseat within 2.5 m of the anchor takes them (LF_NpcLoiter.Sit, the seat and pose a player's Sit uses, so late joiners see it through the base game loiter replication; the resident prefab must be a real character,SCR_ChimeraCharacter: a staticLF_NpcBaseEntitybody has no controller, so asitorloiterfor it stands with one warning);serve: they face the anchor's facing and stand behind the counter;loiter: theLF_NpcLoiterlean or smoke idle, picked by the resident's id;idleand empty: they face the anchor's facing and stand. An unknown activity idles with oneLF_Debug.Warn("Residents", ...)per name;sitwith no seat near the anchor idles with one warning. Server side, nothing persisted; a despawn frees the seat throughLF_NpcLoiter's watch.LF_ResidentActivityComponentdoes the same for a character a map maker places (m_sActivity), three seconds after the world loads. Proof: grid cellslice-r1(tools\cli look grid:slice-r1). Tests:residents/activity(WORLD).
Saint-Philippe residents (1989 pack) — addons/LF_Everon1989/Configs/Residents/LF_Residents_Everon1989.conf, Configs/Residents/Npcs/ (#2906, 2026-11-18)
- The 1989 pack's overlay removes the core's two example residents and adds seven named ones: the café owner (Odilon Marchand), the old man (Gaspard Lenoir), the night-shift worker (Rémi Duval), a bank teller, a store clerk and two relocated neighbours (the Carons, who live at the hostel). All seven are real CIV characters, so they can sit and lean (#2948): the three townsfolk are the
Configs/Npcs/LF_Npc_Townsfolk_*prefabs rebuilt onCharacter_CIV_baseLoadout(same names, roletownsfolk, place ids, outfits and Talk dialogue; the Talk action is added to the character's inheritedActionsManagerComponent), the teller, clerk and neighbours are inConfigs/Residents/Npcs/, all dressed from theNpcOutfits/presets. A live resident is never settled by their role:LF_NpcLoiter.Settlereturns for a characterLF_ResidentSpawner.ResidentIdOfknows, so thetownsfolkrole cannot sit a serving resident (the timetable line owns them). Proof: pack grid cellslice-2948shows all seven at their activity (toolscli look grid:slice-2948). Testeveron/residentsalso spawns each resident prefab and checks it is aSCR_ChimeraCharacter. Homes and workplaces are pack place kinds (House,HostelBed,CafeTable,BankCounter,StoreCounter,FuelTill,ParcelDepot); each day uses thecounter,benchanddooranchors and theserve,sit,loiterandidleactivities. Names are packLF-Resident_<id>_Namestrings. Tests:everon/residents(pack leg).
LF_ResidentTalk — Feature/Residents/LF_ResidentTalk.c, Configs/Dialogue/LF_Dialogue_Resident.conf (#2908, 2026-11-18)
- Talking to a live resident opens on the greeting for how they feel about you:
LF_Dialogue.StartasksLF_ResidentTalk.StartNode, which reads the memory word (refuses,wary,neutral,friendly,regular) and opens on the nodegreet_<word>. A regular is greeted warmly; a resident who saw you steal says "I've nothing to say to you." and the talk ends. A pack tunes one resident with a node<residentId>_greet_<word>in its dialogue patch. A dialogue with nogreet_<word>nodes (the three townsfolk's own) greets as before. The client gets only the node and line ids; the word and score stay on the server. Not done: the townsfolk's pack dialogues and the generic CIV residents do not usedialogue "resident"yet. Tests:residents/resident-talk(WORLD).
LF_ResidentWalk — Feature/Residents/LF_ResidentWalk.c (#2909, 2026-11-18)
- A live resident whose timetable line moves to another place or anchor no longer pops. The spawner asks
LF_ResidentWalk.Movefirst: with a player within 50 m of the resident, a new spot within 120 m and fewer thanm_iMaxWalking(4, conf) walking, the resident gets up from their seat, their AI is switched on for the walk (one vanillaGroup_Basewith oneAIWaypoint_Move, completion radius 1.5 m, group character speed capped toEMovementType.WALK) and they walk; on arrival the AI is switched off and the new line's activity starts. With nobody near (or too far, cap reached, or a world with no AIWorld) but a player within the despawn radius of the new spot, the body is moved there directly; with nobody near either end the spawner despawns them as before. A walk not arrived afterdistance / 0.9 m/s + 20 smoves the body onto the spot and logsLF_Debug.Warn("Residents", ...). Server only, nothing persisted; walkers are ordinary replicated characters, so a late joiner sees them. - Limit: the AI needs an AIWorld. GridWorld and Everon1989Town have none (
docs/features/events.md), so there residents are placed, not walked; CoreOnEveron and MainWorld (the island) have one. On the island no resident moves yet for a different reason (#2996): every timetable line with aHouse,CafeTable,FuelTillorStoreCounterplace is dropped at load (LF_Placesknows no such place there), so the one line left, the teller at the bank counter, never changes anchor. The tests use a stand-in mover; the real AI walk is a manual step (below), and the grid proof cell moves to a follow-up card. - Tests:
residents/walk(WORLD).
Saint-Philippe fuel station: the fuel slot (1989 pack) — tools/town/kits/fuel.json, MainWorld_Layers/Place_saint-philippe_fuel.layer (#3009, 2026-11-18)
- The island has a
FuelTillplace, sonight_shift's work lines resolve. The slot is the vanilla fuel-station shop b107 beside the south-east road (FuelStation_E_01_building, already furnished with a counter and register at its far end). The kit adds the meshless attended tillLF_FuelTill_Attended.eton the register's own spot (the robbery hold and thefuel_clerkdialogue find it,docs/features/crime-police.md), the fuel clerkLF_Npc_FuelClerk_1behind the counter, and two bareLF_ResidentAnchorComponententities:counterbeside the clerk (the night-shift attendant stands there from 20:30, the clerk stays, so two people serve at night) anddooron the forecourt by the street door. The marker isFuelTill(idsaint-philippe.fuel). - Alarm box (#3072, stacked on this draft): the kit adds the vanilla small electricity box with
LF_AlarmMountComponent(reach 10 m, the bank and clothing-store pattern) on the shop's back wall (-z) at the counter end, 2.3 m up, 1.9 m from the till. A robbery of the till (m_sAlarmKind "fuel", already set onLF_FuelTill_Attended) stands thefuelsite alarm on that box instead of on the first surface under the till (LF_Dispatch.StartAlarm). The wall seat needs the row's yaw 0 (facing into the room) and a spot clear of the partition at local x -2.4. Manual: rob the till and listen from inside; the beacon sits on the box. - Limit: the kiosk b97 beside the shop is left as is.
Saint-Philippe café: the cafe slot (1989 pack) — tools/town/kits/cafe.json, MainWorld_Layers/Place_saint-philippe_cafe.layer (#3009, 2026-11-18)
- The island has a
CafeTableplace, socafe_owner's work lines resolve. The slot is the vanilla village pub b03 (PubVillage_E_2L01_V8_ProgresBar, the one with the wall sign): it already has its own bar, tables, chairs and kitchen, so the kit adds no furniture. It adds theCafeTablemarker (idsaint-philippe.cafe) and two bareLF_ResidentAnchorComponententities (the vanilla pub frame is the kit frame):counterbehind the bar, where the owner serves facing the room, anddooron the pavement outside the street door on the building's right side, where the owner loiters between rounds. The owner's home lines still need theresidentsslot (aHouseplace). - The till (#3063, 2026-11-18, stacked on #3009's draft): the pub's bar has a till a player can buy at. The kit's
cafe-tillrow isLF_Everon1989/Prefabs/Props/Commercial/LF_CafeTill.et, a mesh-less entity standing on the pub's own vanillaCashierShop_01(local -5.345 1.018 -4.734), so the visible register is the real one and nothing floats. It carries anLF_ShopComponenton the pack'scafestock (Configs/Shop/LF_ShopStock_Everon1989.conf: water $3, apple juice $6, a bottle of beer $9, crackers $4, an apple $6 (was $2, a loop against the market, fixed 2026-11-18), dried meat $12; these prices are the cafe's own, the core price table is not touched) with the action Order food and drink, and anLF_RobAction(alarm kindshopbell, $120, 600 s between robberies, no police needed). The shop has no shelf stock (an unlimited bar).town checknow wants anLF_ShopComponentin aCafeTableslot (BACKED_KINDS), like the shop slots. Testeveron/cafe-till(pack leg). Tooling: a stacked follow-up branchws/town-draft-<place>-<slot>-<word>may change its base draft's slot layer and is not blocked by that draft's claim (guardIslandLayers,claimOfBase). Theshopbellalarm kind is in main (#2727); this draft branch needs main merged in for the bell to sound.
Saint-Philippe homes: the residents slot (1989 pack) — tools/town/kits/residents.json, MainWorld_Layers/Place_saint-philippe_residents.layer, agent-box/proofs/resident-island-proof.mjs (#3001, 2026-11-18)
- The island has a
Houseplace, so a resident's home lines no longer drop. The slot is the town house b15 beside the town hall (mappingresidents, optional): theHousemarker (idsaint-philippe.residents, one shared home for the whole cast), adooranchor on the doorstep and abenchanchor in front of two street benches (four seats, so up to four residents sit at once; the door has one spot, so residents who stand there at the same time overlap). The anchors are bare entities withLF_ResidentAnchorComponent(no mesh, no body: the prefabLF_ResidentAnchor.etinherits a physical traffic cone). Under the island header no resident is refused: cafe_owner, night_shift, store_clerk and neighbour_anselme keep only their home lines until their workplace exists (CafeTableandFuelTillhave no slot or kit yet,StoreCounterandParcelDepotcome with the general-store and parcel drafts), the teller walks between the bank counter and the house. The two neighbours' home kind isHousehere (it wasHostelBed, which no slot places yet; move them back when the hostel slot lands). The bank and the other work places have nocounteranchor yet, so a resident stands at the place origin with oneResidentswarning. Proof:harness.mjs proof resident-island-proofin asession up --mission islandsession (the teller's walk read from the server console).
Residents you can talk to (#2998, 2026-11-18)
- The neutral civilian a resident spawns as when their config names no prefab (
Prefabs/Characters/Residents/Resident_Civilian.et,LF_ResidentSpawner.DEFAULT_PREFAB) and the four generic pack residents (teller, store clerk, the two neighbours:Configs/Residents/Npcs/LF_Resident_*.et) carry anLF_DialogueComponent(dialogueresident) and the Talk action on the inheritedActionsManagerComponent, so a player can speak to them. They open on the memory word's greeting (#2908). The three townsfolk (old man, cafe owner, night-shift worker) already had Talk (#2979); their pack dialogues gaingreet_refuses,greet_wary,greet_friendlyandgreet_regularnodes (text-only lines, pack stringsLF-Dialogue_<Name>_Greet<Word>) so their opener follows the player's standing; neutral keeps the dialogue's owngreet. Refuses has no replies; wary offers only goodbye. Tests:residents/civilian-talk(WORLD),everon/resident-talk(WORLD, pack leg). Needs a session check: neutral greeting, then friendly after ahelpedaward, then the refusal aftercrime_seen(no harness verb awards memory to a spawned resident yet).
LF_ResidentShopTerms — Feature/Residents/LF_ResidentShopTerms.c, LF_ShopRefusal.RESIDENT_REFUSES (#2911, 2026-11-18)
- When the clerk of a shop is a live resident (on a
workline at thecounteranchor, within 5 m of the shop entity), the clerk's memory word for the buyer sets the terms:regularpaysm_iRegularDiscountPercent(default 10) less per unit,refusesis turned away with "Not to you." (#LF-Shop_RefuseResident) and no money or item moves. Server only: onemodded class LF_ShopComponentasks inBuyand prices throughGetBuyPricewhile the buyer's word is set;LF_ShopPriceResolveris untouched. The discount never goes under what the same shop pays for the item (no profit loop, #686) and never under 1. A shop with no resident clerk sells as before. The price list shows base prices; the till slip shows what was charged. The percent has no.confyet (field default). Tests:residents/shop-terms(WORLD).
LF_ResidentDirector — Feature/Residents/LF_ResidentDirector.c (#2910, 2026-11-18)
- With more residents due than free live slots (
m_iMaxLiveless the live count), the spawner no longer takes the first by id: it handsLF_ResidentDirector.Pickthe due residents (each with its timetable line and resolved anchor spot), the player positions and the free slots, and spawns the ids it returns, best first. A counter worker (aworkline on thecounteranchor) within 15 m of a player ranks first; everyone else ranks by horizontal distance to the nearest player; ties go to the lower id. The place a player stands in is filled before one they cannot see. A resident the cap still holds back is logged once (LF_Debug.Warn("Residents", ...)) as before. Pure rules: no entity, world or state; the spawner calls it from one place inSweepAt. Server only, nothing persisted. Tests:residents/resident-director(LOGIC).
Harness target by resident id (#3650, 2026-11-19)
- The agent harness names a spawned resident
Resident_<id>(LF_ResidentHarness, aLF_ResidentSpawner.GetLivelookup):stand Resident_night_shiftstands beside them,use LF_DialogueTalkAction Resident_night_shifttalks to them and never to a neighbour. Not live:entity_not_found(stand) oraction_not_found(use), oneResidentswarning. A client-local action (the talk) takes the nearest host on the client, so the proof stands beside the resident first.agent-box/proofs/dirty-money-island.mjsstep 3 uses it. Testresidents/harness-name(LOGIC); the live path is the island proof.
The church is open and kept (#3238, 2026-11-19)
- Saint-Philippe's red church b07 (its crypt b08 stands at the same spot) is the slot
church: a fittedChurchplace marker (saint-philippe.church,LF_FittedBuildingComponent, indestructible, D15), three candle holders and two flower pots at the altar end, one by the door, and abenchresident anchor in the nave, so a resident line that sayssitcan place someone there later. LayerPlace_saint-philippe_church.layer, kittools/town/kits/church.json. The wayside chapel b122 (slotchapel, #3894) was rebuilt through the grid (town author chapel --from saint-philippe/chapel,town stamp chapel):Chapel_01_basehas a 2.8 m square nave with the altar block on the back wall, so the kit is two church pews along the side walls facing a 1.1 m centre aisle (a 2.13 m pew is as long as the nave allows; no cross-nave rows fit), a candle holder in each gap beside the altar, a flower pot each side of its front, apriestanchor in front of the altar (the memorial rite spot) and thebenchanchor on the west pew. Prop rows carry +0.031 m over the grid heights (the island floor sits about 3 cm higher). The second chapel di:b17 (slotchapel-pink) is mapped with the same kit but a different prefab, so it waits for its own fit card (one island slot per branch). No resident timetable line uses the anchor yet.Churchis in no system'sm_aPlaces, sotown checkwarns it; nothing reads the kind yet.
Resident home as one named house (#3231, 2026-11-19)
LF_ResidentDef.m_sHomePlaceId(optional) names theLF_Placesid of the one house of the home kind the resident lives in, so five residents can live in five houses. Empty keeps the nearest place of the kind. An id no live place holds logs oneResidentswarning and falls back to the nearest. Home lines carry it inLF_ResidentSlot.m_sPlaceId;LF_ResidentAnchors.ResolveIn(kind, placeId, anchorId, near, spot)resolves it (the spawner and the walk call it;Resolveis unchanged). Work lines still pick the nearest. TestLF_Test_ResidentHomePlaceId.
Resident homes: one named house each, with a name plate (1989 pack) — tools/town/residenthomes.mjs, MainWorld_Layers/Homes_saint-philippe_resident.layer, Configs/Signs/LF_Signs_Everon1989/LF_Signs_ResidentHomes.conf (#3233, 2026-11-19)
- The cast no longer share one house.
tools\cli town residenthomes saint-philippe(from aws/town-draft-saint-philippe-*worktree) gives b17 (Gaspard Lenoir), b117 (Rémi Duval), b50 (the bank teller) and b09 (the store clerk) each a house marker that is also anLF_PlacesHousewith its own id (saint-philippe.home.<resident id>), adoorresident anchor on the doorstep and a brass name plate on the entrance wall (LF_Sign_PlateSmall, brass colours, title from the pack table: "M. G. Lenoir"). The markers have no owner and no key, so the doors stay locked to players for good (the Private lock marker of those four buildings is dropped,resident-homes.jsontellstown locks); residents are AI. b15 (Odilon Marchand) keeps the residents slot's own House and marker and only gains a plate. The pack overlay names each resident's home bym_sHomePlaceId(#3231); the two neighbours stay on the shared house. Proof:town doors saint-philippe --plannedlists the four as house-carried;node tools/town/residenthomes.selftest.mjs. The teller's and the clerk's names (Mme C. Girard, M. P. Roche) are new.
A resident on a walk passes a locked house door (2026-11-19)
- An ownerless house marker (the four resident homes, #3233) refuses every player at its doors, and the server refused the resident AI the same way: a resident whose home anchor sits inside the house (the marker's origin, no bench anchor) never got out, and a 97 m walk from the teller's home timed out 14 m from the door.
LF_BuildingLocks.ReasonFornow returns no reason for a body inLF_ResidentWalk(IsWalkingBody), so the AI opens the doors on its path; players, and residents that are not walking, stay locked out. Test:LF_Test_ResidentLockedDoor. - Each resident home but b15 (the generator's
town residenthomes) also gets abenchanchor outside, 3.2 m out from the plate and 1.5 m to the side, so a resident's bench lines (09:00 to 12:00 for the old man) stand on the street side instead of at the marker origin inside the house. On 2026-11-19, with only the locked-door fix, Gaspard left his house at 06:30 (11 m todoor, arrived after 10 s) but the teller's 17:00 walk home from the origin of her house timed out (had not arrived after 34 s; moved to the anchor); with the bench anchors her 17:00 walk todoorarrives after 1 s and Gaspard's 09:00 walk tobencharrives after 1 s. Asitline there idles (no seat near the anchor). - Plates on the street side (#3887, 2026-11-21): the generator takes a wall spot only when no shell wall of the house stands within 10 m in front of the plate (three horizontal rays: straight out and 40 degrees either side) and the plate is clear of every probed door's swing and walk-up (
tools/town/probes/doors-saint-philippe.json), sliding along the wall and then trying the other sides otherwise. b09's plate had hung 3.7 m inside the house, over the kitchen sink, because the ray from the doorstep went in through the doorway; it now hangs on the outside wall between two windows (its door and bench anchors moved with it).node tools/town/residenthomes.selftest.mjsjudges every committed plate against its real shell.
Evenings in Saint-Philippe (1989 pack) (#3180, 2026-11-19)
- After 19:00 the cafe is no longer empty: the cafe owner stays at the counter serving until 22:30, and two neighbours (Marius from 19:00, the old man from 19:30) sit at the cafe (work place kind
CafeTable, anchorbench) until 22:30, then go home. The cafe radio plays 07:00 to 22:00 and the square radio 20:00 to 02:00, so some radio plays every hour from 07:00 on. The night-shift worker keeps the fuel till all night. Test: pack-legLF_Test_EveronEvening(LOGIC, reads the builtLF_ResidentTimetable). The cafe'sbenchanchor and a seat for the two came with #3707 (below). - The cafe bench (#3707, 2026-11-19): the cafe kit now has a street bench (
LF_Seat_BenchStreet_01_green, two sit places) on the front garden beside the street door and abenchresident anchor in front of it, so the two evening neighbours sit there (the pub's own chairs are plain props with no sit action, and the pack'sLF_Seat_Chair_01_*has no action manager on the server, so a chair row finds no seat). Watched in an island session (node agent-box/session.mjs resident-cafe-evening-proof [out]): at 21:00 both stand beside the anchor and sit on the two places, and after 22:30 both walk home (the old man 64 m to his house bench, Mireille 35 m to her door). Two core bugs it found:LF_ResidentWalk.Placemoved a character withSetWorldTransform, which leaves a resident where they stand (a placed resident, and a walker that timed out, never reached their anchor), so it now callsSCR_ChimeraCharacter.Teleport; and because a teleport lands a frame laterLF_ResidentActivity.Applylooks for thesitseat around the anchor (LF_NpcLoiter.FindFreeSeatAt), not around the body, or a resident sent to a new anchor sat on the seat they had just left. Test:LF_Test_ResidentActivity(far-anchor case).
Hugo Valmy, the shipment's go-between (1989 pack) (#3804, 2026-11-19)
- Hugo Valmy (
shipment_go_between, story sheet #3438 "Arc 3") is the eighth Saint-Philippe resident: a dark-suited man in a flat cap (Configs/Npcs/LF_Npc_Townsfolk_ShipmentGoBetween.et, aCharacter_CIV_baseLoadoutcharacter with the Talk action, dialogue idshipment_go_between). His row is its own overlay file,Configs/Residents/LF_Residents_Everon1989/LF_Residents_ShipmentGoBetween.conf(the folder beside the pack overlay, so no shared file is appended to): home kindHouse(the sharedsaint-philippe.residentsplace), work kindCafeTable(the village pub). His day: 07:30 smoking at the home door, 10:00 on the home bench, 12:30 seated on the pub bench, 15:00 loitering at the pub door, 17:30 back on the pub bench until 23:30, when he goes home. Name keysLF-Resident_shipment_go_between_NameandLF-Townsfolk_ShipmentGoBetween_Name. Talk: seenpc-dialogue-scenes.md. Testeveron/shipment-go-between(pack leg). Not done: the pub bench and door anchors exist only where the cafe slot places them, so on a world without the cafe his work lines are dropped like the other pub residents'.
One spot, one character (#3831, 2026-11-19)
- 🧪 Nobody spawns inside another character.
LF_NpcSpots(Feature/Npc) is asked by every spawner (residents, scene walkers, workplace NPCs, illicit buyers): it returns the wanted spot when no character stands within 0.8 m, else the nearest free spot (one step out, eight directions, up to three metres). A resident due on asitanchor still takes a free seat first; a scene's walkers that arrive on a resident are settled off it; a log line[LFDebug:Npc] ... somebody already stands at ...says when a spot was moved. Tests:LF_Test_NpcSpots(npc/spots). - 🧪 The data side is
validate-npc-spots(tools/lib/npc-spots.mjs): it reads every host, resident timetable line (minute by minute) and scene spawn marker of the flagship world and fails when two that can be live together lie within 0.8 m, and when more residents sit at one bench anchor than it has seats.node tools/validation/validate-npc-spots.mjs --reportlists every spot. The cafe gotdoor2todoor4anchors beside the existing ones and the newsagent acounterand adooranchor so each resident has a spot of their own. - 🧪 A resident spawns with their feet on the floor (#3885):
LF_ResidentSpawner.OnFloortraces down (every layer; characters, trees and loose items are not floor) from 0.5 m over the spot, 2 m deep, afterLF_NpcSpotspicked the free spot, so an anchor written 0.4 m high no longer hovers and a ring spot beside a step lands on its own floor. No floor in reach keeps the anchor height with oneResidentswarning. Two residents due on one anchor stand at least 0.5 m apart on the floor. Tests:residents/spawn-spot(WORLD). - 🧪 A walking resident ends on the floor too (#3912):
LF_ResidentWalk.Movetakes the destination throughLF_ResidentSpawner.OnFloorafterFreeSpot, as the spawner does, so an anchor written at another height no longer walks the body to a spot in the air or under the slab. Testresidents/walklifts the home anchor 0.4 m and checks the order points at the floor. Merged, in-dev.
LF_RumorPool — Feature/Residents/LF_RumorPool.c, Configs/Residents/LF_Rumors.conf (#4231, 2026-11-23)
- Rumors are rows tied to a map place (
LF_RumorDef: id, place id, line key, crime flag, optional givers, live conditions).LF_RumorPool.Offers(characterId, giver, tier, state)lists the rows that giver may tell now: the place is still unknown to the character (neither heard of nor visited inLF_MapKnown), the giver is listed (or the row lists none), and every live condition holds in the caller'sLF_RumorState(!xneedsxfalse). A crime row (N32) also needsfriendlyorregularfrom the resident memory word and a giver in the config's crime givers (bar,informant); a shopkeeper never gives one.Pick(offers, seed)chooses by modulo;Tellrecords the place as heard of on that character's own map only, so crime places never reach the public map. The core ships no rows (rumors name places, a pack's business); the 1989 rows and the "Heard anything?" action come with W5.2 to W5.4. Tests:residents/rumor-pool(LOGIC).
The square cast: two gossips and an evening gendarme (1989 pack) (#4228, 2026-11-23)
- 🧪 Three residents join Saint-Philippe in
Configs/Residents/LF_Residents_Everon1989/LF_Residents_Square_Everon1989.conf(a folder overlay of the residents overlay, so the mission header stays untouched). Odile Ferrand (gossip_odile) and Colette Brisset (gossip_colette) are older women in a raincoat and knit hat (outfit presetsConfigs/NpcOutfits/LF_Outfit_Gossip_Odile.confgreen and brown,LF_Outfit_Gossip_Colette.confyellow and blue; bodiesConfigs/Residents/Npcs/LF_Resident_GossipOdile.etand...GossipColette.et). By day both sit on the café's street bench on the square (work kindCafeTable, anchorbench, two sit places): Odile 09:30 to 12:30 and 15:00 to 17:30, Colette 10:00 to 12:30 and 15:00 to 17:30, so they share it five hours; each goes home between the sittings (the go-between has the bench 12:30 to 15:00). The gendarme (gendarme_bank_beat, Brigadier Lucien Carrel: the existingLF_Gendarme_1.etbody and its voicedgendarmeconversation) is at home by day, looks in at the bank at 12:30, and walks the bank beat (work kindBank) from 17:30 to 21:30, alternating thedooranddoor2anchors every 45 minutes. - Homes: each of the three lives at one of the cast's locked houses (
night_shift,teller,store_clerk) on the anchor and in the hours that owner leaves free, sovalidate-npc-spotsfinds no two on one spot. The gossips have no talk component yet: every line a player hears has a recording, so their talk and voice clips (a distinct voice each) arrive together with W1.4. The bank has nodoorordoor2anchor placed yet (W1.6, the town card); until then the gendarme stands at the bank's place origin and the resident anchors log one warning. - Test:
everon/residents-square(pack leg, WORLD): the three resolve, bodies spawn dressed, outfits load, days are valid, the gossips share the bench for at least four hours and the gendarme walks at least three evening hours.
LF_ResidentWorkLoop — Feature/Residents/LF_ResidentWorkLoop.c (#4230, 2026-11-23)
- 🧪 A generic worker carries, hammers or sweeps instead of standing still, in a body pose that reads as the job (#4382).
hammerbends over and strikes down with both hands: the vanilla build-tool clips (p_erc_supplies_demolitionUS_low_*) in our anim set instanceLF_WorkHammer.asion the lockpick's work graph (LF_WorkPick.agr,LF_WorkAnim).carryandsweephave no vanilla clip that reads as either (the rally emote's cardboard hold carries a stale GUID in the game's own anim set and does not load), so they play the base game's plain idle loiter, never a hand signal. The pose is a loiter, so the base game shows it on every client and to late joiners; a 1 s tick starts it again if it ended by itself.LF_ResidentWorkLoop.Begin(entity, activity)starts it,PoseOf(activity)names the job's pose (empty for the idle loiter),Stopends it; a dead or deleted body leaves the loop. A placed character gets it fromLF_ResidentWorkLoopComponent(attributem_sActivity).LF_ResidentActivity.ApplycallsBeginfor those words (#4366); a new line,Release(a walk) or a despawn callsStop; a static NPC body warns once and stands. Testsresidents/work-loop,residents/work-apply(WORLD). Seen in a full-profile session (grid cellresident-work). No tool in hand yet: the base game has no hammer prop, and its broom (Broom_01) waits for a sweep pose. - Not wired yet: the timetable word is still unknown to
LF_ResidentActivity.Apply(it idles with one warning); wiring it is the next card, because that file is outside this card's owned files. Testresidents/work-loop(WORLD) covers the cycle rule and one worker. Merged, in-dev. - 🧪 Opening-hours plates from the keeper's timetable (#4236, 2026-11-23, merged, in-dev). A shop door plate never holds its own hours:
LF_HoursPlate(Feature/Signs/LF_HoursPlate.c) reads the minutes a resident's built timetable saysworkand writesOPEN 6 AM - 2 PMin US 12 h time (half hours kept, a split shift prints both spans, a shift across midnight is one span, a keeper always at the counter readsOPEN 24 HOURS, a keeper who never works has no plate). The local sign row sourcehours_plate(LF_HoursPlateSource, no server ask) finds the keeper whose work place kind stands within 15 m of the sign and prints one row (#LF-HoursPlate_Openand the span text), so editing a timetable changes the plate with no sign edit. No prefab names the source yet: the W2.7 placement card puts the plates on Saint-Philippe doors. Testsigns/hours-plate(LOGIC): the plate and the timetable agree on every minute of the day.
LF_ResidentForeman — Feature/Residents/LF_ResidentForeman.c, LF_Everon1989/Configs/Residents/LF_Residents_Everon1989/LF_Residents_Sites_Everon1989.conf (#4237, 2026-11-23)
- 🧪 Bruno Faure (Coalman's Brow mine) and Lucien Maury (Everon sawmill) answer "What does my level open next?" with a recorded line that follows the player's level in the foreman's trade.
LF_DialogueHook_ForemanNext(param: the trade id,MINERorLUMBERJACK) reads the server'sLF_JobLevelslevel, finds the next row of the pack'sLF_TradeUnlockstable above it and speaks the caption keyLF-Foreman_<trade>_Next_<level>(a voiced line per level, 2 to 30, each foreman in his own voice); past the last row the key ends_Next_Top. - The core knows no trade or site:
LF_ResidentForeman.NextLevel/KeyFor/KeyForPlayerare pure over the unlock rows. Dialoguesforeman_coalmans_browandforeman_sawmill(tools/assets/dialogue/), outfit: hard hat, denim jacket, dark brown trousers. - A foreman stands at his site all day (
m_sHomeKindWorkplace,m_sHomePlaceIdthe site's place id: a work kind alone would pick the nearest of every Workplace). They are placed with no town edit; the stand-in spot is the place origin until the town pass (W4.9) puts an anchor on the site board. - Not wired yet: the "heard of" map mark the plan lists for the unlock's place needs a place id per unlock row; that is a data card on the unlock table.
- Proof:
residents/foreman(LOGIC).
Site foremen in the everon/residents test (guard fix, 2026-11-23)
- 🧪 The pack test
everon/residentstreats a site resident (home kindWorkplace, a place id, no anchor: the two foremen of #4237) as its own group: the Saint-Philippe cast of six to twelve counts town residents only,Workplaceis an allowed home kind, and an empty anchor is allowed only for a site resident (it stands at the site's place origin). The foremen gotLF-Resident_foreman_*_Namerows in the pack table.playtest-town/parity-datanow passes with one assertion under a header with no config overlays, as its comment already promised; on the town header it checks as before.