Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

FE2 Tiled

Converts a .tmx file to and from a .bin file for/from Fire Emblem: Gaiden.

Formats

All formats start with height - 1 then width - 1. Formats 0 and 1 have 2 NULL bytes. Then the encoded data. Formats 0 and 1 end with 0xFF.

Format 0

It's RLE. The first byte is count - 1 and the second byte is the raw byte.
If the second byte is greater than 0x2D and count is 0, then count is optional. (e.g. 0x00 0x2F is equivalent to 0x2F)
To encode more than 0x2D count of a byte, it needs to be broken down (e.g. 0x2D 0x55 0x2D 0x55 0x02 0x55)

Format 1

Alternates between raw data and RLE (no 0x2D limit, and no optional count) with the byte 0xFE. Starts in "raw data" mode.

Format 2

Contains raw data.

About

Converts Tiled maps (.tmx) into binary for Fire Emblem Gaiden

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages