map magic algorithm

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





Posts: 7
Joined: Sun May 02, 2004 3:12 pm
Contact:

map magic algorithm

Post by mckenn88 »

i really need to know what the map magic algorithm is. dont flame about not knowing how to use it... i kno how to use it i just need it for a project.
[users]Digital Marine





Posts: 31
Joined: Sat Feb 05, 2005 8:42 am

Post by [users]Digital Marine »

Whats your project??
mckenn88





Posts: 7
Joined: Sun May 02, 2004 3:12 pm
Contact:

Post by mckenn88 »

ill tell u if u tell me
[users]Digital Marine





Posts: 31
Joined: Sat Feb 05, 2005 8:42 am

Post by [users]Digital Marine »

What if I told you if you told me first? Hehe
User avatar
Aequitas




Socialist Artisan Miner Pi
Bloodhound Mad Hatter Enthraller Logistician
Eureka Critic Wave

Posts: 469
Joined: Thu Nov 11, 2004 10:07 pm

Post by Aequitas »

TF6
[users]Digital Marine





Posts: 31
Joined: Sat Feb 05, 2005 8:42 am

Post by [users]Digital Marine »

Wow, that is a lot of reading. I can say it really fast...
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 »

Xor every byte together after the header(first 2048 bytes)

so in c(sorry for my crappy code... I had surgery today)

Code: Select all

FILE *fp;
DWORD Signature=0;
DWORD *Buffer;
if((fp=fopen(Map_Path,rb)==NULL)
     return -1; //A file error
fseek(fp,2048,NULL); //correct me if Im wrong on the function prototype here.
while(!feof(fp)){
     fread(Buffer,1,sizeof(DWORD),fp);
     Signature^=Buffer[0];
}
return Signature;
then write that to the offset of the signature.
Oh yeah DWORD=unsigned int
so...

Code: Select all

typedef unsigned int DWORD;
Awaiting connection...
User avatar
Aequitas




Socialist Artisan Miner Pi
Bloodhound Mad Hatter Enthraller Logistician
Eureka Critic Wave

Posts: 469
Joined: Thu Nov 11, 2004 10:07 pm

Post by Aequitas »

Map Magic != Encryptomatic Signature

I'll chalk this one up to the anesthetics. ;)
TF6
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 »

Oh sorry I dunno what I was thinking. and thanks, its increadably hard to type right now.

Primary Or secondary?
Awaiting connection...
Post Reply