Since MPQ protections have changed over the years, the old tutorial isn't as useful as it once was...so I decided to make a new one.
1. Deprotection has nothing to do with MPQ protection.
- 1.1 Deprotection simply means you want the map be openable in World Editor.
1.2 Rebuilding an MPQ means you want the map be openable in MPQ Editor, hostable, etc.
Q: I only want to cheat a map, Do I need to do all the following steps?
A: It's usually not necessary unless your map goes over the size limit, as you only need the war3map.j file. If you just want to cheat a map, please follow this guide instead: [GUIDE] Insert a CP / CC / Enable SP / Deprotect / RC.
Q: It's not working on my map, why?
A: Well, there are many types of protections and even though Ladik's MPQ Editor is really good it can't read all those kind of protections. If you find some new MPQ protections that Ladik's MPQ Editor can't read, post it here and Ladik will try to fix it as soon as possible.
Q: My map has a read-only tag, does that mean that the map's protected?
A: Yes, it means that the map is protected/malformed in order to prevent MPQ editors from editing it. It's because the amount, methods, and complexity of map protectors led him to decide to open protected maps for read-only access. You can always scan names, extract as much as possible, and then create a new map and put everything back in.
Let's get started. You'll need this tool to help you out: So to show you guys how to do it, I'll rebuild this map here: post196014.html#p196014
NOTE: DO NOT try to use this listfile to rebuild the MPQ. We'll make a new listfile. If you try to use that listfile above to extract the files, this is what happens:
Spoiler:
- 1.1 First off, we need to get an old map (not too old!) to get the most filenames possible. Let's use this one: https://www.epicwar.com/maps/276035/
1.2 After downloading it, open Ladik's MPQ Editor and open the map/MPQ with it:1.3 Don't worry about the weird names, click on Tools and then W3X Name ScannerSpoiler:1.3.1 There are two types of scan:Spoiler:
Map File Scanner: It tries to parse all text files, scripts, and some binary files that are mandatory in every Warcraft III map. All names are extracted from these files, and these names are then used as filenames. This method is not perfect, but can find a fair amount of unknown files in any map.
* Optional * Live Game Scanner: It watches Warcraft III while it's playing the map and will catch all names that are being opened and logs it to a listfile... it's very useful since it's more "accurate" but the result list can often look pretty much the same like the one from map file scanner. If you are looking for a specific set of files to extract from a map that you've seen in-game, this will find them.
1.4 We'll use the Map File Scanner first and the Live Game Scanner to get a more accurate listfile.
1.4.1 Click on the first scan, wait for it to finish, click on Save List ..., and then save it.* Optional * 1.4.2 After that, set your Warcraft III directory and then click on the second scan, it'll start your Warcraft III. When it finishes loading the map, wait a moment and then leave (you can also stay as much as possible in the game to get the maximum amount of filenames possible)... then click Save List ....Spoiler:1.5 Open up another map (the one you want to rebuild) and do the same steps as above (1.4.1 & 1.4.2).Spoiler:
1.6 Merge all the listfiles by Clicking on Tools, Merge Listfiles ..., add all the listfiles you got from the maps, and then click on "..." to name your final listfile.1.7 Done! We finally got a good listfile to rebuild this specific map.Spoiler:
- 2. Open the map you want to rebuild, use the listfile you made before as an additional listfile and then tick the Deep File Verification option.
2.1 Now let's check how many unknown files we got. Wow! We got only one unknown file name, that's 99% accuracy. The less unknown files you get, the better your rebuilt version will be.Spoiler:
NOTE: Unfortunately, as I said at the start, it isn't always you'll get a 99% accuracy because depending on your map, it's really hard to get all filenames. Sometimes this does not matter, sometimes it might.2.2 Right click on map's name and then Extract it to Work folder (or any folder you want).Spoiler:2.3 After that, delete the unknown file name(s).Spoiler:2.4 Done.Spoiler:
- 3. Click on File, New MPQ.
3.1 Choose the name you want to be your rebuilt MPQ file.Spoiler:3.2 Copy the user data from the original map.Spoiler:
NOTE: Some maps doesn't let you to drop the files into the map if you copy their user data, so if it's the case, just leave it blank.3.3 Tick the Build the MPQ archive from a file or directory option and set the directory where you extracted all the files, set the Game Compatibility to Warcraft III - The Frozen Throne.Spoiler:3.4 Next, Next, and then click on Finish.Spoiler:3.5 Done! You finally rebuilt the MPQ! Let's test it to check if it's good.Spoiler:
3.6 Well, the gif speaks for itself.Spoiler: