HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Signature of w3x files

08-08-2006, 03:22 PM#1
Fireeye
Don't know if it's the correct forum if not i'm sorry.
Here's my Problem.
I wanted to make a Back-Up Disk and got the feared Bluescreen.
Afterwards i couldn't reboot my Comp, the ntldr was mising.
I formatted my hard drive and try to recover my datas, it works.
But i don't know the Signatures of w3x files, without i won't be able to recover them.

Here are the conditions:
The Signature have to be a hexadecimal number with max. 8 Bytes.
(e.g. 1A 00 00 03 00 00 14 00)
The offset has to be >0 and <512

So i can't use the mpq archive in every map to recover my maps.
Can you tell me where i can find the signature within the first 512 Bytes.
If you tell me the right solution you will get rep points and a good Loadcode for my MTG-Map when it's finished.
I hope you can really help me.
08-08-2006, 09:46 PM#2
SFilip
this could be what you're looking for (if it isn't then i'm sorry, probably misunderstood).
http://www.wc3campaigns.net/tools/specs/index.html

the part i'm referring to would be
Quote:
Here is the header format (fixed size = 512 bytes):
char[4]: file ID (should be "HM3W")
int: unknown
string: map name
int: map flags (these are exactly the same as the ones in the W3I file)
0x0001: 1=hide minimap in preview screens
0x0002: 1=modify ally priorities
0x0004: 1=melee map
0x0008: 1=playable map size was large and has never been reduced to medium
0x0010: 1=masked area are partially visible
0x0020: 1=fixed player setting for custom forces
0x0040: 1=use custom forces
0x0080: 1=use custom techtree
0x0100: 1=use custom abilities
0x0200: 1=use custom upgrades
0x0400: 1=map properties menu opened at least once since map creation
0x0800: 1=show water waves on cliff shores
0x1000: 1=show water waves on rolling shores
int: max number of players
followed by 00 bytes until the 512 bytes of the header are filled.
08-09-2006, 05:02 PM#3
Fireeye
it's not what i need, because it will change from map to map, i need the bytes which declares the w3x files as w3x. (The signature)
08-09-2006, 09:57 PM#4
PitzerMike
You don't make much sense.
A map is just an ordinary mpq-archive with the file extension renamed to w3x.
A signature may be added at the and of an mpq-archive but it is not needed.
The signature is only here to mark maps as "made by Blizzard". It doesn't declare the archvie as w3x.
08-09-2006, 10:52 PM#5
Tim.
Moved.
08-10-2006, 12:16 AM#6
xttocs
If you are looking to recover files off of a hard drive disk that has lost the file system links for files, then you can use a tool to recover files directly from the disk. If you have reformatted the disk with a full reformat, then all the data has been wiped.

Anyways, if you want to view deleted files on your hard drive (assuming they data pages have not been overwritten and are now being used for new files), then you can use this tool: http://www.pcinspector.de/download.a...#file_recovery. I believe this is the program that I used to recover files off a corrupted iPod disk.
08-10-2006, 07:35 AM#7
flyingsnow
Easy recovery pro can "revive" files even if you fully formatted your disk, you can try it. Good luck.
08-10-2006, 09:24 AM#8
Fireeye
My disk is formated, because i won't get access without (the boot sector was damaged by the system crash) and I'm using Ontrack Easy Recovery!
The problem is only, you can not add file types by typing *.w3x in.
You have to find a specific and typical byte sequence (the signature) and the relative address (between 0 and 512), else he won't find any w3x files, and that's what i want.
I think i've to do it on my own.
08-10-2006, 11:49 AM#9
PitzerMike
In that case what SFilip posted is your answer.

The first 4 bytes of a war3 map are HM3W
that is 48 4D 33 57 in hexadecimal.
08-10-2006, 12:44 PM#10
flyingsnow
Quote:
Originally Posted by PitzerMike
In that case what SFilip posted is your answer.

The first 4 bytes of a war3 map are HM3W
that is 48 4D 33 57 in hexadecimal.
Exactly!
08-10-2006, 04:37 PM#11
Fireeye
Sometimes i'm too stupid xD
Oversaw it, well, rep to both and made a notice to send you a code.
08-12-2006, 01:42 PM#12
xttocs
The 512th dword of a map usually should be the MPQ magic which I think is MPQ! backwards. This can be aligned to any 512 byte offset.