docs: mods that make files bigger need the resource size table grown #1325
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1325
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/mods-size-table"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
A paragraph in the readme's Mods section: a mod file bigger than the game's own only loads if the resource size table (
System/Resource/ResourceSizeTable.Product.111.Nin_Ounce_NVN2.rsizetable.zs) allows for it, and only one mod's table is used.Why
Making an HD texture pack, the 2x textures were packed correctly but never reached the GPU (
RX_VK_WATCH_DIMat the new size: no textures made), and a pack of every colour texture left the game on a loading screen. Each texture's entry in the table is exactly its decompressed size + 280; with the entries grown, the same pack loads and every replaced texture shows in game (a magenta-tinted test pack, Kokiri Forest, Linux + RTX 4070 Ti). Because Hookshot replaces whole files and the last-sorting mod wins, two mods that each grow files need one merged table.Checked
The builder this came from, for anyone making texture mods (no game data in it): https://github.com/Joey-Magnus/Hookshot-Textures
AI assistance: written with Claude Opus 5.5 (trailers on the commit).
Matches host/mods.c: mods replace whole files and the last-sorting folder wins on a duplicate, so only one mod's rsizetable is used, and the "merged table in the last-sorting mod" advice follows. I can't check the table format (CRC32 of the path, decompressed size + 280) or the oversize behaviour from the repo, so those rest on your testing. Nit: the new paragraph's line wrapping is ragged.