Skip to content

Sync asset names with decomp documentation #3153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 10, 2023

Conversation

Archez
Copy link
Contributor

@Archez Archez commented Aug 26, 2023

This is a continuation of #3093 and syncs more asset names from decomp, including animations/limbs/skels.
This was done by using a scripted processes to cross reference the XMLs from decomp and the MQ Debug XMLs in SoH. Anything not matching has been updated with the name from decomp. This includes naming things that never have human friendly names, and updating existing human friendly names based on changes in decomp since we forked.

I've left out one part which was the naming of player animation data, as we have a string builder to derive the OTR path name from a segmented address. This will require an actual code change to implement correctly, so I'll save that for a follow up PR.

The script is located here, I leveraged Python (python3) to do the xml comparison and the source code find&replace for names found. The script is quite slow when replacing, but I didn't do much to try to make it more performant.

JSON list of the replaced names (keys are the old names, values are the new names), for anyone needing to script out updates for mods.
synced-names.txt

Build Artifacts

Copy link
Contributor

@garrettjoecox garrettjoecox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants