Private · Research

Trackmania General AI

A Trackmania Nations Forever RL driver that sees only rendered frames, trained across ~10,000 tracks to generalize to maps it has never driven.

  • python
  • pytorch
  • rl
  • tminterface
Pixels → Policy → Steering 0 engine inputs

Zero track splines, zero wall distances, zero engine state vectors. The agent sees what a human driver sees.

tracks in training pool
~10k
target on unseen maps
Gold@50
engine geometry inputs
0
  • Pure visual input: rendered pixels only, with no track splines, surface telemetry, or engine coordinates.
  • Multi-map curriculum across ~10,000 tracks forces general braking, drift control, and recovery instead of route memorization.
  • Evaluated on Gold@50: earning the official gold medal within 50 attempts on held-out tracks never seen in training.
  • Built on Linesight's RL baseline and trained remotely on the Legion 7 (RTX 3080 Laptop, CachyOS).

Why generalization is the hard part

Most Trackmania RL bots set record lap times by training for millions of frames on a single track while reading privileged engine state (checkpoint vectors, wall distances, velocity tensors). Drop those policies onto an unseen track and they crash immediately.

Here every engine internal is stripped out so the policy sees only what a human sees (rendered pixels), rotating across roughly 10,000 tracks so memorizing a line is impossible.

Gold@50 & training setup

The evaluation bar is Gold@50: place the agent on held-out tracks never seen during training and measure whether it claims the official gold medal within 50 attempts — requiring real-time corner reading, braking judgment, and clean wall recovery.

The codebase extends Linesight's Trackmania RL baseline and TMInterface bridge around pixels-only observations and a multi-map curriculum, running remotely on the Legion 7 (RTX 3080 Laptop, Ryzen 9 5900HX, CachyOS) over Tailscale. The repo stays private while research is active.