Thread Tools Display Modes
08-19-10, 06:50 PM   #41
dubcat
A Defias Bandit
 
dubcat's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 3
Originally Posted by Ladik View Post
In case you are unable to extract a patched file, please, send me an e-mail to zezula-at-volny-dot-cz. Please, don't forget to include:
- The name of the primary MPQ
- List of patches you entered
- Full name of the extracted file
I ran this
Code:
MPQEditor.exe /patch "locale-enGB.MPQ" "wow-update-12694.MPQ" "wow-update-12759.MPQ"
And tried to extract the DBFilesClient folder, but it crashes on WorldMapContinent.dbc
 
08-19-10, 07:41 PM   #42
Adys
A Deviate Faerie Dragon
 
Adys's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 19
For those interested, now that Ladik has released MPQEdit with patch support. Here is a Python library to read PatchFiles (PTCH).

http://www.pastethat.com/9pGwm

Released under BSD.
 
08-19-10, 10:17 PM   #43
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Sorry, guys, but I had to remove the link. You know our rules!
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
08-19-10, 11:17 PM   #44
DesertDwarf
Largely Short
 
DesertDwarf's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 62
Originally Posted by Seerah View Post
Sorry, guys, but I had to remove the link. You know our rules!
For those who don't know, see rule #8 on this post.
__________________
DesertDwarf
"I could be taller, but why?"
 
08-19-10, 11:32 PM   #45
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Adys, I think Jerome is a cool name.

Could you post a really short sample?

Last edited by Vlad : 08-19-10 at 11:36 PM.
 
08-20-10, 12:07 AM   #46
Adys
A Deviate Faerie Dragon
 
Adys's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 19
Originally Posted by Vladinator View Post
Adys, I think Jerome is a cool name.

Could you post a really short sample?
patchFile = open("wow-12345-patch/testfile.lua") # patch file
oldFile = open("old/testfile.lua")
f = PatchFile(patchFile)

print f.apply(oldFile.read())

oldFile.close()
 
08-20-10, 12:52 AM   #47
Bluspacecow
Giver of walls of text :)
 
Bluspacecow's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 770
Originally Posted by DesertDwarf View Post
For those who don't know, see rule #8 on this post.
I really don't see how it violates it

MPQ editor is an external program , not an addon.
__________________
tuba_man on Apple test labs : "I imagine a brushed-aluminum room with a floor made of keyboards, each one plugged into a different test box somewhere. Someone is tasked with tossing a box full of cats (all wearing turtlenecks) into this room. If none of the systems catch fire within 30 minutes, testing is complete. Someone else must remove the cats. All have iPods." (http://community.livejournal.com/tec...t/2018070.html)
 
08-20-10, 01:45 AM   #48
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
If you try Adys' python script, append this at the end to actually use his library as a application:
Code:
if len(sys.argv) < 3:
  print "Invalid arguments, run like this (filepaths can be relative):"
  print "mpq.py \"originalfile\" \"patchfile\" \"savetofile\""
else:
  if os.path.exists(sys.argv[1]) and os.path.exists(sys.argv[2]):
    old = open(sys.argv[1], 'r');
    new = open(sys.argv[2], 'r');
    m = PatchFile(new)
    r = m.apply(old.read())
    #print r
    w = open(sys.argv[3], 'w')
    w.append(r)
    w.close();
  else:
    print "Invalid arguments, run like this (filepaths can be relative):"
    print "mpq.py \"originalfile\" \"patchfile\" \"savetofile\""
    print "The files originalfile and patchfile must exist."
    print "Remember to use quotes to encapsulate paths with spaces!"
It includes guidelines, basically takes in 3 arguments, the file, the patch and the output where to write the final file.

I think it's correct, tough I tried to patch ActionButton.lua from local-enUS.mpq with the wow-update-12694.mpq patch and getting MD5 errors.
 
08-20-10, 01:52 AM   #49
Adys
A Deviate Faerie Dragon
 
Adys's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 19
Originally Posted by Vladinator View Post
I think it's correct, tough I tried to patch ActionButton.lua from local-enUS.mpq with the wow-update-12694.mpq patch and getting MD5 errors.
I'm looking into it. If it's just an error, you can pass validate=False to apply()
 
08-20-10, 02:14 AM   #50
Ladik
A Fallenroot Satyr
 
Ladik's Avatar
Join Date: Aug 2010
Posts: 23
Originally Posted by Seerah View Post
Sorry, guys, but I had to remove the link. You know our rules!
Ah, my apologies then. I thought that MPQ Editor doesn't fall into category of "addons"

For all others who e-mailed me: Thanks for bug reports, I'll fix them problems today, and hopefully a more stable version should be ready this evening.
 
08-20-10, 02:45 AM   #51
silkfire
A Fallenroot Satyr
Join Date: Jun 2009
Posts: 20
Who is Jerome?
 
08-20-10, 05:14 AM   #52
Borlox
A Deviate Faerie Dragon
 
Borlox's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 13
Edit: Found the error, the right base files are in enUS\patch-enUS.mpq, not in locale-enUS.mpq

Originally Posted by Adys View Post
I'm looking into it. If it's just an error, you can pass validate=False to apply()
I extracted the files and tried the python script with validate=False, but that gives me another error message:
Code:
>python patch.py data\locale-enUS\Interface\FrameXML\ActionButton.lua Data\update-12694\Interface\FrameXML\ActionButton.lua Data\patched-12694\Interface\FrameXML\ActionButton.lua

Traceback (most recent call last):
  File "patch.py", line 186, in <module>
    r = m.apply(old.read(), validate=False)
  File "patch.py", line 153, in apply
    nb, ob = ord(new[cursor + i]), ord(old[oldCursor + i])
IndexError: string index out of range
I couldn't get any file in FrameXML patched...

"MpqEditor.exe enUs\locale-enUS.mpq wow-update-12694.mpq" opens the file without any error message, but it's empty.
The same happens when both update mpqs are used.

Thanks for all the work you've done! I'm really looking forward to a working version

Last edited by Borlox : 08-20-10 at 05:29 AM.
 
08-20-10, 06:18 AM   #53
Adys
A Deviate Faerie Dragon
 
Adys's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 19
Originally Posted by silkfire View Post
Who is Jerome?
That would be me. Hi!

Thanks for the reports guys. Below is an updated PTCH parser:
http://dpaste.com/231608/

Also here is my blizpatch.py in case anyone wants it. Mind you you'll need to change imports to make it work.

http://dpaste.com/231609/
 
08-20-10, 06:28 AM   #54
Ladik
A Fallenroot Satyr
 
Ladik's Avatar
Join Date: Aug 2010
Posts: 23
A new BETA build of MPQ Editor, available on my website, should be now able to handle all patches properly. I fixed several bugs there. Please, let me know if you find a file that you are unable to extract, or it doesn't look well after extracting.

This version should be far more stable that the one I published yesterday late in the night (note for myself: Never ever release anything when it's close to midnight).

As usually, there is new BETA version of StormLib available, which also contains algorithms for uncompressing and applying Blizzard patches.

Note: The original download link for the experimental version is longer valid.
__________________
Ladik's MPQ Editor
 
08-20-10, 07:32 AM   #55
Crowley
A Murloc Raider
Join Date: Apr 2005
Posts: 5
Originally Posted by Ladik View Post
A new BETA build of MPQ Editor, available on my website, should be now able to handle all patches properly. I fixed several bugs there. Please, let me know if you find a file that you are unable to extract, or it doesn't look well after extracting.
Works fine for me.

Thanks a lot, Ladik and Adys, your work is much appreciated.
 
08-20-10, 08:56 AM   #56
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Bluspacecow View Post
I really don't see how it violates it

MPQ editor is an external program , not an addon.
Even more reason to remove the link.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
08-20-10, 09:00 AM   #57
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
Extracted the files.
But for some odd reason there are alot 1kb .blp files
and some larger that can't be converted to .png

Don't know if this is a bug, or just the patched data
 
08-20-10, 10:41 AM   #58
Borlox
A Deviate Faerie Dragon
 
Borlox's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 13
Is there a way to open a patch archive for multiple mpqs?
I'm trying to hack support for the wow-update-*.mpqs into the WoWModelViewer. My first idea was to open all the patch archives for each mpq, but that doesn't work, as they may be opened just one time.

Does anybody have a better idea, or is anyone already working on this?
 
08-20-10, 10:54 AM   #59
silkfire
A Fallenroot Satyr
Join Date: Jun 2009
Posts: 20
Originally Posted by Quokka View Post
Extracted the files.
But for some odd reason there are alot 1kb .blp files
and some larger that can't be converted to .png

Don't know if this is a bug, or just the patched data
Name some of the files you're referencing.
 
08-20-10, 10:54 AM   #60
silkfire
A Fallenroot Satyr
Join Date: Jun 2009
Posts: 20
Originally Posted by Borlox View Post
Is there a way to open a patch archive for multiple mpqs?
I'm trying to hack support for the wow-update-*.mpqs into the WoWModelViewer. My first idea was to open all the patch archives for each mpq, but that doesn't work, as they may be opened just one time.

Does anybody have a better idea, or is anyone already working on this?
No need, all models are viewable at least for me.
 
 

WoWInterface » AddOns, Compilations, Macros » Cataclysm Beta » Extract "wow-update-12759.mpq"... meh!

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off