MPQEditor and MPQMaster

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Seeyabye
Newcomer
Posts: 2
Joined: September 13th, 2009, 12:53 am

MPQEditor and MPQMaster

Post by Seeyabye »

Hi,

I had this problem today which makes me wonder why MPQEditor does not work properly, where as MPQMaster works fine. MPQEditor uses storm.dll which means it should be able to read any MPQ no matter how badly it is corrupted. Consider this file with the following conditions:

- MPQ is not corrupted. Opened fine with both MPQEditor and MPQMaster
- contains (attributes)
- war3map.j located in Scripts folder

Doing the following steps to add in a CP, I opened up this map with MPQEditor, located war3map.j, extracted it to a folder called Cheats. Now, I did not edit the war3map.j. Instead I readd the file back using MPQEditor, Compact flush it, and ran it with War3. I obtained an error which says that "file data corrupt".

Now, I repeated the above steps, but instead of using MPQEditor, I used MPQMaster this time. In this case, the map worked fine.

Can someone explain why?

Regards,
Seeyabye.
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: MPQEditor and MPQMaster

Post by Senethior459 »

Interestingly, I've been having the same problem lately. Unfortunately, Ladik's MPQ Editor is the only one that actually works under WINE (MPQMaster crashes when I open a map, WinMPQ doesn't open; nothing but Ladik's), so... I usually just go over to a Windows machine nearby and use MPQMaster. I haven't had any maps that needed to be opened with something stronger, and if I did, I'd either manually rebuild with RMPQEx or use ACP 3's rebuild function.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: MPQEditor and MPQMaster

Post by haxorico »

i had those problems too. i asked some staff members and i got the answer "u dunno how to use it properly"

and 2 reasons why.
i never followed those 2 ways to "not crash" MPQ coz i didnt need to after i got those tips. but still.

1) dont use a megasized listfile, MPQEditor has a maximum file listfile it can take or it crashes (smthing like that not sure)
2) dont compact flush when u hack a .w3x map

if ur asking how to get a listfile that isnt mega sized here is how to get the best not mega sized listfile i can think off

1) run the map with x-dep -> get in the .temp folder and take the .txt files that are inthere (i have a folder called listfile for those kind of stuff) and put them in a folder
2) open RMPQEx with NO listfiles > autosearch > extract listfile > a new .txt file u make in the same folder with the other listfiles u got from x-dep
3) run MPQRecover > browse the map > deep scan > brute force > scan > extract listfile > a new listfile in ur previus listfile extracted folder
4) open Ladiks MPQEditor (dont open the map yet) tools > merge listfiles > merge ur listfiles > use that listfile to open ur map with Ladiks MPQEditor.
5) *optional* merge ur mini-listfile with ur mega-sized listfile just incase u want.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
No-sense
Old Wrinkly Member
Posts: 291
Joined: August 15th, 2009, 9:22 am
Title: senseR - No. 1

Re: MPQEditor and MPQMaster

Post by No-sense »

I tried without compact flash , still doesn't works . I will try the way u say :
1) dont use a megasized listfile, MPQEditor has a maximum file listfile it can take or it crashes (smthing like that not sure)
Edit : Normally , skip this way :
1) run the map with x-dep -> get in the .temp folder and take the .txt files that are inthere (i have a folder called listfile for those kind of stuff) and put them in a folder
Q: Why would you use Ladik's MPQ Editor but not MPQMaster?
A: Because it cannot open by MPQMaster / Crashed X-dep.

Edit#1 : Haxorico , tested for you . Next time test yourself but not just talking :neutral: .
Doesn't works.
User avatar
haxorico
Super Moderator
Posts: 3197
Joined: February 24th, 2009, 1:31 pm
Location: JEW LAND
Been thanked: 1 time

Re: MPQEditor and MPQMaster

Post by haxorico »

i didnt test it. coz i had no map to test on. i just said what other staff members have told me.
Image
Spoiler:
(02:24:09)

Code: Select all

ChatBot: FatherSpace logs into the Chat.
(02:24:28) Lanaya: Gtfo ken.
(02:24:33) ChatBot: FatherSpace logs out of the Chat.
(02:24:40) Lanaya: Thought so. bitch.
(02:24:44) ChatBot: FatherSpace logs into the Chat.
(02:24:48) FatherSpace: Can I come back yet?
(02:24:51) Lanaya: What'd i say earlier.
(02:24:51) Lanaya: No.
(02:24:58) FatherSpace: Let's try this...
(02:25:01) ChatBot: Lanaya has been logged out (Kicked).

Code: Select all


(14:33:51) 2Pac: Do you know what'S so funny?
(14:34:01) Lanaya: No, please show me.
(14:34:07) 2Pac: This.
(14:34:09) ChatBot: Lanaya has been logged out (Kicked).
(14:34:10) 2Pac: 

Code: Select all

(14:35:59) haxorico: No one will belive me if I say "I got this song from 2pac on MSN" lolz ^^
(14:36:02) Lanaya: lolz.
(14:36:16) 2Pac: I AIN'T DEAD FFS.
(14:36:26) 2Pac: I'm a living legend, y'now.
(14:37:17) haxorico: why is 2Pac a legend?
(14:37:28) Lanaya: He's the worse rapper evar.

Code: Select all

(15:42:51) Lanaya: can i suck , . . .

Code: Select all

(13:55:21) ChatBot: 2Pac rolls 1d100 and gets 1.
(13:55:21) ChatBot: haxorico rolls 1d2 and gets 2.
(13:55:27) haxorico: owned?

Code: Select all

GeorgeMots: xplain what happens in SP. Why cant you save?
dast.-:i need play with 2 players

Code: Select all

(21:53:08) (673237): plzplzplz, im sorry about before.
(21:53:26) FatherSpace: I'm sorry you were born.
(21:53:31) ChatBot: (673237) has been logged out (Kicked).

Code: Select all

(10:08:02) Bartimaeus: you do know run I youtube channel for my favorite music, right?
Seeyabye
Newcomer
Posts: 2
Joined: September 13th, 2009, 12:53 am

Re: MPQEditor and MPQMaster

Post by Seeyabye »

@haxorica,

If you read closely my post again, it was simply extract and re-add the file back. So I doubt it has anything to do with the list files.

@O-sense,

I think (I'm not too sure), but running X-Dep is not a very good option unless we have a complete listfiles for it? Oh btw please check out my request on the thread that you have created, http://forum.wc3edit.net/warcraft-map-d ... 19-10.html . Thanks, would appreciate if you had the complete list file for that particular map that you attempted to deprotect.

The real answer,

The answer was quite simple, it was not Lardik's MPQ Editor that suck, instead it was how the it should be used. It was the compression that matters when you decide to add a file in the MPQ. It seems that only the default, (bzip) compression was the culprit to the fatal error. So instead of selecting bzip compression, we should be using zlib compression. After the re-add is completed, compact flush it. The map worked normally.

PS: I only tried it like how I wrote in my first post. I did not made any test on files that were modified. In other words, the file extracted out was war3map.j and the file that was added back in was war3map.j (original).

In short, this is what I did,

1. Extract war3map.j using Lardik's MPQ Editor
2. Re-add back war3map.j
3. When prompted, select zlib as the compression method.
4. Compact flush

My conclusion, I obtained the same and exact file size as it was supposed to initially. eg. Initial file size, 180 kB. After re-add, 188 kB. After compact flush, 180 kB.

Image


I hope this helps those who faced this problem in future.

Regards,
Seeyabye
User avatar
Senethior459
Forum Staff
Posts: 2618
Joined: June 2nd, 2007, 6:53 pm
Title: I Just Lost the Game

Re: MPQEditor and MPQMaster

Post by Senethior459 »

You can use RMPQEx to get the listfile. It does a better job of it than XDep does.
My Warcraft III Tool Collection
If you want to chat/game with me:
Blizzard: Senethior459#1962
Discord: Kyle#7409
Steam: Spacekidkyle