1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

Where the heck is the .mpq?

Discussion in 'World Editor Help Zone' started by Orcsbreath, Aug 31, 2018.

Tags:
  1. Orcsbreath

    Orcsbreath

    Joined:
    Jan 12, 2010
    Messages:
    33
    Resources:
    0
    Resources:
    0
    I want to extract some files from War3.mpq and War3x.mpq (specifically the campaign maps, so I can look at how Blizzard did certain triggers, &c.), but I can't for the life of me find the .mpq files. I've opened the .mpq before, and I was sure they were in the main Warcraft III install directory (C:\Program Files (x86)\Warcraft III), but nope. Nor are they in Documents\Warcraft III with all the custom maps. So where the heck are they?
    (I'm running Warcraft III version 1.30.)
     
  2. Love Seeker

    Love Seeker

    Joined:
    Mar 21, 2014
    Messages:
    850
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    They were integrated in CASC files as of 1.30 :) You might want to open CASC file to find 'em :)
     
  3. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,562
    Resources:
    17
    Maps:
    1
    Spells:
    10
    Tutorials:
    6
    Resources:
    17
    Removed, get an old copy of wc3 if you cannot open the new format
     
  4. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,270
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    The MPQ files are inside the CASC storage. That said they are nothing more than CASC VFS files now so probably not what you want. The MPQ CASC VFS files map relative file paths to the encoding keys that can be used to extract the file data from CASC storage.

    Or you could just use CASCViewer and extract the files with that as it handles CASC storage file extraction and VFS mounting automatically, giving you a nice clean folder based file system to browse with the MPQs being like any other folder.
     
  5. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,420
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
  6. Orcsbreath

    Orcsbreath

    Joined:
    Jan 12, 2010
    Messages:
    33
    Resources:
    0
    Resources:
    0
    Ok, that explains why I couldn't find the MPQs, thanks. :)
    So I guess the second question is, how do I wrestle a campaign map out of this CascView tool? Because I can't make head nor tail of it. For a start, I want to open the first map of the RoC Orc campaign. I looked through most of the file structure, and thought I had found it in (zhtw-war3local.mpq/maps/campaign/Orc01.w3m), but when I extracted that I just got a folder called Orc01.w3m containing a handful of files of formats I don't recognize. I need a map file I can open in the editor, and I can't for the life of me figure out how to get that.
     
  7. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,270
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    You got a folder containing the map... Maps are MPQ files with a variety of differently formatted files inside it. For example the .w3e file is the terrain mesh file that describes the map terrain such as the water and ground mesh heights, tile type, cliff type, cliff height, map size, etc.
    So bundle the files into a MPQ, and open it with World Edit. If a blank MPQ made by MPQEdit does not work you can get a blank map and replace its content.
     
  8. Eregos

    Eregos

    Joined:
    Oct 9, 2015
    Messages:
    23
    Resources:
    0
    Resources:
    0
    A bit late but I can give exact instructions, tested and working. This thread is still a top google result for extracting warcraft 3 maps.

    1. download Casc Viewer Casc Storage - Main page
    2. Run the viewer and open your Warcraft III directory. (Never run the game with Casc viewer open, it corrupts the data files. If by accident you do, run Warcraft III Launcher and repair install)
    3. Navigate to EnUs-war3local.mpq, or whatever your preferred country localization is.
    4. Navigate to maps and either Campaign or Frozen throne.
    5. Right click and Export the entire map folder to a location of your choice.
    6. Close casc viewer.
    7. Run worldedit and drag and drop the entire map folder into Worldedit.
     
  9. HerrDave

    HerrDave

    Joined:
    Dec 23, 2013
    Messages:
    877
    Resources:
    112
    Models:
    84
    Icons:
    20
    Skins:
    8
    Resources:
    112
    Thread necro!

    I find that every time I open the Blizzard Launcher, the MPQs that I copy/paste into the installation folder from a zip just disappear -resulting in Mdlvis and Magos' Model Editor breaking.

    Any way to prevent this from happening?
     
  10. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,270
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Use a tool which is CASC aware. Either that or have a separate legacy copy of Warcraft III to run the tools from.
     
  11. Eregos

    Eregos

    Joined:
    Oct 9, 2015
    Messages:
    23
    Resources:
    0
    Resources:
    0
    Making a second copy you work from is usually the safest answer, yeah. This comes up a ton for me doing modding in all kinds of games. Also means you don't have to worry about file use conflicts.
     
  12. Zak17

    Zak17

    Joined:
    Aug 4, 2011
    Messages:
    54
    Resources:
    0
    Resources:
    0
    Which tools are CASC aware? I'm struggling with texturing and wrapping, and the tools i am using are now outdated. Which ones do i need to switch to?
     
  13. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,270
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Matrix eater should become CASC aware, soonish.
     
  14. Ardenaso

    Ardenaso

    Joined:
    Jun 22, 2013
    Messages:
    291
    Resources:
    0
    Resources:
    0
    Bump. Do I have to extract war3.mpq and depreciated.mp3 other than the local mpq?
     
  15. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    25,270
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Depends on what you want to do.

    If you mean extract them from the CASC local storage then probably not. Since those files a CASC TVFS files which describe the folder layout and not MPQ archive files. They have no meaning outside of interfacing with and looking up files from the CASC local storage.