Skip to content

Run‐length encoding

Martin Bean edited this page Apr 4, 2025 · 1 revision

Run-length encoding

A number of files in the game (the WGAME and WMENU overlays, assets such as textures, etc) are encoded using run-length encoding.

Decoding RLE-encoded files

There is a Python-based tool in the tools directory to decode encoded files to their original contents. This tool can be used via the command line:

./tools/rle.py [path_to_encoded_file] [path_to_write_decoded_file]

Clone this wiki locally