Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Alhexx on 2001-07-29 15:28:00

Title: Need help interperting hrc files
Post by: Alhexx on 2001-07-29 15:28:00
I'm workin on a whole-model-view-option for ultima, but I've got a serious problem with the hrc-files: I don't know how to handle them exactly. Here's a example from file aagb.hrc:

:HEADER_BLOCK 2      < Header Block
:SKELETON n_tifa_sk   < Name of Skeleton
:BONES 24      < Count of Bones below

hip         < Name of current Bone
root         < Name of parent Bone
3.915372      < Unknown Value
1 AAGC         < Unknown name
.
.
.


The two "unknown" are the problem. How do I interpret them?
I guess that if the unknown name is '1 AAGC' the .p file for this bone is 'AAGD'. Right?
But I've got no idea what to do with the Unknown Value...

mirex: I know you know how to interpret this crap, b'cause you've written a workin' tool for that...

- Alhexx

Title: Need help interperting hrc files
Post by: ficedula on 2001-07-29 19:36:00
The file name is the name of an RSD file, which is usually nearly the same as the name of the .P file it uses. But you can't be *certain* the .P file will be one letter on, so you should open the RSD to find out which .P file is being referred to.
Title: Need help interperting hrc files
Post by: The SaiNt on 2001-07-29 19:51:00
The numerical unknown value is supposed to be some sort of co-ordinate / distance system which I haven't quite figured out its format yet.
Title: Need help interperting hrc files
Post by: Alhexx on 2001-07-29 23:13:00
Damn, I'm stupid...  :wink:

Alright, I'll take a look at it...

- Alhexx

Title: Need help interperting hrc files
Post by: mirex on 2001-07-30 11:33:00
First float is length of bone from (0,0,0) of parent p-model to (0,0,0) of child model.

Then next line, first number is count of rsd-s, then there are names of rsd-s. In rsd files you find name of p-model and texture names.

Title: Need help interperting hrc files
Post by: Alhexx on 2001-07-30 13:55:00
Okay, thanx! I'll take a look at it later. First I think I've got to hack on on that .p format.

- Alhexx