Kanma / MPQExtractor

A command-line tool to extract files from MPQ archives
Other
128 stars 39 forks source link

Failed to extract #7

Closed mire3212 closed 10 years ago

mire3212 commented 10 years ago

I noticed this code hasn't been touched in quite a while, but I'm trying to extract some content from some MPQ fils and the tool is reporting a failure:

./MPQExtractor -e Character\BloodElf\Male\BloodElfMale0004-00.anim -o ~/Desktop/out /Users/bitson/Applications/World\ of\ Warcraft/Data/model.MPQ Opening '/Users/bitson/Applications/World of Warcraft/Data/model.MPQ'...

Extracting files...

Failed to extract the file 'CharacterBloodElfMaleBloodElfMale0004-00.anim' in /Users/bitson/Desktop/out/CharacterBloodElfMaleBloodElfMale0004-00.anim

I'm able to list the contents of the MPQ but not extract the data.

Kanma commented 10 years ago

Hello

It is a shell issue actually: you have to put the file name into "" characters, otherwise your shell will try to interpret \B and \M as special characters before invoking MPQExtractor.

Which will then try to extract CharacterBloodElfMaleBloodElfMale0004-00.anim instead of Character\BloodElf\Male\BloodElfMale0004-00.anim (like can be seen in the error message).

So the correct command is:

./MPQExtractor -e "Character\BloodElf\Male\BloodElfMale0004-00.anim" -o ~/Desktop/out /Users/bitson/Applications/World\ of\ Warcraft/Data/model.MPQ

I'll modify the documentation to clarify that point.