This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL] MPQ/Patch Basics  (Read 22504 times)

Jack

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 258
    • View Profile
[TUTORIAL] MPQ/Patch Basics
« on: February 17, 2010, 04:51:08 pm »

MPQ/Patch Basics


Difficulty:


Beginners

Tools used:



Prologue:


The MPQ format is a simple archive format like .rar or .zip which most of you probably know. You pack multiple files in one big file.
You'll find all of them in your WoW Installation directory, inside the "Data" folder. One could split the MPQs into two parts: the graphical MPQs storing most 3d (models) and 2d (textures) art and the functional MPQs which contain mostly GUI elements (scripts as well as the pictures used) and the Client Database files: DBC.
The graphical MPQs are those directly inside your Data folder and the functional MPQs are located inside the subfolder corresponding to your language package, i.e. "deDE" "frFR" "enUS" "enGB" etc.

Patches are MPQ archives where some files might overlap with files from other MPQs or "lower" patches. Always the file version of the highest patch is taken in this case.
"Higher" and "Lower" referrs to the hirarchy of patches. it goes like this:
0->9
a->z
where 0 is the lowest patch and z is the highest.
Patch Hirarchy is stated in the patch name itself, so patches look like this:
patch-a.MPQ, patch-8.MPQ, patch-k.MPQ
It's always this format.



Summary of MPQs:


Below is a list of the most common MPQs and their content roughly summed up (there are exceptions to the content and by "common" I mean those containing data modified most of the time by modders):

Graphical MPQs:



Common
Texture files of the main game, without expansions

Common-2
Model files of the main game, without expansions

Expansion
Model and texture files of the Burning Crusade Addon

Lichking
Model and texture files of the Wrath of the Lich King Addon

Patch-x (Whereas "x" is either a number from 0-9 or a letter from a-z)
Any additionally downloaded data, overwriting files from any of the previously mentioned MPQs

Functional MPQs:


Basically there is only one really important functional MPQ:

locale-xxXX
DBC files, XML/LUA GUI Scripts, GUI Elements (Buttons, Bars etc), Loading Screens



Extraction of Data:


Open MPQEditor and go to "File -> Open MPQ archive. Navigate to the WoW/Data folder and select your MPQ.





There might be a popup regarding a "listfile" just use autodetect and use the internal listfile and click OK.



The data inside the MPQ will now be visible and you're able to navigate through the folders.
Once you found the file(s) you want to unpack mark them and rightclick on them. Choose "Extract" or use the shortcut CTRL+E and the file(s) are being unpacked in your chosen location (together with their folder/subfolder structure inside the MPQ so you might have to click through some subfolders)





Packing of Data:


Create a folder on your desktop (or anywhere else easy to access) and let it have the exactly same folder- and datastructure the patch will/should have. For example if you have modified HumanMale.m2 the modified .m2 should be located in Subfolders "CharacterHumanMaleHumanMale.m2" since this is the correct path for the m2 inside the patch.



Back in MPQEditor choose "File -> New MPQ archive". A popup will appear where you are able to define a name for your patch.



Remember the patch structure: patch-X.MPQ where X is a number from 0 to 9 or a letter from a to z. Also the .MPQ must be written in capital letters. You often have to do so by hand, as the standard is .mpq in minor letters.

In the next window, choose to build the MPQ archive from a directory and choose the earlier created folder. Your patch will now be created automatically with all the folders and data you have inside the directory.



From the following windows choose the default options, like seen here:





Once you're done you can create new folders or add new files to your MPQ by rightclicking somewhere and choosing the corresponding option.


Biggest sources of mistakes:


  • NEVER open an MPQ with multiple programs simultaneously! This includes World of Warcraft as a program!
  • Are you sure there's no "higher" patch overwriting the files you added as a patch?
  • Make sure .MPQ is in capital letters. MPQEditor has .mpq as default, so you have to write ".MPQ" at the end of your desired archive name by hand.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Tutorial] MPQ/Patch Basics
« Reply #1 on: February 18, 2010, 09:47:00 am »
You should build a MPQ structure in a folder and then create a MPQ direct at once from this folder.
This way you get the smallest possible MPQ and the hash table size gets calculated right every time.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Jack

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 258
    • View Profile
Re: [Tutorial] MPQ/Patch Basics
« Reply #2 on: February 18, 2010, 11:21:55 am »
Thanks, didn't know that :) I'll redo the packing part

Edit: Done, Tutorial should now be finished.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Shrexx

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #3 on: October 16, 2011, 10:42:31 am »
I did my first patch with this tutorial :D

Big thanks to Modcraft, its a great site :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

codyt99

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 50
    • View Profile
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #4 on: September 03, 2012, 01:00:33 am »
can any one add me on skype and teamview me and show me how to do this plzz im so confused plz help
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

codyt99

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 50
    • View Profile
make a custom patch
« Reply #5 on: September 03, 2012, 06:05:43 am »
k dont bother to tell me to post on the other thred iv been trying for 2 days or more so im posting here i have no idea how that guide even works the program that is shown is out of date and there are new onces plzz make a new guide and more detailed plz
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: make a custom patch
« Reply #6 on: September 03, 2012, 08:27:19 am »
Hmm I just read the guide again and it up to date I think?

viewtopic.php?f=26&t=41

And here the download from the official site.

http://www.zezula.net/en/mpq/download.html
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: make a custom patch
« Reply #7 on: September 03, 2012, 10:44:22 am »
Quote from: "codyt99"
k dont bother to tell me to post on the other thred iv been trying for 2 days or more so im posting here i have no idea how that guide even works the program that is shown is out of date and there are new onces plzz make a new guide and more detailed plz

Of course I'm telling you that you posted in the wrong forum in a new thread.
Also, the tutorial -- whatever tutorial you are referring to -- is most likely up to date, as all the software and especially the wow version is at the same state as three years ago. If there is a problem, you are most likely doing something wrong on your end.

I'm merging this into some thread, that seems to be related.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Darkaction

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #8 on: November 26, 2012, 02:29:28 pm »
This not work with WoW 5.0.5
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #9 on: November 26, 2012, 04:42:13 pm »
WoW modding is on 335a. So yes it will not work with this version and the given patch names.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

TheBrohman

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 4
    • View Profile
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #10 on: September 23, 2014, 10:51:43 pm »
Tried for 3.3.5a, did everything as in tutorial, but it doesnt work. I use the original WoW.exe and I add the patch to the data folder, (named it patch-x.MPQ) but it doesnt work. Help?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Barbz

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 48
    • View Profile
    • YHOOL
Re: [TUTORIAL] MPQ/Patch Basics
« Reply #11 on: September 24, 2014, 12:57:18 am »
You may try an older version of the program.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »