TrackmaniaRL Connect

A plugin by Palamabron

TrackmaniaRL Connect
Downloads 802
Updated 19 days ago
Released 3 years ago
Identifier SAC_GetData
Numeric ID 421
Min. Openplanet 1.26.0

This plugin was developed using generative AI.

From the developer: Generative AI was used to assist with development and the plugin artwork. All generated output was reviewed and edited by the author.

School
Game Trackmania
This plugin is signed for School Mode. That means it will only work when using the School signature mode, in which you will not be able to play online or set official leaderboard times.
More information

TrackmaniaRL Connect bridges Trackmania/OpenPlanet with TrackmaniaRL, a reinforcement learning framework for Trackmania.

It exposes local-only TCP endpoints for live vehicle telemetry and session readiness checks. All connections are bound to 127.0.0.1; no telemetry is sent over the internet.

Endpoints

  • 127.0.0.1:9000 — binary telemetry stream
  • 127.0.0.1:9001 — newline-delimited JSON session channel

The telemetry server accepts one client and continuously sends one fixed-size packet per game tick: 33 float32 values. If the client disconnects, the plugin closes the connection and listens again.

The session channel uses protocol version "2" and supports:

  • verify_loaded_map — returns the UID of the currently loaded map
  • confirm_ready — verifies that a player and vehicle state are ready

Telemetry packet layout

Values are serialized in this exact order.

Race state — 4 floats

  1. Checkpoints passed
  2. Current lap number
  3. Finished flag (1.0 or 0.0)
  4. Current race time in milliseconds

Transform and vehicle state — 12 floats

  1. Position: x, y, z
  2. Velocity: x, y, z
  3. Forward direction: x, y, z
  4. Up vector: x, y, z

Engine and drivetrain — 3 floats

  1. Speed
  2. Engine RPM
  3. Current gear

Wheels and surface — 8 floats

  1. Slip coefficient: front-left, front-right, rear-left, rear-right
  2. Ground-contact material ID: front-left, front-right, rear-left, rear-right

Driving helpers — 3 floats

  1. Wheels skidding count
  2. Flying duration
  3. Adherence coefficient

Player inputs — 3 floats

  1. Steering input
  2. Gas-pedal input
  3. Braking flag (1.0 or 0.0)

Integer and boolean values are encoded as floats to keep the telemetry payload uniform.

Changelog

2.4.0 - 19 days ago

TrackmaniaRL Connect 2.4.0

  • Renamed the plugin from TMRL_GrabData to TrackmaniaRL Connect.
  • Added a local JSON session channel on 127.0.0.1:9001 for loaded-map verification and driving-readiness checks.
  • Kept the existing local telemetry endpoint on 127.0.0.1:9000 and its compatible fixed 33-float packet layout.
  • Improved race-time and player-state handling.
  • Updated the plugin dependencies to VehicleState and PlayerState.

2.3.0 - 4 months ago

Added new api features sent through socket to improve RL models training, including 3D physics and surface interaction data.

2.2.0 - 3 years ago

Changed speed for relative value.

View all changelogs