Docs · Engineering reference
Jobs / Level / Licenses / Whitelist
docs/features/jobs-level-licenses-whitelist.mdEdit on GitHub
LF_PlayerJobComponent — Feature/Jobs/LF_PlayerJobComponent.c
- ✅ Per-player job state, per-job level/XP maps, license gates (POLICE→POLICE_ACCESS,
MEDIC→MEDIC_ACCESS), client→server
RpcAsk_SetJobre-validates licenses. - ✅ Fruit-catcher reward removed (#2408, 2026-11-17): the minigame never landed and nothing in a world
makes a player FARMER, so
AskStartFruitCatcherRound,AskClaimFruitCatcherReward, their RPCs,LF_FruitCatcherRoundandEHarvestJobTypeare deleted. A fruit reward comes back with its own location gate. Thefruit_pickXP award stays in the jobs config. Pin testsecurity/job-workplace-and-seedstill covers the workplace gate. - ✅ Job switch and kit gates (verified 2026-11-07): a
client-requested switch (
RequestJobFromClient, behindRpcAsk_SetJob) needs anLF_JobSignUpActionfor that job withinLF_JobGuards.WORKPLACE_RADIUS(5 m) andSWITCH_COOLDOWN_SECONDS(30 s) since the last switch; going UNEMPLOYED needs no workplace. Only delivery jobs have a placed workplace today, so a client cannot switch itself to MINER/LUMBERJACK/FARMER/MEDIC/POLICE by RPC.GiveJobEquipmenthands each job's kit once per account per server session (LF_JobGuards.ClaimEquipmentGrant). Pin testsecurity/job-switch-guards. - ✅ Debug-license backdoor removed (verified 2026-08-30):
RpcAsk_DebugGrantLicenseno longer exists anywhere inScripts/Game. - ✅ No passive paycheck (verified 2026-11-08, M1-07): the timer paycheck
(700-1000 cash every 300 s to every job, unemployed included) is deleted; the
component has no frame event.
LF_JobConfighas no salary fields. Money comes from completed runs, trader sales, police duty pay (LF_DutyPay), and the unemployment benefit (LF_UnemploymentBenefit). Pin testjobs/no-passive-paycheck. - ✅ Civilian run XP (verified 2026-10-11):
AddExperienceforwards toLF_CivilianJob. A completed courier, fuel, or taxi run addsm_iJobXpPerRunXP andPullCareercopies the level onto this component, soOnLevelUpfires. Level 1 may take courier work, level 2 opens fuel delivery, level 3 opens taxi. Under-level signup refuses and is logged. - ✅ Job pacing is config and hidden (2026-11-08, #156):
LF_Jobs.confsetsm_iJobXpPerRun(100),m_iJobXpFirstLevel(500), andm_fJobXpLevelGrowth(2): 5 runs open fuel delivery, 15 open the taxi (LF_CivilianJob.RunsToReach). No level text reaches the player: the level-up hint ("grade N, +N%") and the grade in the hire hint are gone (#LF-Job_HiredHidden). When a run opens new work the drop-off shows#LF-Job_NewWorktitled with the job name (LF_CivilianJob.NewlyOpened). Pay per run is unchanged (40/60/80): 5 parcels then 5 fuel runs is about 500 cash, so a new player can buy the S105 (1000, from the bank) after about 10 runs. Test:jobs/pacing. - ✅ Job tool grant (2026-11-08): miner gets
{23341E2840F5ACB4}Prefabs/Tools/Pickaxe.et(the oldPrefabs/Tools/Axe/Pico.etnever existed), lumberjack gets{9CAC68BA551417A4}Prefabs/Tools/Axe/Axe.et(the old GUID was wrong). Spawn goes throughLF_Utils.SpawnEntityPrefab; a tool that does not fit is logged and left at the player's feet. - ⚠️ Whitelist branch in
SetJobis dead (only POLICE is restricted and it is special-cased). Hard-coded Spanish strings (not localized). Per-job level/XP persistence is convention-only, no SaveData pair.
LF_CivilianJob — Feature/Jobs/LF_CivilianJob.c
-
✅ Workplace signup, one active run, cash once, abandon pays nothing (verified 2026-10-11). Run rules below (#2408). The bank balance stays 0. Parcel cargo is
{9CA41609F6C806AE}Prefabs/Items/Roleplay/LF_Parcel.et, a cardboard box carried in both hands (#155: the bareHandCarryItem_Base.ethad no mesh, so the hands were empty on a client). The mesh isPostParcel.xob, 0.26 x 0.14 x 0.38 m (a shoebox; every vanilla cardboard box is about 0.4 x 0.43 x 0.67 m, and a script spawn overrides a prefabscale, so none can be shrunk). Its body sits on thePropFireViewlayer, the layer of a vanilla box prop (the oldItemFireViewbody let a walking player through it); testjobs/parcel-collisioncompares the parcel's layer with a spawnedBoxWooden_01and its size. Pickup and drop use the paper sound set (Items_PickUp_Map.acp) and the hold is the wrench graph, not the jerrycan graph, so no canister sounds. (#1846) The parcel is a core hand tool, not a hand-carry gadget:LF_Parcel.etinheritsRoleplayItem_Baseand carriesLF_HandToolComponent(tool idparcel,m_bEquipOnPickup), so it takes the whole hand like the vault drill, sits in a 1-0 quick slot (the weapon bar) and, withm_bEquipOnPickup, is taken into the hands once when it first enters the carrier's inventory (the courier job gives it; also after a restart load). It has an item volume (3000) so it must fit the carrier's storage;LF_CivilianJob.GiveCargofails and the run does not start if it does not. Drawing a weapon puts it away (the vanilla hand swap) instead of dropping it; the player takes it back with its slot key. Testjobs/parcel-hand-tool(the job gives a hand tool with idparcelthat goes into a quick slot and the hands). The mesh's own collider (UBX_PostParcel,ItemFireViewinPostParcel.xob.meta) still needs a Workbench reimport to match. Test:items/carry-meshes. A hand-carried item and the parcel stay in a living carrier's hands:SCR_CharacterControllerComponent.ShouldGadgetBeDroppedrefuses the engine drop (sprint, stance) for a hand-carry gadget or aLF_ParcelComponent, so only a drop action, a drawn weapon or a downed or dead carrier lets go (#920; the hand-carry storage also takes a carry gadget back to the hands when the engine lowers it). A parcel that leaves a slot for the ground (LF_ParcelComponentlistens to its ownInventoryItemComponentslot change, so it works as a hand tool or in the pack) gets a small faint warm marker light at its foot (LF_ParcelComponent, every machine; visible at night, barely by day), the dropper gets a toast, and the server lifts it onto the probed ground if it sank. Hold: the parcel borrows the vanilla supply-box carry set (MedicalKit_supplies, the mortar ammo box's) withHandAdditiveTranslation 0 0.22 0.08andHandAdditiveRotation 0 90 0, so the fist grips the top edge of the box and it hangs by the left leg, front to back; with the old wrench set and no offset the hand went through the box (docs/tooling/hold-tuner.md). Tests:jobs/parcel-carry,jobs/parcel-collision,jobs/parcel-hand-tool,jobs/parcel-hold. Fuel cargo is{12D5AD21E383B768}Prefabs/Items/Fuel/Jerrycan_01/Jerrycan_01_item.etand the drop consumes it. The taxi fare uses the rank vehicle{54C3CC22DEBD57BE}Prefabs/Vehicles/Wheeled/S105/S105_beige.etand does not need a second client. A missing cargo prefab or a full inventory logsLF_Debug.Errorand that run does not pay. DebugWorld placesRoadmap_Job_Depot(post counter{28F9F4DC40089B51}Prefabs/Props/Services/Post/CounterPostOffice_01.et),Roadmap_Job_Drop,Roadmap_Job_TaxiPad, andRoadmap_Job_FuelCanonStreet_Jobs.layer: the counter on the post office porch, the drop on a house porch at the east end, the taxi pad at the bus stop by the square, the fuel can at the fuel station. -
✅ Parcel drops on the island (2026-11-18, #2959; draft PR): no building of Saint-Philippe's own survey stands 300 m from the depot kiosk (b21), so the run had no stop that pays.
Place_saint-philippe_parcel-drops.layerholds fiveLF_ParcelDropmailboxes (a pack prefab over the vanillaMailbox_02:LF_JobSiteComponentDROP plusLF_JobDropoffAction, soLF_JobMapMarksfinds them by place, not by name) on the entrance walls of the east districts' wooden house and the dock's metal shed, cabin, garage and barracks (318 to 480 m out;runMinDistancestays 300).town drops saint-philippe parcel-dropswrites them from the dossiers and seats each on its host's real wall. The island depot counter offers parcel, fuel delivery and taxi sign-ups again (#3373; they were dropped on 2026-11-18 while the island had no fuel or taxi sites). The fuel pickup and drop props (#3370) and the taxi rank (#3114) are the sites those two jobs run from. -
Fuel drops at the farms (2026-11-19, #3377): a fuel run now ends at a tank in a yard, not a letter box.
Place_saint-philippe_fuel-drops.layerholds fourLF_FuelDropdrums (the DROP site and drop-off action of #3370): beside the henhouse and the greenhouse on the village's far edge (296 m from the fuel station) and under the two open sheds above the quay (560 and 600 m).town drops saint-philippe fuel-dropswrites them: the slot's kit now picks the prop (DROP_KITSintools/town/drops.mjs;parcel-dropskeeps its mailbox). Each stands within 1 cm of the ground (look contact).look place:<place>/<slot>@<building>now pictures one drop of an outposts slot. -
✅ Sign-up offers on a dedicated client (2026-11-08, #157): the greyed reason reads
#LF-Job_MoreRunsFirst("Do more parcel runs first"), not "Your work level is too low". A client reads the level replicated onLF_PlayerJobComponent(the career map is server-only), so fuel and taxi open on the client once the server levels the career. -
✅ The toasts say what to do next (2026-11-08, M1 RC QA): signing up shows the job as the title and the next step as the body (
LF_CivilianJob.SignedUpKey: "Pick up a parcel at this counter"), not the job name twice. Picking up a parcel toasts where the drop is (RunStartedKey,#LF-Job_RunStarted_Courier, 8 s). -
✅ Pick up, Complete, and Abandon work on a dedicated client (2026-11-08, LOGIC
jobs/client-offers): the offers read the server-only sign-up and run maps, so on a hosted server "Pick up parcel" stayed greyed ("Sign up at the workplace first") after a good sign-up. A client now reads the job replicated onLF_PlayerJobComponent(set at sign-up and when a restored sign-up is put on a spawned body); Complete and Abandon read the same job (LF_JobStartRunAction.ClientRefusal,LF_CivilianJob.RunOfferOpen). The server re-checks everything when the action runs. -
✅ Dying or losing the cargo mid-run does not lock a player out of delivery work (#3356, merged, in-dev; LOGIC
jobs/run-cargo-lost): the cargo is no longer read for the client offer (a downed carrier drops the parcel, which greyed Abandon while "Pick up parcel" failed silently as "already has a run" until a restart), so Abandon shows for a delivery job on the body. The player's death (LF_OnPlayerKilled, subscribed byStartRun) ends the run as an abandon: no pay, the deposit and the contract stake stay forfeited, the map marks clear (LF_CivilianJob.OnCarrierDied). A refused start now toasts (LF_JobStartRunAction.StartRefusalKey: run still open, no room for the cargo, other refusal) and a drop-off without the cargo says so (#LF-Job_NoCargo). The harbour crates contract starts throughBeginRun, so it ends the same way. -
✅ (#619) The parcel's inventory description reads "Deliver to: " (
LF_ParcelComponentsets it from#LF-Item_Parcel_Deliverand#LF-Job_ParcelDestat spawn; testjobs/parcel-description). Demo:session.mjs parcel-proof(carry pose and inventory shots). Carry pose (#619, reworked in the parcel fix): the jerrycan graph hung the parcel 0.44 m below the hand (its grip point is at the canister's handle, the parcel mesh is centred on its origin), so it dangled at knee height through the legs, and it played canister sounds. The parcel was put back onplayer_carryfor a while (box beside the arms, a stopgap); since #1846 it is a core hand tool held with the wrench graph (see the cargo row).
LF_JobManager — Feature/Jobs/LF_JobManager.c
- ✅
GetGatherRewardandGetProcessRewardstay 0 unless a job scope callsSetScopeRewardfor that prefab (verified 2026-10-11). Gather and process mint nothing on their own. The player sells the product to a trader. A scope payout, when one exists, is cash viaLF_MoneyUtils.GiveCash. The ATM stays the only cash-to-account boundary. - ✅
#EL-Job_EarnedisEarned $%1 for work!andGiveRewardpasses the paid amount throughWidgetManager.Translate(verified 2026-10-11).
LF_JobLevels — Feature/Level/LF_JobLevels.c (#749, D12)
- ✅ (2026-11-12) Per-job XP replaces the single player level. One XP track per job
(CIVILIAN, DELIVERY, FARMER, MINER, LUMBERJACK, MEDIC, POLICE in the core config), keyed by
the character record key. The store holds total XP; the level is 1 plus the job's
thresholds reached (
LF_JobsConfig.m_aTracks, owner keyjobs.tracks), so a rebalance reaches old saves.LF_PlayerLevelComponent, its skill points and its unused passive bonuses are gone (component removed fromCharacter_Roleplay.et; the debug menu's skill point button too). Testsjobs/job-levels,jobs/job-level-gates,config/jobs-owner,persist/job-levels,e2e/pass2-verify-load. - ✅ XP is added only by the server:
AddXp(uid, job, amount, reason)(quest reward XP to the quest'sm_sJob, debug grants to CIVILIAN) andAward(uid, action, units)for in-world actions whose XP, job and cooldown are config (jobs.xpAwards:delivery_run100 DELIVERY,fruit_pick5 FARMER a fruit,gather2 FARMER). An action inside its cooldown earns nothing; a job'sdailyXpCap(FARMER 2000) drops the part over the cap per day of server time. Both clocks are session state. An unknown job or action earns nothing and logs[LFDebug:JobLevels]. - ✅ Gates read job levels: delivery sign-up (DELIVERY: fuel level 2, taxi level 3, the old
pacing), licence purchase (
LF_LicenseGate: the licence family's job at the catalog level, or ajobs.licenceGatesrow), chain steps and quests (m_sLevelJob/m_sJob, CIVILIAN by default), lockpicking skill (CIVILIAN). - ✅ (2026-11-17, #2700) A job-level gate refuses in words, never a number.
LF_JobLevelWords.Refusal(job, have, need)returns a#LF-Level_Near_<Family>key one level short and#LF-Level_Far_<Family>further (Farmer, Miner, Lumberjack, Medic, Police, Delivery,Anyfor other jobs; "Do more runs first" for DELIVERY).LF_ChainGate.LevelKey/ReasonKeyandLF_LicenseGate.RefusalKeytake their keys from it, and a refused paid licence unlock toasts the words. Testlevel/job-level-words. Job sign-up and run-start refusals (LF_JobAction) and the chain station'sRefusalKeystill show the old line until #R4 / a follow-up wire them. - ✅ Saved as the
joblevelspayload (save version 28): oneLF_JobXpRowper (character, job). A version 7-27 save migrates: the single level goes onto CIVILIAN and the delivery career onto DELIVERY at the same levels; every other job starts at 0. Load is idempotent. - ✅ A level rise from any grant publishes
LF_OnJobLevelChanged;LF_JobLevelSyncrefreshes the replicated DELIVERY level on the character's live body, so a quest's DELIVERY XP opens fuel delivery on the client too (jobs/job-level-sync). A capped or refused award does not start its cooldown. The pre-#749 career curve stays config (jobXpFirstLevel,jobXpLevelGrowth, read only to migrate), and the single level migrates whole at any level. - ⚠️ Only the DELIVERY level reaches a client (
LF_PlayerJobComponent's replicated level, for the sign-up offer); no client reads another job's level yet, so no level is shown. There is no XP source yet for MINER, LUMBERJACK, MEDIC or POLICE, and no player-facing licence purchase, so those licence gates are reachable only through config and tests.
LF_LicenseManagerComponent — Feature/License/LF_LicenseManagerComponent.c
- ✅ License catalog (26 entries),
CanUnlockLicense(owned/config/whitelist/ job level),PurchaseLicense(checks, then unlocks; nothing is spent since #749),HasLicense, persistence restore. The level gate isLF_LicenseGate(#749): the licence family's job (FARMER_* in FARMER, ..., criminal licences in CIVILIAN) at the catalog'sm_iMinLevelRequired, unless the jobs config has alicenceGatesrow. - ✅ Whitelist mapping and purchase ordering fixed (verified 2026-08-30):
GetLicenseWhitelistJobmaps MEDIC access to MEDIC and police licenses to POLICE;PurchaseLicensevalidates requirements beforeUnlockLicense.SetUnlockedLicensesis the persistence restore seam, not a player purchase path. Remaining: not localized;m_bIsInitialLicenseis used for initial grants. - ✅ Replicates as a bitmask (verified 2026-11-07: dedicated/* tests, server side; client receipt is manual): the old
[RplProp] ref arraybroke the simple-types rule. The server list stays local;m_iUnlockedBits(an intRplProp,LF_LicenseBits) is written on every change. On a clientHasLicenseandGetUnlockedLicensesdecode the mask. Bit order isLF_LicenseBits.Order(): append new types, never reorder.
LF_WhitelistManager — Feature/Whitelist/LF_WhitelistManager.c
- ✅ The playtest host is police from the first join (2026-11-08, LOGIC
whitelist/first-player-police): withLF_MissionHeader.m_bLF_FirstPlayerPolice(on inLF_PlaytestTown.conf, off by default), the first player to join while the police roster is empty is added to it ($profile:LifeFramework/whitelist.txt), so the maintainer can clock in on his own playtest without writing the file. That file is the one roster: the duty desk and the join gate read it. The unusedWhitelists/Police.txtandWhitelists/Medic.txtlists onLF_WhitelistRespawnHandlerComponent(nothing read their flags) are gone fromGameMode_Roleplay.et; the component keeps the CONNECT join gate. - ✅ Pure static in-memory whitelists;
IsFactionRestricted(POLICE, MILITARY, MAFIA),IsJobRestricted(POLICE only), add/remove/get. - ✅ Compiles (verified 2026-08-30):
enum LF_EFactionTypeis now defined in this file (CIVILIAN/POLICE/MILITARY/MAFIA). - ✅ Restart save and police gate (verified 2026-10-11): the manager
writes
$profile:LifeFramework/whitelist.txtitself, version first, andLoadreplaces the cache. A second load does not duplicate entries. A missing file logsLF_Debug.Errorand leaves the police faction closed. Civilian stays open.MayJoinFactionrefuses a uid that is not on the police list and logs that refusal. The server calls it inLF_DutyLocker.RefuseClockInwhen a player clocks in at the duty desk (M1-11; the faction screen is gone). A client has no whitelist; the desk offer reads the roster bit ofLF_AccountReplication. A uid that was not in the file is still refused after load. This file is notLF_PersistenceComponentSerializer. - ✅ An unreadable file is never overwritten (2026-11-07, test
restart/whitelist-unreadable-file-kept, verified 2026-11-07): a file that exists but cannot be opened, has no or a wrong version, or fails to parse setsIsLoadFailed().Save()then refuses withLF_Debug.Errorand returns false, so the next admin add cannot rewrite the file with only the new entry. A missing file is a first run and saving stays allowed. A later goodLoadclears the flag. - ⚠️ Getter returns the live internal array (callers can mutate without logging).
- ✅ A remove before the first load still removes (2026-11-17 property review, LOGIC
whitelist/remove-before-load):RemoveFactionWhitelistandRemoveJobWhitelistload the file first. They returned false on an empty cache, so a police trial that expired on the first duty desk use after a restart was marked expired while the officer stayed on the roster. - ✅
!wadd POLICE <uid>writes the roster duty reads (2026-11-17, LOGICchat/admin-wadd-grant, #2548):AdminChatChannel.ApplyWhitelistAddcallsLF_WhitelistManager.AddFactionWhitelistand logs and reports to staff only when that stored a new entry.MEDIC,CONNECT,NONE(no roster; there is no medic faction type) and a uid already on the roster log anLF_Debug.Warnand report nothing. - ✅ The job whitelist reads the faction roster by account uid (2026-11-17, WORLD
whitelist/job-roster, #2577):IsWhitelistedForJob(accountUid, job)passes when the job's faction roster (POLICE job, POLICE faction) holds the account uid, or the old per-job list does (read only, never written).LF_PlayerJobComponentandLF_LicenseManagerComponentpassLF_Utils.GetAccountUID, so a second character of an approved officer passes. Manual: see the PR. - ✅ The dead legacy whitelist sign action, client flags and GM context actions are gone
(2026-11-17, WORLD
whitelist/legacy-gone, #2576):LF_WhitelistAction(it neededLF_PlayerWhitelistComponent, which no character carries, and its flags were set only on the owning client), that component, andLF_Enable/DisableWhitelistContextAction(in no editor config) are deleted.EL_WhitelistSignkeepsLF_SignReadAction, so the sign is still readable and no layer changed.LF_WhitelistRespawnHandlerComponentkeeps the start migration and the CONNECT join gate; itsOnPlayerSpawnedis an empty hook. Police duty readsLF_WhitelistManagerand is unaffected. - ✅ Legacy whitelist files move into the roster once (2026-11-17, WORLD
whitelist/legacy-migrate, #2575): on game-mode startLF_WhitelistRespawnHandlerComponentpasses each configuredLF_WhitelisttoLF_WhitelistLegacyMigration.Migrate. POLICE uids go toAddFactionWhitelist(uid, POLICE), repeats and rostered uids skipped, and logmigrated <n> legacy POLICE uids from <file>. CONNECT and MEDIC have no account roster: their uids are counted and logged, not migrated. The legacy file is only read; a line in$profile:LifeFramework/whitelist-legacy-migrated.txt, written after the roster saved, stops a later start re-adding a uid an admin removed. An unreadable roster or failed save leaves the file unmarked, so the next start retries. Nothing writes the legacy file (AddNewUuidToFileandRemoveUUIDFromFileare deleted). To re-run it after restoring an older roster, delete the marker (docs/owner/rented-host.md"Backups"). - ✅ A migrated legacy file that still changes warns once per start (2026-11-17, WORLD
whitelist/legacy-ignored-count,whitelist/legacy-failure-paths, #2607): when a POLICE legacy file is already marked,Migratecounts its uids that are not on the roster (LF_WhitelistLegacyMigration.CountIgnored: added to the file after the move, or removed from the roster since) and logsLF_Debug.Warn<n> uids in the legacy POLICE file are not on the roster and are ignored. An unreadable roster (adds nothing, no marker) and a failed roster save (no marker) are tested, each followed by the next start migrating in full.
AdminChatChannel — Feature/Chat/AdminChatChannel.c
- ✅ Server re-checks the admin role (verified 2026-11-07):
ProcessMessageon the authority refuses any sender withoutEPlayerRole.ADMINISTRATOR(IsAdminSender) before parsing!wadd, so a modded client cannot whitelist itself for POLICE. Pin testsecurity/admin-chat-role.
LF_BuildingManagerComponent — Components/BuildingSystem/LF_BuildingManagerComponent.c
- ✅ Placement gated and paid (verified 2026-11-07): the server
(
PlaceHeldBuilding, behindRpcAsk_SpawnEntityPrefab) requires the held performer for that prefab, a position withinMAX_PLACEMENT_DISTANCE(5 m) of the character, and consumes the held item (ConsumeBuildingItem: one off a quantity stack, else the item is deleted) before spawning. The client preview stops offering placements past that range. Pin testssecurity/building-placement-range,security/job-workplace-and-seed.
LF_UnemploymentBenefit — Feature/Jobs/LF_UnemploymentBenefit.c
- ✅ "Collect benefit" (
LF_CollectBenefitAction) atRoadmap_Job_Depot(verified 2026-11-08: LOGIC testjobs/unemployment-benefit; in-world collection is manual). The server reads the bank balance (LF_ATMManager) plus the cash the player carries (economy review 2026-11-17, testjobs/benefit-counts-cash) and paysm_iBenefitAmountcash when the balance is strictly belowm_iBenefitBalanceThreshold, the player is not on duty as police and has no active delivery run, andm_fBenefitCooldownSecondspassed since that account's last collection. Values inConfigs/Jobs/LF_Jobs.conf(flagship $100, below $500, 1200 s). Pick-up sound, then a#EL-Benefit_Paidtoast; a refusal toasts its reason. A full inventory pays nothing and does not start the cooldown. - ✅ The cooldown survives a restart (M1-10): the save holds seconds since the last collection, because world time starts over.
LF_LicenceDesk — Feature/License/LF_LicenceDesk.c (#1766)
-
✅ The firearm permit is sold at a licence desk: fee in carried cash (
licences.permitFee), a clean record (wanted level 0, no open crime report, no conviction in the lastlicences.permitConvictionDaysin-game days, default 7, 0 is off; #1995) and the licence's gate at application and collection, issued at the desk one in-game day later (licences.permitWaitDays). On-duty police revoke it with a player interaction, but only once the holder is cuffed (LF_Restraint; #1916): the interaction stays hidden and the server'sRevokerefuses and logs for a free player. Testlicence/revoke-cuffs. The gun counter (#1903) then serves the holder. Testslicence/desk,e2e/licence-desk(the open application, a revoke and a conviction that still blocks the permit acrosswt e2e). -
🧪 (2026-11-18) The firearm permit is got at the gun store (maintainer 2026-11-17; follows draft #2061). A catalogue offer with
m_sGrantsLicence(owner keygrantsLicence) is a licence row: the counter's price list shows the licence with the permit fee and, on Pay, runs the sameLF_LicenceDesk.VisitForthe desk ran (fee in carried cash throughLF_EntityCashWalletwith ledger reasonlicence-fee, clean record, the licence's gate, the in-game-day wait, thepermit_due:flag), so the player applies and later collects at that counter (LF_ShopComponent.ApplyForLicence,LF_CharacterShopComponent.RpcAsk_Licence; the server re-checks range, rate limit, a raided shop and that the outlet has the row). The slip prints the answer (#LF-LicenceCounter_*, else the desk's refusal keys). A row for a licence the office does not issue (anything butFIREARM_PERMIT) is dropped at load and logged. The core ships no row, so the desk still issues the permit in a core-only world; the pack'sLF_Catalogue_GunStore.confputs the row ongun_counter, and while any outlet has the row the desk hides and refuses its permit action (LF_LicenceDesk.DeskIssuesPermit). An application already open at the desk is collected at the counter. Selling a gun still needs the permit. The client reads the server's fee from the catalogue stream (fee). Testslicence/counter,everon/gun-store-permit(pack leg). -
🧪 (2026-11-18, #3128) The licence desk sells a driving licence (
DRIVING_LICENCE, enum value 301, replication bit 29). The desk's second action "Buy a driving licence" (LF_LicenceDeskDrivingAction) issues it at once forlicences.driverLicenceFee(core default 100) in carried cash: no record check, no wait (LF_LicenceDesk.BuyDrivingFor). Short cash is refused with nothing taken, a holder is refused as already held, and the fee is given back if the grant fails. It is saved in the progression licence list like the permit. The action also shows where the gun store sells the permit. No car lot asks for it yet, so a newcomer's first car needs none. Testlicence/desk-driving. -
✅ Run rules: deposit, distance, time, passenger (#2408, merged, in-dev). All numbers are the jobs config's (
Configs/Jobs/LF_Jobs.conf, owner sectionjobs):- Deposit.
LF_CivilianJob.BeginRuntakes a deposit from the player's cash when a run starts: the cargo's shop sell price (LF_ShopManagerComponent.GetSellPrice) timescargoDepositPercent(100), orcargoDepositFallback(50) when the shop list has no price. A player short of it gets no run and no cargo (toast#LF-Job_NeedDeposit). A delivery returns it once; abandoning forfeits it, so start, abandon, start, abandon costs the cargo's value each loop (the cargo is not taken back). A taxi fare has no cargo and no deposit. A restart ends the run, and the deposit it held is given back to the player's bank account on the load (save version 49, payloadjobruns, oneLF_JobRunRowper run holding a deposit: uid, amount and job;LF_CivilianJob.ExportDeposits/ApplyDeposits, testsjobs/deposit-restartandjobs/deposit-cargo, proofwt e2e), so a restart never takes a player's money. The run's cargo goes with it (#2481): before the refund the load takes one parcel or fuel can (the job's own) out of the player's saved carried snapshot (LF_CivilianJob.StripSavedCargo), so the deposit and the cargo are never both kept; a cargo no longer carried (dropped, lost at death) is just refunded. The log says which ([LFDebug:Jobs] restart ended the run of ...). The bank takes the money because the player may be offline when the server loads. A run still live in the session (a re-applied load) keeps its own deposit and gets no second one. Ledger reasonsjob-deposit,job-deposit-back. - Distance and time.
BeginRunrecords where and when the run started.LF_CivilianJob.Dropoff(the one call behindLF_JobDropoffAction) pays only at a placed drop (LF_JobSiteComponentsite DROP), at leastrunMinDistance(300 m, straight line) from the start, after at leastrunMinTimeFraction(0.6) of the expected driving time, which is the distance overrunRoadSpeed(10 m/s). A refused drop pays nothing, keeps the run, the cargo and the deposit, and shows#LF-Job_TooClose,#LF-Job_TooFastor#LF-Job_NotADrop. A run with no start on record pays nothing. - Taxi. A fare also needs another player seated in the driver's vehicle when the fare is dropped off
(
LF_CivilianJob.CountPassengers;#LF-Job_NoPassenger). - Map stop.
LF_JobMapMarks.OnRunStartedmarks the nearest drop at leastrunMinDistancefrom the start, so the stop always pays; when none is that far it marks the nearest. CompleteRunis the payout only andAbandonRunthe forfeit; production code reaches a payout throughDropoff. Testsjobs/run-rules(LOGIC: the checks, the deposit state, the config) andjobs/run-cargo-deposit(WORLD: a real character, cash and cargo at the placed drop). Manual: a taxi fare with a second player is in the PR.
- Deposit.
-
Map marks (#2239): a fare destination and a delivery stop become a shared mark plus the waypoint for their player, cleared when the run completes (
Feature/Jobs/LF_JobMapMarks.c,docs/features/map.md; testjobs/job-map-marks). The marks are driven byOnFareAccepted/OnStop; nothing in the run code calls them until fares and stops exist. -
🧪 (2026-11-17) A body the save restored gets its saved licences (#2413). A player who takes control of a living body no spawn made (
LF_SpawnLogic.CreateCharacter: "already controls a character") never went throughBindAccountComponents, so the body held only its starter licences andLF_LicenceDesk.Holdscharged a permit holder again.LF_SpawnLogic.AdoptLivingBodynow runsLF_Progression.ApplyToCharacteron that body (idempotent; a missing body or key logs[LFDebug:Spawn]and applies nothing). Testlicence/restored-body(WORLD). Manual: grant a permit, restart the server, rejoin: the licence desk and the gun counter see the permit and charge nothing. -
🧪 (2026-11-18) A restored body keeps its delivery job (#3353). The saved sign-ups load while nobody is connected, so
LF_CivilianJob.ApplySignUpToLiveBodyfound no body, and the "already controls a character" branch only ranAdoptLivingBody: a signed-up courier, fuel driver or taxi driver came back UNEMPLOYED at level 1 after every restart and the job actions greyed out.LF_SpawnLogic.AdoptLivingBodynow also runsLF_CivilianJob.ApplySignUpToCharacterandLF_PlayerJobComponent.PullCareerForon the body (both idempotent). Testjobs/signup-restored-body(WORLD). Manual: sign up as a courier on a dedicated server, restart it, rejoin: "Pick up parcel" is offered at once. -
🧪 (2026-11-17) A taxi stand is a place (#2691).
Prefabs/Jobs/LF_TaxiStand.etis a pole sign carryingLF_TaxiStandComponent(Feature/Jobs/LF_TaxiStandComponent.c), which registers inLF_Placesas kindtaxi(LF_TaxiStand.PLACE_KIND; place id = the component's id, else the entity name, elsetaxi_<entity id>).LF_TaxiStandComponent.Nearest(pos)returns the registered stand closest on the ground plane (or null), andGetLabel()names it for a fare and the map: the prefab's label, else the nearest map location (LF_NamedPlaces), else the place id. The core holds no coordinates or place names. Testjobs/taxi-stand-places(WORLD). Grid celltaxi-stand(tools\cli look grid:taxi-stand). No fare or map row reads the kind yet (#2690, #2239). -
🧪 (2026-11-17) A taxi fare is priced by the distance driven (#2690). A taxi drop-off pays
LF_TaxiFare.Price(pickup, dropoff)instead of the flat 80: the pickup is the run's server-recorded start (m_vRunStart), the distance is the straight line to the drop site. A drop withinshortHopMetres(100) of the pickup paysfloor(80); beyond it the fare isfloorplusratePerMetre(0.04) per metre, never abovecap(300), so Saint-Philippe to Montignac (3.7 km) pays about 228. The numbers areConfigs/Jobs/LF_TaxiFares.confwith the owner'staxiFaressection over it (floor,ratePerMetre,cap,shortHopMetres; its own section, not underjobs); a zero or negative number, or a cap below the floor, logsLF_Debug.Errorand prices with the shipped numbers.LF_CivilianJob.Dropoffpasses the fare toCompleteRun; the ledger reason and the XP are unchanged, andCompleteRunwith no fare still pays the old flatPAY_TAXI. Testjobs/taxi-fare(LOGIC). -
🧪 (2026-11-18) Mining, logging and medic work earn job-level XP (#2707).
LF_JobLevelSources(Feature/Level/LF_JobLevelSources.c, subscribed at game start) turns bus events intojobs.xpAwardsrows throughLF_JobLevels.Award:LF_OnGatheredof familyMININGpaysgather_mining(10 MINER), familyLOGGINGpaysgather_logging(10 LUMBERJACK);LF_OnPlayerRevivedpaysmedic_reviveandLF_OnPatientDeliveredpaysmedic_delivery(25 MEDIC each, to the medic; a self-revive or a medic with no player id earns nothing). Gather cooldown 8 s, medic cooldown 60 s, and the MINER, LUMBERJACK and MEDIC tracks carry a daily cap of 2000. DIGGING and FORAGING gathers pay nothing here. Testjobs/level-sources(LOGIC). Manual: mine, log and revive in a session, then read the XP in[LFDebug:JobLevels]. -
🧪 (2026-11-18) The island's parcel depot is fitted (#2325, draft). The Saint-Philippe parcel slot (newspaper kiosk b21, ools/town/kits/parcel.json, Place_saint-philippe_parcel.layer) holds the depot counter (CounterPostOffice_01 with the sign-up, start-run, abandon and benefit actions and an LF_JobSiteComponent DEPOT) inside the booth and a post_office sign on its wall, so the town board's post-office card has a sign to find. No drop-offs yet: a drop must stand at least unMinDistance (300 m) from the depot, so they are a separate card. Manual: see the PR.
-
🧪 (2026-11-18) Fishing earns FISHER job-level XP (#2995).
Configs/Jobs/LF_Jobs.confhas aFISHERtrack (the 19-level ladder of the other trades, daily cap 2000) and thefish_catchrow (10 XP, no cooldown: a cast takes at least 15 s).LF_FishingSession.Landawards it after the fish is given, so a strike that gives nothing earns nothing; before the track existed the award logged a warning and paid 0, and the rod's FISHER level read 1. The catch is also published asLF_OnFishCaught(Feature/Fishing/LF_FishingEvents.c) for later readers. Testfishing/cast. -
🧪 (2026-11-18, #2710, slice of #1018) The 1989 pack gives FARMER, MINER, LUMBERJACK and MEDIC a level table with one unlock per level.
LF_Everon1989/Configs/Jobs/LF_Jobs_Everon1989.conf(header overlay) sets each job's thresholds to levels 2..N and onelicenceGatesrow per level: FARMER apple 2, water 3, plum 4, speed 5; MINER coal 2, copper 3, iron 4, speed 5, gold 6; LUMBERJACK basic 2, process 3, speed 4; MEDIC basic 2, advanced 3, revive 4. POLICE and DELIVERY keep the core tables (POLICE has no XP source yet, DELIVERY unlocks are fixed inLF_CivilianJob). Refusal words for those four jobs are pack rowsLF-Level_Near_*/LF-Level_Far_*that override the core rows by Id. Tools: the pickaxe is sold at theminers_supplycatalogue outlet only to a MINER at level 2 or more (LF_Catalogue_MinerTools_Everon1989.conf), andLF_ShopStock_Everon1989.confgains ageneral_storestock (the vanilla entrenching tool as the shovel, plus the four house furniture items at the general store overlay prices). ⚠️ No counter names theminers_supplyoutlet or thegeneral_storestock yet: placing them is a town pass (shelf stock rests on boards by measured contact, #2961). Medic ranks are a separate pack overlay:LF_MedicConfigreads pack overlays since #3047 and the pack's four-rung ladder is indocs/features/character-survival.md. Testeveron/job-tables(pack leg). -
🧪 (2026-11-18) Run pay is config (#3147). A parcel, fuel or flat taxi run pays its row in the jobs config's
runPayslist (keyPARCEL,FUEL_DELIVERYorTAXI, fieldpay;Configs/Jobs/LF_Jobs.confholds the neutral 40, 60 and 80, a pack'sLF_JobsConfigoverlay or the owner'sjobs.runPayssection replaces a row).LF_CivilianJob.PayForreads it throughLF_JobsConfig.RunPayFor; a missing row or one below 1 pays thePAY_constant and logsLF_Debug.Error. The 1989 pack pays the parcel 40, the fuel run 75 and the flat taxi run 110. A measured taxi fare still paysLF_TaxiFare, andLF_TaxiFareConfignow takes pack overlays field by field: the 1989 pack shipsLF_TaxiFares_Everon1989.conf(floor 90, 0.005 per metre, cap 150), so a 2000 m fare pays $100 (about $600/h, under police entry duty pay) and a short hop pays more than a fuel run (#3164).tools\cli economyreads the rows. Testsjobs/civilian-run-pay-config(LOGIC) andeveron/run-pay(pack leg). -
🧪 (2026-11-18) Saint-Philippe taxi rank (draft, #2318). The
taxislot of the real island is fitted on the kerb in front of b39 (the townhouse beside the clinic): the pad is anLF_JobSiteComponentof site TAXI with the "start a run" action (LF_JobStartRunAction, TAXI), and a beige S105 stands at the kerb as the cab. The kit istools/town/kits/taxi.json(extracted fromStreet_Jobs.layer; the cab is its own row becausetown fitwrites no child entities), the layerLF_Everon1989/Worlds/MainWorld/MainWorld_Layers/Place_saint-philippe_taxi.layer, the claimtools/town/claims/saint-philippe-taxi.json. Taxi runs now have a real site on the island, so the depot sign-up for the taxi (removed on #2958) can come back.town checkwarns that the kindTaxiRankis in no system'sm_aPlaces; the job code finds the pad through its component, not by place kind. -
🧪 (2026-11-18, #3150) Every licence refusal says where to get the licence and what it costs.
LF_LicenceWhere(Feature/License/LF_LicenceWhere.c) builds one sentence per licence: the firearm permit and the driving licence read " sells it for ." (place is the string rowLF-LicenceWhere_<TYPE>, neutral core text "The licence desk"; the pack row of the same Id says "The gun store counter" for the permit; fee islicences.permitFee/licences.driverLicenceFee), a job licence reads "Earn it through work." (never a level), and a licence with no where text reads "Ask at the licence desk.". The shop refusal (LF_ShopRefusal.Text, a gated outlet's "Not without a %1.") and the chain station refusal (LF-Chain_NeedLicenseWhere, toast fromLF_ChainStationActionviaLF_ChainGate.LicenceWhere) both carry it. The shop line is composed on the client, which reads the fee from its own licence config, so a dedicated client of a server with a non-default fee shows the default fee until the fee rides the reply (follow-up). Testlicence/where(LOGIC). -
✅ Fuel pickup and fuel drop props (2026-11-18, #3370): the island had no FUEL site, so the fuel delivery run could not start there. Two pack prefabs in
LF_Everon1989/Prefabs/Props/Roleplay/:LF_FuelPickup(a vanilla pallet with four jerrycans:LF_JobSiteComponentFUEL plusLF_JobStartRunActionFUEL_DELIVERY) andLF_FuelDrop(a vanilla fuel drum:LF_JobSiteComponentDROP plusLF_JobDropoffAction, shaped likeLF_ParcelDrop; a drop also takes parcels). Destruction is off on both so a broken prop cannot strand a run. Not placed yet (placement cards #3376-#3381); the depot sign-up returns with #3373. Test:everon/fuel-props(pack leg). -
✅ Route job rules (#3324, #1019, LOGIC
jobs/route-rules):LF_RouteRules(Feature/Jobs/LF_RouteRules.c) is the pure rule set for a route job: an ordered list of stops.Create(stops, ratePerStop, roundBonus)returns null (logged) for zero stops or a negative rate or bonus.NextStop()is the index to reach, -1 once done;CompleteStop(i)refuses (logged, no change) a stop out of order, repeated, out of range or after the end;PayAtEnd()is stops x rate + the bonus once every stop is done;AbandonPay()is half the rate per done stop, rounded down, no bonus. Int math, no world, no statics, no config file. Nothing calls it yet; the route job and the bus driver job reuse it. Not saved. -
🧪 (2026-11-19, #3186) The driving licence holds through a rejoin, a late joiner and a restart (dedicated server, island). Proof
session.mjs licence-late-proof(agent-box/proofs/licence-late-proof.mjs,up --mission island --clients 1): client 1 buys the licence at the town hall desk, rejoins (same account, new player id) and buys a car at the lot with no refusal while the desk's action is hidden from it (its client readsm_iUnlockedBits); client 2 joins late without a licence and gets the lot's refusal toast#LF-Lot_NeedsDrivingLicence(the server logspurchase refused for <uid>: no driving licence); client 2 then buys the licence, the server restarts (session restart) and client 2's car buy goes through, client 1's desk action stays hidden. Passed with no code change;--selftestchecks the log judges without a game. -
✅ Licence seizure rules (#3428, #1035, LOGIC
licence/seizure-rules):LF_LicenceSeizureRules(Feature/License/LF_LicenceSeizureRules.c,Configs/Crime/LF_LicenceSeizure.conf) is the rule table for which crime takes which licence and for how many in-game days. A row is{m_sCrimeId, m_aLicences (LF_ELicenseType names), m_iBanDays};BansFor(crimeIds, bans)returns oneLF_LicenceBanper licence the conviction's codes take, the longest ban when two codes take the same licence, nothing for an unmapped code, and a licence name that is not anLF_ELicenseTypeis logged and skipped. Core ships brandishing, weapon theft and murder taking the firearm permit, reckless driving and drunk driving (#LF-Offence_DrunkDriving, not in the crime catalog yet) the driving licence; a pack changes rows with an overlay of the same class (add, replace, patch, remove by crime id). Server only, not saved. Nothing takes a licence from a character yet: the conviction hook callsBansFor. -
🧪 (2026-11-19, #3430) Licence bans survive a restart (save section
licencebans, PERSISTENCElicence/bans-restart).LF_LicenceBans.Ban(uid, licence, days, holder)(Feature/License/LF_LicenceBans.c) takes the licence from the character's saved licences (LF_Progression) and from the live body when given, and stamps the in-game minute the ban ends (the game clock's date,LF_LicenceDesk.NowMinutes; a second ban keeps the later end; 0 days takes the licence with no ban).LF_LicenseManagerComponent.CanUnlockLicenserefuses a banned licence, so the licence desk, a shop counter andPurchaseLicenseall refuse it until the ban ends; an admin/licencegrant still works. The section (LF_LicenceBansSave.c) saves each ban still in force by record key, licence name and end minute; a load replaces the live bans, lifts one that ended while the server was down ([LFDebug:License] ... ended while the server was down ...; lifted on load) and takes each banned licence from the saved record again. A save from before the section has no bans. The arrest that hands out a ban is #3432. -
🧪 (2026-11-19, #3432) An arrest seizes the licence, and the desk says when it comes back (PERSISTENCE
licence/seizure).LF_LicenceSeizure(Feature/License/LF_LicenceSeizure.c) subscribes toLF_OnArrested(game mode start,LF_LicenceSeizure.EnsureSubscribed) and reads the suspect's open crime reports (LF_WantedReports) as the conviction's crime codes. Each code the seizure rules (#3428) map takes its licences throughLF_LicenceBans.Ban(#3430), passing the arrested body so it does not keep the licence until the next respawn; the arrested player gets "Your firearm permit has been seized for 7 days." (LF-LicenceSeized_*). A conviction with no mapped code changes nothing ([LFDebug:License] conviction of <uid> maps to no licence ban). An arrest that seizes the firearm permit also drops an open permit application (LF_LicenceDesk.RevokeFor); the fee is not refunded. The licence desk, a shop counter's licence row and the driving licence request answer a banned buyer with the new outcomeLF_ELicenceDesk.BANNED: "Refused: your firearm permit was seized. Come back in N days." (LF-LicenceDesk_Banned,_DrivingBanned; days rounded up). The ban rides thelicencebanssection, so a restart keeps it. Manual: get a brandishing conviction, check the toast, ask the desk for the permit (refused with the days left), restart, ask again. -
✅ Garbage round (#3325, #1019, WORLD
jobs/garbage-round): the steady, no-buy-in route job.Prefabs/Jobs/LF_GarbageDepot.et(a desk,LF_GarbageSiteComponent, action "Take the garbage round") opens a round and spawns the company truck (LF_GarbageRound.Start): the route is them_iStopsbins nearest the depot, found by component throughLF_BinComponent.FindAllBins, never by name, nearest first. "Empty bin" onLF_StreetBin(shown only on a round) must hit the next bin in order (LF_RouteRules, #3324): it deletes the bin's contents server-side and puts a bag on the truck; an out-of-order or off-route bin is refused with a toast and changes nothing. "Tip the load" atPrefabs/Jobs/LF_GarbageDump.etneeds every bin done and the truck withinm_fTipRadius(30 m) of the dump, then pays stops x rate + bonus once throughLF_CivilianJob.HandCash(reasongarbage-round), closes the round and deletes the company truck. A truck with someone in its seats is not deleted under them: it is marked for removal (logged), a 2 s sweep that runs only while one is marked deletes it once empty, and while marked it cannot be locked or chopped (LF_GarbageRound.IsPendingRemoval), so a friend sitting in it at the tip never keeps a free truck. A dead, downed or cuffed worker is refused at every step (UNFIT, logged). Numbers:Configs/Jobs/LF_GarbageRound.conf(5 bins, $15 a bin, $25 bonus = $100 a round, about $400 an hour) with each pack overlay ofLF_GarbageRoundConfiglayered over it. Starting again closes the open round (no pay, old truck removed) so a dead round never locks the player out. Not saved: a restart ends the round. NoLF_EJobTyperow and no SANITATION XP track yet (needs the job enum and levels config, outside this slice). -
🔧 (2026-11-21, review of #3862) Each open garbage round has its own bins. Two players doing rounds at once got the same nearest bins and one bin counted for both.
LF_GarbageRound.Startnow leaves out every bin another player's round holds (IsClaimedByOther), so the second round takes the next free bins (fewer stops if few are free, "no bins" if none). A round whose truck is gone, or that has run longer thanCLAIM_SECONDS(an hour, an owner who left), holds nothing, so an abandoned round never keeps bins for good. Testjobs/garbage-round. -
🧪 (2026-11-19, #3148) Night runs pay a night rate and the pay toast names each part. A parcel, fuel or taxi run finished inside the night window of the world clock (
TimeAndWeatherManagerEntity.GetTimeOfTheDay, read on the server at the drop-off; a world with no manager pays the base and logs[LFDebug:Jobs] no world clockonce) pays its base plusround(base x (rate - 1)). The rate isnightRateon the job'srunPaysrow (LF_JobRunPayDef.m_fNightRate; the core ships none, the 1989 pack sets 1.25 on all three rows, so a $75 fuel run pays $94); the window isnightRunStartHourandnightRunEndHouronLF_JobsConfig(21 to 5, wraps midnight; both 0 reads as the shipped 21 to 5; equal non-zero hours make no night). The night is its own part, a rate on the base only: it never compounds the harbour contract's multiple or the standing bonus (#2703).LF_CivilianJob.Dropoffsplits the pay intoLF_JobPayParts(run, night, bonus), books the night as thenight-rateledger reason and the bonus asstanding-bonus, andLF_JobDropoffActionsends a toast that names the parts:LF-Job_Paid_Night"Paid $106: run $85, night +$21",LF-Job_Paid_Bonus(the contract and standing bonus, which the player never saw before) andLF-Job_Paid_NightBonus; a run with no extras keepsEL-Job_Paid. The parts ride the toast as one packed argument~total|run|night|bonusthat the notification client splits into%1to%4. Testsjobs/night-run-rate(WORLD: the clock at 12:00 and 23:00, the contract run's parts, the toast key and argument) andeveron/night-run-rate(pack leg). Manual: finish a fuel run after 21:00, then one at noon, read the toast. -
🔧 (2026-11-22, Coalman's Brow mine) A new miner can buy the pickaxe. The pickaxe offer at the
miners_supplyoutlet (LF_Catalogue_MinerTools_Everon1989.conf) asked for MINER level 2, but MINER XP comes only from pickaxe gathers (LF_JobLevelSources: DIGGING pays none), so no player could ever reach it. The offer now opens at level 1 (the job is still required);everon/job-tableschecksm_iMinRank <= 1. -
🧪 (2026-11-22) Postal van run: a beginner delivery job with a lent van (WORLD
jobs/postal-run).LF_PostalRun(Feature/Jobs/LF_PostalRun.c, numbers inConfigs/Jobs/LF_PostalRun.conf) runs it on the server; the offices areLF_PostalPointComponentstands (Prefabs/Jobs/LF_PostalPoint.et, the PO-box stand with oneLF_PostalActionper step), registered inLF_PlacesasPostalPoint, never found by name. Take the postal van run needs a driving licence (m_bNeedsDrivingLicence), refuses a second run (one van per player), waitsm_iStartCooldownSeconds(60) after the last run, and goes throughLF_RateLimitSPAWN. The destination is the nearest other office at leastm_fMinDistance(800 m) away (PickDestination). The van (the office'sm_Van, else the config's) is spawned on a clear spot off the road: rings of 7 to 22 m round the stand, the AI road network check (LF_PlacementZones.IsOnRoad), level ground and a van-sized box trace. It leaves the world save (LF_VehicleWorldSave.Hold, no ownership record), is locked, and its key (LF_VehicleOwnership.SpawnKey/GiveKey, now public) goes in the player's pocket; the pack van hasm_bIgnitionLocked, so only the key holder starts it. Load or unload a mail sack countsm_iSacks(4) in at the home stand and out at the far one, each with the van withinm_fVanReach(18 m); the map mark and waypoint (LF_JobMapMarks.OnStop) move home, far, home. Hand in pays once at home: the jobs config's run pay rowPOSTAL(core $80, pack $80 with a 1.25 night rate; fallbackLF_CivilianJob.PAY_POSTAL) throughLF_CivilianJob.HandCash, plus thepostal_runaward (120 DELIVERY XP), never underm_iMinRunSeconds(420). A watch every 5 s ends a run with no pay when the van is destroyed or gone, the driver is off the server or overm_fAbandonMetres(350 m) from it form_iAbandonSeconds(180), or the run passesm_iMaxRunSeconds. Every end takes the key and the van back (LF_GarbageRound.ReturnTruck, now public: an occupied van waits for its seats to empty). Not saved: a restart ends the run and the van with it, and nothing was paid. Pack:LF_PostalVan.et(vanilla S1203 cargo van in yellow, the LF lock with the ignition locked, painted English lettering "POSTAL SERVICE" on the sides and "MAIL" on the rear doors, no real logo),LF_PostalPoint_Everon.et(lends that van), thepostal-dropsoutposts slot (town drops saint-philippe postal-drops: sp:b21, the parcel kiosk, and meaux:b01, the Meaux square kiosk, ~1.3 km), map badge kindPostalPoint(LF_MapPois_PostalPoint.conf), and Anselme's voiced "van run" reply.toolscli economylists POSTAL: $80, 10 min, $480/h (police $900 = 1.9x, medic $792 = 1.65x). Merged, in-dev. -
🧪 (2026-11-22, first-2h review B14-B16) A driver away from the van for two thirds of the abandon time gets a toast with the seconds left (
LF_PostalRun.WarnDue,LF-Postal_Warn); the start toast and the too-fast hand-in refusal name the least run time in minutes (LF_PostalRun.MinMinutes); the map mark and waypoint of each postal leg areLF-JobMap_PostLoad|PostUnload|PostReturn(core "Post office", pack "Meaux post office" and "Saint-Philippe post office") instead of the generic "Delivery stop" (LF_JobMapMarks.OnStoptakes a label). Not done: the post stand still stands 2 m from the parcel depot counter (an island layer move for a town pass). -
🧪 Take the job at a gathering desk (2026-11-22). Every
LF_Workplace.etdesk whose job is MINER, LUMBERJACK or FARMER (Coalman's Brow mine, the two woodlot desks, the orchard) offers Take the job: on its clock, and Quit the job: to a player who holds it (LF_WorkplaceJobAction,LF_WorkplaceJob.Toggle): server-side, the same standing gate as the counter and the job dialogue, thenLF_PlayerJobComponent.SetJob, every outcome logged. Before it nothing in play signed a player up for those jobs, so the pickaxe and axe tills (which need the job) never sold. Duty desks keep the punch clock; delivery jobs keep their counters (all three have one on the island). The job lives on the body, as before: after a respawn the player takes it again at the desk. Test:jobs/workplace-job-desk(WORLD). -
🧪 Licence fees from the bank first (2026-11-22, review B13). The licence desk (driving licence, permit applications) takes its fee through
LF_LicenceFeeWallet: the bank account first, carried cash for the rest, a refund back where it came from. A newcomer no longer loses their last pocket money to the postal run's licence. -
🧪 30-level trade tables and tier words (2026-11-22, #4181, W1 of the 0.3.0 work scope). FARMER, MINER, LUMBERJACK, FISHER and MEDIC level to 30 on one curve in the core
LF_Jobs.confand the pack overlayLF_Jobs_Everon1989.conf(29 thresholds each; the pack's four short tables are replaced, FISHER inherits the core one). Total XP: level 2 100, 5 1,000, 6 1,500 (unchanged,MINER_GOLDstill opens at 1,500), 10 5,000, 15 11,000, 20 20,000, 25 30,000, 30 42,000. At about 700 XP an hour, level 5 is about 1.5 h and level 10 about 7 h. DELIVERY, CIVILIAN and POLICE keep their tables (the legacy mapping and the police ranks read them). The five tier words the UI shows instead of a number (decision N1) are pack rowsLF-Everon_TradeTier_1to_5: Apprentice, Hand, Journeyman, Foreman, Master (bands 1-5, 6-11, 12-19, 20-27, 28-30; the cards that show them, W3/W6, pick the band). Licence gates still sit on levels 2 to 6 only; W4 adds one unlock per level. Testeveron/trade-tables(pack leg);everon/job-tablesnow allows levels above 4 to have no gate. Merged, in-dev. -
🧪 The driving-licence row waits for the ID card (2026-11-22, first-2-hours review A7). At the town hall the licence desk stands beside the clerk and its "Buy a driving license" row used to be the first prompt, so newcomers bought a licence before they had met the clerk.
LF_LicenceDesk.DrivingRowShownhides the row from a character that carries no ID card; the clerk's Talk row is then the one prompt there. Test:LF_Test_ClerkFirstSteps. -
🧪 Truck licence check, the rules (2026-11-22, WK-W18, N13).
LF_DrivingCheck(Feature/License/LF_DrivingCheck.c, LOGIClicence/truck-check):Starttakes the $300 fee from carried cash (short cash refused, nothing taken; a held licence or an open run refused),ReachGate(uid, n)passes the course when the four gates are reached in order and grants the truck licence on the last, and a gate out of order orFailends the run, keeps the fee and sets a 10 in-game minute retake (RETAKE_WAITwith the minutes left; the fee is taken again on the retake). The licence (truck_licence) and the wait (truck_retry:<minute>) are progression flags, so they ride the existing save; an open run is server memory (a restart abandons it). The licence is a flag, not anLF_ELicenseType: the truck yard card promotes it and readsHoldsTruckLicence. Not built yet: the lent Ural, the gate markers, the desk action and the examiner (W21).
LF_TradeUnlocksConfig — Feature/Level/LF_TradeUnlocks.c (#4185)
What each level of a trade opens, for the level-up card and the F2 detail card ("Opens: ..."). A row is (trade, level 2 to 30, text key); LF_TradeUnlocks.KeyFor(job, level) and NextKey read the layered table, empty for level 1, past 30 or an unlisted trade. The core ships no rows: a pack .conf of LF_TradeUnlocksConfig is layered by Get() once the pack header lists it (a later row for the same trade and level wins). The flagship's Configs/Jobs/LF_TradeUnlocks_Everon1989.conf names one unlock for each of 29 levels on nine trades (FARMER, MINER, SMELTING, LUMBERJACK, FISHER, DELIVERY, SALVAGE, POLICE, MEDIC), keys #LF-Unlock_<Trade>_<LL> in the pack string table. Sites sit on the levels the work plan gives them (coal at East Rise at Mining 4, the cement works at Smelting 6, the centre-east smelter at Smelting 8, the cannery at Fishing 5). Both pack headers (LF_Everon1989.conf, LF_PlaytestTown.conf) list the file, so Get() returns all 261 rows in game; the test proves it. Not built yet: the card's "Opens:" line and F2's "next unlock", and the perk numbers behind the perk rows (W11). Test: LF_Test_EveronTradeUnlocks.
- 🧪 Trade perks are stored and saved (2026-11-23, WK-W8, #4186).
LF_TradePerks(Feature/Level/LF_TradePerks.c) holds, on the server, which perk each character (record key) picked in each trade (job id) at each pick level (10, 20):Picksets or changes one,PerkAtandHasread them,Forgetdrops a character's. The store does not gate on level; the pick at the labour office (WK-W8b, W13) does. The picks are thetradeperkssave section (LF_TradePerksSavePayload, version 1): a load replaces the store, a renamed job id in the alias table moves the perk with its XP, and a 0.2.1 save (no section) loads with no perks. Testtradeperks/restart(PERSISTENCE, also checked acrosswt e2e). Nothing a player sees yet. - 🧪 (2026-11-23, #4326) Playtest town delivery distances. The village is about 300 x 215 m, so its mission header lists two town-only overlays:
Configs/Jobs/LF_Jobs_PlaytestTown.conf(LF_JobsConfigm_fRunMinDistance80 m, core 300) andConfigs/Jobs/LF_PostalRun_PlaytestTown.conf(LF_PostalRunConfigm_fMinDistance150 m, core 800: the square office to the east office is about 164 m).LF_JobsConfig.ApplyPackRunDistanceandLF_PostalRunConfig.ApplyLayersread the one scalar each overlay sets directly and refuse a value outside the schema range; the island header lists neither file, so its 300 m and 800 m stay. Testeveron/postal-distances(town header and island leg). Merged, in-dev. - 🧪 (2026-11-23) SMELTING and SALVAGE are trades of their own (#4184, 0.3.0 W2, decision N3).
LF_EJobTypegainsSMELTINGandSALVAGE, andLF_JobLevelSources.AwardSmelting(uid, batches)/AwardSalvage(uid, units)pay thesmelt_batchandsalvage_workjobs.xpAwardsrows throughLF_JobLevels.Award. A row that feeds any other track (a batch that pays MINER, the old #3239 idea) pays nothing and logs[LFDebug:JobLevels]an error. Testjobs/trade-sources(LOGIC). The tracks and rows are live (#4337):LF_Jobs.conf(and the pack jobs conf for the tracks) carriesSMELTINGandSALVAGEon the MINER table (29 thresholds, daily cap 2,000) and the award rowssmelt_batch(14 XP) andsalvage_work(8 XP), tuned so an honest hour pays about 700 XP. A machine row inResourceChains.confnames the action its batches pay inm_sXpAction;furnace-iron,furnace-gold,furnace-copper,smelter-iron,refinery-copperand the packfurnace-iron-minesaysmelt_batch, andLF_ProcessXp.PayBatchespays it once per finished run (instant, or timed when the bars drop), so a smelter climbs SMELTING and never MINER. The smelter and refinery gates and the cement works XP followed in #4341 (next row); salvage callers come with WK-W25 and W26. Testjobs/smelting-xp(WORLD). - 🧪 (2026-11-23, #4341, follow-up of #4337) Smelting gates and F2 rows. The smelter reads SMELTING 8 and the refinery SMELTING 15 (the trade-unlock rows already promise those levels; they read MINER before), and the cement works pays
smelt_batchXP though it has no gate. F2 "My file" gives SMELTING and SALVAGE their own name and description rows (LF-PlayerMenu_Skill_*,LF-PlayerMenu_SkillDesc_*) instead of the plain-case fallback.LF_Test_MiningChainRecipes,LF_Test_SmeltingXpandLF_Test_PlayerMenuXpcheck them. - 🧪 (2026-11-23) Police skill: XP from outcomes and three perks (#4424, 0.3.0 PO-R8).
LF_PoliceSkill(Feature/Level/LF_PoliceSkill.c) pays POLICE XP throughLF_JobLevels.Awardfor outcomes only, never for time on duty: a call closed as resolved (police_call_resolved, 40 XP, fromLF_CallOutcome.Close; no one found and unfounded pay nothing; closing your own crime pays nothing), a booking at the desk (police_booking, 30 XP, fromLF_JailBooking.Book) and a recovered stolen car (police_recovery, 30 XP, from theLF_OnVehicleRecoveredbus event; your own account's car pays nothing). Rows and a 30 s cooldown are inLF_Jobs.conf; the POLICE track and curve are the shared ones. Three perks readLF_TradePerks.Has(uid, "POLICE", perk):fast_cuff(the server asks 70% of the cuff hold,LF_Cuffing.Complete),long_radar(radar range 150 m to 225 m,LF_RadarGunAction) andquick_booking(LF_PoliceSkill.BookingSeconds, 60% of the base; the desk booking is instant today, so nothing calls it yet). No row or perk touches pay: police stay the lowest paid trade. Not yet: the client's cuff progress bar still runs the full hold. Testpolice/skill-xp(LOGIC). Manual: close a call as resolved, book a suspect and recover a stolen car; read[LFDebug:JobLevels]for the POLICE XP. - 🧪 (2026-11-23) Export orders: the book and the crane hand-in (#4410).
LF_ExportOrderBookkeeps up to three export orders open server-wide (LF_ExportOrderConfig.m_iOpenSlots): a fresh book opens all three at once, then one more every 30 game minutes while a slot is free. A hauler at DELIVERY level 10 or more takes one (one order per hauler); a lower level is refused with#LF-ExportOrder_RefuseLevel. The hauler hands the goods in at a crane (LF_ExportOrderCraneComponent, found throughLF_Placeskindexport_crane) from a vehicle backed up to it (the feed-from-truck reach, #4191) and from their pockets: the goods are removed first, then the order pays its count times wholesale plus 15 percent in cash and 120 DELIVERY XP. A short count takes nothing and keeps the order; a second hand-in pays nothing. A taken order that misses its deadline closes and costs the taker 10 TOWN standing, never money. Orders are not saved: a restart opens three new ones. The 1989 pack'sLF_ExportOrders_Everon1989.conf(listed in the pack header) opens 20 iron bars or 20 copper bars to the steamer ($920, 8 game hours), 100 coal ($805) or 120 planks ($828, 6 game hours) in turn; an order is roughly an hour of mining and smelting, aimed at the high-tier rung ($650 to $800/h), above every police shift. The board prop and its actions are WK-W24_2. Testjobs/export-order(LOGIC). - 🧪 Passive perks change the work (2026-11-23, WK-W11, #4408).
LF_PerkEffects(Feature/Level/LF_PerkEffects.c) readsLF_TradePerks.Hasfor the trade being worked:double_yieldgives a 10% chance that a gather pays double (Yield(uid, trade, base, roll)is pure in the roll;LF_GatherActionrolls it on the server and takes the node's stock once either way),swift_handsshortens the hold by 20% (HoldSeconds,SpeedFactor, applied in the action's progress),light_touchcuts tool wear per use by 40% (LF_ToolWear.WearScaled, scale fromWearScale;TradeOfKindmaps pickaxe to MINER, axe to LUMBERJACK, rod to FISHER so the fell and fishing hooks get it too). One pick each, inside the work plan's caps (double yield 20%, speed 20%, wear -40%); the income lever, double yield, is held at 10% so civilian pay stays above police and under the ladder. Not built: the buyer-price perk and the full-perks economy line (W11_2), the pick itself (W8b, W13), and a swift-hands hold for a remote client (the perk store is server state, so only the host's hold speeds up until it is replicated). Testperks/effects(LOGIC).