From e294c389b8f5d4b07fc81243fad8fa13c027355f Mon Sep 17 00:00:00 2001 From: G2 <72430668+G2-Games@users.noreply.github.com> Date: Sun, 5 May 2024 04:53:59 -0500 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8af3a39..f6b47d2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,12 @@ # lbee-utils A small collection of utilities for exporting and importing assets from Little Busters! English Edition -The CZ0 header: +## Specifications and Info +Bytes are in Little Endian + +Each CZ file starts with a header. + +### The CZ0 and CZ3 header: | Offset | Ex. Values | ASCII | Purpose | |-------------|-------------|-------|-----------------------------------| | 0x00 - 0x03 | 43 5A 30 00 | CZ0 | Magic bytes | @@ -15,8 +20,16 @@ The CZ0 header: | 0x16 - 0x17 | DC 02 | 732 | Height of image crop | | 0x18 - 0x19 | 00 05 | 1280 | Width of image bounding box | | 0x1A - 0x1B | 34 03 | 820 | Height of image bounding box | -| 0x1C - 0x1D | 80 02 | 640 | X offset of image | -| 0x1E - 0x1F | 02 03 | 770 | Y offset of image | -| 0x20 - 0x23 | --- | --- | ---[Unknown]--- | +| 0x1C - 0x1D | 80 02 | 640 | X offset of image, optional | +| 0x1E - 0x1F | 02 03 | 770 | Y offset of image, optional | +| 0x20 - 0x23 | --- | --- | ---[Unknown]---, optional | -Bytes are in Little Endian order +### The CZ1 and CZ2 header: +| Offset | Ex. Values | ASCII | Purpose | +|-------------|-------------|-------|-----------------------------------| +| 0x00 - 0x03 | 43 5A 30 00 | CZ0 | Magic bytes | +| 0x04 - 0x07 | 24 00 00 00 | 36 | Header length in bytes | +| 0x08 - 0x09 | 58 01 | 344 | Width of the image in pixels | +| 0x0A - 0x0B | DC 02 | 732 | Height of the image in pixels | +| 0x0C - 0x0D | 20 00 | 32 | Bit depth of the image | +| 0x0E | 03 | 3 | Color block |