-
Notifications
You must be signed in to change notification settings - Fork 9
File Formats
Robert Jordan edited this page Mar 16, 2019
·
28 revisions
Pages marked with ✓ next to them have had the known extent of their file structure fully documented.
Wiki Page | Extensions | Description |
---|---|---|
KifintArchive ✓ | .int |
Archives for all CatSystem2 files of a specific type |
HgxImage |
.hg2 , .hg3
|
Images with position info and multiple frames |
Animation ✓ | .anm |
Animation script for Images with multiple frames |
SceneScript ✓ | .cst |
Message scene script |
ScreenScript ✓ | .fes |
Screen/menu script |
ZtPackage ✓ | .zt |
Packaged files that can be exported from in-game |
These are the data types present when explaining file specifications.
Although most types are listed as uint32
in File Specifications, the TriggersTools.CatSystem2 C# implementation often uses int32
values instead to avoid unnecessary casting or unchecked
blocks.
Type | Size |
---|---|
byte |
1-byte unsigned integer |
uint16 |
2-byte unsigned integer |
uint32 |
4-byte unsigned integer |
uint64 |
8-byte unsigned integer |
int16 |
2-byte signed integer |
int32 |
4-byte signed integer |
int64 |
8-byte signed integer |
bool32 |
4-byte boolean (0 or 1) |
byte[n] |
Array of n bytes |
char[n] |
String of n bytes of characters |
string |
Null-terminated string |
- All
integer
types are read in little-endian format. - All
string
andchar[n]
types are read with Shift JIS (Codepage 932) encoding. - The
char[n]
type uses null characters as padding, so this type is essentially null terminated as well unless there aren
bytes of non-null characters. - All compression is done with Zlib unless otherwise specified.