Feature Preview #4 - Archive Hotswapping #74
SuperHackio
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This feature lets you redirect certain game files to different game files on a "per-scenario" basis! What does this mean? Well, allow me to explain...
This feature allows you to add a new field to the normal UseResource BCSVs (Specifically the object ones, so

common.bcsv
,scenario_1.bcsv
, etc.). This is an optional field, so leave theResourceMask
field empty if you do not want to hotswap the file in theResourceName
field.In the image above, I have Hotswapped a Goomba with the Unused Goomba-like enemy from SMG1 (with some added goomba files to make sure it has all the animations it needs)
This will tell the game to do the following:
TetuKuri.arc
Kuribo.arc
Kuribo.arc
to the (now internally renamed)TetuKuri.arc
And Voilà! In the level that uses this UseResource bcsv, the Goomba will look like the TetuKuri:

But, in other levels of the hack, the Goomba will still look like the normal goomba:

To be clear, this is handled the same way the normal UseResource bcsv's are handled, so you can only hotswap an archive for Scenario 1, but not for Scenario 2, or for all scenarios in a galaxy (using the common.bcsv).
Here is a picture of what the custom

TetuKuri.arc
looks like. As you can see, it looks identical to the normalKuribo.arc
. This is because the game is still expecting to loadKuribo.arc
, so naturally, it's also expecting the files inside to be named the same that it would be inside the actualKuribo.arc
. In other words, you only need to rename the archive file itself, and keep the contents named the same way they would be in the normal file.Limitations
This only works for archives that are not always loaded into RAM. Some examples include (but is not limited to):
Beta Was this translation helpful? Give feedback.
All reactions