XYZ is RPG2000/2003's own file-format of compressed 8bit-indexed graphics, inside RPG_RT.exe it is also referenced as "Original Graphics Format". There never was an official easy way to create XYZ-files, they could only be created by exporting graphics that are already in a project with the RPG Maker's MaterialManager. Nowadays there're multiple converters for it.
Each graphic-file starts with the format-key "XYZ1" followed by two 2 words (= 2 bytes each) containing the image's width and height in pixels (1~65535).
The entire post-header-content is compressed with ZLib's Deflate algorythm.
This structure contains 256 color-entries (3 bytes each) that are later referenced in the graphic itself.
Size | Content | Value |
---|---|---|
1 | Red | 0~255 |
1 | Green | 0~255 |
1 | Blue | 0~255 |
This structure contains a number of bytes calculated from multiplying the defined width by height.
Size | Content | Value |
---|---|---|
1 | ColorID | 0~255 |