Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofother @wildlands·originates fromworld 63a0f4f3-3…

wl_core

The one piece of shared runtime state. Components run in separate VMs, so anything they must agree on lives here: inventory, hotbar, survival meters, quest progress, captured companions, placed structures and the save file.

by◐zakariya·posted 1mo ago
What it does

wl_core

The one piece of shared runtime state. Components run in separate VMs, so anything they must agree on lives here: inventory, hotbar, survival meters, quest progress, captured companions, placed structures and the save file.

The state table comes from modules.state(), so a hot reload of this module keeps everything. The save is written to /source/local/wildlands_save.json and read back by the scene entrypoint on load.

Callers: WildlandsPlayer, WildlandsHUD, WildlandsWorld, wl_creatures (loot and companion records) and the scene entrypoint.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

WILDLANDS — the one piece of shared runtime state. Components run in separate VMs, so anything they must agree on lives here: the inventory, the hotbar, survival meters, quest progress, captured companions, placed structures and the save file. `modules.state()` is the engine-held table, so a hot reload of this module keeps everything.

notice(text: ?, kind: ?) → void

argtypedescription
text?
kind?

pruneNotices( ) → void

stackMax(id: ?) → void

argtypedescription
id?

count(id: ?) → void

argtypedescription
id?

freeSlots( ) → void

addItem(id: ?, count: ?, dur: ?) → void

Returns how many were actually added (0 when the bag is full).

argtypedescription
id?
count?
dur?

removeItem(id: ?, count: ?) → void

Removes up to `count`; returns how many were removed.

argtypedescription
id?
count?

has(id: ?, count: ?) → void

argtypedescription
id?
count?

canCraft(recipe: ?) → void

argtypedescription
recipe?

craft(recipe: ?) → void

All-or-nothing: every ingredient is checked, then every one is taken.

argtypedescription
recipe?

autoHotbar(id: ?) → void

argtypedescription
id?

selectSlot(i: ?) → void

argtypedescription
i?

selectedItem( ) → void

slotOf(id: ?) → void

The inventory slot holding the selected hotbar item, for durability reads.

argtypedescription
id?

wearTool(id: ?, amount: ?) → void

argtypedescription
id?
amount?

damage(amount: ?) → void

argtypedescription
amount?

heal(amount: ?) → void

argtypedescription
amount?

feed(amount: ?) → void

argtypedescription
amount?

eat(id: ?) → void

argtypedescription
id?

respawn( ) → void

bump(key: ?, by: ?) → void

argtypedescription
key?
by?

stat(key: ?) → void

argtypedescription
key?

gather_stone( ) → void

gather_fiber( ) → void

craft_axe( ) → void

harvest_wood( ) → void

craft_pick( ) → void

mine_rock( ) → void

build_bench( ) → void

craft_orb( ) → void

weaken( ) → void

capture( ) → void

companion( ) → void

shelter( ) → void

questProgress(def: ?) → void

argtypedescription
def?

activeQuest( ) → void

tickQuests( ) → void

addCompanion(rec: ?) → void

argtypedescription
rec?

companion(uid: ?) → void

argtypedescription
uid?

activeCompanion( ) → void

snapshot( ) → void

save( ) → void

saveIfDirty( ) → void

hasSave( ) → void

load( ) → void

newGame( ) → void

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

5+items
▣
module · born here
❒asset
# wl_defs Static game data for WILDLANDS and nothing else: tuning constants, the item catalogue, crafting recipes, smelting rules, quest definitions and the structure table. No engine state lives here, so it is safe to require from anywhere. `wl_creatures` also re-exports the species table, but the creatures' own anatomy and rules live in that module. Callers: `wl_core` (items and recipes), `WildlandsWorld` (structures, tuning), `WildlandsHUD` (recipes and item icons), `WildlandsPlayer` (tuning).
▲ 0↑ born
backing path · wildlands/wl_core.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.