-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extra stuff, add readmes for some folders
- Loading branch information
1 parent
20189c8
commit 26e226d
Showing
8 changed files
with
103 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# LCE File Formats | ||
Documentation on various LCE file formats. | ||
|
||
### Table of contents | ||
1. [Saves](../Saving/) - The save format | ||
2. [ARC](./ARC.md) - Used for storing game assets | ||
3. [COL](./COL.md) - Used for storing colors used in-game (e.g biome colors) | ||
4. [MSSCMP](./MSSCMP.md) - Used for storing BINK audio files | ||
5. [THUMB](./THUMB.md) - Contains the world image, along with metadata such as the Seed | ||
6. [Options](./Options.md) - Game settings | ||
7. [GRF](./GRF.md) | ||
|
||
# Contributors | ||
List of contributors can be found under [Team.md#Documentation](/Team.md#Documentation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# LCE Game Mechanics/Misc | ||
Documentation on game mechanics and other stuff that doesn't fit anywhere else. (e.g Strings, Biome IDs, etc) | ||
|
||
### Table of contents | ||
|
||
1. [Biome IDs](BiomeIDs.md) - All biomes in the game (as of Wii U Edition v688, uses "flattened" IDs) | ||
2. [Colors](Colors.md) - Colors for biomes, textures, water, fog, etc. | ||
3. [LimitStrings](LimitStrings.md) - Strings based around `The maximum number of X in a world has been reached.` | ||
4. [BattleMapLocations](BattleMapLocations.md) | ||
|
||
# Contributors | ||
List of contributors can be found under [Team.md#Documentation](/Team.md#Documentation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,37 @@ | ||
### MCR Structure | ||
# MCR Structure | ||
The following Table gives you Important information the structure of a legacy edition mcr file: | ||
| Name | Size (in bytes) | Description | | ||
| :-:|:-:|:-:| | ||
| [Locations](#locations) | 0x1000 (1024 ints) | Offsets of the chunks within the region file, as well as X,Y positioning | ||
| Timestamps | 0x1000 (1024 ints) | Timestamps for the chunks found within the previous sector | ||
| Chunks | variable | Chunks themselves, compressed with a different format per-console. | ||
|
||
### Locations | ||
| Name | Size (in bytes) | Description | | ||
|--------------------------|:------------------:|---------------------------------------------------------------------------| | ||
| [Locations](#locations) | 0x1000 (1024 ints) | Offsets of the chunks within the region file, as well as X,Y positioning | | ||
| Timestamps | 0x1000 (1024 ints) | Timestamps for the chunks found within the previous sector | | ||
| Chunks | variable | Chunks themselves, compressed with a different format per-console. | | ||
|
||
## Locations | ||
The locations in LCE seem to use a different format per endianness... | ||
|
||
#### Big Endian | ||
Equivalent to JE Regions | ||
| Name | Size (in bytes) | Description | | ||
| :-:|:-:|:-:| | ||
| Offset | 0x03 (int24) | Offset of the chunk, to get the true offset you need to multiply by 4096. | ||
| Size | 0x01 (byte) | Size of the chunk in 4096-byte sectors | ||
|
||
| Name | Size (in bytes) | Description | | ||
|--------|:---------------:|---------------------------------------------------------------------------| | ||
| Offset | 0x03 (int24) | Offset of the chunk, to get the true offset you need to multiply by 4096. | | ||
| Size | 0x01 (byte) | Size of the chunk in 4096-byte sectors | | ||
|
||
#### Little Endian | ||
| Name | Size (in bytes) | Description | | ||
| :-:|:-:|:-:| | ||
| Size | 0x01 (byte) | Size of the chunk in 4096-byte sectors | ||
| Offset | 0x03 (int24) | Offset of the chunk, to get the true offset you need to multiply by 4096. | ||
|
||
### Compressed chunk | ||
Within the chunk header lies a 4-byte portion of data that dictates 2 flags and the compressed chunk size. | ||
| Name | Size (in bits) | Description | | ||
| :-:|:-:|:-:| | ||
| RLE Flag | 1 | Flag for if to use RLE | ||
| Unknown Flag | 1 | It is unknown what this flag is | ||
| Compressed Size | 30 | Compressed chunk size, to get the actual size, you must AND it by `0x3FFFFFFF` | ||
| Decompressed Size | 32 (4 bytes, uint) | Decompressed chunk size | ||
| Compressed chunk | Variable (Compressed Size) | The rest of the chunk | | ||
|
||
| Name | Size (in bytes) | Description | | ||
|--------|:---------------:|---------------------------------------------------------------------------| | ||
| Size | 0x01 (byte) | Size of the chunk in 4096-byte sectors | | ||
| Offset | 0x03 (int24) | Offset of the chunk, to get the true offset you need to multiply by 4096. | | ||
|
||
## Compressed Chunk | ||
Chunks in LCE are double compressed, usually with the console's compression format + chunk specific RLE. | ||
|
||
| Name | Size (in bits) | Description | | ||
|-------------------|:--------------------------:|--------------------------------------------------------------------------------| | ||
| RLE Flag | 1 | Flag for if to use RLE | | ||
| Unknown Flag | 1 | It is unknown what this flag is | | ||
| Compressed Size | 30 | Compressed chunk size, to get the actual size, you must AND it by `0x3FFFFFFF` | | ||
| Decompressed Size | 32 (u32) | Decompressed chunk size | | ||
| Compressed chunk | Variable (Compressed Size) | The rest of the chunk | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters