-
-
Notifications
You must be signed in to change notification settings - Fork 382
Installation Instructions
Hello! Thanks for choosing TShock.
If you have any problems with this installation, post an issue on our Forums and if you encounter an unusual error that looks like a bug please post it on our Issue Tracker. You can also email your issue to shank [at] shankshock [dot] com.
- Download the latest package of TShock from the TShock Downloads.
- Download the TShock API.
- Extract all files from both archives into the same folder. In this example, we'll use C:\TShock.
- Copy an existing version of TerrariaServer.exe (1.0.5) into C:\TShock.
- In C:\TShock, run TerrariaServerPatcher.exe as an Administrator (Right click -> Select "Run as Administrator")
- Note: a "TerrariaServer hash not found" error can be solved by retrieving a fresh TerrariaServer.exe from Step #4.
- If you don't have a working copy of TerrariaServer.exe, download it here.
- Wait until the program reports "Success", then close the program.
- Run TerrariaServerAPI.exe.
- Select the world you want to use or create a new one.
- After selecting your world, you will be asked for input on 3 settings: Max players, Server port, and Server password.
- You may hit your ENTER key at each input to select the default setting in parenthesis ().
- Default settings are: Max players (8), Server port (7777), and Server password (none).
- Once the server starts the console window will have the following message: To become superadmin, join the game and type /auth [authcode]
- Run Terraria.exe, join your server, and enter: /auth [authcode]. This will give you the ability to create a user account on the server, giving you access to all commands.
- Note: In order to join your own server, you can enter: localhost or 127.0.0.1 (which are the same thing - assuming the server is being run on the same machine that you run Terraria), or you can use your own External IP address, which can be found simply by going to a website such as WhatIsMyIP.com.
- Next, enter: /user add [username]:[password] superadmin
- Example: /user add john:qwerty superadmin
- Remember to include the colon ":" between the username and password.
- Log in with the superadmin user you just created by entering: /login [username] [password] (without a colon)
- Example: /login john qwerty
- Finally, to remove the "auth" message on server startup, enter: /auth-verify
To add a new user or admin, enter the following: /user add [username]:[password] [group]
- Example #1 (Add a VIP user): /user add sarah:connor vip
- Example #2 (Add another Admin): /user add sarah:connor newadmin
Alternatively, if the user you wish to add has already registered (using /register [username] [password]) you may also edit that user's Usergroup in the C:\TShock\tshock\tshock.sqlite file (Users.Usergroup - see below). Users who have their access added or changed need only re-join the server for their permissions to take effect.
Your server should now be successfully running TShock. Here are a few things you may like to do:
- Familiarize yourself with the Commands & Permissions.
- Configure whatever options you choose in the C:\TShock\tshock\config.json file.
- Note: you can open the config.json file with Notepad, or its superior, Notepad++
- Make your server noticeable! With your External IP address (WhatIsMyIP.com), you can sign up to have your server listed on TerrariaNet, and you can have your own sub-forum (moderated by you) with TerrariaZone.
- Get yourself acquainted with TShock's data storage within the C:\TShock\tshock\tshock.sqlite file. All users, regions, permissions, and other data is kept here. SQLite Manager for Firefox works well for this purpose.
- Open Firefox, go to the Web Development Menu, and open SQLite Manager.
- In the menu at the top, select Database -> Connect Database
- Browse to C:\TShock\tshock and open tshock.sqlite. You may now click on Tables in the left panel, and double click on a database record in the Browse & Search tab to edit it. WARNING: Edit data with caution! Making mistakes inside this file can easily result in a corrupted database, which will prevent your server from functioning properly. Edit data at your own risk! It is highly recommended to make frequent backups of this file!
- Convert your External IP into a DNS: Using a free service like No-IP.com, you can change your external IP address into a readable DNS name. In other words, instead of forcing your users to connect with 192.9.9.250, they can use "yourserver.no-ip.com".
- Protip: Because most user's IPs will likely change once in a while, at some point your players will be unable to connect to you, and you may not even notice. You can download No-IP's Dynamic DNS Client to keep your IP in sync with the DNS name you make with them.