Skip to content

fix: Fellan hammers at his hut again - mobs whose model is only a hidden helper (REPAIR_PLANK) keep their slots - #572

Open
BoroBongo wants to merge 5 commits into
developfrom
fix/hidden-mob-slots
Open

BoroBongo wants to merge 5 commits into
developfrom
fix/hidden-mob-slots

Conversation

@BoroBongo

Copy link
Copy Markdown
Contributor

What

REPAIR_PLANK.ASC is a helper mesh without a texture, plus the slot ZS_POS0. It shows as a blue quad in the Spacer and is invisible in the game. We skipped models without textures, so the mob had no slot, Wld_IsMobAvailable(self,"REPAIR") said no, and ZS_Repair_Hut (G2 Fellan) and ZS_RepairHut (G1) never hammered.

Interactive mobs whose model has no texture but has ZS_* slot nodes are now built and hidden: nothing is drawn and they have no colliders.

  • G1's harp, flute and WASH_SLOT have no slot nodes and stay skipped.
  • Each such mob is logged once in the editor.
  • A model without a hierarchy (mods) warns once and gets no slots.

MeshService.HasMeshes is renamed to HasTexturedMeshes, and HideVisual takes keepColliders.

Why

In a playtest, Fellan never hammered, so Alwin's quest about the hammering had nothing to point at.

How to test manually

  • G2 Khorinis harbour, 08:00-12:00 (Marvin set time): Fellan stands at his hut's wall and hammers. Nothing blue or grabbable is on the wall.
  • Editor log: [VobInitializer] Hidden helper mob REPAIR_PLANK.ASC built for its slots. and no other unexpected names.
  • G1 (Mroczne Tajemnice, a G1 mod): the world loads without new warnings.

Save/load

No new state.

Known gaps / follow-ups

🤖 Generated with Claude Code

BoroBongo and others added 5 commits November 25, 2026 21:08
…den helper (REPAIR_PLANK) keep their slots

REPAIR_PLANK.ASC is an untextured helper mesh (ZM_REP_HIDDEN) and the slot ZS_POS0. MeshService skips models
without any texture, so the mob had no slots, Wld_IsMobAvailable(self, "REPAIR") answered no and ZS_Repair_Hut
(G2 Fellan, G1 ZS_RepairHut) never used it. Such mobs are now built like the dig spots (untextured allowed) and then
hidden: nothing drawn, no colliders, only the slots.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arp, flute and WASH_SLOT stay skipped; log each helper mob once

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…orld load - it warns once and has no slots

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@BoroBongo

Copy link
Copy Markdown
Contributor Author

Review (architecture-reviewer + gothic-reviewer), two rounds

Round 1. Both reviewers: OK / fits, with concerns. Fixed:

  • Too broad. The rule covered every untextured mob. Now only models with ZS_* slot nodes are built: harp, flute and WASH_SLOT stay skipped, and the editor logs each helper mob once.
  • Duplicate. One HideVisual(go, keepColliders).
  • Name. HasMeshes renamed to HasTexturedMeshes.

Round 2. Fixed:

  • Null guards. HasSlotNodes is null-safe and warns once for a model without a hierarchy (mods).

Author's decision. The author asked to show the plank. Shown live, it is a blue quad (material REPAIR_PLANK-HIDDEN, color 33,58,161, the Spacer's helper blue), so it stays hidden.

Editor check (G2): the plank now has ZS_POS0, 0 renderers drawn, 0 colliders, and Fellan hammers (ZS_REPAIR_HUT, S_REPAIR_S1). The author confirmed in play.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant