Docs · Engineering reference
Sites
docs/features/sites.mdEdit on GitHub
LF_SiteHold — Feature/Sites/LF_SiteHold.c (#2678, 2026-11-17)
- Scoring maths for a contested site: a lone organisation gains, two or more freeze it, an empty site decays capture progress, a full capture flips it behind a cooldown. No world yet. Tests:
sites/site-hold(LOGIC).
LF_SitesConfig — Feature/Sites/LF_SitesConfig.c (#2679, 2026-11-18)
- Per-site rules from
Configs/Sites/LF_Sites.conf(no sites in the core), pack overlays, then the owner'ssites.ruleskeyed by hideout id: radius, inner radius, member minimum, capture seconds, decay, flip cooldown, rent per hour, banked rent cap, active window. Bad values log and fall back. Tests:sites/config(LOGIC).
LF_ContestedSites — Feature/Sites/LF_ContestedSites.c, LF_ContestedSiteComponent.c (#2680, 2026-11-18)
- A 5 s server sweep scores every site placed with
LF_ContestedSiteComponent(LF_Places kindcontested-site, id = the hideout it guards) withLF_SiteHold.StepunderLF_SitesConfig.For(id).ToHoldRules(). Counts living player characters of an organisation inside the radius that moved 1 m or acted withinactiveWindowSeconds; the inner ring counts double. The holder is the hideout lessee and its held ground (no new payload). A capture releases the old lease (reasoncaptured), leases the hideout to the capturer at zero held ground (LF_Hideout.HandOver) and publishesLF_OnSiteCaptured; a contest start publishesLF_OnSiteContested. A capture is held as CAPTURED ground (#2816): it never counts against the one-base-lease limit, so an organisation keeps its base and any number of captured sites; the tenancy kind is saved in thetenancypayload (save version 58). Tests:sites/site-sweep,sites/capture-held,sites/capture-base-reload(WORLD),persist/site-capture(PERSISTENCE).
LF_SiteFlagComponent — Feature/Sites/LF_SiteFlagComponent.c, Prefabs/Sites/LF_SiteFlag.et (#2685, 2026-11-18)
- The flag pole of a contested site with a painted board on it that names the holder, or "Unclaimed" (
#LF-SiteFlag_Unclaimed). The server holds the organisation name in oneRplPropstring, set fromLF_OnSiteCapturedfor the flag's hideout id and every 5 s from the hideout's lessee (so a release, lapse or give-up clears it);Replication.BumpMe()only when the name changes, so a late joiner reads the current holder. Each rendering machine paints the board; a listen host paints it itself, because aRplPropcallback never runs on the server. The prefab flag carries the hideout id as an attribute, a script spawn callsBindHideout. The board's back is unpainted. Tests:sites/site-flag(WORLD).
Everon 1989 pack data: gang war rules and the quarry site (#2687, 2026-11-18)
- 🧪 The pack overlays
Configs/Organizations/LF_OrgWars.conf(fee 2500, answer window 900 s, length 7200 s, cooldown 86400 s, 2 members a side: an alpha population) andConfigs/Sites/LF_Sites.conf(one site, hideout idquarry_hideout, radius 60 m, rent 600 an hour, bank cap 3000, capture 300 s). Both are listed in theLF_Everon1989header; the core files keep the neutral defaults. The hideout entity and its flag are placed by the world slices; until one carriesquarry_hideoutthe entry only sets the rules. The pack string table re-voices the 12LF-OrgWarAnnounce_*toast keys, the war board keys andLF-SiteFlag_Unclaimedas typed notices from the commune registry. Testeveron/gang-war(pack leg, LOGIC).
LF_SiteRent — Feature/Sites/LF_SiteRent.c (#2683, 2026-11-18)
- A held site that is not contested banks
rentPerHourpro rata on each sweep, capped atmaxRentBanked(defaults 600/h, 3000). Rent is a capped faucet like a wage: no pool account pays it. The bank stays on the site, so a capture hands it to the new holder. Each full hour of banking logs the amount once as anLF_OnMoneyMovedwith sourcesite_rent(no account side; the incident log records it, the ledger does not). A change of holder first logs the old holder's unlogged rent under the old holder. Saved as thesiterentsave section (LF_SiteRentSavePayload, section version 1: hideout id, banked, last rent time, the unlogged hour); no rent accrues for server downtime. Tests:sites/site-rent(PERSISTENCE).
LF_SiteCaptureHud, LF_SiteAlerts — Feature/Sites/LF_SiteCaptureHud.c, LF_SiteAlerts.c, UI/Layouts/HUD/LF_SiteCaptureBar.layout (#2686, 2026-11-18)
- 🧪 Capture bar. A player inside a site's radius sees a panel under the lawless tag: the site name (the pack's
LF-SiteName_<hideout id>row, else "Contested ground"), the holder (or "Unclaimed") and " capturing: N%" with a bar. The server (LF_SiteCaptureFeed.Push, after each site's sweep) sends each player inside an Owner RPC only when what they would see changed, at most one per sweep, and one hide when they walk out. The client only draws, in the theme's colours; a listen host gets the same Owner RPC (no host branch,docs/architecture/rpc-routing.md). Nothing persisted. - Alerts.
LF_SiteAlertslistens forLF_OnSiteContestedandLF_OnSiteCapturedand toasts every online member of the organisation concerned, in the zone or not: a contest alerts the holder once (not again for the same site within 60 s), a capture alerts the old holder (lost) and the new one (captured). Tests:sites/site-alerts(LOGIC, fake notifier). The bar itself is looked at in a session.
Held sites on the org ledger and the war board — Feature/Organizations/LF_OrgHeldSites.c, LF_OrgLedger.c, LF_OrgWarBoard.c, Feature/Hideouts/LF_HideoutsEvents.c (#2834, 2026-11-18)
- 🧪 Ledger. The org ledger page has a "Held ground (N)" list: the organisation's base lease first, then each captured site, each marked "Base lease" or "Captured". Names are the pack's
LF-SiteName_<hideout id>row, else "Alley yard lease" (a base) or "Contested ground" (a capture). The server builds the rows fromLF_Hideout.SitesOf/IsCaptured(LF_OrgHeldSites.RowsFor) and sends them in their own Owner RPC (RpcDo_LF_OrganizationSites) after every page, because the page call is at the eight-argument limit; a client that opens the ledger gets them in the same answer, so a late joiner is right. - 🧪 Refresh.
LF_Hideout.AssignAsandReleasepublishLF_OnHideoutLeaseChanged(hideout, organisation, leased or lost), so a take, give-up, idle lapse, capture or emptied organisation all reachLF_OrgHeldSites, which sends the rows to every online member of that organisation; an open ledger repaints the list, a closed one drops it. A capture refreshes both the old and the new holder. - 🧪 War board. After the war notices the board lists each placed contested site (
LF_Placeskindcontested-site, in id order) as ": held by " or ": unclaimed", read from the lease table on each read (no cache). It is a fourth notice kind (LF_EOrgWarNotice.SITE) in the same answer format; the "It is quiet" line still shows when no war is up. - Data: none persisted. Proof:
org/held-sites(WORLD). Both screens are looked at in a session.
LF_SiteStrongbox: Feature/Sites/LF_SiteStrongboxComponent.c, LF_SiteStrongboxAction.c, Prefabs/Sites/LF_SiteStrongbox.et, LF_SiteRent.Take (#2684, 2026-11-18)
- A safe prop at a site that names its hideout id (attribute, or
BindHideoutfrom script). "Take the rent" (#LF-SiteStrongbox_Take) runs on the server: the player must be a member of the organisation that leases the hideout (LF_Hideout.GetOwner) with a rank that hasWITHDRAW(the same right as the ledger withdraw), within 4 m of the box. The whole bank goes into the player's hands as MoneyStack (LF_MoneyUtils.AddCash, reasonsite-rent) and the bank reads 0; it is never paid into an account. The cash goes in first and the bank is emptied after, so a failed payout (no room) leaves the bank as it was. Anyone else gets a toast (#LF-SiteStrongbox_NotHolder,_NoRight,_Empty,_NoRoom) and a[LFDebug:Sites]line.LF_SiteRent.Takealso logs the site's unlogged rent first, so thesite_rentmoney line stays one per banked unit. Nothing new is persisted: the emptied bank saves through thesiterentsection. Tests:sites/site-strongbox(WORLD).
Everon 1989 pack: the farm compound site (#3412, 2026-11-19)
- 🧪 Place:
farmcompound(a farm yard north of the Chotain road, scouted at radius 90), slotcompoundon theBarn_E_01(b13):Place_farmcompound_compound.layerfrom the kitfarm-compound. It holds the site centre (LF_ContestedSiteComponent, hideout idfarm_compound; the pack's rules for that id are inLF_Sites.conf), the barn'sLF_HideoutDoorComponentdoor (m_bOrganizationHideout),LF_SiteFlagandLF_SiteStrongboxwith the same id, a name plate (pack signfarm_compound, title theLF-SiteName_farm_compoundrow) and a net-fence ring with a gate gap. Policed ground (no lawless zone until M7). Check:town check farmcompound,audit placement --strict; the two-member capture is a session proof (see the PR's manual steps).
The hilltop mast, site hilltop_mast (#3413, 2026-11-19)
- 🧪 Player sees: on the summit of Pick Mountain in the north-east uplands, beside the real radio mast, the portable relay hut with a hideout door on its east side, a flag pole, a strongbox, a barrel and two crates on the open ground in front. One road climbs to it. The flag board reads the holding organisation, or the pack's "unclaimed" line; the war board lists
hilltop_mastbeside the quarry. - Owner and side: pack data only. Slot
aof placehilltopmast(Place_hilltopmast_a.layer, kittools/town/kits/hilltop-mast.json, claimtools/town/claims/hilltopmast-a.json): the door carriesLF_HideoutDoorComponentandLF_LockComponentfor hideout idhilltop_mast; the site marker (LF_ContestedSiteComponent), the flag and the strongbox name the same id. Radius 45 m, rent 700 an hour, bank cap 3500, capture 420 s come from the pack'sConfigs/Sites/LF_Sites.conf(#3406). No core change. - Data: none new; the lease, tenancy and rent payloads already cover any site id. Proof:
tools\cli look place:hilltopmast/a(before and after),audit placement --world MainWorld --strict(warnings only: the props sit 0.2 to 0.35 m into the slope). The capture itself is the manual check in the PR. - Merged, in-dev. Follow-up: seat the crates and flag clear of the grass.
Contested sites rest on the ground (#3552, 2026-11-19)
- 🧪 Player sees: at the farm compound the barn door, strongbox, flag pole and name plate stand on the grass, nothing floating or sunk, and the net fence follows the slope. Measured by the island placement audit: door 0.3 mm, plate 0.2 mm, flag 9.9 mm, strongbox contact gap 7.5 mm (before: door 24 mm, strongbox 46 mm, the flag with no support, the plate 1.3 m under the ground).
- Cause and fix: the fit gave open-ground rows the barn's floor height (115.3 m) on a slope that falls 2.5 m across the yard, and the 12 net-fence panels (
SCR_DestructibleEntity) take their layeryas a height OVER the terrain, so they stood about 115 m up (the Saint-Philippe range fence: 19 m).tools/town/seat.mjshas two new mounts:terrain(a kit row with"mount": "terrain"rests on the highest probed ground under its footprint, or under its pivot for a pole) andrelative(classSCR_DestructibleEntity: its y over the ground is the bottom of its bounds).town fit <place> <slot> --terrainprobes the ground on the island server (tools/town/terrain.mjs, one vertical ray per point) intotools/town/terrain/<place>-<slot>.json; a plain fit and--checkread that file. Proof:town-fit-seat-selftest(red-proofed),look contact place:farmcompound/compound. - Map: the pack POI overlay has a public row for the place kind
contested-site(labelLF-MapPoi_ContestedSite, "Contested ground", category story), so the farm compound, the hilltop mast and the quarry draw on the map. Test:everon/map-pois-contested(pack leg, red-proofed). - Merged, in-dev. Follow-up: the hilltop mast re-fit (its own slot branch) and the Saint-Philippe range and police fences (
SCR_DestructibleEntityrows with the same fault).