Author Topic: Need help interperting hrc files  (Read 3517 times)

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Need help interperting hrc files
« 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


ficedula

  • *
  • Posts: 2178
    • View Profile
    • http://www.ficedula.co.uk
Need help interperting hrc files
« Reply #1 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.

The SaiNt

  • *
  • Posts: 1300
    • View Profile
Need help interperting hrc files
« Reply #2 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.

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Need help interperting hrc files
« Reply #3 on: 2001-07-29 23:13:00 »
Damn, I'm stupid...  :wink:

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

- Alhexx


mirex

  • *
  • Posts: 1645
    • View Profile
    • http://mirex.mypage.sk
Need help interperting hrc files
« Reply #4 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.


Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
Need help interperting hrc files
« Reply #5 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