Page 1 of 1

Change where a reflex pionts

Posted: Wed Oct 19, 2005 3:26 pm
by shade45
How would i take the reflex
0100 0000 7888 1E80
which points to offset 992 and make it point to say offset 1065??


thanks for help

Posted: Wed Oct 19, 2005 4:19 pm
by mrhyperpenguin
if you wanted to calcuate a reflexive by hand:

you would take the reflexive (7888 1E80) and edian swap it (swap in pairs)
so that would be 80 1e 88 78
then you would subtract map magic, which would give you the offset.

if you wanted to make a reflexive you do the opposite.
offset + mapMagic = x (and you edian swap that)

correct me if i'm wrong, i havent done reflexives since halo

Posted: Wed Oct 19, 2005 7:45 pm
by shade45
Ok so i got my endian swapped reflex
80 1e 88 78
then subtract the map magic
80 1e 88 78 - 7D958800 = 2890078

But i dont think im doing it right since i know that that reflex points to decimal offset 992

I did this with the hex function in windows calculator, is that how i should be doing it?

Posted: Wed Oct 19, 2005 7:48 pm
by xbox7887
Reflexives deal with map offsets...so you'll need to find the tag offset and add whatever meta offset you want it to point to. I suggest you use Dothalo for translating reflexives, their hex utility is quite useful :)

Posted: Wed Oct 19, 2005 9:18 pm
by Shalted
Heres how using examples and the map I've got open right now and a random meta tag

So Map = ascension
Tag = banshee_bomb

Lets use the first reflex
The first reflex is
03 00 00 00 24 CB 2D 80
so thats chunk count 3
and the adress the reflex points to is:

802DCB24-Secondary Map Magic

gives us the raw offset
19AF724

So the offset to our current tag is 19AF580
19AF724-19AF580=1A4
or
420
This reflex points to adress 0x1A4 in the meta Banshee Bomb.

Your going to have to find exactly what tag the offset points to yourself if it doesnt point to anything in the current tag

Posted: Wed Oct 19, 2005 10:19 pm
by santamaycry
OR...you could use ADI's reflexive swapper >_>

Posted: Wed Oct 19, 2005 10:22 pm
by xbox7887
SantaMayCry wrote:OR...you could use ADI's reflexive swapper >_>
And where would that get you?

btw...Shalted, very nice description.

Posted: Wed Oct 19, 2005 10:30 pm
by santamaycry
xbox7887 wrote:
SantaMayCry wrote:OR...you could use ADI's reflexive swapper >_>
And where would that get you?

btw...Shalted, very nice description.
my bad, i didn't see he wanted to point it to another, not swap with another reflexive, my bad :oops:

Posted: Thu Oct 20, 2005 5:43 am
by shade45
Thanks for the help guys ive got it working now :D

Posted: Thu Oct 20, 2005 11:19 am
by Shalted
Just out of curiosity, what are you working on?

Posted: Thu Oct 20, 2005 3:13 pm
by shade45
Cant say anything about it yet :wink: but now that i know this im able to complete it :D

Posted: Thu Oct 20, 2005 3:37 pm
by mrhyperpenguin
oh yeah, my bad, halo2s reflexives point to offsets in the whole map, not the specific meta

Posted: Sat Oct 22, 2005 8:53 pm
by shade45
Sorry but i got another question

I dont get how a string reference works. does it point to a string somewhere else in the map file or what?

thanks for the help