slp-render

2.1.0 • Public • Published

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

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i slp-render

    Weekly Downloads

    1

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    8.98 kB

    Total Files

    7

    Last publish

    Collaborators

    • goto-bus-stop