Skip to content

visrealm/supaplex-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supaplex DAT → PNG extractor

A tiny utility to convert the Supaplex .DAT graphics files into viewable PNGs using the same bitplane decoding the original game uses.

Requirements

  • Python 3.9+
  • Pillow (pip install pillow)

Usage

Basic examples:

  • python sp_extract_dat_png.py --dat-dir ../resources --output-dir ./out
  • python sp_extract_dat_png.py --files MENU.DAT TITLE.DAT --palette-file ../resources/PALETTES.DAT

Notes:

  • If PALETTES.DAT is available (auto-detected under --dat-dir or passed with --palette-file), the game palettes are used. Otherwise a grayscale fallback is applied, except for the built-in TITLE/TITLE1/TITLE2 palettes.
  • Known files are listed in DAT_SPECS inside the script (MENU, BACK, CONTROLS, GFX, TITLE*, PANEL, MOVING, FIXED, CHARS6/8). Unknown .DAT files are skipped.

Level images

Also added all levels as images. Example:

See levels/README.md

Output previews

The images resulting from running this tool against Supaplex Spfix63 build are located in the /out directory. Previews below:

TITLE.DAT

MOVING.DAT

FIXED.DAT

TITLE1.DAT

TITLE2.DAT

MENU.DAT

PANEL.DAT

CHARS6.DAT

CHARS8.DAT

CONTROLS.DAT

GFX.DAT

BACK.DAT

License

This code is licensed under the MIT license. See LICENSE.

About

Tools to work with the original Supaplex game code

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages