NSMBU > Tilesets

NSMBU tilesets are SARC archives. Self-contained tileset files in the unit folder are Yaz0 compressed. The archive contains the following files (replace '%' by the name of the tileset):

FilenameDescription
BG_chk/d_bgchk_%.binCollision behavior data
BG_tex/%.gtxTexture
BG_tex/%_nml.gtxNormal map
BG_unt/%.binTile object layout
BG_unt/%_hd.binTile objects

Pa0 tileset files also contain the following animation textures:

Filename
belt_conveyor_anime.gtx
block_anime.gtx
block_anime_L.gtx
hatena_anime.gtx
hatena_anime_L.gtx
tuka_coin_anime.gtx

Tile Collision File

This file describes the collision behavior of the tile. It contains one instance of the following struct for every tile:

OffsetSizeDescription
0x08....AA.BCCDDEEEE
FieldDescription
ATerrain type
BSolidity
CExtra parameters
DCollision parameters
ECollision type
.Unknown or unused

Collision Type

ValueDescription
1Rails
2Dash coin
3Coin
6Brick block
14Climbable
16Pipe
20Hanging ledge / climbable wall

Collision Parameters (Rails)

ValueDescription
0Upslope
1Downslope
2Top-left corner
3Bottom-right corner
4Horizontal
5Vertical
6Blank
7Gentle upslope 1
8Gentle upslope 2
9Gentle downslope 1
10Gentle downslope 2
11Steep upslope 1
12Steep upslope 2
13Steep downslope 1
14Steep downslope 2
151x1 circle
162x2 circle 1
172x2 circle 2
182x2 circle 3
192x2 circle 4
204x4 circle 1
214x4 circle 2
224x4 circle 3
234x4 circle 4
244x4 circle 5
254x4 circle 6
264x4 circle 7
274x4 circle 8
284x4 circle 9
294x4 circle 10
304x4 circle 11
314x4 circle 12
32End stop

Tile Object Layout File

This file describes which tiles belong to a tile object and its repetition patterns.

Tile Object File

This file contains an instance of the following struct for each tile object:

OffsetSizeDescription
0x02Offset into tile object layout file
0x21Width
0x31Height
0x42Randomization: 0xXY

Randomization

XDescription
0No restrictions
1Tile may not be the same as left or right neighbour
2Tile may not be the same as upper or lower neighbour
3Tile may not be the same as any neighbour tile

Y specifies the number of tiles that are chosen from randomly.