TM-FORUM

The TrackMania universal forum ^_^
It is currently 25 Apr 2017 05:52

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: TrackMania command line options
PostPosted: 02 Jun 2009 18:29 
Offline
Developer
Developer

Joined: 09 Aug 2005 15:07
Posts: 1594
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.


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 02 Jun 2009 18:34 
Offline
speedy pilot
speedy pilot
User avatar

Joined: 27 Aug 2006 19:12
Posts: 387
Location: GER
Owned TM-games: TMN,TMNF,TMUF
Manialink(s): creative
thanks a lot :3

_________________
Image


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 02 Jun 2009 18:52 
Offline
speedy pilot
speedy pilot
User avatar

Joined: 18 Apr 2008 01:35
Posts: 339
Location: Lancashire, England
Owned TM-games: TMNF - TMUF
Manialink(s): Generator
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 >> Generator


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 02 Jun 2009 19:09 
Offline
Pit Crew
Pit Crew

Joined: 19 Aug 2007 13:58
Posts: 5631
Owned TM-games: TMN, TMU, TMF, TM²
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


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 02 Jun 2009 19:19 
Offline
happy cruiser
happy cruiser

Joined: 20 Aug 2008 15:52
Posts: 161
Location: Austria
Owned TM-games: TMO TMN TMU TMF
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

_________________
Image

Image
Image

Die Rot-Weiß-Rote Brille [Blog (German)]


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 03 Jun 2009 05:07 
Offline
swift roadking
swift roadking
User avatar

Joined: 16 Feb 2007 02:40
Posts: 692
Location: Between DisneyLand and Paris
Owned TM-games: TMO/TMN/TMNF/TMU
Manialink(s): intr
Finally a complete list!
Thanks for sharing it with us :3

_________________
Zelectrify!


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 03 Jun 2009 08:54 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: 23 May 2007 08:20
Posts: 1466
Location: Venray
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
/verbose_rpc_full is a nice addition ;)

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


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 03 Jun 2009 13:35 
Offline
Pit Crew
Pit Crew

Joined: 19 Aug 2007 13:58
Posts: 5631
Owned TM-games: TMN, TMU, TMF, TM²
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


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 03 Jun 2009 17:54 
Offline
solid chaser
solid chaser

Joined: 08 Jun 2007 19:48
Posts: 1390
Owned TM-games: all
Thanks for the post, xbx... Gotten hard finding the orig post with a search... :thumbsup:


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 06 Jun 2009 14:41 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 18 Jul 2006 15:23
Posts: 256
Location: NED
Owned TM-games: TMN, TMU
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


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 16 Oct 2009 10:09 
Offline
pedestrian
pedestrian

Joined: 15 Oct 2009 16:11
Posts: 12
Owned TM-games: TMNF
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?


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 16 Oct 2009 10:13 
Offline
TM-Patrol
TM-Patrol
User avatar

Joined: 23 May 2007 08:20
Posts: 1466
Location: Venray
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
/nodaemon (linux) Doesn't detach the process.

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


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 16 Oct 2009 16:19 
Offline
cyclist
cyclist

Joined: 25 Jun 2008 22:10
Posts: 39
Owned TM-games: TMN TMU TMNF TMUF
Manialink(s): uns
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.

_________________
http://www.mydailytech.com


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 16 Oct 2009 16:21 
Offline
cyclist
cyclist

Joined: 25 Jun 2008 22:10
Posts: 39
Owned TM-games: TMN TMU TMNF TMUF
Manialink(s): uns
by the way, is there any way to detach the process after it's successfully started with the /nodaemon option?

_________________
http://www.mydailytech.com


Top
 Profile  
 
 Post subject: Re: TrackMania command line options
PostPosted: 16 Nov 2009 19:21 
Offline
cyclist
cyclist

Joined: 07 Jul 2008 22:39
Posts: 37
Owned TM-games: TMO,TMF,TMUF
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group