Jump to content

PES 2019/eFootball PES 2021 .gani/.mtar file


Recommended Posts

The game engine is the same as MSGV/P.T (Fox Engine) but I know those games .gani/.mtar cannot work with PES but kinda similar. I've tested swapping animations files between PES19 and 21. Both are compatible with each other.

There's a "sort of" working tool for exporting mtar (they're kinda like a zip file for gani) to FBX for PES2017 here: https://gist.github.com/Hazuki-san/50e5ad0860d3b5e276eddf41bc2e570f
Partially documented file format here: https://github.com/kapuragu/FoxEngineTemplates/blob/main/gani.bt

The attached file is an animation where player stand still.

Example .gani and .mtar (from PES2019) files can be found below, I've also included necessary files for bones generation in the zip:

gani files.zip

body_anime_file0.zip

Edited by Aoba
added tags
Link to comment
Share on other sites

  • Aoba changed the title to PES 2019/eFootball PES 2021 .gani/.mtar file

.gani were controlled by "CobraAndBodyAnimControl" and "GenAnimControl" according to PES2019 disassembly code, but I never researched about file format. This is the first time, so I needed help on this.

Link to comment
Share on other sites

EDIT: i made plugin for *.ask fmt_ask.py

structure for *.ask files:

uint32 unk(1)
uint32 num_bones

foreach num_bones:
	4bytes unk(НННН)
	uint32 nameOfs
	int32 parent
	3float positions
	20bytes unks(maybe int zero and quat[float])

names buffer
Edited by Durik256
  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...
On 1/5/2024 at 10:24 PM, Durik256 said:

EDIT: i made plugin for *.ask fmt_ask.py

structure for *.ask files:

uint32 unk(1)
uint32 num_bones

foreach num_bones:
	4bytes unk(НННН)
	uint32 nameOfs
	int32 parent
	3float positions
	20bytes unks(maybe int zero and quat[float])

names buffer

unk1 seems to be version because eFootball 2024 has it as 2.

body_anim_skel.zip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...