Docs · Engineering reference
The Everon map (epic #2223)
docs/features/map.mdEdit on GitHub
Design: docs/architecture/everon-map.md. One row per card; each card appends its own.
- ✅ POI data (#2230, M2): a point of interest is a live
LF_Placesentry whose kind has a row in the POI table.Configs/Map/LF_MapPois.conf(LF_MapPoiConfig, oneLF_MapPoiKindrow per kind: category, icon, label key, min zoom, visibilityPUBLIC/DISCOVER/HIDDEN/ROLE, role) ships neutral rows; the pack overlays it by kind throughLF_ConfigOverlay(LF_Everon1989/Configs/Map/LF_MapPois_Everon1989.conf, listed in the mission header, adds the hiddenFencekind).LF_MapPois.CollectLive(audience, out)readsLF_Placeson any machine and applies the visibility rule (LF_MapPoiRules.Resolve) for an audience (LF_MapPoiAudience: roles held and what the player knows of each place id). Result per place:hidden,faded(heard of),full, orpencil(a hidden place the player met, never public). A kind with no row never shows (a vault, a dispatch source). The rule is one case table,Configs/Map/Rules/visibility.cases.json(the loader format oftools/map/rules/index.mjs), run byLF_Test_MapPois(Enforce; the engine cannot open a loose addon.json, so it readsLF_MapPoiCases.generated.c, written bynode tools/map/rules/visibility.mjs --gen) and bytools/validation/map-visibility-selftest.mjs(node twintools/map/rules/visibility.mjs, which also exports the emulator'svisible(poi, persona)), so they cannot drift. Not done: drawing the icons (M4), the per-player known set and its saving (M13). Fixed (2026-11-17 map review, LOGICmap/poi-role-audience): neither client audience builder added a role, so aROLEkind (the police armoury) never showed, even on duty;LF_MapPoiAudience.Local()now adds the on-duty services from the replicated account state (AddRolesFromState). Since #2492 a client holds only public places; the server decides the private ones (row below). - 🧪 Discovery core (#2241, M13): what each character knows of each place: unknown, heard of or visited (D-M4), per character only (D-M12), saved as the
mapknownpayload (save version 42) and kept across the 24 h reset.LF_MapKnown(Feature/Map/LF_MapKnown.c) is the server store. The server looks around every 2 s (LF_MapDiscoverScan, since #2492; it was the client's scan andRpcAsk_LF_MapDiscover, which needed every undiscovered place's position on the client): each player not in a vehicle above 60 km/h who stands within 20 m of a liveDISCOVERplace their character has not visited visits it (LF_MapKnown.VisitServer), and getsRpcDo_LF_MapKnownplus their private places. The board, the clerk and quests callLF_MapKnown.Hear(playerId, placeId)(never lowers visited; works for a place not live yet). On join, respawn and character switch the owner pulls the character's whole set (RpcAsk_LF_MapKnownSync, answered by one owner RPC of ids and states; its own gateLF_MapKnownSync.Admit, one answer a second per player with a second ask inside it deferred, never the sharedCOMMSrate bucket, which dropped the sync after three chess moves or board reads);LF_MapKnown.FillAudiencehands the local set toLF_MapPois. The rule is one case table,Configs/Map/Rules/discovery.cases.json, run byLF_Test_MapKnown(throughLF_MapKnownCases.generated.c) and bynode tools/map/rules/discovery.mjs(the node twin;known(poi, persona)for the emulator's--as known). Not done: a per-kind discovery radius on the POI row (the rule takes it), callers ofHear(board, clerk, quests), drawing (M4). Testsmap/known,map/known-persist,map/known-sync-gate. - 🧪 Private places are the server's (#2492, map review 2026-11-17 finding 5, D-M5): a POI kind whose row is not
PUBLIC(DISCOVER,ROLE,HIDDEN, e.g. the pack'sFence) is server-only.LF_Places.RegisterOn(kind, id, entity, server)refuses it on a client (LF_Places.IsServerOnlyKind, answered by the map's moddedLF_PlacesinFeature/Map/LF_MapPrivatePlaces.c; logskept off this client), so a modified client has neither the id nor the position of a place it may not see. The server sends each player, by one owner RPC on their own controller (RpcDo_LF_MapPrivate: kinds, ids, positions as decimetre ints; at most 512), the private places the visibility rule gives that player (LF_MapPrivatePlaces.Entitled: a discover place heard of or visited, a hidden place met, a role place while on duty), and sends it again on the join sync (join, respawn, character switch: a late joiner gets only their own set), on every heard-of or visited place, and when the police or medic duty bit of their account state changes (a moddedSCR_ChimeraCharacter.LF_SetAccountState). Nothing private is broadcast. The client map draws its publicLF_Placesplaces plus that set (LF_MapPois.GatherVisible); a listen host draws through the same set. There is no org-gated POI row; an org shares a place by hand as an org mark. Cost (perf/map-128, this PC): the scan of 128 players over 400 places 0.3 ms a pass (budget 2 ms, every 2 s), one private set 0.25 ms (budget 1 ms). A world-layer entity still exists on every client; a truly secret place should carry no map-visible component in a replicated layer. Testsmap/private-registry(WORLD),map/private-entitled(LOGIC). - 🧪 Personal marks saved (#2236, M8): vanilla shared markers are off (D-M7): a modded
SCR_MapMarkerSyncComponentforces its placed-marker limit to 0 afterOnPostInit(the server'sRPC_AskAddStaticMarkeradds nothing) and refuses the client ask, and a moddedSCR_MapMarkerManagerComponent.InsertStaticMarkerturns every player add into a local one (the dialog, the quick menu and a drag all end there; server markers pass). The placed-marker dialog offers the pencil set fromLF_MapIcons.imageset(cross, circle, arrow, note, question;Configs/Map/LF_MapMarkerConfig.conf; saved marks keep the icon by index, so the list only grows at the end). Each character keeps up to 20 marks (D-M11; the client refuses the 21st, the server refuses it again), saved as themapmarkspayload (save version 43) and kept across the 24 h reset. The owner uploads its whole list 2 s after a change (RpcAsk_LF_MapMarksSet, flat ints and notes, checked for shape and cap) and on join, respawn and character switch pulls it back (RpcAsk_LF_MapMarksSync→RpcDo_LF_MapMarksSync), re-inserting the marks as local markers (Feature/Map/LF_MapMarks.c,LF_MapMarksSync.c). Testmap/marks-persist. Off-screen marks count: the marker manager moves a marker off the shown frame into its disabled list each map frame, soLF_MapMarksClient.CollectPersonalreads both lists for the 20-mark cap, the upload and the restore (before the map proof pass an off-screen mark was not counted and was dropped from the next upload;LF_Test_MapMarksOffscreen). Fixed (2026-11-17 map review): a shared mark (dispatch, org, job, event) is a localPLACED_CUSTOMmarker too and was counted as personal: it took a slot of the 20 cap (a full map got no dispatch or org marks) and was uploaded and saved as the player's own mark, so it outlived leaving the org or going off duty.IsPersonalnow skips read-only markers (CanBeRemovedByOwnerfalse, which the share channel sets; LOGICmap/share-not-personal). The sync and save have their own rate bucket (LF_ERequestKind.MAP, 4 per 5 s), not the sharedCOMMSone that dropped a respawn's restore after three phone or board asks (LOGICmap/marks-rate-bucket). Fixed (#2546): a character switch inside the 2 s upload window saved the old character's list under the new character's key. The owner now drops a queued upload when its controlled entity changes, and every restore carries a session-only generation (LF_MapMarks.IssueGeneration) that the upload echoes onRpcAsk_LF_MapMarksSet; the server saves only a list stamped with the player's current generation and issued for the same character key, and drops anything else with a[LFDebug:MapMarks] mark list droppedline (LF_MapMarks.SetFromPlayer; LOGICmap/marks-upload-generation). No save-format change. Fixed (#2623): lists saved before the share fix still held copies of org and dispatch marks, which came back as ordinary deletable marks. The spawn restore (LF_MapMarks.ExportCharacter) now drops each saved mark that matches a live share the character sees (same text, or the share key as the client translated it, within 1 m), logs[LFDebug:MapMarks] restore dropped N saved copy(ies)and keeps the cleaned list for the next save. A copy of a dispatch mark whose share already expired cannot be matched and stays (alpha wipes clear it). WORLDmap/marks-drop-share-copies. No save-format change. - ✅ Map plumbing (#2229, M1): the Roleplay game mode (
GameMode_Roleplay.et) now carriesSCR_MapConfigComponent(gadget configConfigs/Map/LF_MapFullscreen.conf) andSCR_MapMarkerManagerComponent(marker configConfigs/Map/LF_MapMarkerConfig.conf), the two components vanilla'sGameMode_Base.ethas and ours lacked: without them the map menu returned before setup and no marker showed.LF_MapFullscreen.confis a copy of vanilla'sMapFullscreen.conf(an inherited array cannot drop items; a child config only adds) that keeps vanilla's layers, props, cursor module, descriptor visibility (town names and roads) and the map tools, markers, pencil, compass, ruler, watch, weather, light and radial, and drops the Conflict UI (SCR_MapCampaignUI), task list, journal (needs the task list and briefing) and military debug icons.LF_MapMarkerConfig.confis vanilla's marker set (text, placed, military) without the dynamic squad-leader and air-support entries: theirInitServerLogicreadsSCR_GroupsManagerComponent, which this game mode has not, and crashed the manager'sEOnInit. TestLF_Test_MapConfig(WORLD). Not done: the in-game picture of the open map (card M0b'smap-shotsproof is still owed), aSCR_MapMarkerEntryMilitarymenu check in a live session. - ✅ Emulator POIs from live places (follow-up to #2251):
tools\cli map renderdraws the POIs a persona would see from the same data the game uses. The POI table is per kind with no coordinates (rule 9), sotools/map/lib/places.mjsreads the.layerfiles of--world(mainthe pack island, the default;townthe DebugWorld village plus the pack's Everon1989Town layers;debug;grid; or a layers folder or one.layer), follows prefab ancestry for components a prefab carries, and collects each place's kind, id, position and live state fromLF_PlaceComponentand the feature components that register a POI kind (LF_WorkplaceComponent,LF_HospitalTillComponent,LF_HospitalCabinetComponent; add a row toPLACE_SOURCESwhen another registrar gets a POI row).tools/map/lib/overlay.mjsjoins them to the kind rows (coreLF_MapPois.confthen the pack'sLF_MapPois*.conf, replaced by kind),visible(poi, persona)fromtools/map/rules/visibility.mjsdecides what shows, and a place whose live state the header does not list stays dark (--live-states 1,2overrides the header'sm_aLF_LiveStates). A world other thanmaindraws on a plain metre grid and fits the view to its places (--place fit;--base everonkeeps the terrain). With no place carrying a POI kind (the pack island has none yet) the render says so on stderr and draws no POIs,overlay=none. The stand-in rows are only--fixtureand the render selftest. Tested bytools/validation/map-places-selftest.mjs(fixture layertools/map/render/fixtures/places.fixture.layer: three kinds across the personas, a dark place, a kind with no row, a prefab-inherited place, a group, a nested child). Nested children are placed from the parent's coordinates turned by its yaw; entity ids and layer overrides beyond that are not modelled. - ✅ Session harness and
map-shots(#2228, M0b): the harness verbmap open|close|pan <x> <z> <zoom> [seconds]|status, plusmap waypoint <x> <z>(what a right-click does,LF_MapWaypoint.SetFromMap),map mark <x> <z> [n](n personal marks throughInsertStaticMarker, answering the count before and after, so the 21st refusal reads back) andmap probe(the-lfMapPlacesProbemeasurement on demand plus the mean frame ms since the map opened, sampled byLF_MapPlacesUI.Update) from the map proof pass (Feature/Map/LF_MapHarness.c, amodded class LF_AgentHarnessVerbs, client side). The harnessinputverb refusesGadgetMap, soopenholds the carried paper map (SCR_MapGadgetComponent, the wayhold PaperMap_01_foldeddoes; with none carried it opens the sameMapMenuthe gadget opens) andcloseswitches the gadget's map mode off.pancentres on worldx zwithSCR_MapEntity.ZoomPanSmoothat the emulator's zoom: the view ismap width / 2^zoommetres across (the width comes from the map entity, no constant), so atools\cli map render --zoom Npicture and the game frame the same ground. The map takes a few frames to start up and a pan before then does nothing, sostatus(open=1 ppu=.. min=.. max=.. cx=.. cz=.. view_m=..) is the read-back. The proofnode agent-box/session.mjs map-shots [--out dir] [--place name] [--bbox x0,z0,x1,z1] [--zoom N](agent-box/proofs/map-shots.mjs) takes its views from the emulator's ownresolveView(default: the island, Saint-Philippe, the square), pans until the real width is within 5% of the emulator's, photographs the UI and writes<view>.pngand<view>-emulator.png. Final proofs only (one run at the end of a visual card,up --mission everon --profile full); iterate in the emulator and the LOGIC tests. - ✅ Share core (#2237, M9): one server table,
LF_MapShares, holds shared marks by the owning system's key (LF_MapShareRow: key, audiencePLAYER/ROLE/ORG/EVERYONEand its id, x and z in metres, icon and colour indexes, text of at most 32 characters, expiry in world seconds or 0, and an optional area: a radius of 1 to 5000 m and anLF_MapAreaStyleid, radius 0 meaning none).Putsends a row to exactly its audience and takes it from players who held it but are outside a changed audience;Removetakes it from everyone who holds it. Audience resolution (LF_MapShareRules.InAudience):PLAYERis the active character's record key (LF_Utils.GetPlayerUID; the org is still looked up by character id),ROLEis an on-duty service only (policeto police on duty,medicto medics on duty, off duty sees nothing: D-M10),ORGthe org id, and an empty id or unknown audience reaches nobody. Membership changes go throughRefresh(playerId)(owners call it at once; a sweep every 5 s refreshes everyone and expires rows, spread over 20 ticks of 250 ms since #2531), which sends the diff: rows the player now belongs to and removals for the ones they left.LF_OnPlayerSpawnedEvent(late join or respawn) clears the client's shared marks and resends the full set; a player holds at most 64 rows. Delivery isLF_MapShareComponentonPlayerControllerRoleplayMP.et:RpcDo_MapShareAdd/Remove/ClearwithRplRcver.Owneron the recipient's own controller, never broadcast and no entity id on the wire; the client inserts each row as a local vanilla static marker (InsertStaticMarker(marker, true)) the player cannot delete (D-M7: the vanilla networked marker path is not used). A row's area rides the sameRpcDo_MapShareAdd(radius and style appended):LF_MapShareAreas.Showregisters a local circle inLF_MapAreasnamed after the row's key (the row's text is its label),Hidetakes it off with the mark (remove, replace, clear before a resend), so a late joiner or respawn gets it back through the resend;Putdrops an area that is not drawable (LF_MapShareRules.AreaValid) and still sends the mark. Testmap/share-areas(LOGIC). Rules (audience, expiry, diff, area validity) are one case table,Configs/Map/Rules/shares.cases.json, run byLF_Test_MapShares(LOGIC, viaLF_MapShareCases.generated.cfromnode tools/map/rules/shares.mjs --gen, plus a four-player fixture through the table with a recording sink) and bytools/validation/map-shares-selftest.mjs(node twintools/map/rules/shares.mjs). Nothing is saved (owners re-issue rows; org marks are M12). Not done: the callers (dispatch M10, taxi and jobs M11, org marks M12, events M15) and the shared-mark icon config. - 🧪 Org marks (#2240, M12): a member whose rank holds the
MANAGE_TERRITORYright (founders have it; a founder gives it to officers through the rank rights) places a mark for the whole organization, at most 20 per organization (D-M11).LF_OrgMapMarks(Feature/Organizations/LF_OrgMapMarks.c) is the server store; each mark is anORG <orgId>row ofLF_MapShareskeyedorg:<orgId>:<serial>, so members get it and nobody else does. The client asks on its own controller withLF_MapShareComponent.AskOrgMark(x, z, icon, colour, text)(RpcAsk_OrgMark) orAskOrgMarkRemove(key); the server checks the organization, the right, the cap, one add per 2 s per character, int16 positions and u8 icon and colour, and trims the text to 32 characters (no profanity filter yet). Serials are never reused in a session (a per-org high-water mark), leading#is stripped so player text is never a string table key. A load keeps the marks of an organization that is not registered at that moment (a whole-store re-apply may run mid-swap); a future disband path must remove its org's marks. Saved as theorgmarkspayload (save version 44), kept across the 24 h reset; a load re-puts every mark into the share table and skips rows with no org, repeated keys and rows past the cap. Joining or leaving an organization (create, invite, kick, leave) callsLF_MapShares.Refreshfor that player at once (LF_OrgMapMarks.RefreshCharacter). This is how an org shares an underworld place by hand (D-M5). Org marks are put at load, so they take up to 20 of a player's 64 share slots ahead of later rows. Not done: the map UI to place and remove org marks (the asks exist; the dialog is M8's), the shared-mark icon config, officers holding the right by default. Testmap/org-marks(PERSISTENCE). Fixed (2026-11-17 property review, LOGICmap/org-marks-character-id): the asks andRefreshCharacterresolved the player withLF_Utils.GetPlayerUID, the record key, which for an account's first character is the account uid; organizations list members by character id, so that character's every add and remove was refused. They now useLF_OrgMapMarks.CharacterIdOfPlayer(the active character's id). - ✅ Waypoint on the map (#2235, M7):
LF_MapWaypointUI(Feature/Map/LF_MapWaypointUI.c, aSCR_MapUIBaseComponentlisted inLF_MapFullscreen.conf) listens forMapContextualMenu(right mouse button, gamepad x) while the map is open, turns the cursor into a world position (SCR_MapEntity.ScreenToWorldNoFlip, height from the surface) and callsLF_MapWaypoint.SetFromMap, which marksLF_Waypointwith the idmap. A second click moves the mark (LF_Waypoint.Markon the same id would clear it, so the move is a clear and a mark); a click over a town board waypoint replaces it, since there is one waypoint. The waypoint, whoever set it, is drawn by a full-sizeCanvasWidgetunder the map root as a graphite pencil circle with a cross (LF_MapWaypoint.BuildMark: 24 ring segments and two strokes, a fixed 14 units at every zoom), redrawn on pan, zoom and when the board or an arrival changes it. The HUD marker over the target stays the only GPS-like aid (D-M9): no route line, no bearing line. Label keyLF-MapWaypoint_Label. TestLF_Test_MapWaypoint(LOGIC). Not done: the hover card's "Set waypoint" (M4), the in-game picture (M0bmap-shots), the bearing line from a player who knows where they are (D-M2). The ring is drawn in screen pixels (radiusDPIScaled), where the map proof pass found it 1.5 times too far from the corner. - ✅ Area conf rows (#2233 split M5b, Refs #2223):
Configs/Map/LF_MapAreas.conf(LF_MapAreaConfig,Feature/Map/LF_MapAreaConfig.c) holdsLF_MapAreaRowrows (m_sId,m_sLabel,m_eStyle,m_eShapePOLYGON or CIRCLE,m_vCentre,m_fRadius,m_aPoints) and is layered with each pack overlay by id throughLF_ConfigOverlay, like the POI table. Core ships it empty (core holds no coordinate); the pack'sLF_Everon1989/Configs/Map/LF_MapAreas_Everon1989.conf, listed in the mission header, adds Saint-Philippe's town line (a polygon round the dossier's buildings, 20 m out) and the safe square (40 m round the town hall). The pack file is generated fromdocs/everon/places/saint-philippe/dossier.jsonbynode tools/map/areas-from-dossier.mjs(no typed coordinates; the selftest fails when it is stale).LF_MapAreas.Collectappends the rows after the zones and the layer entities, and a name already in the list is not drawn twice, so aLF_ZoneComponententity named like a row stays the rule and the row is only its picture until the arrival slot (M19) places the real entities. A row with no outline (a polygon under three points, a circle with no radius) is skipped and logged. No lawless row until M7 (D4).tools\cli map render --place saint-philippenow drawsareas=2. Tested byLF_Test_MapAreaConf(core: the empty core file, the rows becoming areas, the skips and the name dedupe),LF_Test_EveronMapAreas(pack: the header lists the overlay, the two rows merge in, the map collects them) andtools/validation/map-area-conf-selftest.mjs(the emulator reads the same files, layering,m_sOp, the multi-line array form). Not done: box and corridor shapes in a row (LF_MapAreaShapehas POLYGON and CIRCLE only), the drawing (M6). - 🟡 World of Everon "Live now" and the spoiler check (#2211, X1 of #2201): the website page
/docs/world-of-everongets a generated## Live nowsection (website/scripts/live-now.mjs, called bybuild-content.mjs, placed before the page's contents list). It reads the flagship header'sm_aLF_LiveStatesand eachdocs/everon/places/<slug>/dossier: a place is shown when itsmapping.jsonhas astatethe header lists, with one overview picture (thewideone, else the first; copied to git-ignoredwebsite/public/everon-live/), its caption and one line (mapping.line, else the dossier's building counts). The page is stricter than the game: an empty or missing list shows nothing, not every state (D4).tools/validation/validate-public-bible.mjsfails when any page the site renders orwebsite/content/**namesworld-bible-internal.md, or whendocs/everon/world-bible.md, a dossier picture caption or the generated section contains a term from the## Spoiler termslist in the internal file (a missing list also fails). Proof:tools/validation/public-bible-selftest.mjsovertools/validation/fixtures/public-bible/. Nothing is live yet (the pack header lists no state, no mapping has astate), so the page is unchanged today. - ✅ Area layer (#2234, M6, Refs #2223):
LF_MapAreasUI(Feature/Map/LF_MapAreasUI.c, aSCR_MapUIBaseComponentlisted inConfigs/Map/LF_MapFullscreen.conf) owns one canvas over the map and draws every areaLF_MapAreas.Collectreturns: a wash or hatch fill (PolygonDrawCommand; the core white-inkLF_MapHatch_Diagonal/Crosstiles tinted by the style colour), an outline (LineDrawCommand: solid is one closed line;dashandheavy-dashare cut into dash polylines in screen pixels, so a lower zoom has fewer dashes; a huge outline needing over 400 dashes falls back to solid) and, from 0.3 px per metre up, a centred label (the style's#LF-Map_Area*key, or the area's own). The pack conf writes vectors unquoted (m_vCentre 1 0 2,m_aPoints { 1 0 2 3 0 4 ... }): a quoted "x y z" loads as zeros in game, which put both Saint-Philippe areas at the world origin until the map proof pass (tools/map/areas-from-dossier.mjswrites the engine form,LF_Test_EveronMapAreasfails an origin point). Its commands are in screen pixels asWorldToScreengives them (DPIUnscaleis forFrameSlotonly; unscaled vertices put every area 1.5 times too far from the corner at 720p), culled against the workspace size, with the map's own zoom (GetCurrentZoom) asppu; each build logsdrew N area(s). It rebuilds on map open, the first frame after it, pan end and zoom end; during a drag the canvas is only moved by the pan since the last build. The drawing rules are pure:LF_MapAreasDraw.Build(area, screenOutline, ppu, viewW, viewH, themeTokens, label, out records)returnsLF_MapAreaCmdrecords (FILL, OUTLINE, LABEL) and culls an area off the canvas or under 4 px. Colours are the theme'smap-area-<style>-fill|linetokens:LF_UIThemeRecord.m_sMapTokens("name=#RRGGBB;..."), set on the paper record ofConfigs/UI/LF_UITheme.conf; a pack patches it (a name it leaves out keeps the built-in inLF_MapAreasDraw.BuiltInHex). Tested byLF_Test_MapAreasDraw(LOGIC: the records for a circle safe zone at two zooms, the lawless hatch and heavy dash, the town line, gated cross hatch, the cull and the theme tokens). Not done: the in-gamemap-shotsproof (waits on M0b #2228), the event style's timer label (M15), pack-inked hatches (the pack hatch and icon metas now carry their path inName, so{GUID}UI/Imagesets/LF_MapIcons_Everon1989_Hatch{Gated,Lawless}.eddsresolves;validate-meta-name-pathfails a path-less meta Name). - 🧪 POI layer (#2232, M4):
LF_MapPlacesUI(Feature/Map/LF_MapPlacesUI.c, listed inConfigs/Map/LF_MapFullscreen.conf) draws the POIs the player sees (LF_MapPois.CollectLiveplus the known set) on the open map: oneLF_MapPoi.layoutwidget per icon or cluster stamp in a frame over the map, placed withSCR_MapEntity.WorldToScreen, culled to the screen. Below zoom 4 (view 12800 m / 2^zoom wide) a bucket of one eighth of the view width holding two or more places is one stamp with a count, a click on it zooms in to zoom 4; at zoom 4 and closer every place is its own icon; a kind hides below itsm_fMinZoom. Clusters are rebuilt when a zoom ends, positions on pan and zoom events only, and nothing runs while the map is closed (the component only lives with the map). Hover or click on a place showsLF_MapPoiCard.layout: its name with its town, a note for a place only heard of, and Set waypoint (the single personal waypoint, idmap, as a map click and the board set it; a second place moves it). Icons come from the pack imageset when a moddedLF_MapPlaceIcons.PackImageSet()returns one (the pack does not yet), then the core quadspoi_<Kind>, the row'sm_sIcon,cat_<category>. The rules are one case table,Configs/Map/Rules/cluster.cases.json, run byLF_Test_MapPlacesLayout(throughLF_MapClusterCases.generated.c, written bynode tools/map/rules/cluster.mjs --gen) and bytools/validation/map-cluster-selftest.mjs(node twintools/map/rules/cluster.mjs, whichtools\cli map renderdraws the stamps with). Four stringsLF-MapPlaces_*. Not done: the in-gamemap-shotsproof and the engine probe numbers (-lfMapPlacesProbe; waiting on #2228), the nativeMapItemcomparison (seeeveron-map.mdsection 1), the pack's 1989 imageset hookup, the opening note ("Opens 08:00"), periodic refresh while the map is open (the list is read on open). - ✅ Area layer (#2234, M6, Refs #2223):
LF_MapAreasUI(Feature/Map/LF_MapAreasUI.c, aSCR_MapUIBaseComponentlisted inConfigs/Map/LF_MapFullscreen.conf) owns one canvas over the map and draws every areaLF_MapAreas.Collectreturns: a wash or hatch fill (PolygonDrawCommand; the core white-inkLF_MapHatch_Diagonal/Crosstiles tinted by the style colour), an outline (LineDrawCommand: solid is one closed line;dashandheavy-dashare cut into dash polylines in screen pixels, so a lower zoom has fewer dashes; a huge outline needing over 400 dashes falls back to solid) and, from 0.3 px per metre up, a centred label (the style's#LF-Map_Area*key, or the area's own). It rebuilds on map open, pan end and zoom end; during a drag the canvas is only moved by the pan since the last build. The drawing rules are pure:LF_MapAreasDraw.Build(area, screenOutline, ppu, viewW, viewH, themeTokens, label, out records)returnsLF_MapAreaCmdrecords (FILL, OUTLINE, LABEL) and culls an area off the canvas or under 4 px. Colours are the theme'smap-area-<style>-fill|linetokens:LF_UIThemeRecord.m_sMapTokens("name=#RRGGBB;..."), set on the paper record ofConfigs/UI/LF_UITheme.conf; a pack patches it (a name it leaves out keeps the built-in inLF_MapAreasDraw.BuiltInHex). Tested byLF_Test_MapAreasDraw(LOGIC: the records for a circle safe zone at two zooms, the lawless hatch and heavy dash, the town line, gated cross hatch, the cull and the theme tokens). Not done: the in-gamemap-shotsproof (waits on M0b #2228), the event style's timer label (M15), pack-inked hatches (LF_MapIcons_Everon1989_Hatch*.edds.metahas no path in itsName, see the PR). - 🧪 Legend, filters and search (#2244, M16, Refs #2223):
LF_MapLegendUI(Feature/Map/LF_MapLegendUI.c, aSCR_MapUIBaseComponentlisted inConfigs/Map/LF_MapFullscreen.conf) puts a "Map key" tab on the left edge of the open map (the kit's button layout, paper-coloured). It opens one UI kit sheet (LF_UIScreenparts, no new layout): a search blank with a Find button and a list of up to 8 matches, then one status row per category the player's map shows (the legend never names a category the player has not met), each with a Hide / Show button.LF_MapLegendholds the pure rules:Categories(printed order),Filter(POIs of a hidden category are dropped),Search(case-insensitive part of the name; only places the player's list already holds, so an unknown, role-gated or hidden place is never found; names that begin with the word first; cap 8),Toggle. A moddedLF_MapPlacesUIin the same file keeps the full list, redraws through the filter (ApplyLegendFilter) and pins the card after a pick (FlashPlace:ZoomPanSmoothto the solo zoom, then the place's card). A pick shows its category again if it was hidden. StringsLF-MapLegend_*. Test LOGICmap/search(LF_Test_MapSearch). Harness verbmaplegend open|close|search <word>|toggle <cat>|demo <x> <z>|statusand the final proofmap-legend-shots(agent-box/proofs/map-legend-shots.mjs;demoadds four stand-in places because no world holds placed POIs yet). Not done: the ticks are held in the client's session, not yet saved in the client profile; lines for areas, my marks and shared marks; the vanilla town names in search (no list API inLF_NamedPlaces, which only answers nearest). - 🧪 Discovery on the map (#2242, M14):
Feature/Map/LF_MapPlacesKnown.c. ADISCOVERplace is off the paper until the player knows it, a faded pencil "?" (pencil_question, 45 % opacity) once heard of, the full icon once visited (the rule isLF_MapPoiRules.Resolve;LF_MapPlacesKnown.StateOfandCandidatesname the three states and the quads). The open map follows a change: a moddedLF_MapPlacesUIcompares what the player would see once a second and rebuilds only on a difference. The clerk's arrival marks: a moddedLF_QuestTrackerComponent.GrantRewardcallsLF_MapPlacesKnown.OnTurnedIn; the turn-in ofarrival_donemarks the liveDISCOVERplaces within 300 m of the player (the square and its streets, no coordinate in the core) heard of, in one join-sync message, with a toast. Tourist map:LF_TouristMapAction(core) is on the pack'sLF_Everon1989/Prefabs/Items/LF_TouristMap.et(the vanilla folded paper map, so it still opens the map): study it and every liveDISCOVERplace is marked heard of (never a role, public or underworld kind, never a dark place, never lowering visited); the item stays. The newsagent kiosk b13 beside the pub sells it at $25 (#3222, stocknewsagent); its map POI is the genericStoreCounterone (a "General Store" label until a per-slot label exists). Testmap/places-known(LOGIC; red proof recorded); emulatormap render --as new|known; one final in-gamemap-shots. - ✅ Taxi fare and job stop marks (#2239, M11):
LF_JobMapMarks(Feature/Jobs/) turns a taxi fare's destination into aPLAYERshared mark (taxi:<fareId>for the driver,taxi:<fareId>:pfor the passenger) and a delivery run's current stop into one for its runner (job:<uid>:<stopId>, one per runner, a new stop replaces the last), and sends the same place as the waypoint on that client (LF_Waypointidstaxi-fareandjob-stop; owner RPCRpcDo_JobWaypoint/Clearadded toLF_MapShareComponentby a modded class, never broadcast). The job owns the marks:OnFareAccepted,OnFareDone,OnStopandOnStopDoneare the calls,LF_OnJobCompletedclears the runner's stop and the fare they drive, an abandoned run clears its run-bound stop on the next 5 s sweep, and a mark whose owner never finishes expires after an hour. Nothing is saved (D-M11). Tested byLF_Test_JobMapMarks(LOGIC: a fare gives driver and passenger a row and a waypoint and nobody else, a stop gives its runner one and a new stop replaces it, completion clears both, a cancelled fare, the abandon rule, expiry). Callers for delivery runs (follow-up to #2239): a delivery run has one stop, the nearest drop-off. Starting a run (LF_JobStartRunAction, after the cargo is in hand) callsLF_JobMapMarks.OnRunStarted, which takes the nearestDROPLF_JobSiteComponent(now registered inLF_Placesas kindJobDrop, id = entity name, so no name or coordinate lives in script) and callsOnStopwith it;LF_CivilianJob.AbandonRuncallsOnStopDoneat once (any abandon path, including a failed cargo give), completing the run clears it byLF_OnJobCompleted, and a run that ends any other way is swept by the 5 s sweep. A run with no drop placed logs a warning and gets no mark. A taxi run gets none (no fare system until M6). A route with several stops callsOnStopfor each next one and the new stop replaces the last. A respawn or late join resends the waypoint:LF_JobMapMarkSubscriberlistens toLF_OnPlayerSpawnedEventandLF_JobMapMarks.ResendTo(uid)sends the runner's waypoints again (the row itself comes back throughLF_MapShares.OnSpawned). Tested byLF_Test_JobRunMarks(LOGIC, real runs). Not done: the taxi fare callers (M6) and the in-game two-player check. Fixed (2026-11-17 map review, LOGICmap/share-member-key): the runs put the row under the record key while the share table matched players by character id, which differ for an account's first character, so its stop mark and waypoint never arrived;LF_MapShareGameFacts.MemberOfnow keys by record key. - ✅ Performance gate (#2246, M18):
LF_Test_PerfMap(PERF tier:tools\cli test --no-build --tier perf, never infastorall) lays out 400 POIs (every one its own icon, the solo zoom) and 40 area circles (32-gons, all on screen) and fans a share out to 128 synthetic players, three separate budgets on the cheapest of 15 repeats: per frame (project and cull 400 icons, the widget layer'sRepositionminus the widget calls; a pan re-tessellates nothing) under 1 ms, measured 0.07 ms; per zoom end (cluster the POIs again and re-tessellate the areas into draw commands, once per zoom end, never per frame) under 8 ms, measured 3.5 ms (0.65 clusters, 2.9 areas); share fan-out (oneEVERYONEput to 128 recipients holding 24 to 63 rows) under 2 ms, measured 0.15 ms. Share sweep (map-share-sweep-ms, #2514, #2531: one tick ofLF_MapShares.SweepStep, 128 players each holding 64 rows, 300 rows in the table; the dearer of the cycle-start tick and a batch tick) under 8 ms, measured 2.4 ms on lf-testbox; the whole pass in one frame (RefreshAll, reported asmap-share-sweep-whole-ms) is 37.4 ms, which is what the server did every 5 s before #2531. Script only: the widget calls are not in it; the in-engine probe (#2232) put the whole widget rebuild at 8.2 to 12.2 ms and a pan frame at 0.23 to 0.30 ms. PrintsBENCH map-*lines.
Event places — Feature/Events/LF_EventMapShare.c (#2243, M15, 2026-11-17)
- ✅ A running event's place is an
EVERYONEshare (event:<eventId>) with a safety expiry and anEVENT-style area carried on the row, which every client draws as a localLF_MapAreascircle; the event's end removes both (details and the open follow-up indocs/features/events.md). Testevents/map-share. - ✅ Share cap warning logs once (#2514, review 2026-11-17): a player in more than 64 shares used to get
player N is in more than 64 shares: the rest waiton every 5 s sweep for the rest of the session;LF_MapSharesnow warns when the player first goes over the cap and arms it again only after they drop to 64 rows or fewer (or leave). Tested byLF_Test_MapShareCapWarnOnce(LOGIC: three sweeps over the cap give one warning, under and over again a second). Medic clock-out already refreshes shares at once:LF_DutyLocker.AfterSwapcallsRefreshMapSharesfor every role since #2238, so no medic-side change was needed. - 🔧 Share sweep spread over frames (#2531, merged, in-dev): the 5 s membership sweep refreshed all 128 players in one server frame (20 to 50 ms, a hitch every 5 s).
LF_MapShares.Sweepnow runs everySLICE_MS(250 ms) and callsSweepStep: the first ofSWEEP_SLICES(20) ticks expires rows, forgets players who left and snapshots the player list; each tick refreshes the next batch (the list over 20, rounded up), so every player is still visited once per 5 s; a player who left mid-cycle is skipped and sent nothing.Refreshreturns at once when the client already holds exactly the wanted keys. Audiences stay server-decided per player (unchangedWantedFor). Testsmap/share-sweep-slices(LOGIC) and the gatedmap-share-sweep-msinperf/map-128(2.4 ms per tick, budget 8). No save or wire change. - 🧪 Org mark bounds and underworld POI check (#2513, M12 follow-up):
LF_OrgMapMarks.Addrefuses an icon or colour index at or past the placed-marker lists ofLF_MapMarkerConfig.conf(read from the engine marker manager) and a position outside the world bound box (the dedicated server has no map entity), on top of the int16 wire and u8 index checks; a limit it cannot read is skipped with a Warn.validate-map-poi-visibilityfails a POI row (core or pack) whose category isunderworldand whosem_eVisibilityis missing (the default is PUBLIC) or notHIDDEN, and a pack patch row that makes an underworld kind public (red proofmap-poi-visibility-selftest). Testmap/org-mark-bounds(WORLD);map/org-marksnow places its marks inside the test world. - 🧪 Live member marks (#4216, gangs C10, N25): every 5 s the server puts one mark per online organization member at their body's position (
LF_OrgLiveMarks,Feature/Organizations/LF_OrgLiveMarks.c), anORG <orgId>row ofLF_MapShareskeyedorglive:<orgId>:<characterId>with the member's name, so only that organization's members receive it and nobody outside gets a byte. Green while up, grey (the placed-marker list's grey entry, index 13) while downed, jailed or cuffed. A mark is re-sent only after a 5 m move or a state change; a member who goes offline, dies or has no body loses the mark on the next pass; a member who leaves or is kicked loses it at once (LF_OnOrganizationMemberLeft, #4364), and the share sweep takes the org's live marks off a leaver's map. Never saved; separate from the placed org marks. A viewer who is jailed or cuffed receives no live marks (LF_MapShareMember.m_bInCustody,LF_MapShares.Receives; placed org marks still reach them) and gets them back on the next sweep after release (#4364). Testsgangs/live-marks-audience(LOGIC),gangs/live-mark-wiring(WORLD). - 🔧 Dispatch mark leaves when its suspect is no longer wanted (#2579, finding 10 of #2495, merged, in-dev): a dispatch mark used to leave only on board expiry or the world reset, so it stayed on every officer's map after the suspect served time or was cleared.
LF_OnServiceCallClosed(service, caller uid) is new inFeature/Comms/LF_CommsEvents.c;LF_Dispatchlistens forLF_OnWantedChangedand publishes it for "police" when the new level is 0 (the signalLF_PoliceCallscloses its calls on);LF_ServiceCallMapMarks.OnClosedremoves that caller's marks throughLF_MapShares.Removeand logsclosed: map mark dispatch:N removedunder[LFDebug:ServiceCalls]. Another suspect's mark stays. Saved share copies are untouched (finding 9). Testcomms/dispatch-mark-closed(LF_Test_DispatchMarkClosed). - ✅ (2026-11-18, #2932 weekend, draft) Saint-Philippe arrival slot carries its clerk and the
rulessign:tools/town/kits/arrival.jsonnow holdsLF_Npc_Clerk_1(the ClerkEveron dialogue, standing behind the town hall desk) and anLF_Sign_Platewithm_sSignId "rules"on the front wall (the town board card points at that id);Place_saint-philippe_arrival.layerre-fitted, which also seats the furniture on the floor (0.2 m lower). Draft PR for the maintainer batch. - 🔧 (2026-11-22,
clerk-door-painting) No painting across the registry clerk's door: the town hall clerk's public room is entered by its east doorway (building-local x 10.59, z 4.29 to 5.7, from theMunicipalOffice_E_01collision shell).TownHall_furniture_01.ethungPaintingBig_01_V9across that doorway at head height; it is removed. The two paintings that stood sideways in front of the counter window (PaintingBig_01_V4,PaintingSmall_01_V3, x 2.6/3.0, z 7.2) are now one flat on the wall pier at x 4.15. The furniture child is a prefab, so the island layer needed no re-fit. Proof:lookof the room before and after,audit placement --world MainWorld --strictok. - 🔧 Zoom-end hitch cut (#2397, merged, in-dev): the widget route of a map zoom end cost 8.2 to 12.2 ms in the engine (places restyle about 7.6 ms for 400 solo icons, areas about 4.5 ms for 40, both in the same frame). Measured with
node agent-box/session.mjs map-probe(a rendering client on the Everon world; the harnessmap probeverb, now two solo and two clustered zooms for 400 on-screen POIs and 40 synthetic areas): the places rebuild is now about 1.6 ms at the solo zooms (0.8 of it the clustering; was 7.6) and 1.0 ms clustered; the areas rebuild is the same 3.3 to 4.1 ms of script but runs as frame slices of about 0.8 ms (LF_MapAreasUI: a zoom or pan end starts a job,Updatebuilds up toSLICE_COMMANDS(120) records a frame, and the canvas gets the finished commands in oneSetDrawCommands; the last commit stays on screen meanwhile, a pan or zoom event restarts the job), so the dearest zoom-end frame is about 2.4 ms. Places:LF_MapPlacesUI.Stylefinds the icon and count widgets once, remembers the quad a candidate list resolved to (LF_MapIconPick, so a missingpoi_<Kind>quad is not searched on every rebuild), and writes the image, opacity and count text only when they differ from what the icon shows (LF_MapIconState; the same place object in the same state is skipped without any string work). The heard-of "?" now overridesIconCandidatesinstead ofStyle, so a faded place loads once, not twice. Areas: a pass shares oneLF_MapAreaPalette(a token's colour parsed once per pass; it did not move the area time) and the dash maths dropsMath.Pow. The look is unchanged: same records (LF_Test_MapZoomEndCachebuilds every style with and without the palette and compares), same widgets, same quads. Harness:map demodraws 40 stand-in areas through the slices (the Everon test world has none). Testsmap/zoom-end-cache(LOGIC). - 🧪 Saint-Philippe on the map (#2247, M19): the pack POI overlay
LF_Everon1989/Configs/Map/LF_MapPois_SaintPhilippe.conf(listed in the flagship header, so the island header inherits it) gives the square's place kinds their rows:Clerk(town hall)PUBLIC;TownBoard,FuelTill,TaxiRankPUBLIC; the shop counters (StoreCounter,ClothingCounter,GunCounter),CafeTable,HostelBedandParcelDepotDISCOVER, so the clerk's heard-of marks (D-M3) and a visit reveal them. Labels are pack stringsLF-MapPoi_*. The town line and the safe circle were already pack area rows inLF_MapAreas_Everon1989.conf; no island layer changed. Proof:map render --place saint-philippeand one in-gamemap-shotson the island header (the overlay loads 10 rows, the map opens with 3 places for a new player: bank, town hall, board; the dashed town line and the safe circle draw). - 🧪 A name per shop (#3515): shops share one front kind (
StoreCounter), so every one read 'General store'. A POI row keyed<kind>/<slot>(LF_MapPoiKind.m_sKind,LF_MapPoiConfig.FindSlotRow) restyles the places of that kind whose id ends in.<slot>(saint-philippe.bakery->bakery): label, icon, category and min zoom come from the slot row (setm_sCategoryexplicitly, its default iscivic), while visibility and role stay the base kind's row, so a shop shows by the same heard-of / visited rule as before and the gather loops skip slot rows. The pack overlayLF_MapPois_SaintPhilippe.confhas a slot row for general store, supermarket, hardware, pharmacy, newsagent, seed and feed, bakery, butcher and furniture, plus aBarberChairkind row (DISCOVER) for the barber; strings areLF-MapPoi_*in the pack table.town.jsonslots now name their front kind inpoi(StoreCounter,BarberChair,ClothingCounter,GunCounter), andtown map --checkfails a slot whose front kind is shared with another slot and lacks its<kind>/<slot id>row. The map renderer joins the same rows (tools/map/lib/overlay.mjs). No layer changed: the shop-fit layers keepStoreCounterand ids<town>.<slot>. Tests:LF_Test_MapPoiSlotRows(core),LF_Test_EveronMapShopLabels(pack), selftestspoi-checkandmap-places. - ✅ (2026-11-18, #2315 integration fix, draft) Clothing counter is a working shop (first-hour step 6): the fitted
counter_shop_01is now the pack prefabLF_ClothesShopCounter(theCounterShop_01mesh with anLF_ShopComponenton theclothing_rackcatalogue outlet and theLF_ShopActionthat opens its price list; theClothesShopstrings already in the pack table). The slot kit rowcounter-shop-01uses it, so a refit keeps it. Testeveron/clothes-shop-counter(pack leg).agent-box/flows/island-first-hour.txtstep 6 namesFit_saint_philippe_clothing_counter_shop_01. - 🧪 Contested ground on the map (#3552): the pack POI overlay
LF_MapPois_Everon1989.confhas a publiccontested-siterow (category story, label#LF-MapPoi_ContestedSite), so everyLF_ContestedSiteComponentplace (farm compound, hilltop mast, quarry) draws on the map for everyone. Test:everon/map-pois-contested(pack leg). - 🔧 A marker you place shows in the world (rc-map-waypoint, in-dev): placing a personal marker on the map (the vanilla marker dialog, quick menu or a drag) now also sets the one personal waypoint (
LF_Waypoint, idmarker): the HUD marker over the spot with its distance, client only so nobody else sees it, named by the marker's own text or "Map marker". It clears when the player gets within 8 m, when they place another marker or set another waypoint (there is one), and when they delete that marker; a restore of saved marks at spawn is not a placing. The hook is the existing choke point inLF_MapMarksSync.c; the rules areLF_MapMarkWaypoint(LF_Test_MapMarkWaypoint). The right-click waypoint and the POI card's Set waypoint (LF_MapWaypointUI,LF_MapPlacesUI) already fed the same HUD marker. - 🔧 Every island place is on the map from the first look (rc-map-places, in-dev): the clerk was never missing. Three faults:
LF_MapPlaceIcons.PackImageSet()was empty and no pack overrode it, so no 1989 pictogram ever drew (every place was a neutral category glyph; the POI table has anm_IconSetfield and the pack's overlayLF_MapPois_Everon1989.confnames its set there); the layer wrote no name beside an icon (it does now from zoom 5,LF_MapPoiLabel.layout, throughLF_Terms.Expand); and the clerk was a generic "Town hall" and every shop, the hostel, the depot and the job sites wereDISCOVERrows, hidden until a player heard of them (a new player saw 1 of 37 POI places around the square intoolscli map render --as new). The pack now makes themPUBLIC(LF_MapPois_SaintPhilippe.conf,LF_MapPois_Everon1989.conf, the fishing and wholesale files) and the Clerk row reads "Registry clerk: ID cards" with a new ID-card pictogram. A new fileLF_MapPois_SaintPhilippe/LF_MapPois_Island.confgives the rest of the island rows: ATMs, garage, fuel depot and the roadside stop, farm compound, farm yard, orchard, wheat field, logging yard, timber merchant, scrapyard, churches, harbour, market, car lot, range, payphones, and the job sites by name (Workplace/yardis the sawmill,Workplace/woodlotthe timber yard; every other job site is "Job site"). Six new pack pictograms (poi_IdCard,poi_Atm,poi_Garage,poi_Bed,poi_Sawmill,poi_Scrap;tools/map/icons/build-icons.mjs, atlas rebuilt withtoolscli ui-image --batch). A public payphone (anLF_PhoneComponentwith no dispatch service) registers itself as aPayphoneplace. The emulator now reads the folder overlays beside a listed POI file and the prefab-registered payphone. TestsLF_Test_EveronMapPlaces(pack leg),LF_Test_PayphonePlace;LF_Test_EveronMapShopLabelsnow expects shops public. Not on the map: a garbage depot (the island has none placed). - 🔧 Map rework after the 0.2.0 playtest (map-markers-waypoint, in-dev): "the map markers look bad and setting a waypoint is not intuitive". Icons: every pack pictogram is now one badge style (
tools/map/icons/build-icons.mjs: a disc in its group's colour, a dark rim, a paper glyph of one stroke weight; groups civic, money, shop, food, law, health, travel, work, home, story, underworld), and each place type has its own (24 new: grocer, bakery, butcher, café, market, newsagent, clothing, hardware, gun store, pharmacy, barber, furniture, farm supply, wholesale, orchard, wheat field, woodlot, mine, plant, smokehouse, town board, plot for sale, car lot, range); the pack POI rows name them inm_sIcon. The pack atlas is 1024 (ATLAS_SIZE, 71 quads); the core placeholders are unchanged. No name is written on the map: the card under the map cursor (mouse or gamepad: the layer hit-testsSCR_MapCursorInfo, its widgets ignore the pointer so a drag over an icon still pans) names the place and says what a click does.LF_MapDeclutter(pure): icon size by zoom (28 at the solo zoom to 36, stamps 32; they drew at their 64 px image size before, and an icon now fills its square by its slot,LF_MapPlaceCard.FillParent), and icons that would overlap on screen fold into one mark led by the most important place (stamp, then the legend's category order, visited before heard-of) with a count; its card lists the others and a click zooms in 1.5 levels (to zoom 8). A Legend tab under Map key opens a paper slip with one icon and type per line for the places the player's map shows (LF_MapLegend.IconRows). Waypoint: Shift + left click on the map (gamepad: hold Y, press A) sets it at the cursor, or on the place under it with that place's name; the same on the waypoint (within 1.6 ring radii) clears it. It is vanillaMapSelectwith the newLF_MapWaypointModifieraction held (keyboard Shift, gamepad Y;MapContext), so one click never runs two paths; vanilla has no personal waypoint and nothing on Shift + click. A plain click on a place sets it too (again: clears it).LF_MapWaypointClear(Backspace, gamepad Y double tap) clears it. Right click no longer sets it: it also opened vanilla's radial menu, which pans the map to the cursor. The ring carries a tag with the name and distance, and a paper strip at the bottom of the map says how to set and clear it (device-aware). Clicks are ignored while a vanilla pan, draw or tool, the radial or a focused widget owns the cursor. Harness:map waypointtakes the Shift-click path,map hover <x> <z>pins a mark's card,maplegend iconsopens the legend. The card translates the town key (it printed#AR-MapLocation_...). Pictures:agent-box/proofs/map-rework-shots.mjs. Tests LOGICmap/declutter,map/waypoint-click. Badge polish (map-badge-polish, in-dev): the badges were small and near-black on the grey map (the POI layout multiplied the icon by a dark ink,Color 0.11 0.10 0.09, which also darkened the pins; it is white now, so the atlas shows as drawn). Icons are 1.4x (39 reference units at the solo zoom up to 50, stamps 44), the pack badge is a brighter group colour with a dark rim and a light halo ring, and the glyph fills more of the disc (scale 0.72). The waypoint reads "Waypoint: 95 m" on the ring tag and in the strip ("Waypoint: 95 m. Backspace clears it."), and ", 95 m" on the tag and "Waypoint: , 95 m." in the strip when it sits on a place (LF_MapWaypoint.Tag,Detail; LOGICmap/waypoint).build-icons.mjscontact sheets are on grey now. Shots:map-rework-shotsalso writeswide.png(zoom 3). - 🔧 Map clean-up, how-to card and key column (map-clean-howto, in-dev): the maintainer asked for "the map super clean and easy to use, with instructions on how to set waypoints", "a key on the right side without it being too obtrusive", "a more obvious waypoint", "no overlapping safe zones" and "each thing needs a different icon". Vanilla symbols:
LF_MapDescriptors(pureHiddenAt(type, layer), applied on every open fromLF_MapPlacesUI.OnMapOpenover every layer's descriptor props) hides the black point symbols a badge repeats or that clutter the town (crosses, calvaries, chapels, fountains, springs, fuel stations, hospitals, bus stops, pubs, stores, police, towers, view towers, bunkers and more). Settlement and local names show only from layer 2 (under 0.5 px per metre), where the badges have folded into stamps, and churches likewise. Hills, lighthouses, transmitters, ruins and water names stay. The harnessmap descriptorslists every type's count and whether it shows on the current layer. Safe zones: the label is 13 px type just under the outline (above it at the canvas bottom), not over the icons; a drawn-only safe or lawless conf row that overlaps a realLF_Zoneszone of the same style is not drawn (LF_MapAreas.OverlappingZone): the stalesaint-philippe-square-safecircle sat across the real square zone. Quest note: a notification toast hides while the map is open and its clock pauses (LF_NotificationToastUI.ResumedShownAt), so the arrival note no longer covers the map. How-to card:LF_MapHelpandUI/Layouts/Map/LF_MapHelpCard.layout(a ui-kit exception, like the POI card) sit bottom-left: set, clear, click a place, hover, key, in the words of the device in use, plus the waypoint row. They replace the bottom hint strip.LF_MapHelpToggle(tap F1,gamepad0:thumb_left;MapContext) folds the card to one line, remembered in$profile:LifeFramework/map-help.txt. Key column:LF_MapLegendUI.BuildKeyreplaces the Legend slip. It is a semi-transparent column docked on the right edge: one header per category with its badge colour (LF_MapLegend.CategoryColor), then a badge and short name per type (LF_MapLegend.KeyLines,LF_MapKeyLine; 20 px type, 28 px rows, a second column when over 28 lines, and a header never ends a column; every group starts collapsed to its header and a click on a header opens or shuts its rows,LF_MapKeyLine.Collapse). Hovering a row lifts that type's marks on the map (bigger, pulsing; the others dim;LF_MapPlacesUI.HighlightType). Clicking a row shows only that type (LF_MapLegend.ToggleSolo, again for all), and clicking a header opens or shuts the group. The Key tab folds it, remembered in$profile:LifeFramework/map-key.txt. Clicks over the column never reach the map (LF_MapLegendUI.CursorOverKey). The left tab is now "Find a place" (search and category filters). Waypoint: a 20 px stamp-red ring and cross, 4 px stroke on a 9 px light halo, over a pale disc. Icons: the cluster stamp is a slate badge with three paper dots, and every public type has its own badge: farm yard (tractor), seed and feed (sack), farm supply (pitchfork), fuel depot (drum), supermarket (trolley), timber merchant (planks), logging yard (axe), bus stop (bus), post office (envelope; it drew the parcel depot crate), quarry (rocks); both mine rows use the Mine badge and read "Mine" (it holds iron, copper and gold ore; the label said "Iron mine").tools/validation/validate-map-icon-unique.mjsfails two type names on one quad, two badges with one glyph, or a public type with no badge. Harness:map help [open|closed],maplegend icons [folded],maplegend hover|solo <line>. Pictures:map-rework-shotsaddskey_hover.pngandfolded.png. Test LOGICmap/clean. - 🔧 Robbery alarm on the place badges (merged, in-dev): a robbery report rings the nearest robbable map place, and every client shows it.
LF_MapAlarms(Feature/Map/LF_MapAlarms.c, server) subscribes to the policeLF_OnServiceCallthatLF_Dispatch.Reportpublishes; a robbery offence (#LF-Offence_Robbery,_BreakIn,_HospitalRobbery,_ArmoryHeist; not carjacking, weapon theft, shoplifting, murder or jail breaks) with a site rings the nearest live place within 30 m whose POI row is PUBLIC or DISCOVER (a HIDDEN or ROLE place never goes on the wire). The row is the place key<kind>:<id>, its state and the server unix time of the alarm:IN_PROGRESSfor 180 s after the last report there (a new report restarts it), thenRECENTfor 900 s (the till cooldown), then gone (LF_MapAlarmRules.StateAt). One carrier: the rows as one short text (at most 12, oldest drops) in the RplPropm_sLF_MapAlarmsonLF_GameModeRoleplay, written only when a row appears, changes state (a 5 s sweep that stops when nothing rings) or the world reset clears it (mapalarmsstep); a late joiner gets it in the game mode snapshot and decodes it on first read (EnsureClient). The map (LF_MapAlarmsUI.c, a moddedLF_MapPlacesUI) draws a pulsing red ring and a small red "!" disc on a badge in progress (one canvas, redrawn each frame only while a ring is on screen), tints a recently robbed badge grey, and the hover card reads "Robbery in progress (alarm raised N min ago)" / "(alarm just raised)" / "Robbed recently" (LF-MapAlarm_*). The map key lists it as a sign line, "Alarm: robbery" (LF_MapKeyLine.Note). Police keep their dispatch unchanged. Nothing is saved. Logs[LFDebug:MapAlarm] robbery in progress at <key>,robbed recently at,alarm cleared at, clientmap alarm rows received: N. Tests LOGICmap/alarm-states,map/alarm-jip,map/alarm-ring, WORLDmap/alarm-place; session proofmap-alarm-shots(two clients on Everon). - 🔧 Job runs as chains on hover (merged, in-dev): hovering a badge (mouse or gamepad cursor) that stands at a stop of a job run draws that run: 4 px opaque dashed graphite lines join its stops in order with a small numbered disc (1, 2, 3...) on each stop's top-left corner, and the card reads "Mining run: step 3 of 5, next: furnace" (or "..., last stop";
LF-MapRun_Card,LF-MapRun_CardLast). Nothing is drawn when the hover ends. Data:Configs/Map/LF_MapRuns.conf(LF_MapRunConfig, empty in the core) with pack overlays throughLF_ConfigOverlay(mapRuns, keyed by run id); eachLF_MapRunrow has a name key and itsLF_MapRunStops in order, each the name of a world entity at the stop and a short label key. The pack fileLF_Everon1989/Configs/Map/LF_MapRuns_Everon1989.confholds mining (mine office, hardware store pickaxe till, ore rocks, furnace, dock wholesale), apples (orchard, juice press, market), postal van (Saint-Philippe post stand, Meaux post stand), lumber (woodlot, sawmill, timber merchant) and fishing (pond, smokehouse, dock wholesale). The core holds no names or coordinates: each client finds the stops by entity name when the map opens (LF_MapRuns.Resolve; layer entities exist on every client) and logs how many have no entity in this world. A stop shows only when a place the player's map already holds is within 80 m (LF_MapRunRules.MarkShown), so a chain never reveals an undiscovered mine; a badge belongs to a run when one of its shown stops stands within 45 m (Match, nearest stop per run; a stop two runs share draws both). Drawing isLF_MapRunsUI.c(a moddedLF_MapPlacesUI, one canvas and up to 12 number labels, redrawn each frame only while a hovered badge has a run). The map key's last two lines are sign lines: "Alarm: robbery" (a red swatch) and "Job run: hover a stop" (a dashed-line swatch); they take no filter click. Tests LOGICmap/run-chains(match, shared stop, hidden stop, card key, dashes), packeveron/map-runs(five runs, mining in five steps),map/clean(the two sign lines). Session proofmap-run-shots(island). Log[LFDebug:MapRuns] hover shows N run(s) at <place>. - 🔧 Map opens on you, names above the badges, map put away (fix-map-ui, 0.2.1, in-dev): first-2-hours review rows C1 to C7.
LF_MapOpenView.c(a moddedLF_MapPlacesUI): the map opens centred on the player at zoom 4.5 (a view about 570 m wide, past the solo zoom, so no cluster stamp stands in the town) a few frames after it opens, every time (CentreOnPlayer; the harnessmap pancancels it withCancelOpenView). The settlement and local names the terrain carries are drawn by the mod in a layer above the places, 34 units above their mark, at every wide zoom, (not the terrain's lower-case generic names such as harbor or factory) so a stamp or the post-office badge no longer covers "Saint-Philippe" or "Meaux"; the engine names go off only when the layer found names to draw.LF_MapPutAwayputs the paper map back in the pocket 350 ms after the map screen closes (it stayed in hand and covered a third of the view). Key: 20 px type, groups collapsed, tab below the HUD money block. How-to card: 570 px wide, 18 px body, 21 px title, still open by default. Run chain lines: 4 px, opaque, step numbers 24 units off the badge. Test LOGICmap/clean(the collapse and the group toggle). The HUD watermark that sat on the map is hidden while the map is open (HUD row, fix-hud-atm). - 🔧 Playtest town clothing store has the island's working counter and backpack mannequin (TP-5, #4245, merged, in-dev):
Village_Clothing.layer(pack town layer) addsLF_ClothesShopCounter(theclothing_rackprice-list outlet) beside the clerk's counter and the fifth mannequin,LF_Mannequin_Backpack, in the middle aisle, both seated on the shop floor withtools\cli place ground. The store prefab already carries the denim, raincoat, knit and suit mannequins. Both rows are allowlisted foraction-crowds-till(the building itself holds the till action, so the audit reads the whole shop as the till). The pharmacy, gun store and general store counters are not done (split). - 🔧 Playtest town: map, run and guide rows point only at places the town has (TP-6b, #4246, merged, in-dev): the town header (
LF_PlaytestTown.conf) loads the island's map POI, run and activity tables, and most of those rows name places the town does not stand (no clerk, shop counter, taxi rank, mine desk or police desk carries anLF_PlaceComponentyet). Three town-only pack overlays, loaded last, remove those rows withm_sOp "remove":Configs/Map/LF_MapPois_PlaytestTown.conf(34 POI kinds),Configs/Map/LF_MapRuns_PlaytestTown.conf(mining, lumber, fishing; apples and postal stay, their stops are placed) andConfigs/Activities/LF_Activities_PlaytestTown.conf(all seven: each has a step whose target the town does not place yet, so the F2 list is empty in the town until cards restore them). The island header does not load them. A card that places a kind in the town deletes that kind's row (or run or activity) from the overlay in the same PR: the row then draws and the guide arrow points. The town testplaytest-town/parity-data(WORLD; not in the suite, run on the town header) fails when any POI kind, run stop or guide target left in the loaded config has no place in the world, found throughLF_Placesand the guide's own target lookup, never by coordinate. Run it withtools\cli test --no-build --only LF_Test_PlaytestTownParityData --world "{1054CC8646357708}Missions/LF_PlaytestTown.conf"; under a bare DebugWorld boot (no overlays) it has nothing to check and passes, so it sits intools/test/town-tests.jsonwith aworld(the town header) andtoolscli test --town(the main guard's town stage) boots that header for it (#4388). Restored since (#4388): POITownBoard,Bank,PoliceStation,ClothingCounter,FuelTillandGunCounterand the guide activitiesapples,policeandmediccame off the overlays: marker places (Village_Places.layer,Village_Onboarding.layer) now stand at the board, teller, duty desks, clothing counter, fuel till, gun clerk and the orchard, with the island's kinds and ids. What the overlays still remove is listed indocs/roadmap/playtest-town-parity.md. - 🧪 Live-mark rules (#4222, gangs C11, N25):
LF_OrgLiveMarkRules(Feature/Organizations/LF_OrgLiveMarkRules.c) holds the rules as pure functions:IsGrey(downed or in custody),ColourFor,ViewerSees(own organization only, and nothing while the viewer is in custody),MarkStaysandDropKey(a live keyorglive:<orgId>:<characterId>is taken off when its character is no longer in that organization),OrgIdOfKey,CharacterIdOfKey. Testgangs/live-mark-rules(LOGIC; red proof recorded). Wired in by #4364:LF_OrgLiveMarksusesIsGrey,ColourForandDropKey, andLF_MapShares.ReceivesusesViewerSees. - ✅ The playtest town has a map (#4401): the town world (
Everon1989Town, a DebugWorld subscene) placed noSCR_MapEntity, and the island gets one from its Eden parent, soSCR_MapGadgetComponent.SetMapModereturned at once (itsm_MapEntityis null) and the folded map came up in hand with nothing opening:map statusreadopen=0and a player in the town could not open the map either. The pack town layerVillage_Map.layernow holds oneSCR_MapEntityfrom the baseMapEntity.et(no topo or satellite image: the map is the terrain-size grid, 512 m, with the zones, place badges and the waypoint over it). Proof:session up --mission playtest --profile full,map openanswersopen=1, a picture in the PR. The town leg oftest --townalso passes:e2e/narrative-loopnow deletes the character it spawns (it left one at the gate and failedsuite/no-leftover-fixtures).