Skip to main content

Tools for editing resources in SCUMM games.

Project description

NUTCracker

Tools for editing resources in SCUMM games.

NUT File Usage

Decoding

Decode all NUT files in given directory DATADIR

python -m nutcracker.decode_san DATADIR/*.NUT --nut --target OUTDIR

Creates a font image file named chars.png in OUTDIR which can be edited using regular image editing software (e.g. GIMP)

Encoding

Encode given font image (PNG_FILE) with given codec number (CODEC) using REF_NUT_FILE as reference

python -m nutcracker.encode_nut PNG_FILE --target NEW_NUT_FILE --ref REF_NUT_FILE --codec CODEC [--fake CODEC]

This will convert font image file back to font file (NEW_NUT_FILE) which can be used in game.

Available codecs:

  • 21 (FT + The Dig*)
  • 44 (COMI*)

*FONT3.NUT and the fonts in The Dig was actually encoded using codec 21 method but marked as 44. It can be achieved using --codec 21 --fake 44. see examples in test.bat

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nutcracker-0.3.14.tar.gz (66.3 kB view details)

Uploaded Source

File details

Details for the file nutcracker-0.3.14.tar.gz.

File metadata

  • Download URL: nutcracker-0.3.14.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for nutcracker-0.3.14.tar.gz
Algorithm Hash digest
SHA256 e167e7591b3077e53215bc2f9363b281603ccf92b80892fa8b1ae7d4526db1a4
MD5 dce04cc2565e977133dc52c8cd5e7473
BLAKE2b-256 7799931fe04f5d526e5715bf9777be5998c3d5e250e56453262ff375cc14f3b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page