Windows installations of Terraria include its server software. For running on a Linux distribution, you must download the server files. See the Downloads section. A server can also be used for standalone single-player gameplay. This offers the ability to adjust the in-game time at will. The server runs on TCP port by default. If you are behind NAT e. The default max players is 8 16 as of 1. Non-NAT connections e. A server can be joined by selecting the Multiplayer option on the main menu, selecting a character, and then entering the server's IP and port.
Often different servers have different requirements for a player to join. Some servers will require the player to have a Softcore or Mediumcore player to play, and some may require that players be at a certain level of the game before joining.
Often these rules will disallow mods and hacks, impersonation, and the like. Some servers may also have the capability to allow a player to play online with their singleplayer character without losing their singleplayer inventory. First we will install the tools we need to run the server. These are likely preinstalled on your distribution. Tmux is a modern version of screen that allows multiple virtual terminal instances. We will use it to launch the server in the background.
If you are using an operating system Such as Raspberry Pi OS previously called Raspbian or FreeBSD that does not come with a prebuilt executable, you could use mono to start the server.
This could be useful if you want to host a server on a device such as a Raspberry Pi , or any device that does not run on the x86 architecture. NOTE: If you are using a non-x86 Linux-based operating system Such as Raspberry Pi OS , the first few instructions should be the same as the one found here , up until the chmod command.
You would need to install mono and and any other required libraries such as sqlite or screen if it does not come preinstalled on your system. If you encounter an error saying "Your mono runtime and class libraries are out of sync. The vanilla Terraria server software is included with the regular Terraria package see above , but can also be downloaded:.
Dedicated Server GUI is a third-party add-on for the vanilla server that offers graphical controls the server is normally a command-line program :. Tshock and TDSM are third-party server packages that offer additional functionality, such as in-game commands, whitelists, player passwords, and a plugin interface for added features such as factions :.
For a list of Tshock commands, refer to the TShock readme. It is possible to start the dedicated server using a configuration file that enters the above parameters automatically. The config file must be called using the -config parameter.
The file can have any name, but must be in the same folder as TerrariaServer. If a server config file is defined and the file is not located during the server boot, then the server will ask the user to input the parameters as it would if run without a defined config file.
Comment lines can be included using the hash symbol. Once you have it installed, right click the file that was downloaded and press extract all, when prompted for a location, just leave the default and press OK. To install NSSM, go to this link and click on the link under latest release. Save this file to your downloads folder. You can replcae the 2. After that, go back to where you downloaded the zip file, right-click it and press extract all, then extract the contents to the new folder you just created.
If you have not already done so, start up Terraria, and then click Multiplayer. Click Host and Play , then follow the steps to create a new world. Once that is complete, you can exit Terraria. Terraria saves all the worlds in the default location on Windows You should see a folder labeled Worlds, and if you click into it, it should contain the newly created Terraria world, labeled myWorld. Go up one directory back into the Terraria folder. Copy and paste the extracted TShock folder into this location, then create a new folder called Servers.
Your directory should look similar to this:. Navigate into the Servers folder that you just created. Create a new file called myServerName. Open the file and copy and paste the following contents into the file. Replace the server password with whatever you want your password to be, make sure there are no spaces in the password. Also, replace the world path, with the actual path to your world.
You can get this by holding Shift and right-clicking your world file, then clicking copy as path. Then press Ctrl-V in your text file to paste the path into place.
Lastly, you can replace maxplayers with the maximum amount of players you want allowed. You can also set up more server configuration stuff if you want, the details about how to do so can be found here. This next step will create the batch script, which will automatically start your server.
Create a new file in your Servers folder called myServer. Then right-click the file, click edit, and copy and paste the following into it:. Make sure the first file path is where goes to where you installed your TShock folder, and the second path goes to the server startup file we made in step 2. To test and make sure that it works properly, if you double click the myServer. To exit this command prompt, just type exit into it and press enter. It will save your world and exit. First go the folder where you installed nssm.
Click into the win64 folder and then press shift and right-click the empty directory and click Open Powershell Window Here. This should open a new Powershell Window in the directory.
Make sure it looks like this picture, where the top line says the directory that nssm is located in:. You will see 3 text boxes with labels and buttons to the right of them. For the Path label, hit the button to the right of the textbox, then look for the myServer. Click the file then press open.
0コメント