1, service preparation-get token
If you want to build an independent server that is open to the public, you must obtain a server token. The purpose of this is to enable developers to shut down servers that violate the terms of service.
Follow these steps to obtain a token:
Note: All symbols and punctuation marks are entered in half-angle mode.
Can't run together.
Click play! .
Press ~ (number key 1 key on the left) to open the console and enter instructions, then press again to close the console. If any console text message appears on the screen, press CTRL+L to close it.
The following figure shows that the server_token.txt file has been generated under documents \ klei \ donotstartvetogether.
2. Service Construction Preparation-Modify Configuration File
(1) configuration file path
As shown in the figure below, settings.ini is located in the path of c: \ users \ your user name \ documents \ klei \ donotstartvetogether.
(2) Note: Since DST does not support Unicode, please fill in all the following contents in English.
If the following contents are not included in settings.ini, you can add them yourself or not, and you are responsible for any problems with the server.
Network configuration
Default_server_name = Fill in the server name here.
Default_server_description = Describe your server (optional).
Server_port = 10999, the communication port of the server, it is best not to change, and people who are familiar with port mapping and network types can change it themselves.
Server_password = Fill in the server password here, or leave it blank if it is open to the public.
Max_players =[ 1-64] The maximum number of players is 1 to 64, which should be filled in according to the computer performance and network load capacity. The default value is 6.
Pvp = true [true | false] Whether to turn on Pvp (players can attack each other).
Game _ mode =[ Endless, Survival, Wilderness] Choose one of the three game modes.
Override _ dns =[ fill in DNS server] Override DNS settings, and change it to 8.8.8.8 if the login is slow, 8.8.8.
Enable_vote_kick = [true | false] Whether to allow voting to kick people, the default is true.
Enable_snapshots = [true | false] Whether to allow the server to return to the previous state (equivalent to file back, which can be used to prevent Xiong Haizi from burning out), the developer claims that this function will cause problems for some servers, and the default value is false.
Enable_autosaver = [true | false] Whether to turn on the automatic saving function is enabled by default, and the server will automatically save when a new day starts.
Tick _ rate = [10 |15 | 30 | 60] is similar to FPS. The higher this value, the smoother the action of the client, depending on the network bandwidth and CPU of the server. The default value is 30.
Connection _ time out =[ fill in the number of milliseconds, 1 sec = 1000 milliseconds], and the waiting time of interrupted and unresponsive clients is 8000 by default.
Server_save_slot = [1-5] Which archive file was loaded by the server? The default value is 1.
Pause_when_empty = [true | false] Whether to pause automatically when the server is idle, and continue when a player enters, preferably with a password, the default is false.
[account] account configuration
Dedicated _ LAN _ server = false [true | false] Whether only LAN games are allowed to be turned off by default.
3.ADSL dial-up Internet access
There are routers (there are too many kinds of routers on the market, and the methods are similar, so we don't describe a certain type of router separately. ): enter the router settings page, find the port mapping function, and add the port to be mapped: UDP is selected as the protocol, and the port number is 10999.
No router: open the control panel-> System and security->; Windows firewall->; Advanced settings-> Right-click the inbound rule to create a new rule-> Check the port->; Check UDP, specific local port: fill in 10999.
4. Start the server-test whether the server runs successfully.
Follow these steps to open the server:
Open DST dedicated server.
Stay together or not.
Click play! Wait a minute.
Server Type Server Type Filter Select a dedicated server.
If your own server appears in the list on the right and the dedicated server is displayed, it means that the server is running successfully (and other players are invited to test whether they can enter your own server).
(1) Start the server LAN server.
The LAN server can only use the specified range of ports 10998 to 1 10 18.
Adding dedicated_lan_server = true under [account] in the configuration file settings.ini can be found by other terminals in the local area network.
(2) Start the server-run multiple servers.
First, make sure that the computer hardware and network bandwidth are enough to run multiple servers at the same time.
To create a new server path, enter -conf _ dir.
5. Server Management-Console Description
Follow these steps to get administrator rights: The user who generated the token will automatically get administrator rights.
Users with administrator rights can kick other users out of the server or block other users, and can also execute LUA scripts.
If you want to grant administrator rights to other users, you need to create a new txt file named adminlist under documents \ klei \ donotstarvotegether \ save \.
When the server is shut down, add a user ID (in the format of ku _ * * *) to the newly created adminlist file. Only one user ID can be filled in each line. Close the file after saving, and the added user will have administrator rights after opening the server.
Configuration requirements for building a server:
(1) It is required not to stay together in the steam account. You can use DST to establish several dedicated servers.
(2) Independent servers don't use the route penetration technology of establishing servers in DST games, and servers must open appropriate ports for game clients. The default communication mode of the server is UDP protocol, and the port number is 10999.
(3) To establish a stable independent server, we must ensure that the system meets the following requirements:
Network upload speed: 8KB/ player/second. If the maximum number of independent servers is 6, the network upload speed must be above 50KB/ s, so that 6 players can play games at the same time. Of course, the larger the network upload bandwidth, the better. Poor network communication will cause players connected to independent servers to get stuck in action and screen.
Memory: about 65MB/player. If the maximum number of independent servers is 6, the available memory size must reach more than 500MB, so that 6 players can play games at the same time.
CPU: official website didn't explain.
Game runtime: VCRedist_2008(x86), located in the root folder of DST games, right-click DST->; Attribute-> Local file-> Browse local files