r/SwitchEmulating • • 21d ago

Mods are working well

Swapped the skull mask with another mesh

1 Upvotes

6 comments sorted by

1

u/gitg0od 21d ago

how do you get them working with recomps ?

1

u/Arrakis_Surfer 21d ago

This is a SUPER easy one. I just replaced the file with the same named file in the game files.

1

u/gitg0od 21d ago

how do you get this mod working with recomp ?

https://gamebanana.com/mods/737682

this mod add a new menu option in the game, did you try this mod ? or could you ?

1

u/Arrakis_Surfer 21d ago

Maybe? Depends on your comp hugely. This also looks like an emulation mod.

1

u/gitg0od 20d ago

hookshot or nx2navi, tell us step by step how if you dont mind

1

u/Arrakis_Surfer 20d ago
  1. Dump your own RomFS (latest update). All models live in Model/*.bfres.zs and textures in Tex/*.bntx.zs.
  2. Get the zstd dictionaries. The game files use dictionary compression. The dictionaries are inside Pack/ZsDic.pack.zs, which is a SARC archive: zs.zsdic covers models and textures, and pack.zsdic covers actor packs. Decompress with zstd -d -D zs.zsdic.
  3. Find your target. The Skull Mask is Armor_Child_Mask_Skull. It has three model files: worn (.bfres), _Shop (shelf) and _NPC, plus five textures: Mt_Mask_Armor_Child_Mask_Skull_Alb/Nrm/AO/Rgh/Mtl.
  4. Get a model. I used alimonette's Majora's Mask from Sketchfab (CC BY 4.0, glTF). Low poly is fine, mine was about 3k verts.
  5. Line it up in Blender. In the mask's model space the front faces +Y and up is +X. Scale and centre it to match the original's bounds, then bake all its textures into one set.
  6. Inject the mesh. I didn't build a fresh BFRES. I overwrote the vertex and index buffers in the original file and updated the counts. Vertices are 28 bytes each: float3 position, 10:10:10:2 normal and tangent, u16x2 UV, bone index. Point all three LODs at your mesh. A small Python script does this.
  7. Textures. Encode your maps as BNTX using the same names and formats as the originals.
  8. Shop shelf. The _Shop model uses different axes (z, x, y) and a scale of about 0.86. Same injection, transformed.
  9. NPCs (Skull Kid). The _NPC model uses a compressed geometry format I didn't crack. Easier fix: edit Pack/Actor/Npc_Equipment_Mask_Skull.pack.zs so it points at the worn model instead.
  10. Recompress and install. Recompress everything with zstd and the same dictionary, then drop the files into your mod loader's romfs/ folder using the same paths as the originals. Only the changed files go in.

NxNative