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] [RELEASE] Forget MPQ : don't pack anymore  (Read 17371 times)

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
[TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« on: May 21, 2012, 12:00:53 am »
Hi everyone !

Those who follow the chatbox have probably seen a few weeks ago some exe tweaking Schlumpf made, allowing (again) the Wow client to read files that are not packed into a MPQ, like Noggit does.

That really makes adt testing a lot easier/faster, so I strongly encourage everyone worldbuilding to go for it.

I'm detailing here how to reproduce it, so that there's no need to use MPQ anymore.
Again, say thanks to Schlumpf for finding it and sharing :)

How it works


In your (Windows) Wow.exe, look for the following pattern:
Code: [Select]
E8 ? ? ? ? 6A 00 E8 ? ? ? ? 6A 02You can use 010 editor, edit > search, tick "use wildcards", set to "hex bytes" and paste pattern. You should have only one entry.

You can also use this tool by Schlumpf to replace the pattern instead of 010 editor : viewtopic.php?f=59&t=1829&p=11827#p11827

Replace the beginning of the pattern with:
Code: [Select]
90 90 90 90 90 6A FFWhich gives for Windows Wow 3.3.5a 12340:
Code: [Select]
90 90 90 90 90 6A FF E8 2A EC 01 00 6A 02

The explanation for the curious ones


Quote from: "schlumpf"
Search for string "World of Warcraft\Client". Will be referenced on four places. Once with "SendErrorLogs" right behind. That's a call to SRegLoadValue and SRegSaveValue. From there, go up. You will see two calls to StormSetOption, one with first argument being 10, the other one being 11.
Right in between, there will either be a call to two functions or an inlined function containing an if. On windows, it will most likely not be inlined.
If there is no branch, dive into the second function called. That one should contain a branch.
That branch is for checking the command line for a different data folder given. You're interested in the functions above. Those are SFile::DisableSFileCheckDisk(); and SFile::EnableDirectAccess(0);.
You want to remove the call to DisableSFileCheckDisk and change the argument for EnableDirectAccess to something having bits 1 and 2 set.

Some notes


Refreshing the map


Ok, there's probably a better method for that, but that's the quickest I've come up with.
If you want to quickly refresh your adts without quitting the client on your favorite private server, you can :

  • Paste your newly edited files in your wow folder.
  • Click this macro twice:
    Code: [Select]
    .go -17000 -17000 0 0
    .go [your coords on your map]
That first teleports you in an empty continent area (ie : fast to load), and then re-teleports you on your map.
The map change makes the client reload the adts from file.

Other advice


If you have two installs (one for Noggit and one for Wow) you can have both programs opened at the same time and do some copy/pasting/refresh to see your changes ingame quickly.

Be sure to always make a copy of your adts in another safe place from time to time. You never know, some quick file overwriting can happen quickly.

TL;DR


  • Download this wow.exe (Windows 3.3.5a 12340)
  • Save you original Wow.exe, paste the one you've downloaded in your Wow folder.
« Last Edit: May 21, 2012, 03:23:01 am by Admin »

Zim4ik

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 407
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #1 on: May 21, 2012, 12:34:13 am »
Really helpful. Thanks)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #2 on: May 21, 2012, 01:54:52 am »
As posted in Replace binary patterns in files with given data:

Allow local files


  • Windows (tested on 12340): "E8 ?? ?? ?? ?? 6A 00 E8 ?? ?? ?? ?? 6A 02" "90 90 90 90 90 6A FF"
  • OSX (tested on 15464, 15689): "E8 ?? ?? ?? ?? C7 04 24 00 00 00 00 E8 ?? ?? ?? ?? C7 04 24 02 00 00 00" "90 90 90 90 90 C7 04 24 FF FF FF FF"
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #3 on: May 21, 2012, 06:15:27 am »
I like MPQs. Hold my WoW folders clean. Files are outside the client in the project folder and if i want to test, one click on the patchtester and wow starts. So I have no problems with MPQ packing. There are so much other things that are realy bad.
« 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

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #4 on: May 21, 2012, 11:08:59 am »
To be completely honest, I have only one 335a test install to run run both Noggit and the client.

So now this exe change is saving me a lot of copying / packing steps : when I want to see my files ingame, I just close Noggit, (very often copy my files in another place to keep intermediate saving steps), and open client, as simple as that.

That also saves a lot of path potential errors, since both programs work on the same files.

The only thing I really have to remember is to not open both programs at the same time.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #5 on: May 21, 2012, 12:08:58 pm »
Yes as long you have only one project and dont look or play on other server. Then you have to coyp around all the folders and files every time. What is more then just one MPQ and a realmlist.

And this is only my opinion. I think there are many people that will like this.
« 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

Mjollna

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 254
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #6 on: May 21, 2012, 12:38:31 pm »
The goal is also to get rid of a lot of beginner questions related to mpq packing.
No mpq, no problem, no questions, less technical stuff to understand, more place for art.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zim4ik

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 407
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #7 on: May 21, 2012, 12:42:05 pm »
This stuff works for m2 or wmo's, Mjollna?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

fean

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #8 on: May 21, 2012, 12:46:40 pm »
This works for any files, your wow folder can looks like this :

And all of the files in DBFilesClient, world, tileset (as my screenshot shows) will be read (adts, m2, wmo, dbc...), and you don't need to pack all your modifications in an MPQ.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #9 on: May 21, 2012, 01:29:43 pm »
You can also move the files into Data/ or set the data path via a command line variable to seperate them from mpqs.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #10 on: May 21, 2012, 02:51:04 pm »
That again is somehting that makes it usefull. So i could just create some shortcuts for every programm ans set the project path just as source. But on the other hand do i often use wow and noggit the same time. Thats why i have 2 clients on the HD. So i can search problems ingame and fix them direct in noggit.
« 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

Fyrion

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 75
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #11 on: May 21, 2012, 03:54:27 pm »
Test it about 30 minutes. Everything works fine, it's a nobel progress in the history of development :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #12 on: May 22, 2012, 06:01:20 pm »
Works great thank you.

I had a bit of a problem with it changing my "Interface/GlueXML" folder turning it into "Interface/GlueXML.old". However the "wow_unsig" worked on top of this and now it all runs fine. Thanks heaps. This will be great for fast testing.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

codyt99

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 50
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #13 on: September 09, 2012, 04:51:50 am »
my brain hearts can some one add me on skype and help me do this plz.

skype - xxcookiemonsterxx99
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Zim4ik

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 407
    • View Profile
Re: [TUTORIAL] [RELEASE] Forget MPQ : don't pack anymore
« Reply #14 on: November 25, 2012, 03:50:27 pm »
This thing works with cata alpha 11927 too.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »