|
Post by Lukie D on Jan 26, 2016 16:08:12 GMT -6
This will be in multiple posts, for multiple attachments. First things first, info file format The Header The header has 4 values, all 32 bit. They are (Item count, Node count, Items Offset, and Item size) The Nodes Each Node is 12 bytes long (Node ID (4 bytes), unknown value(4 bytes), value offset form item offset (2 bytes), and type (2 bytes)) The Item (which is the rest) This is where the values vary. But we are only doing positions, and luckly, they are the first three 32bit values from the item offset.
|
|
|
Post by Lukie D on Jan 26, 2016 16:15:40 GMT -6
So, we should select the 3 position values. (We know where these values are located, and what they are, from the nodes above) These values are formatted in floats (which are 32-bit values with decimals in them) For doing that, I recommenced this to convert hex to floats and vise versa. They are in order of positions X (left & right), Y (Up & Down), and Z (Forward & Backward). (The format is good when you are looking in the view of normal game play)
|
|
|
Post by TheHappyFaceKing on Jan 26, 2016 16:35:39 GMT -6
Quick question how do you know what ghosts position your editing? EDIT: oh wait nvm lol
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 17:40:10 GMT -6
So the coordinates are always located above the name?
|
|
|
Post by Lukie D on Jan 26, 2016 17:44:09 GMT -6
So the coordinates are always located above the name? Yea. The coordinates are the first thing for each item. (But only for some info files, but you might not run into it)
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 17:49:05 GMT -6
Cool. So if I wanted the hallway ghosts on the ground just put Y to 0?
|
|
|
Post by Lukie D on Jan 26, 2016 18:00:28 GMT -6
Yea. Pretty much
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 18:32:51 GMT -6
Sometimes I get confused when names are in a different shifted position. Which means the values for the xyz coordinates are in a different position too. How do I know which ones are which?
|
|
|
Post by Lukie D on Jan 26, 2016 18:35:40 GMT -6
No. They should be the same. And the nodes for the names are the same position in one info file. The values just looks switched.
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 18:40:15 GMT -6
Any way to make them appear in one colom on hxd so it won't look so out of place?
|
|
|
Post by TheHappyFaceKing on Jan 26, 2016 18:43:24 GMT -6
Cool. So if I wanted the hallway ghosts on the ground just put Y to 0? No. you set it to 90
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 18:44:48 GMT -6
So 90000000?
|
|
|
Post by Lukie D on Jan 26, 2016 18:47:11 GMT -6
Any way to make them appear in one colom on hxd so it won't look so out of place? Yea. Change the Bytes Per Row from 16 to 20. Also, change your Byte Group Size to 4, since all of these values are 32 bit.
|
|
|
Post by Lukie D on Jan 26, 2016 18:49:02 GMT -6
No, 0x42b40000 EDIT: It should be 0.0, That's how Toad was like.
|
|
|
Post by ~Scary Basher~ on Jan 26, 2016 18:49:57 GMT -6
Thanks! Really helps! And another thing. How do you know the room of the one you're editing is?
|
|