Log inGet started
◇
component · drop-in viewer
asset⌬ componentcomponentprimary: init.luau·originates fromworld b0f23b4e-e…

hut

The living hut as a place to stay alive in. Attached to `living_hut` by the scene build. At awake it spawns the interior as temporary children under `fl_hut_interior`: the bunk along the west wall, the table and stool against the east wall with the barometer and thermometer above…

byPolar Night·posted 3mo ago
What it does

firstlight.hut

The living hut as a place to stay alive in. Attached to living_hut by the scene build. At awake it spawns the interior as temporary children under fl_hut_interior: the bunk along the west wall, the table and stool against the east wall with the barometer and thermometer above them, two rafters under the roof, the lamp bracket and lamp on the north wall — and, once a survivor has died here, the roof cache (fl_roof_cache), a canvas bundle roped to the east rafter holding a quarter of their stores.

What it runs

Rules.state.hut.insideC settles toward

airC + (shelterC + stoveHeat * stoveC) / (1 + gaps * (0.35 + 0.02 * windMs))

capped at maxInsideC, with the lag of a timber room. Unpatched wind gaps (Rules.state.hut.gaps, starting at Rules.HUT_GAPS_START) are what let the stove's warmth out; a patched gap outlasts the run.

Methods (call with a colon on entity.find("living_hut").component.get("hut"))

MethodDoesReturns
hut:sleep()Sleep in the bunk until 07:00 tomorrow (Rules.sleepToMorning()). Refused while the hut is below -25 C with the stove cold. The night burns fuel and warms or chills the body by the hut's warmth.HUD line (string)
hut:patchGap()Patches one wind gap; persists across runs.gaps still open (number)
hut:state(){ insideC, gaps, targetC, cache }table
hut:bunkPosition()Hut-local position of the bunk, for the prompt.{ x, y, z }

Fields

  • shelterC (12) — degrees the hut rises above the air on shelter alone.
  • stoveC (75) — degrees a high burn adds in a tight hut before gap losses.
  • maxInsideC (26) — the warmest the hut gets.

Interface

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

conforms to

zero/source-extract/v2

firstlight.hut — the living hut as a place to stay alive in. Attached to `living_hut` by the scene build. Spawns the bunk, the table, the rafters, the lamp bracket and — after a death — the previous survivor's cache, as temporary children of the hut, and runs the hut's warmth: stove output minus what the unpatched wind gaps let out. Blackboard: writes `Rules.state.hut.insideC` and `.gaps`.

Model

loadMaterials( ) → void

box(parent: ?, name: string, material: ?, pos: { number }, size: { number }) → void

argtypedescription
parent?
namestring
material?
pos{ number }
size{ number }

cyl(parent: ?, name: string, material: ?, pos: { number }, diameter: number, height: number, axis: string?) → void

argtypedescription
parent?
namestring
material?
pos{ number }
diameternumber
heightnumber
axisstring?

buildCache(root: ?) → void

The cache hangs from the east rafter: a canvas bundle roped to the beam.

argtypedescription
root?

buildInterior( ) → void

subscribe( ) → void

targetInsideC( ) → number

Where the hut's warmth settles for the weather and the fire as they stand.

ensureInterior( ) → void

The interior is temporary: a scene rebuild takes it while this component lives on, so a missing root is built again the frame it is found gone.

awake( ) → void

editorUpdate(_dt: number) → void

argtypedescription
_dtnumber

update(dt: number) → void

argtypedescription
dtnumber

onDestroy( ) → void

sleep( ) → string

Sleep in the bunk until 07:00 tomorrow. The night burns fuel and warms or chills the body by the hut's warmth. Returns a line for the HUD.

patchGap( ) → number

Patch one wind gap in the hut's walls. The patch outlasts the run. Returns the number of gaps still open.

state( ) → void

The hut as the survivor reads it.

bunkPosition( ) → void

Hut-local position of the bunk, for the interaction prompt.

Problems

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

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.