Command-line parameters

From Terraria Wiki
Jump to navigation Jump to search
Desktop version
Desktop-Only Content: This information applies only to the Desktop version of Terraria.
Stub.png This article is a stub. You can help the Terraria Wiki by expanding it.

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:

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

References

  1. Information taken from the Desktop version Desktop 1.4.4.9 source code, method LaunchGame() in Terraria.Program.cs.
  2. 2.0 2.1 2.2 2.3 Information taken from the Desktop version Desktop 1.4.4.9 source code, method SetupLogging() in Terraria.Program.cs.
  3. 3.0 3.1 Information taken from the Desktop version Desktop 1.4.4.9 source code, method FindAnnouncementBoxStatus() in Terraria.Main.cs.
  4. Information taken from the Desktop version Desktop 1.4.4.9 source code, method LoadDedConfig() in Terraria.Main.cs.
  5. Information taken from the Desktop version Desktop 1.4.4.9 source code, method IsLocalHost() in Terraria.Net.SteamAddress.cs.
  6. Information taken from the Desktop version Desktop 1.4.4.9 source code, method IsLocalHost() in Terraria.Net.WeGameAddress.cs.
  7. Information taken from the Desktop version Desktop 1.4.4.9 source code, method StartListening() in Terraria.Net.Sockets.TcpSocket.Terraria.Net.Sockets.ISocket.cs.
  8. 8.0 8.1 8.2 Information taken from the Desktop version Desktop 1.4.4.9 source code, method LoadClientParameters() in Terraria.Initializers.LaunchInitializer.cs.
  9. 9.0 9.1 Information taken from the Desktop version Desktop 1.4.4.9 source code, method LoadSharedParameters() in Terraria.Initializers.LaunchInitializer.cs.
  10. Information taken from the Desktop version Desktop 1.4.4.9 source code, method Initialize() in Terraria.Social.SocialAPI.cs.
  11. 11.0 11.1 Information taken from the Desktop version Desktop 1.4.4.9 source code, methods Initialize() in Terraria.Social.WeGame.NetServerSocialModule.cs and Initialize() in Terraria.Social.Steam.NetServerSocialModule.cs.
  12. Information taken from the Desktop version Desktop 1.4.4.9 source code, method CheckParameters() in Terraria.Social.Steam.NetClientSocialModule.cs.