WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Cataclysm Beta (https://www.wowinterface.com/forums/forumdisplay.php?f=82)
-   -   Extract "wow-update-12759.mpq"... meh! (https://www.wowinterface.com/forums/showthread.php?t=34469)

Quokka 08-20-10 11:14 AM

Quote:

Originally Posted by silkfire (Post 203112)
Name some of the files you're referencing.

\Interface\MINIMAP\OBJECTICONS.BLP
\Interface\RAIDFRAME\Raid-Bar-Resource-Fill.blp
\Interface\RAIDFRAME\Raid-FrameHighlights.blp
\Interface\TALENTFRAME\PetTalent-PetBG.blp
\Interface\TALENTFRAME\TALENTFRAME-PARTS.BLP

and some other files, let me know if you need to know what they are

Borlox 08-20-10 11:33 AM

Quote:

Originally Posted by silkfire (Post 203113)
No need, all models are viewable at least for me.

They're viewable, but I think the patches don't get applied.
And for example the CREATURE\AvengingAngel\AvengingAngel.m2 model from wow-update-12759.mpq is not listed, even though it is a real .m2 file and no patch.

Ladik 08-20-10 12:16 PM

Quote:

Originally Posted by Borlox (Post 203109)
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?

Is MPQ support in WoWModelViewer based on StormLib ?

Borlox 08-20-10 12:21 PM

Quote:

Originally Posted by Ladik (Post 203118)
Is MPQ support in WoWModelViewer based on StormLib ?

Yep.
As far as I understand the code all archives are opened at the beginning. To open a file the code goes through all of them and tries to open the file, storing the content and returning if successful.

Ladik 08-20-10 12:55 PM

Quote:

Originally Posted by Borlox (Post 203119)
Yep.
As far as I understand the code all archives are opened at the beginning. To open a file the code goes through all of them and tries to open the file, storing the content and returning if successful.

I'll change it so when an MPQ is open for read only, it can be open multiple times.
Edit: it should be possible - MPQs are open with FILE_SHARE_READ, and GENERIC_READ if MPQ_OPEN_READ_ONLY is specified in SFileOpenArchive.

silkfire 08-20-10 02:50 PM

Quote:

Originally Posted by Ladik (Post 203118)
Is MPQ support in WoWModelViewer based on StormLib ?

Ladik every time you update the StormLib - chuanshing, wowmodelviewer's developer, updates the modelviewer so that it utilizes it.

Fresh update:
http://code.google.com/p/wowmodelvie...e/detail?r=368

http://code.google.com/p/wowmodelviewer/updates/list

Ladik 08-20-10 03:16 PM

Quote:

Originally Posted by silkfire (Post 203139)
Ladik every tome you update the StormLib chuanshing, wowmodelviewer's developer updates the modelviewer to use it.

Ah right, he sends me e-mails from time to time. Hi, Chuanshing :-)

silkfire 08-20-10 03:33 PM

Quote:

Originally Posted by Borlox (Post 203116)
They're viewable, but I think the patches don't get applied.
And for example the CREATURE\AvengingAngel\AvengingAngel.m2 model from wow-update-12759.mpq is not listed, even though it is a real .m2 file and no patch.

It's very much there, Borlox, take a look again.

http://i38.tinypic.com/vigti9.jpg

silkfire 08-20-10 03:45 PM

Quote:

Originally Posted by Quokka (Post 203114)
\Interface\MINIMAP\OBJECTICONS.BLP
\Interface\RAIDFRAME\Raid-Bar-Resource-Fill.blp
\Interface\RAIDFRAME\Raid-FrameHighlights.blp
\Interface\TALENTFRAME\PetTalent-PetBG.blp
\Interface\TALENTFRAME\TALENTFRAME-PARTS.BLP

and some other files, let me know if you need to know what they are

Quokka are you really sure you're doing right? The BLP files are perfectly fine:

http://i37.tinypic.com/jauq0p.jpg

Bluspacecow 08-20-10 11:06 PM

Currently I use :

http://www.devklog.net/2007/02/09/mpq-extractor-10/

I am correct in saying the MPQ format has changed ?

Does this mean come Cata I will need to find a different tool to extract the MPQ files ?

Quokka 08-21-10 12:19 AM

Quote:

Originally Posted by silkfire (Post 203147)
Quokka are you really sure you're doing right? The BLP files are perfectly fine:

http://i37.tinypic.com/jauq0p.jpg

Extracting yes. I used the normal & patch funktion both do the same. with the list files from his site. the have a size 1kb minimal upto nearly 150kb depending on the texture.

What do you use to convert the the images.
I use blp2png.exe that might be the problem

Adys 08-21-10 02:41 AM

Quote:

Originally Posted by Bluspacecow (Post 203185)
Currently I use :

http://www.devklog.net/2007/02/09/mpq-extractor-10/

I am correct in saying the MPQ format has changed ?

Does this mean come Cata I will need to find a different tool to extract the MPQ files ?

Use MPQEditor, from zezula.net. MPQ Extractor hasn't been updated in years.

Ladik 08-21-10 04:58 AM

Quote:

Originally Posted by Bluspacecow (Post 203185)
Currently I use :
I am correct in saying the MPQ format has changed ?

No. There is just new type of file, which is an incremental patch file. That kind of file is useless alone, and needs to be used with the base file.

There is another new feature planned for Cataclysm MPQs. In current BETA releases of WoW.exe, there is a code that reads a data structure that will replace current hash+block table.

Borlox 08-21-10 06:22 AM

Quote:

Originally Posted by Ladik (Post 203123)
I'll change it so when an MPQ is open for read only, it can be open multiple times.
Edit: it should be possible - MPQs are open with FILE_SHARE_READ, and GENERIC_READ if MPQ_OPEN_READ_ONLY is specified in SFileOpenArchive.

Here is a minimal test case.
Executed in Cataclysm\Data it always gives me
Quote:

Failed to add patch archive for exp3: 32
Error code 32 is ERROR_SHARING_VIOLATION "The process cannot access the file because it is being used by another process."

All MPQs are opened with MPQ_OPEN_READ_ONLY.

Ladik 08-21-10 07:26 AM

Ah, I see the problem now. Even if the base MPQs are open for read only, the patches are still opened for writing. It's a bug in StormLib, I'll fix that soon.

Also, I am going to change the patch interface a bit, I believe that it will be easier to use and more flexible. The point is that I remove SFileSetPatchPathPrefix, and the patch prefix will be parameter to SFileOpenPatchArchive instead. This will allow to have different patch prefix for each patch MPQ (perhaps this will be needed for future MPQs).

I believe it's better to do it now, when it's still early released (and BETA after all), than later, when loads of application will have to be recompiled.

Borlox 08-21-10 07:28 AM

Quote:

Originally Posted by Ladik (Post 203220)
Ah, I see the problem now. Even if the base MPQs are open for read only, the patches are still opened for writing. It's a bug in StormLib, I'll fix that soon.

Also, I am going to change the patch interface a bit, I believe that it will be easier to use and more flexible. The point is that I remove SFileSetPatchPathPrefix, and the patch prefix will be parameter to SFileOpenPatchArchive instead. This will allow to have different patch prefix for each patch MPQ (perhaps this will be needed for future MPQs).

I believe it's better to do it now, when it's still early released (and BETA after all), than later, when loads of application will have to be recompiled.

Great news :banana:

Bluspacecow 08-21-10 07:34 AM

Quote:

Originally Posted by Adys (Post 203194)
Use MPQEditor, from zezula.net. MPQ Extractor hasn't been updated in years.

I use MPQ extractor as it is the only reliable piece of software for OS X for extracting them that I have been able to find.

It's okay. Spoken to the author on the #macstorm IRC channel on freenode.net and he's hard at work on getting it all updated.

silkfire 08-21-10 09:42 AM

Quote:

Originally Posted by Quokka (Post 203187)
Extracting yes. I used the normal & patch funktion both do the same. with the list files from his site. the have a size 1kb minimal upto nearly 150kb depending on the texture.

What do you use to convert the the images.
I use blp2png.exe that might be the problem

I'm using blp2png.exe as well! The problem is if the extracted file is 1kb then something is wrong. How are you using the "patch function"? You need to chain the files in the right order or you'll get nothing but crap.

Quokka 08-21-10 11:56 AM

Quote:

Originally Posted by silkfire (Post 203240)
I'm using blp2png.exe as well! The problem is if the extracted file is 1kb then something is wrong. How are you using the "patch function"? You need to chain the files in the right order or you'll get nothing but crap.

I start with
Open MPQ -> expansion3-MPQ
Open MPQ (Patch Mode) -> patch-base-12694.MPQ
Open MPQ (Patch Mode) -> wow-update-12694.MPQ
Open MPQ (Patch Mode) -> wow-update-12759.MPQ
Open MPQ (Patch Mode) -> wow-update-12803.MPQ


goto enGB right click on Interface Extract.

I hope this is the right way to do it

Ladik 08-21-10 12:07 PM

Quote:

Originally Posted by Quokka (Post 203256)
I start with
Open MPQ -> expansion3-MPQ
Open MPQ (Patch Mode) -> patch-base-12694.MPQ
Open MPQ (Patch Mode) -> wow-update-12694.MPQ
Open MPQ (Patch Mode) -> wow-update-12759.MPQ
Open MPQ (Patch Mode) -> wow-update-12803.MPQ

This doesn't look correct. You have to select "Open MPQs (Patch Mode), then select primary MPQ and all patches. Then MPQ Editor shows a dialor whre primary MPQ and all patches are displayed. Check if that is correct, then press OK.

Alternative way: run MPQ Editor with "/patch" command line parameter like this:
MPQEditor /patch expansion3.MPQ wow-update-12694.MPQ wow-update-12759.MPQ wow-update-12803.MPQ


All times are GMT -6. The time now is 07:43 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI