Skip to content

Track mask file

Enrique Somolinos Pérez edited this page Jan 8, 2019 · 4 revisions

The file TRX_MAS.BKP, once decrypted, contains information about the terrain where you car is going. This file is a mask that can by applied to the TRX_IMA file to know in wich terrain you are.

Offset (byte) Size (bytes) Information
0 10 RIX3-header
10 768 circuit palette (for reversed circuit, the game use TRX_FLIP.PAL)
778 circuitHeight*circuitWidth The terrain type.

Terrain values:

Terrain value(byte) Information
0 -----
1 -----
2 -----
3 -----
4 -----
5 speed = speed -speed
6 speed = speed -speed * 0.11111111
7 speed = speed -speed * 0.050000001
8 -----
9 -----
10 -----
11 TURBO ZONE, speed = speed + speed * 0.013333334
12 -----
13 speed = speed - speed * 0.033333335. Random car direction
14 speed = speed -speed * 0.025
15 -----
Clone this wiki locally