CLI tool for rendering Genie .SLP files (Age of Empires / SWGB) to PNGs.
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
LICENSE
default-palette.pal
index.js
package.json
readme.md

readme.md

slp-render

Render Genie engine (Age of Empires, SWGB) .SLP files to PNGs.

Installation

npm install --global slp-render

Usage

$ slp-render --help

Usage
  $ slp-render <slp-file> <out-dir> [--palette=<file>] [--player=<number>] [--draw-outline]

Options
  --palette       JASC-PAL palette file path to get colours from. Defaults to
                  the default Age of Empires 2 unit palette (50500).
  -p, --player    Player colour to use for rendering units. Defaults to 1.
  --draw-outline  Draw the outline around the unit instead of the unit itself.
                  This is used by the games for rendering units behind buildings.

Example
  $ slp-render graphics.drs/2.slp archer/ --player=3
  $ slp-render interfac.drs/50100.slp loading-background/ --palette=interfac.drs/50532.bin

Programmatic Usage

Use genie-slp, the API library :)

Licence

MIT