Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Kiun on July 09, 2014, 04:21:09 pm

Title: [SOLVED] [QUESTION] Changing MPQ names and make wow recogniz
Post by: Kiun on July 09, 2014, 04:21:09 pm
For what I know, WoW only recognize patches called 'patch.mpq', 'patch-2.mpq', 'patch-A.mpq' ...

Would be possible to make WoW recognize a patch called for example 'MyCustomPatch.mpq'?
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: schlumpf on July 09, 2014, 04:37:29 pm
This will require modification of the client binary. There is a table of MPQ filenames to load. Just looking for "development.MPQ" will lead you there. Note that you need to specify the correct mode though.
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: Kiun on July 09, 2014, 06:10:38 pm
Sorry schlumpf, I'm a bit inexperienced in this field. By modification of the client binary you mean editing WoW.exe?
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: schlumpf on July 09, 2014, 06:31:16 pm
Yes.

There is a list like
(http://i.imgur.com/JZn4l4T.png)
somewhere inside. there, just overwrite an entry. appending likely is way harder. note that the integers between filename offsets have a meaning and determine if a file is loaded or not, required or not, etc.
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: Kiun on July 09, 2014, 07:11:45 pm
Ok, now I have to ask you about where is that image from? A program tool maybe? What do I need to edit the client binary?

Thank you.
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: schlumpf on July 09, 2014, 07:18:11 pm
the tool is ida pro. you need a hex editor.
Title: Re: [QUESTION] Changing MPQ names and make wow recognize the
Post by: Kiun on July 09, 2014, 07:49:31 pm
Found it with 010 Editor, thanks.