Difference between revisions of "Packager"

From Heroes of Hammerwatch wiki
Jump to: navigation, search
(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...")
 
Line 1: Line 1:
 +
The instructions below are outdated, Packager.exe in the game files now has a GUI, and you can right-click on mods to pack, or unpack as you want. You can also select from the commands at the top of the window to extract the base resources.
 +
 
The packager tool allows you to [[Sharing your mod|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</code> 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.
 
The packager tool allows you to [[Sharing your mod|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</code> 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.
  

Revision as of 03:03, 14 April 2019

The instructions below are outdated, Packager.exe in the game files now has a GUI, and you can right-click on mods to pack, or unpack as you want. You can also select from the commands at the top of the window to extract the base resources.

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