Page 1 of 1

Magic Number

Posted: Sun Oct 17, 2004 8:40 pm
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")....

Posted: Sun Oct 17, 2004 10:28 pm
by Hexblade
3 is the magic number - its always the magic number

Posted: Mon Oct 18, 2004 11:44 am
by jimmsta
no, seriously... I think CLuIS might be of some help... or MonoxideC.... but they don't seem to frequent here anymore....

Posted: Mon Oct 18, 2004 3:30 pm
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)

Posted: Mon Oct 18, 2004 6:57 pm
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.

Posted: Mon Oct 18, 2004 7:01 pm
by mrhyperpenguin
no thats not right, thats the index magic, i need to figure out the map magic too

Posted: Mon Oct 18, 2004 7:17 pm
by jimmsta
alrighty... I'll be waiting then... I think there might be a forumula out there... just can't remember....

Posted: Mon Oct 18, 2004 7:46 pm
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.....

Posted: Fri Oct 22, 2004 4:25 pm
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