🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
For more information regarding this tool and the MoPaQ format, click here
Editor of MPQ archives in the Windows Explorer style. Can execute files directly from archive, extract files, rename them, delete, create archives, including file compression. Supports MPQs from Diablo I to Diablo III.
Works in Windows NT 4.0 or newer, ReactOS 0.3.14 or newer, Wine 1.3.28 or newer (tested in Kubuntu 11.10).
00:28, 3rd Apr 2014
TriggerHappy:
Very useful tool and has support for some of the newer encryption methods. It would be best to use the author link, though.
Compatible to what? Do you mean Win7?
Anyway it says in the description "Works in Windows NT 4.0 or newer, ReactOS 0.3.14 or never, Wine 1.3.28 or newer (tested in Kubuntu 11.10)." So I assume it would.
ok, here is my tiny FAQ i had to figure out, hopefully it will be helpful for one or two:
question:
how to add folder(s)? answer:
just use drag'n'drop!
question:
when adding files/folders to the MPQ & reload the MPQ,
the added files aren't encrypted/are unknown files!
how can i view custom MPQs with correct structure? answer:
everytime you make changes to the MPQ
you have to create a new listfile which
you have to use for correct reloading of the MPQ.
create the new listfile by clicking "Tools/Name Breaker/Save list ..."
question:
is MPQ size reduced properly when removing files?
(unlike "MPQ Master 1.1.0" which keeps MPQs growing!) answer:
yes!
Does this work for starcraft 1? My starcraft CD exploded, and it had my CD key written on it, and I want to extract my cd key from the mpq, but the program was only part-way installed, and so this mpq editor doesn't seem to be able to open the mpq. Is that normal, or is it because it was only part-way installed?
My starcraft CD exploded, and it had my CD key written on it, and I want to extract my cd key from the mpq, but the program was only part-way installed, and so this mpq editor doesn't seem to be able to open the mpq. Is that normal, or is it because it was only part-way installed?
3GB+ strange, when I add all my files to MPQ size is 2.1GB and WB will not open for me, that is why I am asking for size limit, can it broke my files or something? and also after import all my files change name for File000 and so on
Elsewhere, it is being said: "[The MPQ] Archive format must support later changes of the way how the files are stored in the archive. With new games released, the MPQ format is being extended. All the later changes are backward-compatible with older versions."
I was editing the an mpq until I ran into a problem which made the model files invisible so I closed the mpq and took a look at another mpq then when I opened the mpq I was working on it was in read only mode. How do I get out of read only mode? Everything is opening in that mode now.
Go to the Tools / Options menu, and uncheck 'Open MPQs in read-only mode'
...or go to File / 'Open MPQ(s) With Options' (or use the Ctrl+Shift+O shortcut). Then browse and click on the MPQ you want to open. From there, you can uncheck 'Read-only mode'.
Hope it helps.
If that does not work, then what kind of problem did you run into exactly?
Go to the Tools / Options menu, and uncheck 'Open MPQs in read-only mode'
...or go to File / 'Open MPQ(s) With Options' (or use the Ctrl+Shift+O shortcut). Then browse and click on the MPQ you want to open. From there, you can uncheck 'Read-only mode'.
Hope it helps.
If that does not work, then what kind of problem did you run into exactly?
No matter what I do every file opens as read only. I hope if I just redownload it it won't keep doing this.
I just ran TFT and the editor to test the mpq out. I must of overwrote something essential because I couldn't initiate a test of the level and the models showed up as invisible in the editor. When I tried TFT everything was black except for the cursor and the version number.
You can refer to my thread to see step by step of what I was doing Merging TTOR resources(units/abilities) with the latest version of Wc3 World Editor
Brilliant powerful tool. A must-have for map developers. It even supports other Blizzard games.
I was having difficulty finding out what hiveworkshop's JASS Checker was referring to. So I extracted the war3map.j, which contains all the trigger code, to find the lines containing the leaks.
Be sure to check the source site since it's been updated. It is now currently v3.6.0.826.
Version 3.5.1.794 was an official, previous release, which uses StormLib 9.11. And it is a version worth keeping, when compared to some of the later ones which used StormLib 9.20 (like v3.5.1.816).
Maps are still MPQs, Custom campaigns were and will probably still be MPQ files. Blizzard launcher itself still uses MPQs. Even if none of the previous statements were true, old Warcraft 3 versions would still warrant having a good MPQ editor.
All maps, both Blizzard's and user-made, are only playable when in the w3m or w3x archives, both of which are MPQs.
User data has been moved out of the main game folder way back in 1.28 because what up to 1.27 did is bad practice and requires more permissions to be granted to the game.
As for Blizzard's maps being in the game data, this is correct. What's more important to note is that they are still w3m and w3x archives, which are again just MPQs
All maps, both Blizzard's and user-made, are only playable when in the w3m or w3x archives, both of which are MPQs.
(...)
As for Blizzard's maps being in the game data, this is correct. What's more important to note is that they are still w3m and w3x archives, which are again just MPQs
W3M and W3X used to have just a smallest bit of data before the MPQ part before (just like you can have an image before a zip file, a lot of tech-ish videos about it) but after 1.32 they are completely identical.
Hello there, i deleted Human01.w3m file to make custom campaign for WC 3 RoC in Ladiks MPQ Editor. I added my custom Human01.w3m file. But it didn't work. Unavaible or missing error then i added orginal Human01.w3m file then I got same missing or unaviable error. What should ı do? when adding file, I didn't use compact or verify files in MPQ Editor.
Hello there, i deleted Human01.w3m file to make custom campaign for WC 3 RoC in Ladiks MPQ Editor. I added my custom Human01.w3m file. But it didn't work. Unavaible or missing error then i added orginal Human01.w3m file then I got same missing or unaviable error. What should ı do? when adding file, I didn't use compact or verify files in MPQ Editor.
You should NEVER be modifying the game's own MPQs, use Local Files instead, or, depending on the patch, War3Mod.mpq.
But moreso on the topic of trying to override a campaign map, there's a lot of parameters you'd need to keep the same, many of which I don't currently know (I'd once tried something similar for the War3 demo long ago). I recommend that you make an actual Custom Campaign through the "Campaign Editor" instead since that makes it much less hacky.
Alternatively, you may get better help starting a new thread than replying to an MPQ editor's thread, good luck with the endeavour either way
If we speak of replacing files, then it's true. But if we speak of adding new files, then everything will work. However it's more time consuming so I would still go with Local Files. And I know this cause few years ago I have made the very same mistake with this difference that I've made backup MPQ's. I ALWAYS MAKE AT LEAST TWO BACKUPS of every native file which I'm modifying!
Hello there, I added new files (Textures and war3mapImported folders ;mdx, blp files etc) into my map in Ladiks MPQ Editor. Then I compacted them. Then I closed Ladiks MPQ Editor program. After closing the program, I opened World Editor program. I saw my models I added. After a short while, I closed the program and opened it again. Models are not visible. There are green boxes. I opened the Ladiks program. The folder, model and blp files I added are gone. What should I do. Actually, I had added them in the fistfile while I was making them.
Hello there, I added new files (Textures and war3mapImported folders ;mdx, blp files etc) into my map in Ladiks MPQ Editor. Then I compacted them. Then I closed Ladiks MPQ Editor program. After closing the program, I opened World Editor program. I saw my models I added. After a short while, I closed the program and opened it again. Models are not visible. There are green boxes. I opened the Ladiks program. The folder, model and blp files I added are gone. What should I do. Actually, I had added them in the fistfile while I was making them.
Adding anything from an MPQ editor will not create the war3map.imp entries required for WE to keep these files upon next saving. Use Folder mode if you want to add files more easily OR only add files through the MPQ editor after you're completely done with opening the map in WE. This is not a fault of MPQEditor.
Hello there, I added new files (Textures and war3mapImported folders ;mdx, blp files etc) into my map in Ladiks MPQ Editor. Then I compacted them. Then I closed Ladiks MPQ Editor program. After closing the program, I opened World Editor program. I saw my models I added. After a short while, I closed the program and opened it again. Models are not visible. There are green boxes. I opened the Ladiks program. The folder, model and blp files I added are gone. What should I do. Actually, I had added them in the fistfile while I was making them.
(...)Use Folder mode if you want to add files more easily OR only add files through the MPQ editor after you're completely done with opening the map in WE.(...)
Perhaps my reply had the implication set up in a way that was not completely obvious, but I already said this in my sentence: "Use Folder mode if you want to add files more easily (than with World Editor)..." as both of those ways I outlined are there as alternatives to the ever-clunky World Editor's asset manager.
Perhaps my reply had the implication set up in a way that was not completely obvious, but I already said this in my sentence: "Use Folder mode if you want to add files more easily (than with World Editor)..." as both of those ways I outlined are there as alternatives to the ever-clunky World Editor's asset manager.
I fully understood. I quoted both of you but my reply was actually directed to tolist85. Your implication is all good. It is I who forgot set up implication entirely. My bad.
Opens a MPQ. If you enter a listfile name, this listfile
will be used as external listfile to the MPQ. If the MPQ
already has a listfile, then both those listfiles are combined.
Opening a multiple MPQs in multi-document mode
MPQEditor.exe /multi BaseMpq1 BaseMpq2 BaseMpq3 ... BaseMpqN [/patch PatchMpq1 PatchMpq2 ... PatchMpqN] [/listfile ListFileName]
Opens multiple MPQs in multi-document mode. Additional listfile may be added.
Opening a multiple MPQs in merged mode
MPQEditor.exe /merged BaseMpq1 BaseMpq2 BaseMpq3 ... BaseMpqN [/patch PatchMpq1 PatchMpq2 ... PatchMpqN] [/listfile ListFileName]
Opens multiple MPQs in merged mode. The user will only see one tree,
where all the files will be combined. This is how the game sees
all MPQs.
Opening a MPQ in patch mode
MPQEditor.exe /base BaseMpq1 BaseMpq2 /patch PatchMpq1 PatchMpq2 ... PatchMpqN [/listfile ListFileName]
Opens multiple MPQs in patch mode. You have to enter all patches
that belong to a MPQ. When extracting a file in patch mode, then
the extracted file will allways be the latest version, i.e. from base
MPQ with all subsequent patches applied.
Running MPQEditor in console mode
MPQEditor.exe /console [ScriptName]
Opens a MoPaq 2000 console. If a script name is entered, it is executed immediately.
Using MoPaq 2000 commands from command line
MPQEditor supports executing MoPaq 2000 commands directly from command line.
They can be executed either with or without opening console window. The difference
is to use or not to use slash before the command.
This is an example to run a command without opening a console: MPQEditor.exe extract war3.mpq * C:\Work /fp
This is an example to run a command with opening a console: MPQEditor.exe /extract war3.mpq * C:\Work /fp
MoPaQ is probably the first MPQ tool that existed:
The definitive, all in one guide to the MPQ file format
sfsrealm.hopto.org
It was popular, so Ladik's MPQ Editor supports its syntax (I hope so, while writing this). It was possible to write MoPaQ2000 scripts.
How to access its help / interactive menu? MPQEditor.exe /console then type "help"
Available commands
Code:
new (n)
open (o)
openpatch (op)
add (a)
extract (e)
rename (r)
move (m)
delete (d)
flush (f)
compact
htsize (t)
list (l)
mksvf
close (c)
script (s)
chdir (cd)
exit (x)
quit (q)
help (h)
ver (v)
version
console
MoPaQ script interpreter also supports Windows command line.
For example, type "md /?" for help on the Windows "md" command.
help
help [command]
Shows basic help about a command.
new
n[ew] MpqFile [MaxFileCount]
Creates a new MPQ. If the file already exists, it will be converted to MPQ.
MpqFile Name of the MPQ to be used for this operation.
MaxFileCount File limit. Can be a dec or hex number. Default is 0x1000.
open
o[pen] MpqFile [ListFile]
Opens an existing MPQ. If the file doesn't exist, the function fails.
MpqFile Name of the MPQ to be used for this operation.
ListFile Name of the listfile to be used on open operation
Opens multiple MPQs in patch mode. If any of the MPQs doesn't exist,
the function fails.
BaseMpq Name of the base MPQ.
PatchNameX Name of patch MPQ. Older patch MPQs must come first.
ListFile Name(s) of external listfile(s) to be additionally used.
Adds one or more files into the MPQ. Replaces existing files.
MpqFile Name of the MPQ to be used for this operation.
SourceFile Name of source file. Can contain wildcards.
TargetName Target file name (or directory name) in MPQ.
/wave Add the file as WAVE file
/c Use data file compression
/auto Choose compression by file type
/r Recurse subdirectories
extract
e[xtract] MpqFile FileName [TargetDir] [/fp]
Extracts one or more files from MPQ Archive.
MpqFile Name of the MPQ to be used for this operation.
FileName Full of file in MPQ.
TargetDir Target dir. If not entered, the current dir will be used.
/fp Forces extraction with the path stored in MPQ file
/lower Creates lowercase path Currently only supports literal filenames, i.e. "File00000510.xxx" in an obfuscated map, even if it's actually "war3map.j" in MPQ root.
Filename = * (asterisk) will extract all files.
rename
r[ename] MpqFile OldFileName NewFileName
Renames a file within MPQ.
MpqFile Name of the MPQ to be used for this operation.
OldFileName Name of file to be renamed.
NewFileName New name of the file
move
m[ove] MpqFile FileName NewDirectory
Moves a file within MPQ into another dir.
MpqFile Name of the MPQ to be used for this operation.
FileName Name of file to be moved.
NewDirectory Target directory within MPQ to move the file to
delete
d[elete] MpqFile FileName
Deletes a file within MPQ.
MpqFile Name of the MPQ to be used for this operation.
FileName Name of file to be deleted
flush
f[lush] MpqFile [ListFile]
Compacts the MPQ, removing all empty space.
MpqFile Name of the MPQ to be used for this operation.
ListFile Listfile name. If none, the internal listfile is used.
compact
compact MpqFile [ListFile]
Compacts the MPQ, removing all empty space.
MpqFile Name of the MPQ to be used for this operation.
ListFile Listfile name. If none, the internal listfile is used. h[t]size MpqFile HashTableSize
Changes hash table size of the archive.
MpqFile Name of the MPQ to be used for this operation.
HashTableSize File limit. Can be a dec or hex number. Default is 0x1000.
list
l[ist] MpqFile [FileMask] [OutFile]
Lists files in MPQ.
Can list them to the screen or to a file.
MpqFile Name of the MPQ to be used for this operation.
FileMask File mask to be listed
OutFile Name of text file that contain the file list.
mksv
mksv
Creates a file that contains MD5 values of each file in the MPQ.
close
c[lose]
Closes currently open MPQ.
Automatically done at the end of script processing or after "exit" command.
script
script ScriptFile
Processes a MoPaQ 2000 script.
chdir
chdir NewDirector
Changes the current directory.
exit | qui
exit | qui
Closes the script console.
Also closes opened MPQ.
v[er] | versio
v[er] | versio
Shows version of MPQ Editor.
Bugs:
1. Doesn't support Unicode, e.g. for file names.
I want to import files into my map and got the Error: Not enough space on the disk.
How to fix the problem? I have 50+ gb on my hard drive. I tried another disk and another versions of Ladiks and the error is same. I want to import only 3mb.
upd:
Found the solution. There is button to extend table of a map.
I make big pack 100+ maps and I want to mass copy-paste my triggers. The problem is my triggers do not apply after import through Ladiks. And I have to open Editor and resave my maps. How can I apply imported triggers not using WorldEdit?
@WilliamBz war3map.wtg is the trigger file. Are you sure they are the same version as the rest of the map? In other words, do you NOT mismatch versions when moving this file?
Alternatively, you can export/import all triggers as a file inside the Trigger Editor too. File > Export / Import.
If this doesn't help, please open a new thread, to not go off topic here. (ping me then)
Basically, I need to replace a map file inside a custom campaign MPQ archive (*.w3n).
When any of the numerous MPQ editors are used to overwrite a map file inside a campaign, the game fails to read that particular map file at runtime with fatal errors. Outside the campaign, individual map loads as expected. Ladik's MPQEditor can't replace campaign map files successfully for some reason, regardless if I use program itself or the libstorm it's based on, or some other tool that is based on libstorm, or any other backend for that matter.
The intention is to do it programmatically, hence why I am not using the original WE for this purpose. My goal is to find any MPQ editor that can replace map files inside a custom campaign archive.
It is entirely possible that I miss some configuration option that will make the map readable. Regardless, I think it's a valid use case for the program and I would appreciate some help with the issue.
+++ The issue was resolved, read the thread if you are interested.
Not really an MPQ Editor issue directly, but more likely your map. It's either protected or not compatible with the specific versions of Warcraft 3.
For the first case, there are several ways to deprotect the map, but it requires a time consuming and sometimes, you'll most likely caught by errors during the process.
For the second case, it's pretty obvious because when you save a map using Reforged World Editor, it will add an exclusive features that were only present in Reforged, meaning you can no longer open it with the older ones. This thread might be helpful for solving this issue.
So it turns out there is a hard size limit of 1.99GB for the MPQ format. As soon as the file size hits 2GB the MPQ Editor refuses to allow the file to be edited in any way, shape or form, and WorldEdit is unable to find the file even though it does in fact exist.
I tried looking at the formats but the only mention of size limits is that it was 4GB before Burning Crusade, which is clearly not the case here. The Devklog site is dead, so that doesn't help, either.
🔨 Downloads and Uploads have been fixed! If you still have trouble downloading or uploading assets to or from Hive, please reach out to us in the Site Discussion board.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.