ilmheg / MultiAssist

GUI and additional features for AnimAssist, such as repacking multiple animations, to assist with FFXIV animation modding.
Do What The F*ck You Want To Public License
26 stars 2 forks source link

Exporting FBX viera animations onto their skeletons #6

Open rabbitchain opened 2 years ago

rabbitchain commented 2 years ago

When applying a viera (id 1801) animations to the viera face skeletons it shows the id as 176. And causes the error on FBX and HKX exports, XML export works.

Current workaround is to use other races' face skeletons. It also shows an id mismatch warning but exports and can be opened without issues in blender.

[dbg] magic : b'pap '
[dbg] version : 131073
[dbg] anim_count : 1
[dbg] skele_id : 1801
[dbg] info_offset : 26
[dbg] havok_offset : 66
[dbg] timeline_offset : 2896
[dbg] anim_infos : [{'name': 'cfxf_grin', 'unknown1': 17, 'havok_index': 0, 'unknown2': 1}]
[dbg] magic : b'blks'
[dbg] version : 825438257
[dbg] offset1 : 48
[dbg] havok_offset : 0
[dbg] skele_id : 176
[dbg] other_ids : 0
[dbg] magic : b'blks'
[dbg] version : 825438257
[dbg] offset1 : 48
[dbg] havok_offset : 0
[dbg] skele_id : 176
[dbg] other_ids : 0
[dbg] magic : b'pap '
[dbg] version : 131073
[dbg] anim_count : 1
[dbg] skele_id : 1801
[dbg] info_offset : 26
[dbg] havok_offset : 66
[dbg] timeline_offset : 2896
[dbg] anim_infos : [{'name': 'cfxf_grin', 'unknown1': 17, 'havok_index': 0, 'unknown2': 1}]
The input skeleton is for ID 176.
The input animation is for ID 1801.
If these mismatch, things will go very badly.
[dbg] we have C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_skel as tmp_skel
[dbg] we have C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_anim as tmp_anim
[dbg] magic : b'blks'
[dbg] version : 825438257
[dbg] offset1 : 48
[dbg] havok_offset : 0
[dbg] skele_id : 176
[dbg] other_ids : 0
[dbg] This skeleton file is for the skeleton c176.
[dbg] magic : b'pap '
[dbg] version : 131073
[dbg] anim_count : 1
[dbg] skele_id : 1801
[dbg] info_offset : 26
[dbg] havok_offset : 66
[dbg] timeline_offset : 2896
[dbg] anim_infos : [{'name': 'cfxf_grin', 'unknown1': 17, 'havok_index': 0, 'unknown2': 1}]
[dbg] This pap file is for the skeleton c1801. It has 1 animation(s).
[dbg] 3221225477
[dbg]
[dbg] Saved skeleton xml to C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_skel_xml

[dbg] 3221225477
[dbg]
[dbg] Saved importable file to C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_anim_bin
HAVOK SKELETON FILEPATH IS: C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_skel
HAVOK ANIMATION FILEPATH IS: C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_anim_bin
FBX FILEPATH IS: C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_out_bin
Command 'tofbx.exe -hk_skeleton "C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_skel" -hk_anim "C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_anim_bin" -fbx "C:\Users\User\AppData\Local\Temp\tmp62zuqwnb\tmp_out_bin"' returned non-zero exit status 3221225477.

Error occurs on fresh client files, no modifications. And any face 2, 3, 4 or 5. Could be a general skeleton issue? anim_error.zip