Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 955 Bytes

readme.md

File metadata and controls

37 lines (25 loc) · 955 Bytes

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