How to embed Shadow Fight 3 animation .bytes data into a glTF 2.0 file (using this specific tool)?

2 weeks ago 11
ARTICLE AD BOX

I am using a community extraction tool for a unity game called Shadow Fight 3 (download link below).

The tool can decrypt the game’s animation files in .bytes format .bytes animations are fully valid — when I re-inject them into the game using the same tool(e.g. speed editing) , they play correctly.

However, the tool also has a built-in CSV exporter, and it's broken.

When the animation is exported to CSV, the numbers lose their meaning(probably bugged), and any attempt to import the CSV into a 3d view results in a completely corrupted animation.

So instead of spending more time on CSV, I want to directly wrap the .bytes animation data inside a glTF 2.0 file.

My exact question:

Using this specific tool:

Tool download:

https://drive.google.com/file/d/1by8Kz9EjceO9C1E1sH42CbDsABoMmNv6/view?usp=drivesdk

And using this example .bytes animation file:

https://drive.google.com/file/d/1O-Tv_AUSndUkRGB58qHSKKWDhxJ3hk5U/view?usp=drivesdk

What is the minimal Python code needed to convert that .bytes animation to .gltf?

Thanks in advance.

Read Entire Article