Docs · Engineering reference
Fishing
docs/features/fishing.mdEdit on GitHub
Design context: addons/LifeFramework/Scripts/Game/Feature/Fishing/Feature.md, docs/architecture/fishing.md.
LF_FishingConfig — Feature/Fishing/LF_FishingConfig.c, Configs/Fishing/LF_Fishing.conf (#2927)
- ✅ (2026-11-18, merged, in-dev) The fishing data: rods (
m_Prefab,m_fCastRange,m_fBiteSpeed,m_iMinFisherLevel), baits (m_fBiteSpeed,m_aBoostSpecies), species (m_sId, three size prefabs,m_aWaterOCEAN or POND,m_aHours,m_iMinFisherLevel), tables (weighted species, three size weights) and the globals (bite 15 to 60 s, strike window 2 s, slack 0.5 s, 6 casts a minute, empty-spot slowdown, bait boost, the open-water table).Sanitizeruns at load: a bad rod, bait, species or table is removed withLF_Debug.Error("Fishing", ...)naming it, a bad table entry is dropped alone, a bad global falls back to its default; no other row is touched. The core ships one neutral set (mackerel, bass, tuna, perch, carp; tablesopen_water,harbour,pond) with empty fish prefabs and placeholder rod and bait prefabs until the 3D pipeline (#339) and the pack (#800) supply them.
LF_FishingRules — Feature/Fishing/LF_FishingRules.c (#2927)
- ✅ (2026-11-18, merged, in-dev) Pure server rules, every random draw passed in as a 0..1 roll.
BiteSeconds(rod and bait speed, slower at an emptied spot, always inside min and max),Strike(EARLY, HIT, LATE: inside window plus slack lands),InCastRange,RodUsable,TryCast(casts per minute),ResolveTable(the spot's table while it has stock, else the open-water table),PickSpecies(weighted; water kind, hour and level filters, so a pond never gives an ocean fish; bait boost),PickSize,PickCatch(open water is always small; a spot table with nothing eligible falls back to open water). A spot's stock is the existingLF_GatherStock. Nothing here is wired to the world yet: the cast and strike RPCs, the spot component and the licence are later cards of the chapter. Test:LF_Test_FishingRules(LOGIC).
Fishing items — Prefabs/Items/Fishing/, Assets/Items/Fishing/ (#2928)
- 🧪 (2026-11-18, #2928) The first fishing items, each with its own Blender-modelled mesh and baked material (
tools/assets/fishing-rod|bait-tin|fish-trout*, shared builders intools/assets/fishing-lib/geo.py; no generation credits).LF_FishingRod.etis a core hand tool (LF_HandToolComponent, tool idrod, the drill's wrench hold pose; a cast animation waits for #340), 1.2 m, 3 l.LF_BaitTin.etis a round green tin, 0.3 l. The trout is one species in three prefabs on one base:LF_FishTrout.et(the medium, 0.30 m, owns the components) withLF_FishTroutSmall.et(0.18 m) andLF_FishTroutLarge.et(0.44 m) overriding only the mesh, volume and weight (the same model, scaled by the clean stage, because a prefabscaleis lost when an item leaves an inventory). The config (LF_Fishing.conf) still points rod and bait at the #2927 placeholders (Prefabs/Tools/Pickaxe.et,Prefabs/Items/Food/Apple.et); #2929 swaps in these prefabs. Testfishing/items.
Fishing spots and the counters — Feature/Fishing/LF_FishingSpotComponent.c, Prefabs/Systems/Fishing/LF_FishingSpot.et, Configs/Catalogue/LF_ItemCatalogue.conf (#2929)
- 🧪 (2026-11-18, #2929) A map maker drops
LF_FishingSpot.et(table, radius, stock, regrow seconds, optional id and map state) and it registers inLF_Placesas kindFishingSpoton every machine, so the cast finds it by kind and never by name or coordinate.LF_FishingSpotComponent.FindSpotFor(target)returns the spot whose radius covers the target (flat distance, the nearer marker when two overlap) or null for open water; the server-side stock is the existingLF_GatherStock(one fewer per catch, regrows, never saved). A bad marker (no table, radius or stock) logsLF_Debug.Error("Fishing", ...)and is not placed. The core catalogue (LF_ItemCatalogue.conf) now puts the three trout sizes on thefish_counteroutlet (the counter pays 6, 12 and 25, under what it asks) and the rod and bait tin on thechandler(and the tin on the counter). The fishing config now names the real rod and bait tin instead of the #2927 placeholders. No cast or strike RPC yet: the spot is data and lookup until the cast card. Testfishing/spots.
Cast, bite and strike — Feature/Fishing/LF_FishingSession.c, LF_FishingRodComponent.c, Prefabs/Items/Fishing/LF_FishingRod.et (#2930)
- 🧪 (2026-11-18, #2930, draft for review) The server half of the cast. With the rod in the hands (
LF_FishingRodComponent, the rod's hand tool, now listening for the fire input on the owner's machine) the owner asksLF_AskFishingCast(target)on the PlayerController; the server (LF_FishingSession.CastAt) refuses with a toast and a[LFDebug:Fishing]line unless the angler is alive and on foot, holds the rod (and the rod is in the config), has the FISHER level, is under the casts-a-minute limit, has no cast out, is within the rod's range, the target is OCEAN or POND water (TryGetWaterSurfaceat the terrain height the server reads itself) and a bait item is in the inventory. A cast stores one open cast per player (session state, never saved) and starts oneCallLaterfor the bite (15 to 60 s, scaled by rod, bait and an emptied spot). At the bite the owner gets "Strike!" (toast plusLF_FishingEventto the owner for the float). A strike (LF_AskFishingStrike(castId)) is ignored unless the server's own bite has happened and the cast id matches; inside the window plus slack it rolls the catch from the spot's table (open water: small fish), gives one fish (dropped beside the angler when the pack is full), spends one bait item, thins the spot's stock and awardsfish_catchXP; after the window the bait is gone and nothing is given; a bite nobody strikes ends the same way. Walking more than 5 m, putting the rod away, dying or boarding a vehicle ends a cast with nothing spent. Testfishing/cast. Not built yet: the float prop and its dip sound, thefish_catchrow of the FISHER track, theLF_OnFishCaughtbus event, the grid pond cell and the session pictures.
The float, the grid pond and the catch XP — Feature/Fishing/LF_FishingFloat.c, LF_FishingEvents.c, Prefabs/Systems/Fishing/LF_FishingFloat.et, GridWorld_Layers/Grid_slice_fi4.layer (#2995)
- 🧪 (2026-11-18, #2995) The owner's half of the cast. A float (a red-and-white Blender bobber,
Assets/Items/Fishing/FishingFloat, shown at three times its size so it reads on a flat screen) is a local entity with noRplComponent, put on the water at the cast point when the server says the line is out (LF_FishingRodComponent.OnServerEventCAST_OK), pulled under and bobbing with the base game's UI click when the bite arrives (BITE), and taken away on a catch, a miss, an ended cast or the rod leaving the hands. Nothing per cast is broadcast and the dedicated server never draws one. The cast aims at the first water along the view (3 m out to the rod's reach; open ground is still a request the server refuses as not water). A landed fish now pays the FISHERfish_catchXP (theFISHERtrack and thefish_catchrow, 10 XP, daily cap 2000, are inConfigs/Jobs/LF_Jobs.conf; the cast already checked the FISHER level, which read 1 before the track existed) and publishesLF_OnFishCaught(player record key, species id, size 0/1/2, fish prefab, water kind, spot table) on the server bus after the stock is thinned. The core ships onetroutspecies with the three trout prefabs in thepondtable so a core server's pond gives a fish the fish counter buys; the pack overlays the 1989 species. Core propsLF_FishCounter.et(outletfish_counter) andLF_Chandler.et(outletchandler). The proof ground is the grid cellslice-fi4: a real pond (a base-gameLakeGeneratorEntity,TryGetWaterSurfaceanswers POND over it), aLF_FishingSpotover it (tablepond), the chandler and the fish counter. Testsfishing/floatandfishing/cast(FISHER XP and the event); session proofagent-box/proofs/fishing-proof.mjswith the harness verbfishing fire|auto|state|water(buy rod and bait, cast, the float dips, strike, a trout and XP, sell it for cash). Not built yet: a splash sound (the cue is the UI click until the sound pipeline), the licence gate on the fish counter, the pack's species and prices, the smokehouse.
Every species lands a fish — Prefabs/Items/Fishing/LF_Fish{Mackerel,Bass,Tuna,Perch,Carp}*.et, Feature/Fishing/LF_FishingConfig.c (#3119)
- 🧪 (2026-11-18, #3119) Mackerel, bass, tuna, perch and carp had empty size prefabs, so every harbour and open-water strike came back
EMPTYand spent the bait; only pond trout worked. Each species now has small, medium and large prefabs (LF_Fish<Species>[Small|Large].et), children of the three trout prefabs (same model, own neutral names#LF-Item_Fish<Species>_*), with catalogue rows andfish_counteroffers. The counter pays small/medium/large: mackerel and perch 5/10/20, carp 7/14/28, bass 8/16/32, tuna 15/30/60 (trout stays 6/12/25); a pack may rename them or give each its own model.Sanitizenow drops a table entry whose species has an empty size prefab, withLF_Debug.Error("Fishing", ...)naming the species and size, so a bad row costs that fish, not the bait.ShopPrices.confhides the fish from the general shop (its default buy price 50 sat under the large tuna, a profit loop); only the fish counter trades them. Testfishing/species-prefabs. - 🧪 (2026-11-18, #3134) Every species has its own model: mackerel, bass, tuna, perch and carp no longer reuse the trout mesh. One Meshy text-to-3D generation per species (meshy-6-lite preview, refine, remesh to 4000 triangles; 75 + 25 credits; no CC0 or CC-BY fish fit), cleaned and scaled by the asset pipeline into three sizes each (
tools/assets/fish-<species>[-small|-large]/,Assets/Items/Fishing/Fish<Species>[Small|Large]/, the small and large specs reuse the medium's Meshy task ids and cost nothing). Each size prefab keeps its GUID and overrides only theMeshObjectand the inventory preview distance (3 x the fish length, so the tuna fits the frame). Testfishing/species-prefabs(loads every size prefab).
The smokehouse — addons/LF_Everon1989/Prefabs/Props/Fishing/LF_Smokehouse.et, Configs/Fishing/LF_Smokehouse*_Everon1989.conf (#3450)
- 🧪 (2026-11-19, #3450) A pack processor (the
Shed_03model on the coreItemProcessor_Base) with one 30-second action per species: a fresh medium fish plus one firewood bundle becomes one smoked fish (LF_Smoked<Species>.et, a child of the fresh prefab with its own pack-table name). The recipes are machine rowssmokehouse-<species>inLF_Smokehouse_Everon1989.conf; the core chain catalog now merges the machine rows of pack overlays (LF_ResourceChainCatalog.ApplyPackOverlays, add only, a repeated id is refused).LF_SmokehouseCatalogue_Everon1989.confaddsfish_smoked_<species>rows andfish_counteroffers: the counter pays 24 (mackerel, perch), 28 (trout), 32 (carp), 36 (bass) and 66 (tuna), each above the fresh price plus the 5 a firewood bundle sells for. Pack testeveron/smokehouse. Not built yet: a placement in a world (atown-pass or a grid cell), small and large fish recipes, the smoke sound and effect. - 🧪 (2026-11-19, #3453, town-draft) The dock smokehouse slot of Saint-Philippe (
tools\cli town fit saint-philippe-dock smokehouse, kitsmokehouse, claim and terrain pins undertools/town/) fits the smoker into the dock's long metal shed b05 with a firewood pile, two net hangers, crates, a brine barrel, a ground fire with kindling at the west end and a pole plate (smokehouse, own folder fileLF_Signs_Smokehouse.conf). Place kindSmokehousehas a map POI row (discover, category work). The smoker's action point moved from0 1 2.2to0 0.2 2.1: the pivot sits 1 m above the floor, so the old point was 2 m up. Pack testeveron/smokehouse-site. Open: small and large fish recipes, a lit fire effect, the smoker reads only from inside the shed. - 🧪 (2026-11-19, #3592, town-draft) The slot's smoker now stands toward the shed mouth with the net hangers moved east of it, and it reads from the road: the smoke plume is a vanilla
Smoke_Smokestack_Mediumparticle (scale 0.35) hung as a child ofLF_Smokehouse.et, and the ground fire is the pack prefabLF_SmokehouseFire.et, a child of the vanillaFireplace_01whoseSCR_FireplaceComponentstartsLIT(the vanillaLIT_ON_SPAWNstays dark for a fitted layer entity) with one warm no-shadow point light, so the base game's flame particle, flicker light and campfire crackle (itsCompositions_Campfiresound) run with nobody lighting it. A dedicated server builds no particle entities, so the plume is checked by thelookpicture;LF_Test_EveronSmokehouseFireproves the fire is lit on spawn.
Spring Pond jetty and sign, perch and carp in the pond table — Place_saint-philippe_pond.layer, tools/town/kits/pond.json, Configs/Fishing/LF_Fishing.conf (#3667)
- 🧪 (2026-11-19, #3667, town-draft) The
pondslot of Saint-Philippe is re-fitted: a vanilla wooden pier (Pier_Wood_Long_01, 9.2 m) is the jetty, its east end on the bank and its deck 0.3 m above the water (the pond surface is 15.0 m, 2.5 m over its bed, so the row ismount: freeat a fixed height), a pole plate sign (spring-pond, own folder fileLF_Signs_SpringPond.confwith pack strings) north of it and the bench now on the dry east bank facing the water (it stood at 13.4 m, under the surface, before). The spot's radius is 22 m so a cast from the jetty is covered. The corepondtable now weights trout 2, perch 3 and carp 2 (carp keep their dawn and evening hours), so a pond or lake cast lands a perch or a carp as well as a trout. Testsfishing/pond-table(LOGIC) and pack testeveron/spring-pond-sign.
Black Lake shore — addons/LF_Everon1989/Worlds/MainWorld/MainWorld_Layers/Place_blacklake_shore.layer, tools/town/kits/lake-shore.json, Prefabs/Props/Fishing/LF_LakeLantern.et (#3667)
- 🧪 (2026-11-19, #3667, town-draft) Black Lake (the dossier's
w1, 9351 m2) gets one hostless slot,blacklake/shore(templatelake, mappingdocs/everon/places/blacklake/mapping.json, plot p4, kitlake-shore): a fishing spot (LF_FishingSpot, tablepond, idblack-lake, radius 26 m, stock 14) on the dossier's north-west shore point, a street bench facing the water, a lantern, and a pole plate (black-lake, own folder fileLF_Signs_BlackLake.conf). No building stands there, so there is no fitted-building hook (claimhostless); every row rests on the probed ground (tools/town/terrain/blacklake-shore.json). The lantern is the pack prefabLF_LakeLantern.et, a child of the vanilla kerosene lamp (lit on spawn) with a 9 m warm light that casts no shadow. TheFishingSpotplace kind has a map POI row (LF_MapPois_SaintPhilippe/LF_MapPois_FishingSpot.conf, category work, discovered by walking past) andtools/town/lib/poi-check.mjsnow reads the folder beside a listed POI overlay as the game does. Pack testeveron/fishing-places. Open: a bait hut shed (no host needed so far) and a second spot on the east bank (outside the slot's plot). - 🧪 (2026-11-19, #3451) Gaspard (the old man on the bench) tells a player who has landed three fish about a cove. His friendly and regular greetings swap the newcomer pointer for a reply "Know a good place to fish?" that the dialogue hook
CoveTip(paramfishermans-bay:3,LF_FishingDialogue.c) offers only once the character has landed that many fish (read from the FISHER xp the catches booked, no new save) and, when picked, marks the place on their map (LF_MapKnown.Hear). The pack patch isLF_Dialogue_Gaspard.conf(text only, no recording yet). The fishing config now takes pack overlays (LF_FishingLayers.c: species and tables by id with the usual verbs);LF_Coves_Everon1989.confadds thecovetable (bass 6, mackerel 2; bass bite 17 to 21, so the cove pays at dusk). Pack testeveron/gaspard. Open: no cove fishing spot or map pin exists yet (the town pipeline placesfishermans-baywith tablecove), and Gaspard's new line has no voice.
Fishing licence gate — Feature/Fishing/LF_FishingLicenceGate.c, LF_FishingConfig.m_eRequiredLicence, LF_FishingSession (#3449)
- 🧪 (2026-11-19, #3449) When
LF_Fishing.confnames a licence (m_eRequiredLicence), a cast without it is refused first (NO_LICENCE, before the rod and bait checks) with the toastLF-Fishing_NoLicenceplus the #3150 where-line and fee (LF_LicenceWhere.Line); with none named (UNEMPLOYED, the core default) casting is open as today. Testfishing/licence-gate. Open: the config names no licence yet (a fishing-licence enum value and a desk to sell it are separate cards).
Fisherman's Bay and Gaspard's voiced tip — Place_fishermansbay_cove.layer, tools/town/kits/cove-shore.json, tools/assets/dialogue/old_man/ (#3762)
- 🧪 (2026-11-19, #3762, town-draft) The cove Gaspard's tip points to. The sheltered inlet east of the lighthouse point (Charlet Bay's south-east shore, scouted as
fishermansbay, templatecove, hostless slotcoveon free plot p7, kitcove-shore, ground probed intotools/town/terrain/fishermansbay-cove.json) holds one fishing spot (LF_FishingSpot, idfishermans-bay, tablecove, radius 30 m, stock 14), a street bench facing the water, the lake lantern and a pole plate (fishermans-bay, own folder fileLF_Signs_FishermansBay.conf). The spot's id is the map place id of #3451's tip, so theFishingSpotpin (discovered kind, pack rowLF_MapPois_FishingSpot.conf) appears once Gaspard has marked it. His reply and the tip are now part of his own dialogue (dialogue.json: nodecove, reply "Know a good place to fish?", gated by theCoveTiphook at three landed fish) and the tip is recorded in his voice by the asset pipeline (ElevenLabs "Alder",old_man_cove.wav, credited indocs/credits.md); the hand-writtenLF_Dialogue_Gaspard.confpatch of #3451 is gone. The friendly and regular greetings offer the cove reply in place of "where should I start" (the menu holds four replies). Testseveron/gaspard(the line has a sound event and a length) andeveron/fishing-places(the plate resolves). - 🧪 (2026-11-19, #3851, town-draft) The Black Lake shore slot gets a hand-written lakeside layout from Reforger Mapper format (
tools/test/fixtures/mapper/lakeshore-small.json: a street bench facing the water, a bucket, a crate, a barrel), the first real run oftools\cli mapper import --slot Place_blacklake_shore.layer. The fourMapper_blacklake_shore_M<n>props stand on the probed terrain in the slot's plot, south-east of the kit rows; plain dressing, no new feature. A latertown fit blacklake shore --refitrewrites the layer from the kit and drops them (docs/architecture/reforger-mapper-import.md). - 🧪 (2026-11-22, buyer for the island) Fish sell on the island. The dock wholesale buyer (
LF_WholesaleBuyer_Everon1989.et) lists all 18 fresh fish (six species, small, medium, large) and the 6 smoked fish in its storage filter and price list. It pays 65 percent of the fish counter's catalogue rate, rounded half up, flat (no curve: a spot's stock, about 40 fish an hour, limits the supply): trout 4/8/16, perch and mackerel 3/7/13, carp 5/9/18, bass 5/10/21, tuna 10/20/39; smoked mackerel and perch 16, trout 18, carp 21, bass 23, tuna 43. Paper hour at 40 fish an hour: Fisherman's Bay (bass and mackerel, sizes 3/4/3) about $430, the harbour water about $290, Spring Pond about $245 (police pay $900 is 2.1x the cove). No new prop and no world edit: the 1989 fish counter prop is still not placed. Testeveron/fish-scrap-buyers(pack leg) walks every size prefab of every species in the fishing config and everyfish_counteroutlet fish.