ChiefOfGxBxL / WC3MapTranslator

Translate war3map ⇄ json formats for WarCraft III .w3x maps
https://www.npmjs.com/package/wc3maptranslator
MIT License
73 stars 31 forks source link

Extracting the scripts #75

Closed VioletFlare closed 6 months ago

VioletFlare commented 6 months ago

Hi, two questions:

  1. I haven't found any mention of extracting scripts with this lib. Is it possible or should I look somewhere else?
  2. Is it possible to extract the whole w3x archive file? (trying to understand the structure of the archive... binwalk says it has thousands of zlib compressed blocks which upon extraction do not yield unit files, region files etc.)

Thanks.

VioletFlare commented 6 months ago

I found out that it was a MPQ archive by using file. I found a repo called MPQExtractor and used it to extract the w3x archive.

ChiefOfGxBxL commented 6 months ago

@VioletFlare Glad to hear you figured it out! Yea, any MPQ tool can help you get the files out of your map. I use Ladik's MPQ Editor.