Skip to content

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.

The asset stack

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:

  1. Modifying ver/us/splat.yaml's asset_stack field to add "override" above "us":
 asset_stack:
+  - override
   - us
  1. Placing our replacement asset for the Angry Bowser song at assets/override/bgm/Angry_Bowser_67.bin.
  2. 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.