MCM1 SX Track File Formats

Version 1.0 (Beta) - 7/9/26

This document describes the track-side files used by the MCM1 Plugin Editor for Supercross / TrackEdit-style tracks:

The formats below are based on the current MCM1PluginEditor parser and writer. They are intended for programmers implementing readers, writers, or validators.

Format Map

Use these links to jump directly to the file format you need:

FormatRoleExample file
.trkEditable construction-set sourcetracks/classic_test.trk
.terMakeTerr terrain compile inputtracks/classic_test.ter
.scnGame scene descriptortracks/classic_test.scn
.datSupercross race / AI navigation fieldtracks/classic_test.dat

General Text Rules

.trk, .ter, and .scn are INI-like text files.

Paths in generated .ter files are Windows paths. The current desktop editor uses absolute plugin paths in the .ter file because MakeTerr is launched outside the WebView context.

Coordinate Systems

Supercross tracks are a fixed 16 x 16 grid of construction pieces.

The .trk file stores cells in row-major order:

The .ter file uses terrain grid coordinates:

So .ter BaseY is inverted relative to .trk row order. The top .trk row is written at BaseY=240, and the bottom row is written at BaseY=0.

Orientations use TrackEdit's cardinal convention:

The editor uses this same convention for saved .trk files and for the .dat writer.


.TRK Format

FORMAT BANNER: .TRK

Editable 16 x 16 construction-set source layout. Example: tracks/classic_test.trk.

The .trk file is the editable construction-set source track.

Required Sections

Keys

Plugin

The construction-set INI used by the track. This can be a bare file name such as classic.ini or stepup2.ini. The example track classic_test.trk uses Plugin=classic.ini.

Name

Human-readable track name.

Piece_NN

Construction piece id for cell NN, where NN is 01 through 256.

Orient_NN

Orientation for cell NN. Values are 0..3 using the orientation table above.

Cell Numbering

Cell NN maps to grid coordinates as:

Example:


.TER Format

FORMAT BANNER: .TER

MakeTerr terrain compile input generated from the track grid and active plugin assets. Example: tracks/classic_test.ter.

The .ter file is MakeTerr's terrain definition input. The editor generates a TerrainType=TRACK .ter for Supercross layouts.

Terrain Palette

The editor builds this palette from all texture map references in the active plugin pieces, de-duplicated case-insensitively by raw path.

Texture Map Files

For each palette entry:

CoverageInGrids=16 means each texture covers one 16 x 16 construction tile. PixelsPerGrid=8 corresponds to a 128 x 128 tile texture.

Per-Cell Terrain Placement

Each of the 256 cells has one [TexturePlacement_N] and one [ElevationFile_N] section.

N is row-major, matching .trk piece numbering.

MapId

One-based index into [TerrainPalette] / [TextureMapFile_N].

XIndex, YIndex

Tile placement in terrain grid units. The editor writes these from col and row using the coordinate conversion shown above.

Transform

Texture transform passed to MakeTerr. For pieces with NumberMapOrientations=4, the editor writes NONE because the plugin supplies orientation-specific texture maps. For pieces with NumberMapOrientations=1, the editor mirrors TrackEdit's rotation convention:

Name

ASC geometry file for the cell's piece and orientation.

Width, Breadth

Both are 16 for construction-set tiles.

BaseX, BaseY

Same coordinates as XIndex, YIndex.


.SCN Format

FORMAT BANNER: .SCN

Scene descriptor that tells MCM1 which compiled terrain file to load. Example: tracks/classic_test.scn.

The .scn file tells the game which compiled .trn terrain file to load.

The editor writes the minimal form:

baseName comes from the saved .trk file name with the extension removed and non-word characters sanitized by the editor before Build Track writes files.


.DAT Format - Supercross Grid Navigation

FORMAT BANNER: .DAT

Fixed-size binary Supercross race / AI navigation field. Example: tracks/classic_test.dat.

The Supercross .dat file is binary. It is not a National spline. It is a fixed 16 x 16 per-cell race / AI navigation field.

All integer fields are signed 32-bit little-endian.

Total size:

Header

Coordinates are one-based. A Start/Finish tile at .trk row 0, col 0 writes startCol+1 = 1 and startRow+1 = 1.

Cell Records

After the 8-byte header, there are 256 fixed-size records. Each record is 24 bytes:

Records are stored column-major:

Record offset:

This differs from .trk and .ter, which number cells row-major.

P1x, P1y

Forward race-line neighbor as one-based grid coordinates:

P2x, P2y

Backward race-line neighbor, also one-based.

For off-route cells, all four neighbor values remain zero:

flag

Usually the active plugin piece's PieceType for that cell.

For PieceType=8, the editor resolves the value to either 2 or 7 based on the handedness of the forward/backward neighbors. This mirrors the TrackEdit 90-degree turn behavior.

dir

The cell orientation from .trk:

Route Construction

The DAT writer derives the route from the current .trk grid and the active plugin's construction-set metadata:

The route starts at the Start/Finish cell and walks in the start cell's orientation:

At each next cell, the writer ignores the port it arrived from, then chooses the first connected port that leads to either:

The resulting ordered path is written into P1 and P2 fields.

DAT Pseudocode


File Set Generated by MCM Plugin Editor

When the desktop editor's Build Track action runs for an open track, it first writes:

The .trk file is saved separately by Save Track / Save Track As.

MakeTerr consumes the .ter and referenced ASC/TGA assets to produce:

maketerr.exe

maketerr.exe is the terrain compiler that turns a .ter description plus its referenced ASC/TGA assets into a compiled .trn file.

For Supercross / TrackEdit-style tracks, use the maketerr.exe located in the MCM1 TrackEdit folder. That is the compiler expected by this document's TerrainType=TRACK .ter files and the editor's Build Track action.

Run it from the command line as:

Example:

MakeTerr writes maketerr.log next to the .ter file. The editor displays that log after MakeTerr exits and scrolls the log view to the bottom.

There is also a different downloadable maketerr.exe used for building National tracks. That executable is larger and produces a different kind of .trn file. Do not treat the National compiler as interchangeable with the TrackEdit Supercross compiler when building the files described here.

The playable track folder normally needs:

Other files, such as menu images or auxiliary AI files, are outside the scope of the current MCM Plugin Editor generator.