Skip to content
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

Material anim files don't save properly #371

Open
stinny7 opened this issue Dec 14, 2020 · 0 comments
Open

Material anim files don't save properly #371

stinny7 opened this issue Dec 14, 2020 · 0 comments

Comments

@stinny7
Copy link

stinny7 commented Dec 14, 2020

If you open a .mta from a character's material_anime_eye.pac and save it, a few things get messed up. First, the Second Material Hash gets changed to match the first Material Hash, which causes the character's eyes to move in the wrong direction.

Before saving:
1
After saving:
2
Second, the offsets within the file are all off by 0x10 (h), so the file basically becomes unreadable. In order to fix these you would have to go through the file in a hex editor and add 0x10 to all of the offsets.

For example, the corrupt mta vs. the readable mta:
3

These offset changes need to be done for each material in order for the file to become readable again (6 materials in this mta)

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

No branches or pull requests

1 participant