Docs · Engineering reference
Events
docs/features/events.mdEdit on GitHub
LF_EventWaypointComponent — Feature/Events/LF_EventWaypointComponent.c (#1954, 2026-11-16)
- ⚠️ Markers only, no event runs on them yet: a placed scene marker with a scene id, a role (waypoint, spawn, target) and an order. It registers in
LF_Places(event_waypointandevent_spawnas<scene>#<order>,event_targetas<scene>), so an event names a scene by id and core holds no coordinates.FindWaypointsandFindSpawnsreturn the scene's markers lowest order first (a gap keeps the order);FindTargetreturns the one target. A marker with no scene id, or a negative order, is logged ([LFDebug:Events]) and not registered; a second marker with a taken order is refused byLF_Places. PrefabsPrefabs/Systems/Events/LF_EventMarker_{Waypoint,Spawn,Target}.et; test routegrid_event_scene(four waypoints, two spawns, a target) in grid cellevent-scene. Tests:events/waypoints(WORLD).
Events
LF_EventDef, LF_EventPhase, LF_EventPhaseRules — Feature/Events/ (#1948, 2026-11-16)
- ✅ An event is config: an id, ordered named phases (cadence, idle timeout, module ids) and a cooldown; pure rules advance a phase when its conditions hold, end the event on an abort, an idle timeout or the last phase, and a cooldown blocks a restart until it runs out. Ticked by the shell (#1950) and saved by phase name (#1951). Tests:
events/phase-rules(LOGIC).
LF_EventOverlay — Feature/Events/LF_EventOverlay.c (#1952, 2026-11-16)
- ⚠️ A pack's event config (root
LF_EventsConfig, listed in the mission header'sm_aLF_ConfigOverlays) adds, replaces, patches or removes an event by id, with the shared override verbs (m_sOp). A patch changes a phase timing by phase name and keeps every field it does not set;removedisables a core event. Unknown ids and a duplicate add are refused and logged, the rest of the overlay applies. No shell reads the list yet (#757). Tests:events/pack-overlay(LOGIC).
LF_EventSceneWalk — Feature/Events/LF_EventSceneWalk.c (#1956, 2026-11-17)
- ⚠️ Logic proven, real AI walk not yet seen in play:
Begin(crew)resolves the plan's waypoints in order plus the scene target and, in a world with an AIWorld, spawns one vanillaGroup_Basewith anAIWaypoint_Move(completion radius 3 m) on every route point in order; each walker joins the group as its stagger spawns it (ActivateAI,AddAgent), so the formation walks them as a loose group. Progress is read from positions: a waypoint counts as passed within 3 m or once the walker is nearer the following point; a walker arrives only after passing every waypoint and coming within 3 m of the target. A walker with no progress along the route for 20 s, or still walking when the plan's walk timeout ends, times out ([LFDebug:Events] ... timed out) and is removed once no player sees it. Without an AIWorld nobody is driven (logged). One walk at a time; a world reset drops it. The scene operation (#2137, below) calls it afterLF_EventSceneSpawn.Start. Tests:events/scene-walk(WORLD, grid cellevent-scene, the test moves the walkers).
LF_EventSceneSpawn, LF_EventSceneCrew — Feature/Events/LF_EventSceneSpawn.c (#1955, 2026-11-17)
- ✅
Start(plan)spawns a plan's walkers at the scene's spawn markers (round-robin, lined up sideways), each in an outfit of the plan's role (LF_Roles.PickOutfit, stable per scene and index) or in a{GUID}pathoutfit, on their stagger, plus an empty parked vehicle by prefab slot beside the first marker (never driven).TryDespawn(crew)removes the walkers and the vehicle and frees the scene slot only when no player within 400 m has a clear line to any of them; otherwise it logs and returns false for the caller to retry.FreeAiSlots()readsAIWorld.GetLimitOfActiveAIs() - GetCurrentNumOfActiveAIs()(0, logged, in a world with no AIWorld). Walking the route and the shell module that calls it are not done here. Tests:events/scene(WORLD, grid cellevent-scene). - ✅ (#1754) The parked vehicle is proven:
m_sVehicleSlottakes a prefab slot id (#964) or a{GUID}pathprefab (LF_EventSceneSpawn.VehiclePrefabFor, asm_sRoletakes an outfit; no core slot names a vehicle). The vehicle spawns empty 5 m beside the first spawn marker, counts as a scene entity, holds the despawn while a player sees it and is removed with the walkers. A slot that resolves to nothing is logged and the walkers spawn without it. Tests:events/scene-vehicle(WORLD, grid cellevent-scene).
LF_EventScene, LF_EventScenePlan, LF_EventScenePlanner — Feature/Events/ (#1953, 2026-11-16)
- ✅ A scene is data: placed waypoint ids in walking order, an NPC count, a role or outfit, spawn stagger, walk timeout, despawn delay, an optional dialogue id per NPC and an optional parked-vehicle slot. The pure planner keeps the configured waypoint order, trims the count to a hard cap (12), skips the scene with a logged reason when the free AI budget cannot hold every walker, and refuses a second scene while one runs (a world reset drops the running scene; a restart does not resume it). The shell (#757) will read the free AI budget and call it; nothing spawns yet and no phase carries a scene yet. Tests:
events/scene-plan(LOGIC).
LF_EventPrecondition, LF_EventAbort, LF_EventContext — Feature/Events/ (#1949, 2026-11-16)
- ✅ Condition modules (AND-ed) hold a phase until the in-game hour is in range (may wrap midnight), enough players are online or nearby, and a cooldown since the event last ended is over; abort modules (OR-ed) end the event on an hour window, too few players online or nearby, or a phase that lasts too long. Pure over a measured
LF_EventContext; the shell (#757) fills it and feedsLF_EventPhaseRules.Decide. Tests:events/preconditions(LOGIC).
LF_EventShell, LF_OnEventPhase, LF_EventOperation — Feature/Events/LF_EventShell.c, LF_EventsEvents.c (#1950, 2026-11-16)
- ✅ The server shell loads
Configs/Events/LF_Events.confat game start and ticks every event once a second on the call queue. A phase'sm_aModulesnames condition, abort and operation modules registered by id (LF_EventShell.RegisterCondition|RegisterAbort|RegisterOperation); operations run in order at the phase's cadence and an acting one restarts the idle clock. An idle event starts when its first phase's conditions hold (they are the start gate), thenLF_EventPhaseRulesadvances or ends it. An event runs only withm_bEnabledset: off by default, and the coreexampleships off, so a live server runs nothing until a pack patch or its own event turns one on. Events come fromLF_EventOverlay(core plus pack overlays; a patch may setm_bEnabled). Each change logs[LFDebug:Events] event <id> start|advance|end, publishesLF_OnEventPhase(kind start/advance/end, reason done/abort/idle) and is broadcast to clients by RPC on the game mode (LF_EventPhaseBoard.PhaseOfon the client). An unregistered module id is logged once and holds the phase. Run state survives a restart by phase name (#1951, below); PLAYERS_NEARBY counts the players near the event place once one is bound (#2105, below); a late joiner gets the running phases from the JIP snapshot (#2106, below). Tests:events/shell(WORLD).
LF_EventPlace — Feature/Events/LF_EventPlace.c (#2105, 2026-11-17)
- ✅ An event has a place:
LF_EventPlace.Bind(eventId, sceneId, radius)names the scene whoseevent_targetmarker (#1954, found by component throughLF_Places, never by coordinates) is its centre, with an optional per-phase radius (BindPhaseRadius). The shell counts the connected players within that radius on the server at each tick, so aPLAYERS_NEARBYcondition can hold and aNEARBY_BELOWabort fires only when the place is empty. An event with no place, or whose marker is not placed, counts 0 and logs one[LFDebug:Events]warning. The binding is made in code by whoever owns the event; the event config has no place field yet. Tests:events/players-nearby(WORLD, grid cellevent-scene).
relocated_arrival — pack Configs/Events/LF_Events_Everon1989.conf (#1957, #2137, 2026-11-17)
- ⚠️ Wired, not yet placed in town: the flagship's dawn arrival (#1015 beat 1, no bus) is a pack event added through
LF_EventOverlay(#1952, listed in the Everon header). Phasedawnwaits for the modulerelocated_arrival_dawn(LF_Condition_RelocatedDawn.conf, hour range 05:00 to 08:00), phasewalkrunsrelocated_arrival_scene(LF_Scene_RelocatedArrival.conf: six walkers over placed waypointsrelocated_arrival#0..#3to the scene's target). The overlay'sm_aModuleslists both, so the loader registers them at game start (#2137). The walkers are the pack prefabsLF_Walker_Relocated_{Coat,Cardigan,Shirt}.etin turn: a vanilla AI civilian (Character_CIV_baseLoadout) dressed in the matching outfit preset, each with the base-gameSuitcase_01in aRightHandPropslot (LF_Prop_SuitcaseCarried.et: physics, destruction and replication off; slotAngles 0 0 -180so the handle is in the right hand and the case hangs below it, #2161). Cooldown one day.m_bEnabled 1on the flagship (the island arrival layer with the spawn marker, waypoints and target is on main, #3088, #3112); the event fires at dawn and its walkers spawn ~35 m from the player spawn, so the scene's sight check may skip a spawn while a player stands there. Tests:everon/arrival-event(pack leg, WORLD).
square_evening — pack Configs/Events/LF_Events_Everon1989.conf (#3181, 2026-11-19)
- ✅ Markers placed (#3395, walk fixed #3724):
Place_saint-philippe_square-evening.layerholds three spawn markers at lane ends (east and west on r05, north on r23), three waypointssquare_evening#0..#2clustered within 11 m of the target (east edge, middle, beside the target; #3724), and the target beside the east benches (claimsaint-philippe-square-evening.json; markers within 25 m of the pub, church, general store, clothes shop and town hall). Island proof at 20:00 (time 20, local hour; the world's offset is -3.82 h): event starts, 4 walkers spawn at the three lane ends. The first route ran out along r05 and back, so the group doubled back for the east lane and walkers timed out (1 of 4, then 3 of 4, arrived); the short cluster route and a 6 m formation spacing (LF_EventSceneWalk.FORMATION_SPACING_M, a member of four stood 18.7 m out) gave 4 of 4 in 62 s (#3724). The four walkers wear four vanilla civilians (m_aPrefabs:Character_CIV_DenimJacket_1,Turtleneck_1,CottonShirt_1,DenimJacket_2), handed out in turn. The vanilla civilians are used because thetownsfolkrole outfits (LF_Npc_Townsfolk_*) have noAIControlComponent, so no walker could move. Earlier: a second pack event, a separate row besiderelocated_arrival(itsm_bEnabledis untouched). Phaseduskwaits forsquare_evening_hours(LF_Condition_Evening.conf, hour range 19:00 to 23:00), phasewalkrunssquare_evening_scene(LF_Event_SquareEvening.conf: fourtownsfolkwalkers, six seconds apart, over placed waypointssquare_evening#0..#3to the scene's target). Cooldown 20 h, so it runs once an evening. The walkers wear thetownsfolkrole outfits, no suitcase. The square radio already plays at night (atmo_square_radio, #3180); a town board line has no event hook yet, so it is a follow-up. Until the island card (#3395) places the spawn, waypoint and target markers under the idsquare_evening, the scene logshas no spawn marker placed; nobody spawnsand ends. Test:everon/square-evening(pack leg, WORLD).
LF_EventModuleLoader, LF_EventSceneOperation — Feature/Events/LF_EventModuleLoader.c (#2137, 2026-11-17)
- ✅ An event config lists its modules in
m_aModules(LF_EventModuleRef: an id and a.conf); a pack overlay adds its own and one with the same id replaces the earlier (logged). At game start the shell registers each by the.conf's root class:LF_EventPrecondition(hour window, players online or nearby, cooldown) as a condition,LF_EventAbortas an abort,LF_EventSceneas anLF_EventSceneOperation. A ref that does not load, has another root or a taken id is logged[LFDebug:Events]and skipped, so its phase holds. The scene operation stages its scene once per phase run: plans it against the free AI budget, spawns the walkers and starts their walk, then on its own ticker waits for the walk to end, the despawn delay, and no player in sight before removing them. While on stage it is busy (LF_EventOperation.Busy) and holds its phase, so the event ends only after the scene has left (or on the phase's idle timeout or an abort). A scene may name walker prefabs (m_aPrefabs, handed out in turn), which win over its role. Tests:events/module-loader(WORLD, grid cellevent-scene).
LF_EventShellRow, worldevents payload — Feature/Events/LF_EventShellSave.c (#1951, 2026-11-17)
- ⚠️ Events survive a restart by phase name: the
worldeventspayload (save version 41) keeps each event's phase name, phase age, cooldown left, time since it ended and an int bag (LF_EventShell.GetInt/SetInt, for module state), with times relative to the save because the shell clock restarts at 0. On load an event saved in a phase it still has goes to its full cooldown (a scene is never resumed), an idle one keeps its cooldown left, a phase name it no longer has loads idle with a warning, and an event id this boot does not run is dropped with a warning. Restart proof is manual (wt e2e). Tests:events/shell-persist(WORLD).
LF_EventSceneCheck — Feature/Events/LF_EventSceneCheck.c (#2067, 2026-11-16)
- ✅ Three seconds after game start the server reads every placed scene marker (#1954) through
LF_Placesand logs one[LFDebug:Events]warning per broken scene: a gap in the route's orders (names the missing orders), waypoints with no target, no spawn marker. Each fault is named once; a scene with several faults is still one line. The scene stays usable, no event is switched off, nothing throws. A last info line says how many markers were read and how many scenes are broken. Tests:events/scene-check(LOGIC).
LF_EventPhaseJip — Feature/Events/LF_EventPhaseJip.c (#2106, 2026-11-16)
- ✅ A late joiner holds the running event phases at once: the game mode's JIP snapshot (
RplSave/RplLoad, after the chain below it) carries a format version, a count and the running events' id and phase pairs, and the client puts them onLF_EventPhaseBoard(log[LFDebug:Events] client heard event <id> jip: <phase>). Idle and cooling events are not sent. A short or corrupt snapshot is logged and refused; a format mismatch keeps the stream aligned and drops the pairs. Harnesseventjip start(dev gate) runs a test eventharness_jipthat holds inhot;eventjip board [id]reads the client's board. Tests:events/phase-jip(WORLD).
LF_EventSceneHarness — Feature/Events/LF_EventSceneHarness.c (#2173, 2026-11-16)
- ✅ A session can run an event that ships off. Harness
eventscene start <{GUID}fixture.conf> [hour](dev gate on the server) reloads the event list, lays the fixture (rootLF_EventsConfig, the pack overlay rules, so it can turnm_bEnabledon and bring module refs) over it, hands it to the shell and the module loader and forces the shell's hour when one is given.eventscene status [eventId]answers the fixture, the event's phase and the running scene's crew (spawned, walking, arrived, timed out, seconds);eventscene stopputs the files' own list back and the real hour. No conf, a conf that does not load and a conf of another root class are refused ([LFDebug:Events] eventscene: ...) and change nothing. Tests:events/scene-harness(WORLD).
Scene walk on a navmesh (#2174, 2026-11-16)
- ✅ The relocated walkers walk on CoreOnEveron. The world's
SCR_AIWorld_Edeninstance had no soldier navmesh file (the prefab carries onlyLowResEden.nmn; each world names its own), so every agent stood still. It now names{AD5F99CD7C59D5E0}worlds/GameMaster/Navmeshes/GM_Eden.nmnand references the prefab by GUID. A world that runs scenes needs the same: an AIWorld whoseNavmeshWorldComponentlists a soldier.nmn. - ✅ Arrival counts the group's formation: once the AI group has completed its last waypoint, a walker within
FormationArriveM(members)of the target has arrived:ARRIVE_MplusFORMATION_SPACING_M(6 m) per member beyond the first, so 33 m for six and 21 m for four (LF_EventSceneWalk.HasArrived, testevents/walk-arrival). The outer member of a line of six stood 18.8 m out. - ✅
eventscene statusprints the AI state;eventscene control <{GUID}prefab>walks one stock vanilla character over the scene's route in its own group, as a control.session up --mission everonboots CoreOnEveron with the harness define; proof:session.mjs relocated-walk-proof <out> [--control]. - ✅ The island has the route (#3088, draft on the arrival slot): the arrival layer
Place_saint-philippe_arrival.layercarries the spawn marker (south road), waypointsrelocated_arrival#0to#3(road junctions r37/r02, r33/r05, r05/r35, r35/r36) and the target at the town hall's north door, written bytown fitfromtools/town/kits/arrival.jsonrows. Proof:session up --mission island --profile full, thensession.mjs relocated-walk-proof <out> --island(6 of 6 reached the target in about 145 s). - ✅ The route goes out once every walker has spawned (#2174 follow-up), as vanilla
SCR_AIGroup.SpawnUnitsadds its waypoints after its members: the family gathers at the spawn marker and leaves together. A walker's stuck and walk-budget clocks run only from then (m_bRouteOut, testevents/walk-route-wait). Walkers join the walk by id, so one removed early no longer hides the next one spawned. - ✅ The walkers stay at the target when the walk ends:
Stop()releases every agent from the AI group (RemoveAgent) before it deletes the group, which took the walkers with it. The scene's despawn removes them later, out of sight. - ✅ Proof: 6 of 6 reached the target together, 45 s after the route went out, in four runs in a row. The CoreOnEveron route target sits on the open lawn before the railing.
eventscene statuskeeps the last walk's result (walk over: 6 reached the target, 0 timed out); the proof takes the arrival pictures then, with a top view last. - ✅ MainWorld (the island,
LF_EveronIsland.conf) has an AIWorld: itsGamemode.layerholdsSCR_AIWorld_EdenwithGM_Eden.nmn(#2204), the server log saysCreate entity 'AIWorld_MainWorld', andtownreachwalks a civilian 40 m on its navmesh (#2996, 2026-11-18). Not yet:Everon1989Town(a SubScene of DebugWorld, the flagship header's world until the cutover) has none.
Suitcase grip (#2174 follow-up, 2026-11-17)
- ✅ The relocated walkers hold the suitcase by its handle and it hangs straight down. The
Suitcaseslot onRightHandProp(all threeLF_Walker_Relocated_*) isOffset -0.0268 -0.4495 0.0679, Angles 9.944 14.908 5.455, solved for the idle hand so the handle point (0 0.455 0.02inSuitcase_01: the visual top is 0.474 m, the box collider stops at 0.425 m) sits on the bone.LF_CarriedPropComponent(core,Feature/Character) re-solves it every frame on clients, upright and with the long side along the carrier's forward axis, so the case does not turn with the arm swing. It runs from the call queue: a character proxy got noEOnFramefrom the event mask. After each override it calls the prop'sUpdate(), as vanilla does after a slot transform change; without it the case went missing or floated off the hand. Testcharacter/carried-prop-hang. - ✅ (#2339) The per-frame hang is cheap and safe: it skips a walker that was not rendered last frame or is past 60 m (
VIEW_DISTANCE) from the local camera, caches the slot and bone index after the first good frame, counts missing frames in a row (a good frame resets the count, so gaps never add up to the 300-frame give-up), and does not run in the World Editor (InPlayModeguard). Testcharacter/carried-prop-cull. - The fingers stay as the walk animation leaves them, a relaxed hand around the handle. The base game has no carry pose for a suitcase (instructors use authored narrative animations), and nothing in script drives a hand IK pose.
eventscene grip [x,y,z]prints the slot transform in prefab notation, or solves and applies one for a handle point;relocated-walk-proof grip <out> [x,y,z]takes standing and walking close-ups from two angles.
LF_EventMapShare — Feature/Events/LF_EventMapShare.c (#2243, 2026-11-17)
-
✅ While an event runs its place shows on every map (map card M15).
LF_EventMapSharelistens toLF_OnEventPhase: a start or an advance puts anEVERYONEshared markevent:<eventId>(label#LF-EventMap_Place) at the event's place, the scene'sevent_targetmarker found throughLF_Placesfrom theLF_EventPlacebinding, and carries the place's radius (the phase's, else the event's, rounded to metres) on the row as anEVENT-style area, which each client draws as a localLF_MapAreascircle (LF_MapShareAreas, namedevent:<eventId>); an advance replaces the row and so the area, it never adds a second; the end removes both. The row carries a 2 h safety expiry that each phase change renews, so a mark whose event was lost without an end still leaves every map. A late joiner or respawn gets the row fromLF_MapShares(M9). An event with noLF_EventPlacebinding, or whose marker is not placed, shows nothing and logs why ([LFDebug:Events]). Nothing is saved: an event saved mid-phase loads into cooldown, so a restart has no run and no mark. Testevents/map-share(WORLD, real shell). The server registers no area itself any more: a dedicated server draws nothing, a listen-server host and every client draw it from the share row. -
✅ A watcher cannot block a scene's despawn forever (life review #2406). A scene has
m_fForceDespawnSeconds(default 120): the scene operation's despawn and a timed-out walker's removal wait for nobody to be looking, but past that many seconds they go anyway (logged[LFDebug:Events]warning), so the phase, the scene slot and the AI budget come free.LF_EventSceneSpawn.TryDespawn(crew, eyes, bodies, force)takes the force flag; the walk collects the players' eyes once per step (LF_EventSceneSpawn.EyeScanCount), not once per waiting walker. A phase whose radius is 0 already took its old area off the map:LF_MapShareAreas.Showhides the key's area before it draws a new one (testmap/share-areas, "a replacement without an area takes the old circle off"). Testevents/force-despawn(WORLD, grid cellevent-scene). -
🧪 The dock warehouse is dressed (#3445, town-draft, merged, in-dev): the
warehouseslot ofsaint-philippe-dockfits the kittools/town/kits/warehouse.jsoninto the dock survey's b06 (Warehouse_01_Office, which already holds racks, barrels and crates along its walls): six pallet bays with a plastic or wooden crate each down the middle aisle, two pallet boxes, two cardboard stacks at the far end and one marked red crate on its own pallet (scene-crate, the spot the shipment scene leaves its crate at, #3439), inPlace_saint-philippe-dock_warehouse.layerwith anLF_PlaceComponentmarker kindWarehouseidsaint-philippe-dock.warehouse. The shed stays staff-only until a fitted marker beats the lock (#3201); no door row is added, the vanilla doors stay. Checktoolscli town check saint-philippe-dock; looktoolscli look place:saint-philippe-dock/warehouse --interior auto.
shipment_docks — pack Configs/Events/LF_Events_Everon1989/LF_Events_ShipmentDocks.conf (#3439, 2026-11-19)
- 🧪 Beat 1 of the shipment arc (#1036,
docs/everon/story/the-shipment.md), data only, in its own file under the folder overlayLF_Events_Everon1989/(#3557) so the other arc events do not conflict on the shared conf. Phasesdawn(hour window 06:00 to 08:00, moduleshipment_docks_dawn) thenunload(moduleshipment_docks_scene, 900 s idle timeout); cooldown 50400 s, one game week of seven 120-minute flagship days. The sceneshipment_docksparks an empty Ural truck beside its first spawn marker (m_sVehicleSlot, #3074) and walks three dockers (vanillaCharacter_CIV_Dockworker_1/2/3: AI civilians in work overalls; theLF_Npc_*outfits have no AIControlComponent and stood still, #3766) alongshipment_docks#0..#3. There is no ship in the base game, so the cargo comes by truck from the ferry. The red crate on its own pallet (Crate_01_red,scene-crate) is already placed in the warehouse layer (#3445); the event does not spawn it. Marcel is the harbour cabin resident and is not part of the scene (scenes spawn walkers only). The crew do not carry crates (no carry in a scene walk). Proof:everon/shipment-docks(pack leg). - 🧪 The markers are placed (#3766, island layer, merged in-dev):
Place_saint-philippe-dock_shipment.layer(slotshipment-docksof the dock mapping, shared with b06) holds threeevent_spawnmarkers in a row on the open quay strip west of the light tower (the truck stands 5 m east of the first),event_waypointshipment_docks#0..#3east over open ground to the road r05, and theevent_targeton the warehouse's north-west corner by the street lamp, clear of the light tower b01, the fuel tank b02 and the smokehouse shed b05 (about 46 m of route). Proof on the island at 06:00 (session up --mission island,relocated-walk-proof --island --scene shipment_docks --fixture <the pack event conf> --layer <this layer> --npcs 3): the truck and three dockers appear, 3 of 3 reach the target in 33 s ([LFDebug:Events] ... walk over: 3 reached the target, 0 timed out). The relocated arrival and this event both open at dawn and a scene runs one at a time,, so the two can hold each other off at dawn (not yet observed in a normal run). - 🧪 The shipment raid's markers and gendarme prefab are placed (#3786, card C of the #3443 split, island layer):
Place_saint-philippe-dock_raid.layer(slotraidof the dock mapping, shared with b06) holds twoevent_spawnmarkers on the east edge of the road r05,event_waypointshipment_raid#0..#1(a 6 m and a 5 m lane over open ground, the first on the spot the dockers' last waypoint already proved) and theevent_targeton the ground in front of the warehouse's loading dock, 4 to 5 m from the sliding doors (the door entities stand in pairs about 5 m in from the footprint's west face). About 25 m of route, clear of the smokehouse and its fire. The gendarme isLF_Everon1989/Prefabs/Characters/Npcs/LF_Gendarme_1.et: a vanilla civilian (Character_CIV_baseLoadout, so it has anAIControlComponent; theLF_Npc_*outfits have none) wearing the police shirt, trousers and cap. The scene (m_aPrefabs) and the event are card D's. Proof on the island at 06:00 with a scratch scene of twoLF_Gendarme_1onshipment_raid#0..#1(not committed; the other pack events removed from the fixture because a scene runs one at a time):relocated-walk-proof --island --scene shipment_raid --npcs 2, 2 of 2 reach the target in about 22 s.
shipment_raid — pack Configs/Events/LF_Events_Everon1989/LF_Events_ShipmentRaid.conf (#3443 card D, 2026-11-19)
- 🧪 Beat 4 of the shipment arc (#1036): after a player turns in
shipment_reportat the police desk, the gendarmes raid the dock warehouse. Data only, in its own file under the folder overlay. Phasetipoffwaits on theQUEST_DONEcondition (LF_Condition_ShipmentRaidTip.conf:shipment_report, 180 s after the turn-in, open for 1800 s; selling the sample instead brings no raid). Phaseraidruns two modules:shipment_raid_dispatch(LF_Dispatch_ShipmentRaid.conf, the #3785 operation: asmugglingpolice call at the scene'sevent_target, then the looseLF_ShipmentSample.etwithin 30 m of it is logged in the evidence locker (place "Saint-Philippe dock warehouse") and removed, or, when the smugglers moved it, the call goes out and the log says "moved, nothing seized") andshipment_raid_scene(LF_Scene_ShipmentRaid.conf: twoLF_Gendarme_1walkshipment_raid#0..#1from #3786's markers). Cooldown one game week. The seizure names only the sample prefab, never the red crate prop or an item players can buy (lead note on #3443). The call and the seizure happen when the phase opens, while the gendarmes are still walking in. - Proof:
everon/shipment-raid(pack leg: the event resolves, the condition reads the quest state, the seizure logs the sample in the locker and leaves a moved or other item alone). On the island (session up --mission island, a scratch fixture that swaps the quest condition for the 06:00 hour window,relocated-walk-proof --island --scene shipment_raid --npcs 2):tipoff -> raid, the police call is filed,moved, nothing seized(no dock scene had left a sample), 2 gendarmes on stage andwalk over: 2 reached the target, 0 timed outin about 22 s.
anniversary, phase prepare — pack Configs/Events/LF_Events_Everon1989/LF_Events_Anniversary.conf (#3463, 2026-11-19)
- 🧪 Beat 1 of the anniversary arc (#1039,
docs/everon/story/the-anniversary.md), data only, in its own file under the folder overlay. One phase,prepare: theanniversary_prepare_hourswindow (09:00 to 17:00, clear of the dawn arrival and shipment and the dusk square evening, #3780) and theanniversary_prepare_sceneoperation (LF_Scene_AnniversaryPrep.conf: four AI civilians in everyday clothes walking waypointsanniversary_prepare#0..2from the town hall to the square, 240 s at the target). Cooldown two game days (14 400 s); the event shell has no fixed-date condition, so "the week before" is the cooldown plus the window until a later card adds the date gate. The later phases (walk,letter,gather) append to the same event. Theanniversary_prepare#Nmarkers are not placed yet (a town-draft slot of the square); until they are, the scene skips with a logged reason. Test:everon/anniversary-prep(pack leg).
dispatch and seize scene operation — Feature/Events/LF_EventDispatchSeize.c (#3785, 2026-11-19)
- 🧪 Card B of the #3443 raid split. A module
.confwhose root class isLF_EventDispatchSeizeregisters (LF_EventModuleLoader) as an operation a phase names, like a scene. When the phase runs it files a police call at the scene's placedevent_targetmarker (LF_Dispatch.Report, offence and caller id from the conf, no suspect and no player: the event is the caller), then looks for the named item (m_Item, matched by prefab GUID) lying loose withinm_fRadiusof that marker. Found, the item is logged withLF_EvidenceLocker.LogSeizure(item, m_sPlace, m_sOfficerUid)and taken out of the world (m_bRemoveItem); not found (the smugglers moved it, or something else lies there) the call has still gone out, nothing is seized and[LFDebug:Events]says "moved, nothing seized". It acts once per phase run, so a 5 s cadence files one call, and a refused call is tried again at the next run. Server only; a config with no scene, item, offence or caller id is refused by the loader. Known edge: the call is a crime report under the event's caller id, so the hidden crime record counts one row for that id. - Pack use (#3443 card D):
LF_Events_ShipmentRaid.confnames theshipment_raidscene and the redCrate_01_redat the warehouse; the island marker (card C) sits at the crate's pallet. Proof:events/dispatch-seize(WORLD). Manual: the seizure needs the island markers, so the live check waits for card C.
QUEST_DONE condition, LF_QuestDoneLog — Feature/Events/ (#3784, 2026-11-19)
- 🧪 An event phase can now wait on a player's quest: the condition kind
QUEST_DONE(m_sQuestId,m_fDelaySeconds,m_fWindowSeconds) holds once any player turned that quest in, after the delay, and for the window (0 = until a restart). It is the tip-off for the shipment raid (#3443): the report questshipment_reportis turned in, the gendarmes come a few minutes later. A turn-in reaches it throughLF_QuestTrackerComponent.TurnInQuest(one line,LF_QuestDoneLog.Note); the shell copies the log into each tick'sLF_EventContext. Server memory only, never saved: a restart forgets the tip-off. A pack lists it in a condition module.conf(rootLF_EventPrecondition, kindQUEST_DONE). Tests:events/quest-done-condition(LOGIC),events/quest-done-shell(WORLD).
Two scenes at one dawn: the second waits for the stage (#3780, 2026-11-19)
- ✅ Only one scene is on stage at a time, so an event whose scene phase opens while another scene plays (the relocated arrival and the shipment docking both open at dawn) now waits instead of ending unplayed. Before, the refused scene left nothing busy, the last phase held its conditions and the event ended into its cooldown (a game week for the shipment) the same tick:
event shipment_docks end: unload -> donewith no scene staged.LF_EventSceneOperation.Runnow finds the stage taken (LF_EventScenePlanner.RunningScene()), logs once[LFDebug:Events] event <id> phase <phase>: module <id> waits for scene <scene> to leave the stageand returns true:Busy()holds the phase and the wait counts as acting, so the phase's idle timeout restarts every cadence and cannot end the event while it waits. The cadence after the other scene has left, it goes on stage. The wait is bounded by the other scene's own despawn (m_fForceDespawnSeconds). A scene refused for the AI budget or a missing spawn marker is unchanged (the last phase ends the event). Tests:events/scene-queue(WORLD, grid cellevent-scene, two events at one dawn, the waiting one with a 100 s idle timeout) andeveron/dawn-queue(pack leg: the real arrival and shipment events and module confs, their scenes pointed at the grid cell).
The anniversary's island slot: mayor and anniversary_prepare markers (#3794, 2026-11-19)
- 🧪 Part 2 of #3794. The
anniversaryslot of Saint-Philippe (docs/everon/places/saint-philippe/mapping.json,town.jsontemplate, claimtools/town/claims/saint-philippe-anniversary.json, layerPlace_saint-philippe_anniversary.layer) is an outposts slot on the same five buildings assquare-evening. It places the mayor Bastien Girard (LF_Npc_Townsfolk_Mayor.et, givermayor) on the town hall forecourt, on the ground the arrival walkers end on, and the markers the #3463 scene walks: threeevent_spawnmarkers at the lane ends (anniversary_prepare#0..2), threeevent_waypointmarkers and oneevent_targeton the square. The scene no longer skips with "no marker"; during 09:00 to 17:00 four civilians in everyday clothes walk onto the square. No core date condition: the world's start date is not set by Life Framework and a 2 h game day brings a fixed date round once per 30 real days, so the event keeps its hour window and two-game-day cooldown. - 🧪 The ship leaves its sample on the red crate (#3783, island layer, merged in-dev): a scene can name one item (
LF_EventScene.m_sDropPrefab) and anevent_itemmarker (Prefabs/Systems/Events/LF_EventMarker_Item.et, one per scene, no mesh; roleITEMofLF_EventWaypointComponent). When the scene starts,LF_EventSceneSpawn.DropItemleaves exactly one copy on the marker. A copy the last run left that nobody took (no parent, still within 1.5 m of the spot) is removed first, so a shipment week leaves one and never piles up; a copy a player carried off stays theirs. The item is not part of the crew, so the scene despawn leaves it. A scene with no marker logs[LFDebug:Events]and leaves nothing. The 1989shipment_docksscene namesLF_ShipmentSample.et(the buyer pays 480, the count step asks for it) andFit_saint_philippe_dock_warehouse_scene_sampleinPlace_saint-philippe-dock_warehouse.layerstands it on the red scene crate in the dock warehouse (the crate is a 0.2 m flat tray, so the sample box sits on it rather than in it). Proof:events/scene-drop(WORLD),everon/shipment-docks(pack leg).
anniversary, phases memorial and gather — pack Configs/Events/LF_Events_Everon1989/LF_Events_AnniversaryMemorial.conf (#3464, 2026-11-19)
- 🧪 Beats 2 and 4 of the anniversary arc (#1039), data only, patched onto beat 1's event.
memorial: theanniversary_memorial_hourswindow (11:30 to 13:00) and theanniversary_memorial_sceneoperation (LF_Scene_AnniversaryMemorial.conf: six AI civilians in everyday clothes walking waypointsanniversary_memorial#0..2from the church to the memorial).gather: theanniversary_gather_hourswindow (12:00 to 16:00) andanniversary_gather_scene(LF_Scene_AnniversaryGather.conf: six walkers onanniversary_gather#0..2from the memorial to the cafe, 300 s at the target). The patch also sets the event cooldown to a game year (2 628 000 s: 365 game days of 7200 s), so the whole day runs once a year;memorialhas no idle timeout so it waits for noon without ending the event into that cooldown. The day's standing award is the rowanniversary_memorial(TOWN +10, 86 400 s cooldown) in its own file underConfigs/Reputation/LF_Reputation_Everon1989/. The memorial rite (#3806): thememorialphase also names the moduleanniversary_memorial_rite(LF_Rite_AnniversaryMemorial.conf, root classLF_EventMemorial, coreLF_EventMemorial.c): on the first run of the phase it rings the church bell 12 times (each client plays the vanilla bell of the nearest church,LF_MemorialBells) and switches off the playing radios of the four town slots within 150 m of the memorial marker for 300 s (they come back on after; one a player had already switched off stays off). Every run, each player within 30 m of the marker who has not been served in this phase run gets the toast "The anniversary" and the priest's line (title "Father Étienne Morel": a text toast, there is no priest NPC yet) and oneLF_Reputation.Award(uid, "anniversary_memorial"), so a latecomer is counted and nobody is paid twice in a run. Proofevents/memorial(WORLD, radios, standing, late arrival, new phase run) and the pack checks ineveron/anniversary-memorial. Theanniversary_memorial#Nandanniversary_gather#Nmarkers are not placed yet (a town-draft slot of the church, the memorial and the cafe); until they are, each scene skips with a logged reason. Test:everon/anniversary-memorial(pack leg).
The anniversary's memorial and gather markers (#3814, 2026-11-19)
- 🧪
Place_saint-philippe_anniversary.layer(theanniversaryslot of #3794, same claimsaint-philippe-anniversary.json, now 22 rows) also holds the markers of the two noon walks of #3464.anniversary_memorial: threeevent_spawnmarkers on the church's forecourt (west of the front door b07, 4426, 10730 to 10738), waypoints#0..#2on the way west, and theevent_target4 m east of the plague column (PlagueColumn_01, 4412, 10722), which is the memorial: the rite (#3806) measures its 30 m radius, the 150 m radio ring and the bell search from it.anniversary_gather: three spawns east of the memorial, waypoints along the street (r05) and theevent_targeton the pub's west forecourt (b03, the cafe). Routes are short (about 25 m and 29 m): a first gather route of 38 m left walkers timed out. Ground heights are server probes. - Proof on the island (
session up --mission island,relocated-walk-proof --island --scene anniversary_memorial --hour 12 --fixture {C1F4A86E27D903B5}Configs/Tests/LF_Test_AnniversaryWalkFixture.conf --layer <the layer>, a fixture that replaces theanniversaryevent with itsmemorialandgatherphases and the real module ids):memorialputs 6 walkers on stage, the rite opens (memorial: 1 radio(s) quiet for 300 s,served 1 at the memorial, 1 standing award(s)),walk over: 6 reached the target, 0 timed outin 19 s; thegatherphase follows by itself andwalk over: 6 reached the target, 0 timed outin 30 s. The proof script keeps only the markers of the named scene when a layer holds several, and takes--hour.
The priest's memorial speech plays at the rite (#3827, 2026-11-19)
- 🧪 The rite (#3806) now plays the recorded speech (#3466) instead of only showing the caption.
LF_Rite_AnniversaryMemorial.confnames the priest's dialogue conf (m_sVoiceDialogue) and its voiced line (m_sVoiceLinememorial, eventSOUND_DLG_ANNIVERSARY_PRIEST_MEMORIAL, 9.43 s). On the opening run of a phase run the server resolves the line's event, audio project and length and sends one broadcast RPC (LF_AnnounceMemorialVoice); every rendering client plays it as a 3D sound 1.65 m above the memorial marker (the priest's head; there is no priest NPC yet), so a player near the church hears it and one far away does not. It starts in the same run that serves the caption to the people present, and the rite is busy for the clip's length (Busy()), so thememorialphase does not advance until the speech ends. A later run of the same phase run does not play it again (a latecomer gets the caption and the standing only). A missing dialogue or line logsLF_Debug.Errorand the rite keeps the caption. Proofevents/memorial(the clip asked for with the caption, once per phase run, busy for its length, no voice, a missing line) andeveron/anniversary-memorial(the priest's conf, line and event resolve). Manual: stand at the church during the rite and hear him. - ⚠️ A scene vehicle can be driven along the route (#3380, merged in-dev, opt-in; wired to the scene operation by #3831, below):
LF_EventSceneDrive.Begin(crew)(Feature/Events/LF_EventSceneDrive.c) takes the crew of a scene that parked a vehicle (#3074), puts the crew in one vanillaGroup_Base(the crew climbs in through a boarding waypoint, #3831) and gives one vanillaGroup_BaseanAIWaypoint_Move(6 m completion radius) on every waypoint and the target, in order. The driver must have anAIControlComponent(the vanilla civilians do; theLF_Npc_*outfits do not). Progress is read from the vehicle position: a point within 6 m is passed, the target within 6 m ends the drive ([LFDebug:Events] ... drive over: the vehicle reached the target). A vehicle with no progress for 20 s is moved to the next route point (the target from the last waypoint), its velocity cleared, the group's current AI waypoint completed, and[LFDebug:Events]warnsvehicle stuck ... moved on to route point N. Without an AIWorld nobody is driven and only the books run (logged). One drive at a time; a world reset drops it. Short per-lane waypoints (5 to 12 m) keep the AI on the lane. Grid cellscene-drive(3x1, c20r2) holds the test lane: two spawn markers,grid_scene_drive#0..2, a target. Tests:events/scene-drive(WORLD). - 🧪 A scene can drive its vehicle (#3831, merged in-dev):
LF_EventScene.m_bDriveVehicle(an attribute, off by default; the plan carries it asm_bDriveVehicle, andLF_EventScenePlanner.Validaterefuses a flagged scene with nom_sVehicleSlot).LF_EventSceneOperationthen does not start the walk: on its first tick after the crew is fully spawned it callsLF_EventSceneDrive.Begin, and holds the scene's end (the despawn delay) until the drive is over, or until the scene'sm_fWalkTimeoutSecondsruns out (logged warning, the drive is stopped). The crew boards for real: each member joins the AI group, a vanillaAIWaypoint_GetInSelected(SCR_BoardingEntityWaypoint, GUID{8AD8C82346156494}) on the vehicle comes first so the group counts the truck as usable, then the move waypoints. The stuck timer waits while the crew climbs in (BOARD_TIMEOUT_S45 s). Learned the hard way: pre-seating the crew withMoveInVehicleleft the group standing (it never drove), completing the boarding waypoint from script crashed the server, and deleting it before the group did too, soStopdeletes the move waypoints, releases the crew, deletes the group and the boarding waypoint last.eventscene statusprintsdriving N s, M moved on, vehicle at <x,y,z>, K m of the route left, next point i of n; ai: group agents=.. seated=.., thennot driving (drive over: ...). - 🧪 Island proof, the dock scene (#3831):
shipment_docks(pack,LF_Scene_ShipmentDocks.conf) hasm_bDriveVehicle 1: the three dockers climb into the Ural and it drives the 46 m dock route (shipment_docks#0..#3and the target).session up --mission island,relocated-walk-proof --island --drive --scene shipment_docks --fixture {E7A3C95B1D4F6082}Configs/Tests/LF_Test_ShipmentDriveFixture.conf --layer <the dock layer> --npcs 3(the fixture is the shipment event with the other pack events removed, because a scene runs one at a time): 3 of 3 crew in the truck after 20 s, the truck stands on the quay where it parked,vehicle stuck 20 s with 48.9 m of the route left; moved on to route point 1 of 4, then the AI drives it on its own (4435, 11103 to 4455, 11100 in 15 s) anddrive over: the vehicle reached the target after 56 s, 1 moved on. So the stuck recovery is what gets the truck off the quay (the AI does not pull out of the parking spot by itself); the lane after it is driven by the AI. Tests:events/scene-drive-op(WORLD: a flagged scene starts the drive and waits for it, a drive that never arrives ends at the walk timeout, a flagged scene with no vehicle is refused).
The island calendar (#4238, 2026-11-23)
- 🧪 Player sees: nothing by itself; it is the clock the bells, sirens, the ship's horn, market day, the dance, the Sunday service, payday and the weekly paper hang on. Each carrier is an operation module a pack registers (W6.2 and later cards); with none registered every row logs once and waits.
- Owner and side:
LF_IslandCalendar(Feature/Events/LF_IslandCalendar.c), server only, started fromOnGameStartand ticked once a second on the call queue. It reads the game day (the world clock's date, moved to the solar hour's day when the two roll over at different moments) and the solar hour, and runs the event shell operation (LF_EventShell.FindOperation) each due row names, under the event idisland_calendarand the row id as phase, with a fresh phase start per slot so a scene counts each firing as its own run. Nothing replicates, nothing is saved. - Data:
Configs/Events/LF_IslandCalendar.conf(rootLF_IslandCalendarConfig, rowsLF_IslandCalendarRow): id, weekday (1 Monday to 7 Sunday, 0 every day), first hour, last hour, every-N-hours step, operation id, enabled. The core rows are neutral and name no place: hour bell 07 to 21, shift siren 06/14/22, ship's horn 07/19, market day (Saturday 08), dance (Friday 20), service (Sunday 09), payday (Friday 16), courier (Monday 06). The loader (LF_IslandCalendarLoad) reads the core file only; a pack overlay of rows (add, replace, patch, remove by id) needs the pack-layer tooling (tools/pack/layers.mjsSECTIONS) to know the list, so it is a separate card. - Rules: a row fires once per game day and hour: its slot key is day number x 24 + hour and a ticked slot is remembered for the boot. A row fires only in the first half of its hour, so a late boot (07:45) does not ring 07:00 and a lost tick still catches the slot. A row whose operation is not registered, did not act, or a scene operation while another scene is on stage is tried again each tick until the half hour is over; each is logged once
[LFDebug:Events]. A bad row (no id or operation, weekday outside 0 to 7, hour outside 0 to 23, last hour before first, step below 1) or a repeated id is refused and logged; the rest run. A restart forgets the slots. - Proof:
events/island-calendar(WORLD): the date maths, once per slot, weekday gating, grace, retry, bad rows and the shipped conf. - ✅ (first-2-hours re-review, 2026-11-23) A scene marker draws nothing. The waypoint, spawn and target prefabs inherited
ConeTraffic_01_red, so every marker the island scenes place (arrival route, square evening, anniversary, dock shipment and raid) stood on a road or the square as a red traffic cone a player could see and bump; the item marker never had a mesh. The three now start from a bareGenericEntitylike the item marker; ids, GUIDs and components are unchanged. Test:events/markers-invisible(WORLD, reads the prefab container chain for aMeshObject).