EnglishFrenchSpanish

Ad


OnWorks favicon

grfcodec - Online in the Cloud

Run grfcodec in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command grfcodec that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


GRFCodec — A tool to convert a GRF file into graphics files and meta data, and vice versa.

SYNOPSIS


grfcodec [-sv] [-d | -e] [options] GRF‐file [Directory]

<GRF‐File> denotes the .GRF file you want to work on, e.g. TRG1.GRF

<Directory> is where the individual sprites should be saved. If omitted, they will
default to a subdirectory called sprites/.

OPTIONS


-? Display the help message.

-e Encode a GRF file. The GRF‐file to pass is the file where to encode to. The
source of the GRF‐file, i.e. the .nfo, will be looked for in
sprites/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 to pass is the file to decode. The result will
be in sprites/GRF‐file.nfo and sprites/GRF‐file.png.

-s Silences the progress output in interactive mode

-v Display the version.

Options for decoding:

-w num Write spritesheets files with the given width (default 800, minimum 16)

-h num Split spritesheets when they reach this height (default no limit, minimum 16)

-b num Organize sprites in boxes of this size (default 16)

-o ssf Sets the format of generated spritesheets. See -o ? for a list.

-p pal 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.

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

-g num Create a GRF file with the given container version. Valid versions are 1 and 2,
where the latter allows bigger sprites, larger sounds, and multiple zoom levels
and bit depths for the sprites.

-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:

-m num Apply colour translation to all sprites except character‐glyphs.

-M num Apply colour translation to all sprites.

If both of these are specified, only the last is obeyed. -m ? or -M ? for a
list of colour translations.

Use grfcodec online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 2
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 3
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 4
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • 5
    ExpressLuke GSI
    ExpressLuke GSI
    This SourceForge download page was to
    grant users to download my source built
    GSIs, based upon phhusson's great
    work. I build both Android Pie and
    Android 1...
    Download ExpressLuke GSI
  • 6
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    tas...
    Download Music Caster
  • More »

Linux commands

Ad