Ploaj / HSDLib

A library that assists with reading/writing HSD DAT files
MIT License
53 stars 16 forks source link

GNTA load is gone? #72

Open Kendaman opened 1 year ago

Kendaman commented 1 year ago

I see that there was a MOT and gnta load function for Eighting, has it been removed in the current version? It does not seem to exist in the code either.

EternalYoshi commented 5 months ago

Bumping because this feature being gone appears to be very unaccounted for.

NicholasMoser commented 4 months ago

I actually started looking into this. GNTA Functionality was first added in https://github.com/Ploaj/HSDLib/commit/32a597eeb069549220911b331ecad24f6be30ab2 and was removed in https://github.com/Ploaj/HSDLib/commit/d2259f167f692d8738853859fd7fa10b1f613cfa

At first glance it looked like the fix was as easy as adding a .gnta option back to the new JointAnimationLoader.cs class. I went ahead and made this change in my fork: https://github.com/NicholasMoser/HSDLib/commit/186ae50421179b4fc6d4a640e8b25774e85a7c40 but it didn't seem to actually load the animation.

image

Based on some debugging, I see that the MOT_FILE, MOT_JOINTs, and MOT_KEYs are created, but in JObjEditorNew.cs it expects some FOBJ_Player objects to create the tracks.

image

I expect I need some logic to convert the MOT classes to FOBJ_Player classes. The subclass of MOTAnimManager is JointAnimManager, which is able to create these classes, but only from a passed in HSD_FigaTree or HSD_AnimJoint. So maybe I need to map the MOT classes to HSD_AnimJoint?

I'll continue to investigate.