Page 1 of 1

Act format

Posted: Mon Mar 23, 2009 2:48 pm
by Jay
Is there a documentation about the Genesis3d Act format somewhere? For writing converters or programs that can read and write an act file? If not, could someone explain it here?

Re: Act format

Posted: Mon Mar 23, 2009 3:22 pm
by bernie
an act file is simply a vfs type file containing a folder with all the animations numbered 0 - n a seperate .bdy file and a header. You can open an act file wth th RFvfs prog if you change the extn from .act to .vfs

Re: Act format

Posted: Mon Mar 23, 2009 3:40 pm
by Jay
Ok, that's good to know.

But how is the format of the 'internal' files? (The bdy, and mot files) And of the vfs header?

Re: Act format

Posted: Mon Mar 23, 2009 4:34 pm
by bernie
You could look here its explained but it's very complex.
http://www.genesis3d.com/~kdtop/

Re: Act format

Posted: Mon Mar 23, 2009 6:17 pm
by paradoxnj
BDY file is loaded using geBody_CreateFromFile()
MOT file is loaded using geMotion_CreateFromFile()

You can have a look at those functions to see what the formats are. The VFS stuff is in VFile/fsvfs.c and VFile/dirtree.c. You should probably write something using the Genesis API to extract the BDY and MOT files, then load them using the stdio APIs or ifstream. You could also just have the users use Milkshape or Equity to decompile the ACT.

Re: Act format

Posted: Mon Mar 23, 2009 8:33 pm
by Jay
Ah i looked at the API documentation bernie posted and genesis seems to have

geBody_CreateFromFile()
geBody_WriteToFile()
geMotion_CreateFromFile()
geMotion_WriteToFile()

functions. I think i will then create an 'empty' body and fill it with all the data needed, then use the geBody_writeToFile() function to save it. That's enough for me.

Thanks for all help.