Help finding a reflex in hex

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Help finding a reflex in hex

Post by shade45 »

Can someone give me an example of how to find a reflex in hex and its offset and size becouse i want to be able to add some reflexise to my chunk adders plugin thanks
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

reflexives are listed like this...they have a 4 byte chunk count, then the 4 byte reflexive that actually points to the meta. reflexives will almost always end in 80.

0100 0000 ABCD EF80 ---> points to 1 thing
0A00 0000 ABCD EF80 ---> points to 10 things

this should get u started and if u wanna find sizes you need to open up the meta.data file and find the difference between where the first reflexive points to and where the next one points to...then you can divide that size by the chunk count to get your chunk size. if you need a more in depth explanation just send me a pm and ill help u out
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

xbox7887 wrote:reflexives are listed like this...they have a 4 byte chunk count, then the 4 byte reflexive that actually points to the meta. reflexives will almost always end in 80.

0100 0000 ABCD EF80 ---> points to 1 thing
0A00 0000 ABCD EF80 ---> points to 10 things

this should get u started and if u wanna find sizes you need to open up the meta.data file and find the difference between where the first reflexive points to and where the next one points to...then you can divide that size by the chunk count to get your chunk size. if you need a more in depth explanation just send me a pm and ill help u out
thanks for the explaination, i would like a more in depth explination but i cant get to my pm box for some reason without an error, but this is what ive got so far. if i have this reflex 0200 0000 581B 5380 i now know it will points to 2 things, but i still need i little help with finding the actuall meta. maybe you could help me on aim tmacca123 or just on here

but thanks for your help going through this with me
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

ok so you have your meta saved that the reflexive is in....now open up the meta.data file in notepad and you should see something like this.

Reflexive|184|820|9
Reflexive|264|892|3

the numbers indicate decimal offsets and the first number is the reflexive location, the second is the offset where the reflexive points to, and the last one is the chunk count, or how many things it points to.

so lets say you want to find the chunk size for the first reflexive. take the offset where the first reflexive points to (820) and subtract from where the next one points to (892)

892-820=72 --->the first reflexive points to a total of 72 bytes

now to find the individual chunk size all you do is take the total meta that it points to and divide by the chunk count.

72/9=8 --->this means that the chunk size for the first reflexive is 8

this method usually works but things can become more complicated when dealing with nested reflexives or if they arent listed in order under the meta.data file so just keep in mind that reflexives point to meta and they cant point to something elses meta, so where one stops, another begins and so on. hope this helps a bit
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

Yeah thanls for takin time to explain this :)
Post Reply