Category: File formats - AtomCrafty/MajiroTools GitHub Wiki

Category: File formats

Pages marked with next to them have had the known extent of their file structure fully documented.

Majiro formats

Wiki Page Extensions Description
[Arc archive](/AtomCrafty/MajiroTools/wiki/Format:-Arc-archive) .arc Archives for all Majiro files of a specific kind
[Rct image](/AtomCrafty/MajiroTools/wiki/Format:-Rct-image) .rct Images with 24-bit RGB color
[Rc8 image](/AtomCrafty/MajiroTools/wiki/Format:-Rc8-image) .rc8 Images with 8-bit indexed color(often used as .rct alpha channel)
[Mjo script](/AtomCrafty/MajiroTools/wiki/Format:-Mjo-script) .mjo Bytecode scripts for scenarios and library functions

Encryption and compression

Wiki Page Description
[CRC hash](/AtomCrafty/MajiroTools/wiki/Method:-CRC-hash) 32-bit and 64-bit name hashes used for faster lookup
[XOR cipher](/AtomCrafty/MajiroTools/wiki/Method:-XOR-cipher) Encryption by XOR'ing bytes with a key

Data types

These are the data types present when explaining file specifications.

Type Primitive
byte 1-byte unsigned integer
uint16 2-byte unsigned integer
uint32 4-byte unsigned integer
uint64 8-byte unsigned integer
sbyte 1-byte signed integer
int16 2-byte signed integer
int32 4-byte signed integer
int64 8-byte signed integer
bool 1-byte boolean (always 0 or 1)
bool32 4-byte boolean (always 0 or 1)
float32 4-byte single-precision floating point
Type Data
byte[n] Array of n bytes
char[n] Fixed-length string of n bytes
cstring Null-terminated string

Notes

  • Primitive types are read in little-endian byte order.
  • String data types are read in Shift JIS (Codepage 932) text encoding.
  • The char[n] data type uses null characters as padding.
  • Italicezed types are not fixed in length, and their size must be determined while reading the file.

See also

External links