Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.89 KB

File metadata and controls

50 lines (37 loc) · 1.89 KB

Requirements

  • Windows
  • Python : >= 3.7
  • Trackmania 2020 or trackmania Forever
  • A recent NVIDIA GPU (this is required only if you plan to train your own AI)

Installation

  1. Clone the tmrl repository.
git clone https://github.com/yannbouteiller/tmrl.git
cd tmrl
  1. Create a conda environment.
conda create -n tmrl python=3.8
conda activate tmrl
  1. Install the library using the -e option (for now, the project will not work if you omit this option).
pip install -e .

During the installation, a driver will be installed to emulate a virtual gamepad in order to control the game. Accept the licence agreement and install the driver when prompted.

Image

Trackmania 2020

Install Trackmania 2020

To install the free version of TM20, you can follow the instructions on the official website .

Install Openplanet

Image

If you want to run the self-driving-car on Trackmania 2020, you will need to install Openplanet for trackmania.

Make sure that you have the Visual C++ x64 runtime installed or OpenPlanet will not work. You can download it here.

After that, go to the tmrl\resources folder, copy the Scripts folder and paste it in C:\Users\username\OpenplanetNext\ (NB: if the folder doesn't exist on your machine, launch Trackmania after installing Openplanet, and it should be created automatically).

Launch the Trackmania 2020 game.

To check that everything works, lauch a track, then press f3 to open the Openplanet menu, open the logs by clicking OpenPlanet > Log, and in the OpenPlanet menu click Developer > (Re)load plugin > plugin_grab_data_0 (TMRL grab data). You should see a message like "waiting for incomming connection" appear in the logs. Then press f3 again to close the menu.