map magic algorithm
map magic algorithm
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.
-
- Posts: 31
- Joined: Sat Feb 05, 2005 8:42 am
-
- Posts: 31
- Joined: Sat Feb 05, 2005 8:42 am
-
- 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:
Xor every byte together after the header(first 2048 bytes)
so in c(sorry for my crappy code... I had surgery today)
then write that to the offset of the signature.
Oh yeah DWORD=unsigned int
so...
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;
Oh yeah DWORD=unsigned int
so...
Code: Select all
typedef unsigned int DWORD;
Awaiting connection...