CHAR (Donkey Kong Country Returns)

From Retro Modding Wiki
Revision as of 22:04, 3 March 2017 by >Aruki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This article is for the CHAR format from the Donkey Kong Country series. See CHAR (File Format) for the other revisions of this format.

The CHAR format defines animated characters. It's the successor to the CHAR format from Prime 3.


This file format needs a lot of research
This format has not been researched/documented very well yet, but it seems different from the Prime 3 format.


Format

Header

The header is used to point to other important files defining an animated character. Unsigned 64bit IDs name these files. It is possible that IDs are set to 0xFFFFFFFFFFFFFFFF, indicating a null value.

The strings are null-terminated ascii-character arrays.

Size Type Description
4 u32 Unknown; always 0x59BE000E - probably magic value
19 - Unknown
- string Character name
8 ID Character skeleton See CINF
8 ID Unknown - These IDs point to CPRM files
4 u32 Unknown
13 string This is always "SkinnedModel"
8 ID Character model See CMDL (Donkey Kong Country Returns)
8 ID Character skin See CSKR

Padding?

24 zero-bytes.

Chunks

Size Type Description
4 u32 Chunk Count (CC)
- Chunk[CC] Chunks

Chunk

Size Type Description
- string Chunk Name
8 ID File ID Often ANIM files
4 char[4] File Type Either "ANIM" or something else
33 - Unknown