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.141.tar.gz (74.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nutcracker-0.3.141-py3-none-any.whl (102.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nutcracker-0.3.141.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Windows/10

File hashes

Hashes for nutcracker-0.3.141.tar.gz
Algorithm Hash digest
SHA256 fc4cef15a0485725c6d12d1de1f5c6527efb0c71f499b23e07c022708331349d
MD5 70e4b93f6ebb1cb39f51acf24e7e634e
BLAKE2b-256 20a091cdd3a9cdbd368bd9a134b7b78c98a655dba5ff0e75f95b218f595d8eff

See more details on using hashes here.

File details

Details for the file nutcracker-0.3.141-py3-none-any.whl.

File metadata

  • Download URL: nutcracker-0.3.141-py3-none-any.whl
  • Upload date:
  • Size: 102.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Windows/10

File hashes

Hashes for nutcracker-0.3.141-py3-none-any.whl
Algorithm Hash digest
SHA256 37d4614a544397944cd3d9f2044f77c9f1415805689c9628dc110fa383dfc876
MD5 7791534484063ba2c52dd4db44797b9d
BLAKE2b-256 2c64a7ccdaab0d7c05ec67af94270c226b36c4b605e1adb59b822d133d2bd642

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