We will be covering the following on this guide:
a) Building a listfile
b) Rebuilding an MPQ
Tools that we will be using:
Spoiler:
RMPQEx
RMPQEx.rar
X-Deprotector X-Deprotector.rar
MPQRecover MPQ Recover.rar
MPQEditor MPQEditor.rar
XVI32 XVI32 (Hex Editor).rar
PhotoshopSpoiler:
What is a listfile?
A listfile is a .txt file, containing the files the map is using. So if all you do is add a cheat pack to maps, then all you need is a .txt file containing the information
as those are the places the war3map.j file will be found.[/color]
What do I need a listfile for?
Well if all you want to edit some extra files, like the loading screen, you need the files to extract and edit. And if you want to rebuild MPQ, you will need all the file-names you can get, as all unknown will be deleted, and it may result in the map not functioning correctly.
But be careful as the bigger the listfile is, the longer it takes for the MPQEditor you are using to load the map.
What happens if I don't have some file names in my listfile?
Well it will show you the file in the MPQEditor, tough it wont show you the name, or it wont show the files at all, depends on the MPQEditor you are using. Here is a picture to demonstrate (using RMPQEx)
How do I get file names into my listfile?
There are programs to do this for you. Lets get started with MPQRecover:
1) open MPQRecover.
2) Browse for your map.
3) Tick "Deep MPQ Scanning".
4) Click on Brute Force.
5) Click on scan.. It might take some time.
6a) If the program crash then dont tick "Deep MPQ Scanning" and if it still crashes then dont click on brute force.
6b) Click on Save List.
7) and you got your listfile.
MPQRecover doesn't always get all the file names. So we will now use RMPQEx
1) Paste the listfile we got into the RMPQEx folder.
2) Open RMPQEx.
3) Click on the browse button and choose your map.
4) Click on Open.
5) Click on Auto-Search.
6) Click on Extract-Listfiles.
7) Merge it with your existing listfile.
Now if you are still missing some files:
1) Paste the listfile we got into the x-dep folder.
2) Paste the map into the x-dep folder.
3) Rename the map to mymap.
4) Run x-dep, and let it finish.
5) Click on any button to close x-dep
6) Enter the folder called "mymap.w3x.temp"
7) Copy the 2 .txt files in there and paste them in a new folder, along with the listfile from step 1
Merge all this files.
How do I merge listfiles and what is it for?
Well if you have a file inside your listfile, there is no point having it in there again. tough you want to add file names into it, so merging makes sure you wont add the same file name twice.
In-order to merge the listfiles:
1) Open MPQEditor
2) Click on the "Tools" Tab
3) Click on Merge Listfile tool
4) Add the listfiles you want to merge
5) Choose a file that will be the merged listfile (result)
6) Start
Those are all the ways to get a listfile using free tools.
A listfile is a .txt file, containing the files the map is using. So if all you do is add a cheat pack to maps, then all you need is a .txt file containing the information
Code: Select all
war3map.j
scripts//war3map.j
What do I need a listfile for?
Well if all you want to edit some extra files, like the loading screen, you need the files to extract and edit. And if you want to rebuild MPQ, you will need all the file-names you can get, as all unknown will be deleted, and it may result in the map not functioning correctly.
But be careful as the bigger the listfile is, the longer it takes for the MPQEditor you are using to load the map.
What happens if I don't have some file names in my listfile?
Well it will show you the file in the MPQEditor, tough it wont show you the name, or it wont show the files at all, depends on the MPQEditor you are using. Here is a picture to demonstrate (using RMPQEx)
How do I get file names into my listfile?
There are programs to do this for you. Lets get started with MPQRecover:
1) open MPQRecover.
2) Browse for your map.
3) Tick "Deep MPQ Scanning".
4) Click on Brute Force.
5) Click on scan.. It might take some time.
6a) If the program crash then dont tick "Deep MPQ Scanning" and if it still crashes then dont click on brute force.
6b) Click on Save List.
7) and you got your listfile.
MPQRecover doesn't always get all the file names. So we will now use RMPQEx
1) Paste the listfile we got into the RMPQEx folder.
2) Open RMPQEx.
3) Click on the browse button and choose your map.
4) Click on Open.
5) Click on Auto-Search.
6) Click on Extract-Listfiles.
7) Merge it with your existing listfile.
Now if you are still missing some files:
1) Paste the listfile we got into the x-dep folder.
2) Paste the map into the x-dep folder.
3) Rename the map to mymap.
4) Run x-dep, and let it finish.
5) Click on any button to close x-dep
6) Enter the folder called "mymap.w3x.temp"
7) Copy the 2 .txt files in there and paste them in a new folder, along with the listfile from step 1
Merge all this files.
How do I merge listfiles and what is it for?
Well if you have a file inside your listfile, there is no point having it in there again. tough you want to add file names into it, so merging makes sure you wont add the same file name twice.
In-order to merge the listfiles:
1) Open MPQEditor
2) Click on the "Tools" Tab
3) Click on Merge Listfile tool
4) Add the listfiles you want to merge
5) Choose a file that will be the merged listfile (result)
6) Start
Those are all the ways to get a listfile using free tools.
Spoiler:
Ever happened when you tried to open a map in a program such as MPQMaster, and it crashed or didnt open the map? if so, then that means the map MPQ Archive is corrupted, and to solve it, we need to rebuild the MPQ Archive.
When rebuilding the MPQ, we basicly just extract all the files and add them into a blank map. All unknown files will be deleted so use Part A to get a full listfile.
Rebuilding MPQ:
1) Open MPQEditor.
2) Force opening it in read-only mode
3) Select all the files and extract them into the "Files" folder, located inside the MyMap.w3x.temp folder inside your X-Dep folder (Make sure the folder is empty before you do so, if it isnt then empty it)
4) Place the map in X-Dep folder
5) Rename the map to mymap
6) Run x-dep
7) When its done, press any key to close the program
Now you got a map called "deprotected" inside you x-dep folder. That is the map with a rebuilt MPQ and will be openable at MPQMaster or any other MPQEditor
When rebuilding the MPQ, we basicly just extract all the files and add them into a blank map. All unknown files will be deleted so use Part A to get a full listfile.
Rebuilding MPQ:
1) Open MPQEditor.
2) Force opening it in read-only mode
3) Select all the files and extract them into the "Files" folder, located inside the MyMap.w3x.temp folder inside your X-Dep folder (Make sure the folder is empty before you do so, if it isnt then empty it)
4) Place the map in X-Dep folder
5) Rename the map to mymap
6) Run x-dep
7) When its done, press any key to close the program
Now you got a map called "deprotected" inside you x-dep folder. That is the map with a rebuilt MPQ and will be openable at MPQMaster or any other MPQEditor