>I've found the item numbers for scenery and
>items in proto.msg does anyone know where the
>numbers are for misc type I couldnt find them in
>proto.msg.
pro_crit.msg
pro_item.msg
pro_misc.msg <-- misc type
pro_scen.msg
pro_tile.msg
pro_wall.msg
proto.msg
All of them contains the indexes neccessary to refer to each Proto (object).
They are located in Master.dat\\text\english\game
>Also does anyone anyone know a formula to
>convert hex to decimal and vice versa?
In C: (pseudo-code)
main ()
{
hex_num = 0xFF;
printf("%d\n", hex_num);
printf("%X\n", hex_num);
}
Output:
255
FF
=============================
I once asked the same question in the General Forum, Xotor replied me this:
Basically you divide the number by a power of 16, one that divides into the number less than 16 times (or you must choose a higher power), then take that number and convert it to hex (0123456789ABCDEF). Then subtract that value * 16^power, and repeat with a lower-order power.
Ex:
for i = 10 to 1, step -1
{
Temp = Number / (16^i)
if Temp = 0, HexNumber:Character(i) = '0'
if Temp = 1, HexNumber:Character(i) = '1'
...
if Temp = 15, HexNumber:Character(i) = 'F'
Number = Number - (Temp * (16^i))}
}
I know that there is a Hex() function in C++, but don't know how to use it.
MatuX,
Co-Leader and Chief Programmer on The Mod Squad
http://www.pipboy2000le.f2s.com/