Skip to content

CLI tool for rendering Genie .SLP files (Age of Empires / SWGB) to PNGs.

License

Notifications You must be signed in to change notification settings

genie-js/slp-render

Repository files navigation

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

About

CLI tool for rendering Genie .SLP files (Age of Empires / SWGB) to PNGs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published