Magic Number

Discuss stuff related to HaloCE (for modding, go to the HEK General forum).
Post Reply
jimmsta





Posts: 240
Joined: Mon Oct 20, 2003 4:21 pm

Magic Number

Post by jimmsta »

Does anyone know what the Magic Number is for CE maps?

I'm working on an app, and need to know what the magic is... otherwise, my app is just going to spit out bad data... (yes, it is part of the app "HeXTend")....
Hexblade





Posts: 213
Joined: Wed Feb 04, 2004 10:29 am

Post by Hexblade »

3 is the magic number - its always the magic number
jimmsta





Posts: 240
Joined: Mon Oct 20, 2003 4:21 pm

Post by jimmsta »

no, seriously... I think CLuIS might be of some help... or MonoxideC.... but they don't seem to frequent here anymore....
mrhyperpenguin




Revivalist Miner Wordewatician 250

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

Post by mrhyperpenguin »

the magic is located in the index header,

just search for rncs (scnr backwards) and it should lead you to the tag class of the scenario in the index, just scroll up a bit from till there is a a lot of zeros, the magic is the first 4 bits eden swapped (should end in 40 for ce)
Image
jimmsta





Posts: 240
Joined: Mon Oct 20, 2003 4:21 pm

Post by jimmsta »

Thanks... I think I can figure that out...

I haven't touched this stuff in a LONG time, so It's as if I'm a n00b again... ugh.
mrhyperpenguin




Revivalist Miner Wordewatician 250

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

Post by mrhyperpenguin »

no thats not right, thats the index magic, i need to figure out the map magic too
Image
jimmsta





Posts: 240
Joined: Mon Oct 20, 2003 4:21 pm

Post by jimmsta »

alrighty... I'll be waiting then... I think there might be a forumula out there... just can't remember....
jimmsta





Posts: 240
Joined: Mon Oct 20, 2003 4:21 pm

Post by jimmsta »

Hmm... I managed to get my app working without it... I suppose maybe, that the magic is the same, or disreguarded in my app... which is good if it is, as I was able to get it to think that a CE map was a CE map, without the magic number.....
mrhyperpenguin




Revivalist Miner Wordewatician 250

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

Post by mrhyperpenguin »

i think i got it, im just a little off.

edien swap the index magic - index offset, i was just 24 bytes off
Image
Post Reply