Command-line parameters
(Redirected from Command line parameter)
Jump to navigation
Jump to search
Command-line parameters are pieces of information provided to Terraria when it is started. They influence various parts of the game.
Client
The following command-line parameters are available for the standard Terraria application:
-savedirectory[1]-logfile[2]-minidump[2]-logerrors[2]-fulldump[2]-disableannouncementbox[3]-announcementboxrange[3]-forcepriority[4]-localsteamid[5]-localwegameid[6]-ip[7]-j/-join[8]-pass/-password[8]-host[8]-loadlib[9]-p/-port[9]-steam[10]-lobby[11]-friendsoffriends[11]+connect_lobby[12]
Server
The following command-line parameters are available for Terraria's server application, TerrariaServer:
-config <file path>- Specifies a configuration file to use (see Server § Server config file).-port <number>- Specifies the port to listen on.-players <number> / -maxplayers <number>- Sets the max number of players.-pass <password> / -password <password>- Sets the server password.-motd <text>- Set the server motto of the day text.-world <file path>- Load a world and automatically start the server.-autocreate <number>- Creates a world if none is found in the path specified by -world. World size is specified by: 1(small), 2(medium), and 3(large).-banlist <file path>- Specifies the location of the banlist. Defaults to "banlist.txt" in the working directory.-worldname <world name>- Sets the name of the world when using -autocreate.-secure- Adds additional cheat protection to the server.-noupnp- Disables automatic universal plug and play.-steam- Enables Steam support.-lobby friends / -lobby private- Allows only friends to join the server or sets it to private if Steam is enabled.-ip <ip address>- Sets the IP address for the server to listen on-forcepriority <priority>- Sets the process priority for this task. If this is used the "priority" setting below will be ignored.-disableannouncementbox- Disables the text announcements Announcement Box makes when pulsed from wire.-announcementboxrange <number>- Sets the announcement box text messaging range in pixels, -1 for serverwide announcements.-seed <seed>- Specifies the world seed when using -autocreate
History
- Desktop 1.3.0.8: Added
-savedirectorylaunch parameter which can specify the Terraria save folder.
- Desktop 1.3.0.4:
- Dedicated servers can now be launched with
-forcepriorityto override server settings file's process priority. - Dedicated server can now use
-ipagain to set their local IP address.
- Dedicated servers can now be launched with
- Desktop-Release: Introduced.
References
- ↑ Information taken from the
Desktop 1.4.4.9 source code, method LaunchGame()inTerraria.Program.cs. - ↑ 2.0 2.1 2.2 2.3 Information taken from the
Desktop 1.4.4.9 source code, method SetupLogging()inTerraria.Program.cs. - ↑ 3.0 3.1 Information taken from the
Desktop 1.4.4.9 source code, method FindAnnouncementBoxStatus()inTerraria.Main.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method LoadDedConfig()inTerraria.Main.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method IsLocalHost()inTerraria.Net.SteamAddress.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method IsLocalHost()inTerraria.Net.WeGameAddress.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method StartListening()inTerraria.Net.Sockets.TcpSocket.Terraria.Net.Sockets.ISocket.cs. - ↑ 8.0 8.1 8.2 Information taken from the
Desktop 1.4.4.9 source code, method LoadClientParameters()inTerraria.Initializers.LaunchInitializer.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method Initialize()inTerraria.Social.SocialAPI.cs. - ↑ Information taken from the
Desktop 1.4.4.9 source code, method CheckParameters()inTerraria.Social.Steam.NetClientSocialModule.cs.