Author Topic: Headway in the .a file format  (Read 5238 times)

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Headway in the .a file format
« on: 2001-08-25 16:02:00 »
Saint bugged me in ICQ for *two days* to get this done. I've found out all I can without programming my own bone animator. And I suck a rotational mathmatics. I usally just do vertex manipulation.

Ok this is how .a files work:

You have to load a skeleton (.HRC) file first but that's all you really need. The HRC file tell the system how many bones are there and the leanths and *the order that they are in* (That part is key) Now I dumped some .a files and marked down what I think everything is. I think I messed up my frame 2 offset in the second example, but I discribe enough so you guys can fix it in case I messed up. You have to excuse me as it 6:00am here and I've been tereing these things apart all night. Here's my dumps.

[ALL ROTATIONS ARE INTEL FLOATS]

AAFE.A
-------------------------
offset: data (what it is)
--------------------------

000: 01000000 (animation header)
004: 01000000 (how many frames of animation [1])
008: 15000000 (how many bones there are [21])
00C: 01000200 (always the same w/field humans)
010: 48E86701 (Bounding box1?)
014: 20AC6701 (Bounding box2?)
018: 00000000 (?1)
01C: 00000000 (?2)
020: 00000000 (?3)
024: 00000000 (?4)
028: 00000000 (?5)
02C: 00000000 (?6)
030: 00000000 (?7)
034: 86905841 (Time mark?)
038: 7FD69D3D (frame header?)
03C: 00008743 Bone1 X rotation [270]
040: 00000000 Bone1 Y rotation


044: 00000000 Bone1 Z rotation

048: 00C8AF43 Bone2 X rotation [351.5625]
04C: 00000000 Bone2 Y rotation

050: 00000000 Bone2 Z rotation

054: 00000741 Bone3 X rotation [8.4375]

****************************************

ABCE.A
-------------------------
offset: data (what it is)
--------------------------

000: 01000000 (animation header)
004: 17000000 (how many frames of animation [23])
008: 18000000 (how many bones there are [24])
00C: 01000200 (always the same w/field humans)
010: AC737901 (Bounding box1?)
014: FC1D7901 (Bounding box2?)
018: 00000000 (?1)
01C: 00000000 (?2)
020: 00000000 (?3)
024: 004CB343 (?4)
028: 0044AC43 (?5)
02C: 00000000 (?6)
030: 0351493D (?7)
034: 0CE52441 (Time mark?)
038: 90754DBD (frame header?)
03C: 00008743 Bone1 X rotation [270]
040: 00000000 Bone1 Y rotation


044: 00000000 Bone1 Z rotation

048: 007CB043 Bone2 X rotation [352.96875]
04C: 00E4B143 Bone2 Y rotation [355.78125]
050: 00202342 Bone2 Z rotation [40.78125]
054: 00807741 Bone3 X rotation [15.46875]

...(after the 24 bones)

16C: DFBB2741 (time mark?)
170: AC4939BD (frame header}
174: 00008743 Bone1 X rotation [270]
178: 00000000 Bone1 Y rotation


17C: 00000000 Bone1 Z rotation

180: 0030B143 Bone2 X rotation [354.375]
184: 0098B243 Bone2 Y rotation [357.1875]
188: 00600142 Bone2 Z rotation [32.34375]
18C: 00804A41 Bone3 X rotation [12.65625]


************************************

DF.A (racing chocobo from minigame)
-------------------------
offset: data (what it is)
--------------------------

000: 01000000 (animation header)
004: 14000000 (how many frams of animation [20])
008: 1C000000 (how many bones there are [28])
00C: 01000200 (always the same w/field humans)
010: 50FFED00 (Bounding box1?)
014: 741BEE00 (Bounding box2?)
018: 00000000 (?1)
01C: 00000000 (?2)
020: 00000000 (?3)
024: 00000000 (?4)
028: 00000000 (?5)
02C: 00000000 (?6)
030: 676646BF (?7)
034: E9E55C41 (Time mark?)
038: 45DCEB40 (frame header?)
03C: 004CB343 Bone1 X rotation [358.59375]
040: 00000000 Bone1 Y rotation


044: 40C2B143 Bone1 Z rotation [355.51758]
048: 00E01741 Bone2 X rotation [9.4921875]
...

he order of the bones is exactly the same as the are defined in the HRC file. Now you guys can put your little dudes togeather by following this roadmap.

-halkun


ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Headway in the .a file format
« Reply #1 on: 2001-08-25 17:59:00 »
We already knew all that from Qhimm's 3DS plugin, but I guess it's nice to see it written down.

EDIT: Actually, this has accomplished two things:

1) It's reminded me I STILL haven't figured out the .A format
2) It's helped me a bit by, as my dad would say, pointing out the Sheer Bleeding Obvious, something I tend to miss sometimes.

[This message has been edited by ficedula (edited August 25, 2001).]


mirex

  • *
  • Posts: 1645
    • View Profile
    • http://mirex.mypage.sk
Headway in the .a file format
« Reply #2 on: 2001-08-30 11:03:00 »
Everyone is still talking about Qhimm's 3ds plugin. I cant find it. Could someone post a link, please ?

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Headway in the .a file format
« Reply #3 on: 2001-08-30 19:35:00 »
Here's the topic where I found out that there's a Plug by Qhimm.
(First Post from Srethron)
  http://qhimm.3dstream.net/ubb/Forum4/HTML/000042.html" TARGET=_blank>http://qhimm.3dstream.net/ubb/Forum4/HTML/000042.html  

- Alhexx

BTW: I still have no Max SDK
 - edit -
How cute, Fice was an insane poster!  :D

[This message has been edited by Alhexx (edited August 30, 2001).]


ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Headway in the .a file format
« Reply #4 on: 2001-08-30 21:38:00 »
Hey, we all had to start off as newbies at some point  :)

Incidentally, you're an insane poster now as well  :wink:


Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Headway in the .a file format
« Reply #5 on: 2001-08-30 23:18:00 »
Insane Poster? Me? - Cool  8) !

Haven't recognized that yet! HA!

I just posted your 'past status' to show how old this topic is.
BTW: You're moving up to that 'No Life'-Status - if you weren't a moderator ...

- Alhexx


ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Headway in the .a file format
« Reply #6 on: 2001-08-30 23:38:00 »
Yeah, I know...

Anonymous

  • Guest
Headway in the .a file format
« Reply #7 on: 2001-08-31 01:50:00 »
heh. fice was an insane poster when i came here.

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Headway in the .a file format
« Reply #8 on: 2001-08-31 17:10:00 »
So why haven't u registered? You'd be an insane poster now, too, like me...
(I guess the time I joined Fice was already a 'Freak')

- Alhexx


ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Headway in the .a file format
« Reply #9 on: 2001-09-02 16:00:00 »
Hiya all - Ifalna's updated to v1.21 - now it can read most (all? dunno) of the field & world map models ....

...but the Legacy server's down. So I've put it on my uni account temporarily
 http://www.dcs.warwick.ac.uk/~csuzs/ifalna121.zip" TARGET=_blank>http://www.dcs.warwick.ac.uk/~csuzs/ifalna121.zip

if you want it.