Media Tool

The Media Tool is a command line tool to handle several media project and raw formats.

The Media Tool is entirely controlled by arguments passed to it:


    mediatool.exe [-spriteproject <sprite project file>]
                  [-sprites <raw/binary sprite file>]
                  [-charsetproject <charset project file>]
                  [-chars <raw/binary charset file>]
                  [-charscreen <charscreen project file>]
                  [-graphicscreen <graphicscreen project file>]
                  [-binary <binaryfile>]
                  [-type <export format>]
                  [-export <file name>]
                  [-area <x,y,width,height>]
                  [-offset <first unit to affect, default 0>]
                  [-count <count of units to affect, default all>]
    
-area is only applicable for charscreen

-spriteproject <sprite project file>

Opens a C64 Studio sprite project file for its operations.

-sprites <raw/binary sprite file>

Opens a raw/binary file for its operations.
Sprite data is expected to be 63 bytes of sprite data plus one filler byte.


-charsetproject <charset project file>

Opens a C64 Studio charset project file for its operations.

-chars <raw/binary charset file>

Opens a raw/binary file for its operations.
Charset data is expected to be a multiple of 8 bytes per character.


-charscreen <charscreen project file>

Opens a C64 Studio character screen project file for its operations.


-graphicscreen <graphicscreen project file>

Opens a C64 Studio graphic screen project file for its operations.


-binary <raw/binary file>

Opens a raw/binary file for its operations.


-export <file name>

Exports the selected units to this file.

-type <export typename>

The supported export type depends on the file used to fetch data from. These types are currently supported:
Import Type Export Type exports
-SPRITEPROJECT
-SPRITES
SPRITES A number of sprites, 64 bytes each
-CHARSETPROJECT
-CHARS
CHARS A number of characters, 8 bytes each
-CHARSCREEN CHARS A number of characters, 1 byte each
-CHARSCREEN COLORS A number of colors, 1 byte each
-CHARSCREEN CHARSCOLORS A number of chars, followed by number of colors, 2 bytes each
-GRAPHICSCREEN MULTICOLORBITMAPCOLORSSCREEN A number of 8x8 blocks, first multicolor bitmap, followed by color and screen data
-GRAPHICSCREEN MULTICOLORBITMAPSCREENCOLORS A number of 8x8 blocks, first multicolor bitmap, followed by screen and color data
-GRAPHICSCREEN MULTICOLORBITMAPCOLORS A number of 8x8 blocks, first multicolor bitmap, followed by color data
-GRAPHICSCREEN MULTICOLORBITMAPSCREEN A number of 8x8 blocks, first multicolor bitmap, followed by screen data
-GRAPHICSCREEN MULTICOLORBITMAP A number of 8x8 blocks, first multicolor bitmap
-GRAPHICSCREEN HIRESBITMAPCOLORSSCREEN A number of 8x8 blocks, first hires bitmap, followed by color and screen data
-GRAPHICSCREEN HIRESBITMAPSCREENCOLORS A number of 8x8 blocks, first hires bitmap, followed by screen and color data
-GRAPHICSCREEN HIRESBITMAPCOLORS A number of 8x8 blocks, first hires bitmap, followed by color data
-GRAPHICSCREEN HIRESBITMAPSCREEN A number of 8x8 blocks, first hires bitmap, followed by screen data
-GRAPHICSCREEN HIRESBITMAP A number of 8x8 blocks, first hires bitmap


-offset <Unit Index>

Offset of first unit to export. Defaults to zero.

-count <Unit Count>

Number of units to export. Defaults to all.