- Copy the contents of
Dedicated/Maps
folder into your dedicated server'sUserData/Maps
folder. - Setup a symlink to this project
Scripts
-folder: Windows:Linux:D:\trackmania\server\UserData> mklink /D Scripts D:\trackmania\TMModeTemplate\Dedicated\Scripts
ln -s <path from> <path to>
When you wish to change between project, just rename the
Scripts
folder toScripts_modename
and do the opposite for the other script. - Install
vscode
from https://code.visualstudio.com/Download - Open the
workspace
-file, install suggested extensions:maniascript-support
by reabymslint
by aessixml
by redhat
- Install
node.js
andnpm
to your platform from https://nodejs.org- Copy
Tools\config.default.js
toTools\config.js
and set the appropriate values. - Run
npm install
at theTools
-folder - Done
- Copy
Windows:
TrackmaniaServer.exe /game_settings=MatchSettings/ModeTemplate.txt /dedicated_cfg=dedicated_cfg.txt
Linux:
./TrackmaniaServer /game_settings=MatchSettings/ModeTemplate.txt /dedicated_cfg=dedicated_cfg.txt /NoDaemon
The workspace is set to deploy the updated script at local dedicated server when you press F5 at vscode.
Alternative you can start a minicontroller at Tools
-folder, by running npm start
, then you can do as well F5 to reload the mode at ingame.
The default chat commands for minicontroller are:
/reload
to reload mode/add
add bot/remove
remove bot
Feel free to implement more, if you need to.
You can find a debug button at bottom left above chat. Clicking it will open debug tools for adding and controlling bots.
- Place the contents of
Dedicated
folder into your dedicated server'sUserData
folder. - Start the server:
Linux:
./TrackmaniaServer /game_settings=MatchSettings/ModeTemplate.txt /dedicated_cfg=dedicated_cfg.txt
Windows:
TrackmaniaServer.exe /game_settings=MatchSettings/ModeTemplate.txt /dedicated_cfg=dedicated_cfg.txt
- Beu for debug modebase script
- Ze-Rax for simplified and improved Modebase