Change where a reflex pionts

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

Change where a reflex pionts

Post 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
mrhyperpenguin




Revivalist Miner Wordewatician 250

Posts: 357
Joined: Sun Mar 07, 2004 4:34 pm

Post 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
Image
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 »

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?
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 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 :)
Shalted




Eureka Translator

Posts: 565
Joined: Wed Nov 17, 2004 8:41 am
Location: Vancouver, BC This is where people put their modding team because they feel important.
Contact:

Post 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
Last edited by Shalted on Wed Oct 19, 2005 10:35 pm, edited 1 time in total.
Awaiting connection...
santamaycry





Posts: 463
Joined: Mon Mar 28, 2005 6:32 pm

Post by santamaycry »

OR...you could use ADI's reflexive swapper >_>
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 »

SantaMayCry wrote:OR...you could use ADI's reflexive swapper >_>
And where would that get you?

btw...Shalted, very nice description.
santamaycry





Posts: 463
Joined: Mon Mar 28, 2005 6:32 pm

Post 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:
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 »

Thanks for the help guys ive got it working now :D
Shalted




Eureka Translator

Posts: 565
Joined: Wed Nov 17, 2004 8:41 am
Location: Vancouver, BC This is where people put their modding team because they feel important.
Contact:

Post by Shalted »

Just out of curiosity, what are you working on?
Awaiting connection...
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 »

Cant say anything about it yet :wink: but now that i know this im able to complete it :D
mrhyperpenguin




Revivalist Miner Wordewatician 250

Posts: 357
Joined: Sun Mar 07, 2004 4:34 pm

Post by mrhyperpenguin »

oh yeah, my bad, halo2s reflexives point to offsets in the whole map, not the specific meta
Image
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 »

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
Post Reply