Packager

From Heroes of Hammerwatch wiki
Revision as of 10:12, 28 September 2018 by Miss (talk | contribs) (Created page with "The packager tool allows you to package a mod, but it also allows you to unpack or extract mods, as well as base the content from the <code>res/assets.bin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The packager tool allows you to package a mod, but it also allows you to unpack or extract mods, as well as base the content from the res/assets.bin file. This is useful if you want to use any of our base resources such as units and scripts, in your mod, or use them as reference material.

Base resources

First, navigate to your Heroes of Hammerwatch installation folder. In this folder, hold down Shift and F10 at the same time to open the advanced shortcut menu. From here, select "Open command prompt here." (On Windows 10 this is Powershell.) You should now see the Windows command prompt in front of you, in the current folder. Then, run the following command, which will extract all files from res/assets.bin into the assets folder.

PACKAGER.exe --unpack=res/assets.bin --destination=unpacked_assets

On Powershell, you need to call it like this:

.\PACKAGER.exe --unpack=res/assets.bin --destination=unpacked_assets

Nothing will appear to happen, but it's currently extracting the assets in the background.

Extracted.png

Mods

The same process works for mods, except you pass the .bin file to the --unpack parameter. For example:

PACKAGER.exe --unpack=mods/trainer.bds --destination=mods/trainer