Tiled csv format has exceptionally large tile values (SOLVED)

Those large values are tiles with flip flags set, they’re telling you which way(s) the tile is flipped. To extract the flip flags and then extract just the tileID, you’ll need to do some bitwise logic:

horizontalFlip = tile & 0x80000000;
verticalFlip = tile & 0x40000000;
diagonalFlip = tile & 0x20000000;
tileID = tile & ~(0x80000000 | 0x40000000 | 0x20000000); //clear the flags

Edit: Documentation: https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#tile-flipping

3 Likes