TrackMania command line options

This is the place where you can find everything related to the dedicated server, control scripts and community tools.

Moderators: Pit Crew, TM-Patrol

Florent
Developer
Developer
Posts: 1594
Joined: 09 Aug 2005 14:07
Contact:

TrackMania command line options

Post by Florent » 02 Jun 2009 17:29

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.

User avatar
TStarGermany
speedy pilot
speedy pilot
Posts: 387
Joined: 27 Aug 2006 18:12
Owned TM-games: TMN,TMNF,TMUF
Manialink(s): creative
Location: GER
Contact:

Re: TrackMania command line options

Post by TStarGermany » 02 Jun 2009 17:34

thanks a lot :3
Image

User avatar
Generator
speedy pilot
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

Post by Generator » 02 Jun 2009 17:52

Very intresting and usefull indeed!

Thanx alot Florent & xbx. :D
Customize your virtual world to the max! >> http://www.virtualcustoms.net
3D Models, 2D skins & horns on my Manialink >> Generatorcolor>

Xymph
Pit Crew
Pit Crew
Posts: 5644
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: TrackMania command line options

Post by Xymph » 02 Jun 2009 18:09

Excellent! :thumbsup:
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

matzi
happy cruiser
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

Post by matzi » 02 Jun 2009 18:19

excellent :thumbsup:
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

User avatar
Knutselmaaster
swift roadking
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

Post by Knutselmaaster » 03 Jun 2009 04:07

Finally a complete list!
Thanks for sharing it with us :3

User avatar
w1lla
TM-Patrol
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

Post by w1lla » 03 Jun 2009 07:54

/verbose_rpc_full is a nice addition ;)

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

Xymph
Pit Crew
Pit Crew
Posts: 5644
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: TrackMania command line options

Post by Xymph » 03 Jun 2009 12:35

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
Good catch. Since xbx fixed it in the CommandLine.html file included with the latest dedicated, I fixed it in the above post.
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

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: TrackMania command line options

Post by nocturne » 03 Jun 2009 16:54

Thanks for the post, xbx... Gotten hard finding the orig post with a search... :thumbsup:

corneb
smooth traffic navigator
smooth traffic navigator
Posts: 256
Joined: 18 Jul 2006 14:23
Owned TM-games: TMN, TMU
Location: NED

Re: TrackMania command line options

Post by corneb » 06 Jun 2009 13:41

Looks like I already had al the command line options. :D

But I have one extra:

Isn't /useexedir an option for the dedicated server too?
DutchTM.nl - The Dutch TrackMania Community!
Dedicated Server Tools

penguisher
pedestrian
pedestrian
Posts: 12
Joined: 15 Oct 2009 15:11
Owned TM-games: TMNF

Re: TrackMania command line options

Post by penguisher » 16 Oct 2009 09:09

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?

User avatar
w1lla
TM-Patrol
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

Post by w1lla » 16 Oct 2009 09:13

/nodaemon (linux) Doesn't detach the process.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

thebigguyconnor
cyclist
cyclist
Posts: 39
Joined: 25 Jun 2008 21:10
Owned TM-games: TMN TMU TMNF TMUF
Manialink(s): uns

Re: TrackMania command line options

Post by thebigguyconnor » 16 Oct 2009 15:19

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.

thebigguyconnor
cyclist
cyclist
Posts: 39
Joined: 25 Jun 2008 21:10
Owned TM-games: TMN TMU TMNF TMUF
Manialink(s): uns

Re: TrackMania command line options

Post by thebigguyconnor » 16 Oct 2009 15:21

by the way, is there any way to detach the process after it's successfully started with the /nodaemon option?

FragLesS
cyclist
cyclist
Posts: 37
Joined: 07 Jul 2008 21:39
Owned TM-games: TMO,TMF,TMUF

Re: TrackMania command line options

Post by FragLesS » 16 Nov 2009 18:21

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

Post Reply

Who is online

Users browsing this forum: Steeler [Crawler] and 6 guests