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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nutcracker-0.3.11.tar.gz.
File metadata
- Download URL: nutcracker-0.3.11.tar.gz
- Upload date:
- Size: 33.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f76f3d2f24059d450d3b2f5103c1acc2ecabefc7f1d4bca8c453eabdab881c8
|
|
| MD5 |
e1bd4d7a183c571e45f50a21c71ee92a
|
|
| BLAKE2b-256 |
f9d02b1fc81008071aa1ca4eebe4d2f7f6b5bb61e3ce18c1bb894f858a98f5af
|
File details
Details for the file nutcracker-0.3.11-py3-none-any.whl.
File metadata
- Download URL: nutcracker-0.3.11-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d53ad87b1b2b3aa4e444841bdb0403b99a9933b7201b2c11a69aac6b017435b
|
|
| MD5 |
0ff3ac5406954ba3bc16313e16626dc2
|
|
| BLAKE2b-256 |
899cc3c0a21a3934d452bfa8ed7f3152216bca5a82631662a6c3b2e08c27d818
|