GRFCODEC(1)
π GRFCODEC π
okay bestie, so this is the GRFCodec manual page, section 1 β a tool to convert a GRF file into graphics files and meta data, and vice versa. yes, both directions, it's giving versatile icon β¨
πΈ SYNOPSIS πΈ
grfcodec [-sv] [-d | -e] [options] GRF-file [Directory]
so like, quick vibe check on the args:
<GRF-File>β this is the .GRF file you want to work on, e.g.TRG1.GRFπ<Directory>β this is where the individual sprites should be saved. if you omit it, they default to a subdirectory calledsprites/π
β¨ OPTIONS β¨
π¦ The main girlies
-?β Display the help message. (she's asking for directions, respect it)-eβ Encode a GRF file. The GRF-file you pass is the file where to encode to. The source of the GRF-file, i.e. the.nfo, will be looked for insprites/GRF-file.nfo. All graphics files will be searched for relative from the location of the GRF-file.-dβ Decode a GRF file. The GRF-file you pass is the file to decode. The result will be insprites/GRF-file.nfoandsprites/GRF-file.png.-sβ Silences the progress output in interactive mode. (peace and quiet, we love her for that π)-vβ Display the version.
π Options for decoding
-wnum β Write spritesheets files with the given width (default800, minimum16).-hnum β Split spritesheets when they reach this height (default no limit, minimum16).-bnum β Organize sprites in boxes of this size (default16).-ossf β Sets the format of generated spritesheets. See-o ?for a list. π-ppal β Use this palette instead of the default. See-p ?for a list.-tβ Disable decoding of plain text characters as strings.-xβ Disable production of unquoted escape sequences.-xxβ Disable production of both quoted and unquoted escape sequences.
heads up bestie: this has the side effect of producing a version 6.nfo, instead of a version 7.nfo. π
-Xβ List sprite numbers in the image file in hex.
π₯ Options for encoding
-cβ Crop extraneous transparent blue from real sprites.-uβ Save uncompressed data (probably not a good idea). π-qβ Suppress warning messages.-gnum β Create a GRF file with the given container version. Valid versions are1and2, where the latter allows bigger sprites, larger sounds, and multiple zoom levels and bit depths for the sprites. (version 2 really said main character energy π)-nβ Try both compression algorithms and use the most efficient. This might cause trouble when loading the NewGRF in TTDPatch.
π Options for both encoding and decoding
-mnum β Apply colour translation to all sprites except character-glyphs.-Mnum β Apply colour translation to all sprites.
ngl if both of these are specified, only the last is obeyed.-m ?or-M ?for a list of colour translations. π
π«Ά SEE ALSO
The documentation in /usr/share/doc/grfcodec/
π AUTHOR
GRFCodec was written by Josef Drexler.
This manual page was written by Remko Bijker.
π COPYRIGHT
GRFCodec is Copyright (C) 2000-2005 by Josef Drexler <josef@ttdpatch.net>
okay that's the whole thing, no cap π
and just so you know β this page is from February 24, 2012, and it's GRFCodec(1), section 1 of the manual. slay, go encode something iconic π¦β¨
π¦ where this page comes from
- debian bookworm: grfcodec 6.0.6-6+b1 Β· GPL-2.0-or-later
- debian trixie: grfcodec 6.1.0-1 Β· GPL-2.0-or-later
- fedora 43: grfcodec 6.0.6-27.fc43 Β· GPL-2.0-or-later
- fedora 43: grfcodec 6.2.0-1.fc43 Β· GPL-2.0-or-later
- fedora 44: grfcodec 6.2.0-2.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: grfcodec 6.0.6-6 Β· GPL-2.0-or-later
- ubuntu noble: grfcodec 6.0.6-6build2 Β· GPL-2.0-or-later
- ubuntu questing: grfcodec 6.1.0-1
- ubuntu resolute: grfcodec 6.1.0-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: grfcodec 6.1.0-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms