decompiler: support merc model replacements and adding custom actor models to vanilla fr3s #3597
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for replacing existing merc models in FR3 files with custom GLB model files. The replacements go in
custom_assets/<GAME>/merc_replacements
, similar to texture replacements. When a.glb
file with a file name that matches any model present in an FR3 is detected (e.g.eichar-lod0
for Jak), all merc model data is replaced with the given model.Additionally, models for custom actors can now also be added to vanilla FR3s. The models for this go in
custom_assets/<GAME>/models/<LEVEL_NAME>
(e.g.custom_assets/jak1/models/jungleb/test-actor-lod0.glb
) and will be added to the FR3 that has a matching name (exception: to add things to the common level file, the folder should be namedcommon
instead ofGAME
).For custom levels, these now go in
custom_assets/<GAME>/models/custom_levels
(previouslycustom_assets/<GAME>/models
).Another small change: When level ripping is enabled, the resulting model files will now be stored in game name subfolders inside of
glb_out
.