-
Notifications
You must be signed in to change notification settings - Fork 130
Asset overrides
Alex Bates edited this page Mar 28, 2023
·
3 revisions
⚠️ You should never commit dumped assets to a git repository. This will get you in severe legal trouble! ⚠️
If you tried to commit an asset and were sent to this page, please read it carefully.
Instead, configure supports a feature we call the "asset stack".
For example, say we wanted to override the asset assets/us/bgm/Angry_Bowser_67.bin
.
We can do this by:
- Modifying
ver/us/splat.yaml
'sasset_stack
field to add "override" above "us":
asset_stack:
+ - override
- us
- Placing our replacement asset for the Angry Bowser song at
assets/override/bgm/Angry_Bowser_67.bin
. - Running
./configure
again, because we added new files
The assets/override/
directory won't be gitignored, so you can commit it as normal.
This enables you to modify assets without committing any dumped assets.
You can even have more folders in the asset stacks for different 'features' of a mod, for example:
asset_stack:
- cool_texture_pack
- red_goombario
- us
This will use assets from assets/cool_texture_pack/...
, then, if an asset can't be found there, it will fall back to red_goombario
, and then finally vanilla assets will be used.