/h3-lod-extractor

Node.js script converts HoMM 3 .lod archives to set of pictures and spritesheets.

Primary LanguageJavaScript

Heroes 3 .lod archives extractor

⚠️Work in progress⚠️

Node.js script converts HoMM 3 .lod archives to set of pictures and spritesheets.

Install

yarn install

Usage

List of all files from archive

yarn extract -- --input=test/h3sprite.lod

List of all files from archive with filter by name

yarn extract -- --input=test/h3sprite.lod --filter=spell

Extract files to specific folder

yarn extract --input=test/h3sprite.lod --output=test/out

Extract files using filter for input names

yarn extract --input=test/h3sprite.lod --filter=spell --output=test/out

Extract files using filter for output names

yarn extract --input=test/h3sprite.lod --outputFilter=\\.json --output=test/out

Extract a specific file contents as is

yarn run -silent extract --input=test/h3sprite.lod --openFile=ch07.def > test/ch07.def

To get all necessary pictures you need to pass all *.lod files from original Heroes 3 repositories.

It's not a utility convertor for all files. It makes files that can be useful in web development purposes, png, webp and ico files sorted by folders.

I maintain it to make assets for my HoMM 3 in browser project.

Needs to be done

  • webp files
  • list of all textures with sizes in JSON
  • export animations on spritesheets in JSON
  • export cursors