Skip to content

Utility script 'beautify_anm_data.py' to assist getting started with d_a_npc TUs#2413

Merged
TakaRikka merged 1 commit intozeldaret:mainfrom
YunataSavior:beautify_anm_data
Apr 28, 2025
Merged

Utility script 'beautify_anm_data.py' to assist getting started with d_a_npc TUs#2413
TakaRikka merged 1 commit intozeldaret:mainfrom
YunataSavior:beautify_anm_data

Conversation

@YunataSavior
Copy link
Copy Markdown
Contributor

Example Usage:

python3 tools/utilities/beautify_anm_data.py src/d/actor/d_a_npc_besu.cpp

This will auto-convert various byte-array fields in the un-decompiled TU into their proper form. The output is stdout in the terminal that you run the python script. Note that the parsing is rather exact, so if it doesn't pick up on the expected string, then it won't convert the byte array.

For the Param_c class, this script will simply create a struct full of u32 fields. You'll need to modify the data field types after-the-fact when you decompile your given TU.

As always, feel free to leave whatever feedback you'd like in this PR!

@decomp-dev
Copy link
Copy Markdown

decomp-dev bot commented Apr 28, 2025

Report for GZ2E01 (7e06b18 - 92819a8)

No changes

@TakaRikka TakaRikka merged commit 430dc32 into zeldaret:main Apr 28, 2025
1 check passed
@YunataSavior YunataSavior deleted the beautify_anm_data branch May 31, 2025 07:36
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