Page 1 of 2

TrackMania command line options

Posted: 02 Jun 2009 17:29
by Florent
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.

Re: TrackMania command line options

Posted: 02 Jun 2009 17:34
by TStarGermany
thanks a lot :3

Re: TrackMania command line options

Posted: 02 Jun 2009 17:52
by Generator
Very intresting and usefull indeed!

Thanx alot Florent & xbx. :D

Re: TrackMania command line options

Posted: 02 Jun 2009 18:09
by Xymph
Excellent! :thumbsup:

Re: TrackMania command line options

Posted: 02 Jun 2009 18:19
by matzi
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

Re: TrackMania command line options

Posted: 03 Jun 2009 04:07
by Knutselmaaster
Finally a complete list!
Thanks for sharing it with us :3

Re: TrackMania command line options

Posted: 03 Jun 2009 07:54
by w1lla
/verbose_rpc_full is a nice addition ;)

Re: TrackMania command line options

Posted: 03 Jun 2009 12:35
by Xymph
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.

Re: TrackMania command line options

Posted: 03 Jun 2009 16:54
by nocturne
Thanks for the post, xbx... Gotten hard finding the orig post with a search... :thumbsup:

Re: TrackMania command line options

Posted: 06 Jun 2009 13:41
by corneb
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?

Re: TrackMania command line options

Posted: 16 Oct 2009 09:09
by penguisher
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?

Re: TrackMania command line options

Posted: 16 Oct 2009 09:13
by w1lla
/nodaemon (linux) Doesn't detach the process.

Re: TrackMania command line options

Posted: 16 Oct 2009 15:19
by thebigguyconnor
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.

Re: TrackMania command line options

Posted: 16 Oct 2009 15:21
by thebigguyconnor
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

Posted: 16 Nov 2009 18:21
by FragLesS
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