TrackMania command line options
Moderators: Pit Crew, TM-Patrol
TrackMania command line options
Here is the list of command lines that can be used for TrackMania Forever
Command line options
Dedicated server:
/dedicated_cfg=xxx Specify a configuration file "dedicated_cfg.txt" to use. (xxx = name of the file in GameData/Config/)
/game_settings=xxx Specify a match settings file to use. (xxx = absolute file name or relative to GameData/Tracks/)
--
/login=xxx Account login to be used to play online.
/password=xxx Account password
/servername=xxx Name of the server to create.
/serverpassword=xxx Makes the server private for players, xxx is the password to use.
--
/lan Must be specified to join or create a LAN game (that is, not an internet server)
--
/forceip=xxx(:xx) Forces the public ip address to this value. optionally with a port as well.
/bindip=xxx(:xx) Chooses the ip to bind to, and sets the public ip to this value. (you still can use /forceip to chose a different public ip). This is used when the machine has several network interfaces.
--
/join=xxx Joins a server, to make a relay server. (xxx = the server ip adress with optional port, or the server login.)
/joinpassword=xxx Password to use to join the remote server if the server is private.
--
/loadcache Loads the "checksum.txt" instead of recomputing it, to speed up first launch time if P2P is enabled. *DO NOT USE* if you run several servers in the same directory!
/nologs Disables the creation of "GameLog.txt" and "ConsoleLog.txt" in Logs/ directory.
/noautoquit Keeps the server running "waiting for rpc commands", even if it is not live (with a map loaded and ready to receive players). The default behaviour is to quit, because this situation is mostly caused by configuration errors.
--
/nodaemon (linux) Doesn't detach the process.
/verbose_rpc_full (Debug option) Display the whole contents of the xml-rpc requests the dedicated server receives.
/verbose_rpc (Debug option) Displays the xml-rpc requests the dedicated server receives, but only the name of the XmlRpc? command and some parameters.
Note: the command line settings when present override the values from the configuration file.
example: TrackManiaServer.exe /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/Nations/NationsGreen.txt
Game client:
/login=xxx Account login to be used to play online.
/password=xxx Account password
/profile=xxx Forces using a specific profile on disk. (to avoid the profile choice dialog)
/validation=xxx Specifies the account validation key (the last three chracters of the player key) to be able to perform copper transactions.
/nickname=xxx Sets the player's nickname. (If not specified, the nickname used is the one stored in the online account.)
/team=xxx Sets the default player team. ("red" or "0" / "blue" or "1")
--
/join=xxx Joins a server. (xxx = the server ip adress with optional port, or the server login.)
/spectate=xxx Same as /join, but join as spectator.
/joinasreferee=xxx Same as /join, but join as referee.
/serverpassword=xxx Password to use to join the server if the server is private.
/silent Skips news, etc... to allow joining a server without any user interaction
--
/file=xxx Opens a Replay.Gbx or a Challenge.Gbx file. (xxx = full path to the file.)
/url=xxx Opens a tmtp:// url with the game.
--
/shootvideo=xxx Shoots a replay to a video file. (xxx = replay file. aboslute file name or relative to Tracks/Replays/).
/validatepath=xxx Mass validates all the replays in a directory (xxx = name relative to Tracks/Replays/).
/windowless Disable creation of the 3D viewport. (useful for batch processing with /validatepath, for instance)
--
/list_benchs=xxx Benchmarks a list of replays. (xxx = name of a text file containing the replays file names.)
/bench=xxx Benchmarks a replay (xxx = replay file name) (Internal: if no filename is specified, performs a quick technical benchmark for the default launcher settings)
/out=xxx Output filename for the bench results.
--
/computeallshadows Computes the lightmaps for all the challenges on disk.
--
/singleinst Try to send the command to an already running instance of the program instead of creating a new one.
/config=xxx Use a specific ".SystemConfig.Gbx" config file.
/ini=xxx Use a specific ".ini" config file.
/userdir=xxx Changes the default "My Documents/TmUnited/" location. (either a full path, or just "exe" to use the exe directory.)
/useexedir Run in the directory where the executable is, instead of the current directory.
/noscancache Disables the use of the launch time scan cache, forces re-reading of directory entries from the disk.
/title Changes the window title.
If any of /login, /password, /serverpassword is missing, the game will ask them to the player.
TMTP options:
tmtp://#addbuddy=login Allow you to add a buddy in your game from an external link
tmtp://#addfavourite=serverlogin Alows you to add a server to your favorites list from an external link
tmtp://#invitebuddy=login allows you to invite a buddy to be added to your buddy list
tmtp://#join=serverlogin Join a specific server as player
tmtp://#joinasreferee=serverlogin Join a specific server as referee
tmtp://#spectate=serverlogin logs you into a server as spectator from an external link
tmtp://#score=scoremeta (generated by the game) Link is generated in game to send scores that one can challange on another computer
tmtp://url or tmp://manialink Display a page in the manialink browser.
examples:
* Quick link to join a server: TmForever.exe /login=xxx /join=serverlogin /silent
* Show a manialink page: TmForever.exe /login=xxx /url=tmtp://:webisodeen /singleinst
* Batch validate some replays: TmForever.exe /login=xxx /validatepath=Downloaded
* Launch a referee in windowless mode: TmForever.exe /login=xxx /joinasreferee=serverlogin /serverpassword=refereepassword /windowless
thanks to xbx for making it!
Launcher:
/configmode Don't run the game when exiting the launcher. (can be useful with /silent, to create initialize the system config without running the game afterwards)
/silent Don't show the dialog boxes.
/userdir=xxx Same as the game.
/ini=xxx Same as the game.
/useexedir Same as the game.
Note: All the parameters on the launcher command line are also passed through to the game.
Command line options
Dedicated server:
/dedicated_cfg=xxx Specify a configuration file "dedicated_cfg.txt" to use. (xxx = name of the file in GameData/Config/)
/game_settings=xxx Specify a match settings file to use. (xxx = absolute file name or relative to GameData/Tracks/)
--
/login=xxx Account login to be used to play online.
/password=xxx Account password
/servername=xxx Name of the server to create.
/serverpassword=xxx Makes the server private for players, xxx is the password to use.
--
/lan Must be specified to join or create a LAN game (that is, not an internet server)
--
/forceip=xxx(:xx) Forces the public ip address to this value. optionally with a port as well.
/bindip=xxx(:xx) Chooses the ip to bind to, and sets the public ip to this value. (you still can use /forceip to chose a different public ip). This is used when the machine has several network interfaces.
--
/join=xxx Joins a server, to make a relay server. (xxx = the server ip adress with optional port, or the server login.)
/joinpassword=xxx Password to use to join the remote server if the server is private.
--
/loadcache Loads the "checksum.txt" instead of recomputing it, to speed up first launch time if P2P is enabled. *DO NOT USE* if you run several servers in the same directory!
/nologs Disables the creation of "GameLog.txt" and "ConsoleLog.txt" in Logs/ directory.
/noautoquit Keeps the server running "waiting for rpc commands", even if it is not live (with a map loaded and ready to receive players). The default behaviour is to quit, because this situation is mostly caused by configuration errors.
--
/nodaemon (linux) Doesn't detach the process.
/verbose_rpc_full (Debug option) Display the whole contents of the xml-rpc requests the dedicated server receives.
/verbose_rpc (Debug option) Displays the xml-rpc requests the dedicated server receives, but only the name of the XmlRpc? command and some parameters.
Note: the command line settings when present override the values from the configuration file.
example: TrackManiaServer.exe /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/Nations/NationsGreen.txt
Game client:
/login=xxx Account login to be used to play online.
/password=xxx Account password
/profile=xxx Forces using a specific profile on disk. (to avoid the profile choice dialog)
/validation=xxx Specifies the account validation key (the last three chracters of the player key) to be able to perform copper transactions.
/nickname=xxx Sets the player's nickname. (If not specified, the nickname used is the one stored in the online account.)
/team=xxx Sets the default player team. ("red" or "0" / "blue" or "1")
--
/join=xxx Joins a server. (xxx = the server ip adress with optional port, or the server login.)
/spectate=xxx Same as /join, but join as spectator.
/joinasreferee=xxx Same as /join, but join as referee.
/serverpassword=xxx Password to use to join the server if the server is private.
/silent Skips news, etc... to allow joining a server without any user interaction
--
/file=xxx Opens a Replay.Gbx or a Challenge.Gbx file. (xxx = full path to the file.)
/url=xxx Opens a tmtp:// url with the game.
--
/shootvideo=xxx Shoots a replay to a video file. (xxx = replay file. aboslute file name or relative to Tracks/Replays/).
/validatepath=xxx Mass validates all the replays in a directory (xxx = name relative to Tracks/Replays/).
/windowless Disable creation of the 3D viewport. (useful for batch processing with /validatepath, for instance)
--
/list_benchs=xxx Benchmarks a list of replays. (xxx = name of a text file containing the replays file names.)
/bench=xxx Benchmarks a replay (xxx = replay file name) (Internal: if no filename is specified, performs a quick technical benchmark for the default launcher settings)
/out=xxx Output filename for the bench results.
--
/computeallshadows Computes the lightmaps for all the challenges on disk.
--
/singleinst Try to send the command to an already running instance of the program instead of creating a new one.
/config=xxx Use a specific ".SystemConfig.Gbx" config file.
/ini=xxx Use a specific ".ini" config file.
/userdir=xxx Changes the default "My Documents/TmUnited/" location. (either a full path, or just "exe" to use the exe directory.)
/useexedir Run in the directory where the executable is, instead of the current directory.
/noscancache Disables the use of the launch time scan cache, forces re-reading of directory entries from the disk.
/title Changes the window title.
If any of /login, /password, /serverpassword is missing, the game will ask them to the player.
TMTP options:
tmtp://#addbuddy=login Allow you to add a buddy in your game from an external link
tmtp://#addfavourite=serverlogin Alows you to add a server to your favorites list from an external link
tmtp://#invitebuddy=login allows you to invite a buddy to be added to your buddy list
tmtp://#join=serverlogin Join a specific server as player
tmtp://#joinasreferee=serverlogin Join a specific server as referee
tmtp://#spectate=serverlogin logs you into a server as spectator from an external link
tmtp://#score=scoremeta (generated by the game) Link is generated in game to send scores that one can challange on another computer
tmtp://url or tmp://manialink Display a page in the manialink browser.
examples:
* Quick link to join a server: TmForever.exe /login=xxx /join=serverlogin /silent
* Show a manialink page: TmForever.exe /login=xxx /url=tmtp://:webisodeen /singleinst
* Batch validate some replays: TmForever.exe /login=xxx /validatepath=Downloaded
* Launch a referee in windowless mode: TmForever.exe /login=xxx /joinasreferee=serverlogin /serverpassword=refereepassword /windowless
thanks to xbx for making it!
Launcher:
/configmode Don't run the game when exiting the launcher. (can be useful with /silent, to create initialize the system config without running the game afterwards)
/silent Don't show the dialog boxes.
/userdir=xxx Same as the game.
/ini=xxx Same as the game.
/useexedir Same as the game.
Note: All the parameters on the launcher command line are also passed through to the game.
- TStarGermany
- speedy pilot
- Posts: 387
- Joined: 27 Aug 2006 18:12
- Owned TM-games: TMN,TMNF,TMUF
- Manialink(s): creative
- Location: GER
- Contact:
- Generator
- speedy pilot
- Posts: 339
- Joined: 18 Apr 2008 00:35
- Owned TM-games: TMNF - TMUF
- Manialink(s): Generator
- Location: Lancashire, England
- Contact:
Re: TrackMania command line options
Very intresting and usefull indeed!
Thanx alot Florent & xbx.
Thanx alot Florent & xbx.

Customize your virtual world to the max! >> http://www.virtualcustoms.net
3D Models, 2D skins & horns on my Manialink >> Generatorcolor>
3D Models, 2D skins & horns on my Manialink >> Generatorcolor>
Re: TrackMania command line options
Excellent! 

Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
-
- happy cruiser
- Posts: 161
- Joined: 20 Aug 2008 14:52
- Owned TM-games: TMO TMN TMU TMF
- Location: Austria
- Contact:
Re: TrackMania command line options
excellent
just one question:
is that correct? I think the first line is not correct, or?

just one question:
is that correct? I think the first line is not correct, or?
Florent wrote: tmtp://#join=serverlogin Join a specific server as referee
tmtp://#joinasreferee=serverlogin Join a specific server as referee
- Knutselmaaster
- swift roadking
- Posts: 692
- Joined: 16 Feb 2007 01:40
- Owned TM-games: TMO/TMN/TMNF/TMU
- Manialink(s): intr
- Location: Between DisneyLand and Paris
- Contact:
Re: TrackMania command line options
Finally a complete list!
Thanks for sharing it with us
Thanks for sharing it with us

- w1lla
- TM-Patrol
- Posts: 1466
- Joined: 23 May 2007 07:20
- Owned TM-games: TMU, TMN, TMF
- Manialink(s): intr
- Location: Venray
Re: TrackMania command line options
/verbose_rpc_full is a nice addition 

Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
Re: TrackMania command line options
Good catch. Since xbx fixed it in the CommandLine.html file included with the latest dedicated, I fixed it in the above post.matzi wrote:just one question:
is that correct? I think the first line is not correct, or?Florent wrote: tmtp://#join=serverlogin Join a specific server as referee
tmtp://#joinasreferee=serverlogin Join a specific server as referee
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
Re: TrackMania command line options
Thanks for the post, xbx... Gotten hard finding the orig post with a search... 

-
- smooth traffic navigator
- Posts: 256
- Joined: 18 Jul 2006 14:23
- Owned TM-games: TMN, TMU
- Location: NED
Re: TrackMania command line options
Looks like I already had al the command line options. 
But I have one extra:
Isn't /useexedir an option for the dedicated server too?

But I have one extra:
Isn't /useexedir an option for the dedicated server too?
-
- pedestrian
- Posts: 12
- Joined: 15 Oct 2009 15:11
- Owned TM-games: TMNF
Re: TrackMania command line options
Can anyone tell me what the /nodaemon command does? If I run my server with the command /nodaemon it works without /nodaemon it doesn't work. Do I need to change some settings to let my server work without the /nodaemon command?
- w1lla
- TM-Patrol
- Posts: 1466
- Joined: 23 May 2007 07:20
- Owned TM-games: TMU, TMN, TMF
- Manialink(s): intr
- Location: Venray
Re: TrackMania command line options
/nodaemon (linux) Doesn't detach the process.
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
-
- cyclist
- Posts: 39
- Joined: 25 Jun 2008 21:10
- Owned TM-games: TMN TMU TMNF TMUF
- Manialink(s): uns
Re: TrackMania command line options
penguisher, if you're using an ssh server, perhaps it doesn't support background processes?
I had that problem once when i was using some random shell server to run my game server.
I had that problem once when i was using some random shell server to run my game server.
-
- cyclist
- Posts: 39
- Joined: 25 Jun 2008 21:10
- Owned TM-games: TMN TMU TMNF TMUF
- Manialink(s): uns
Re: TrackMania command line options
by the way, is there any way to detach the process after it's successfully started with the /nodaemon option?
Re: TrackMania command line options
Under linux, use the program screen.
Debian install:
apt-get update && apt-get install screen
usage:
screen -dmS tmfserver ./TrackmaniaServer xxxxxx
then you can look into the "screen" with screen -R tmfserver ^^ quiet easy.
I have another question. Is there any way to force the 3 ports for p2p, game und remote via commandline?
regards
Debian install:
apt-get update && apt-get install screen
usage:
screen -dmS tmfserver ./TrackmaniaServer xxxxxx
then you can look into the "screen" with screen -R tmfserver ^^ quiet easy.
I have another question. Is there any way to force the 3 ports for p2p, game und remote via commandline?
regards