Dysterra

Dysterra

Not enough ratings
How to Create a Custom Server
By Dysterra
A guide to creating custom servers for Dysterra. Please follow the guide step by step.

**Some of the settings required throughout the guide may affect your PC security and functions.**
   
Award
Favorite
Favorited
Unfavorite
Setting up Port Forwarding for clients to access the server
This process is for the user who will run the custom server.
It is required when the PC that will run the custom server is using the private network under the router.
Configure port forwarding on the Internet router or switch so that external clients can connect to the PC running the custom server.
  • TCP Local Port 27010(Default): Port for Remote Console
  • UDP Local Port 27015(Default): Port for game client connection
Method 1: Installing & Running Custom Server from Steam
Search Dysterra Dedicated Server on Steam Library

Activate the “Tools” filter in the list box above the search bar, if it does not appear in the list

Install Dysterra Dedicated Server



How to run custom server on steam
- When Dysterra RC is started for the first time, it will display as above.



Server Tab
※ Please note that the App ID for Dysterra is 1527890
- This is the Client's App Id corresponding to the custom server. This is the value passed as an execution argument.

- This button opens the user manual document. It can also be a web page url.

- You can create or edit a world configuration file that is essential for running a custom server.
The server can be started only when the world configuration file exists.
For more information about the world setting file, please refer to the [World Setting File] below.

- Clicking the item information button brings up the item information window. You can check the required item ID in the world settings.

- You can set the login token. The server can be run even without a login token.
When you press the 'Copy' button, it copies the currently set token value to the clipboard.

When the ‘Copy’ button is pressed, the currently set token value is copied to the clipboard.

You can create a token or manage existing tokens by clicking the ‘Browse Steam Game Server Account Management Web Page’ button.
For more information on token generation, please refer to the [How to run as anonymous login] down below.

- This is the server-side setting for remote console access.
(If you want to connect using the remote console from outside, you must allow the above ports in the router's port forwarding settings.)

- This is the port used by the client to connect to the custom server.
(If you are using a router, you must allow the above ports in the port forwarding settings.)

- This checkbox controls whether automatic bans by Easy Anti-Cheat are enabled.

- Text indicating the server status and buttons to start and stop the server.
After running the server, it takes at least a few minutes before you can connect normally to the client.
The server stop button is activated when there is a running server process, and does not save the current state because it forcibly terminates the server process.

- Connects with the current server settings by running the remote console.



Console Tab
- This is a remote console function. (also called RC, RCon, etc.)

You can connect by entering the desired custom server address and port information.

- Alternatively, if you click the ‘Connect to Remote Console’ button in the ‘Server’ tab, you can connect immediately after automatically applying the current server settings (address, port, password).

After connecting, you can send commands to the server using the input box at the bottom.



Settings Tab
- You can change the language.

The default is 'Auto', and it detects the language set in Windows and automatically selects Korean or English.
You can also explicitly change the language by selecting ‘English’ or ‘Korean’.
However, when changing the language, Dysterra RC must be restarted.
Method 2: Installing & Running Custom Server with SteamCMD
On a server where the Steam app is not installed, you can download and run a custom server by using SteamCMD.

SteamCMD Installation
1) Create a folder dedicated to steam cmd
Example) C:\SteamCMD
2) Download the file
https://developer.valvesoftware.com/wiki/SteamCMD
3) Unzip to a dedicated folder and run SteamCMD

How to install Dysterra
Installation Path Setting (Option)
Set the installation path with the "force_install_dir" command

Login Anonymously
Use the "login anonymous" command to log in anonymously.

Installing Dysterra Dedicated Server
You can install it by entering the "app_update [2214780] validate" command.

Create world setting file
Go to Dysterra\WorldSettings\ under the folder where the custom server is installed.
Copy the Survival_Landscape_Template.json file and create a MyServer.json file.
For details on the world configuration file, refer to the World Settings Guide.

How to run with anonymous login
Move to the folder where the custom server is installed and create a batch file with the following contents.
For details on execution factors, refer to the [Custom server executor] below.

Close Steam first, and then run the above batch file.

How to run with login token
First, go to the Steam website and create a login token for the server.
Create a batch file in the following format and run it. (No need to quit Steam)

Others, How to run after copying files
In places where it is not easy to run the Steam app or SteamCMD, you can copy and run only the files of the custom server.

Go to the folder where the custom server is installed and copy the file. (Example: USB memory stick)
Copy the files to the PC that will run the server.

Create the same batch file as mentioned above in the appropriate folder and run it.
Connecting to the client
When the server is running, the server status is displayed in the console window as shown below.
Even if the log outputs, the actual server loading completion takes about 3 to 5 minutes.



Connecting to a custom server from a client
1) Steam login
2) Run Dysterra
3) Click “Custom server” in the lobby
4) You can check and connect to custom servers in the Custom server list on the right.
Others
How to generate a login token
Access the Steam Game Server website.
If you are not logged in, click the login button in the upper right corner to log in.
Enter the Steam App ID of the Dysterra client in the first column.
(Caution: Do not enter the Server App ID!)
The 2nd column is a description of the token, so enter an approximate name. Example) Dysterra Custom
Click the Create button to create a token.
Copy the generated token and use it as Dysterra RC or server execution factor.

Caution!) Login tokens are sensitive information and should never be disclosed to anyone.




Custom Server Commandline Options
Executor
Default
Description
-log
show log window
-customserver
Run as custom server (required)
-QueryPort
27015
Game connection port (inbound)
-rconip
127.0.0.1
IP for remote console
-rconport
27010
Port for remote console
-rconpasswd
Dysterra
Password for remote console
-worldsettings
"[Game installation folder]\Dysterra\WorldSettings\My Server.json"
World config file absolute path (required)
-GameServerLoginToken
Login token
-EACServer
Enable auto ban by EAC

Example)
DysterraServer.exe -log -customserver -QueryPort=27015 -rconip=127.0.0.1 -rconport=27010 -rconpasswd=Dysterra -EACServer -worldsettings=MyServer.json
Verifying and changing the server port when the game cannot be accessed
1) If other programs or other PCs are using port 27015, change the port.
Available ports: 27015 ~ 27030
2) Configure port forwarding on the Internet router or switch.
3) Apply the changed port number in Dysterra RC.
4) If Custom server does not appear in the game with the above method, check the firewall.



How to run multiple servers
1) When running multiple servers, you can use ports from 27015 ~ 27030. You can open both TCP and UDP. You can open one server per port.
2) If you set the game port number in Dysterra RC and click Start Server to start the server, the server start button will temporarily be disabled. After a while, if the button becomes active again, change the port number and press the server start button again.
3) If you click the Stop Server button, multiple servers will all shut down. Currently, there is no way to shut down a specific server in Dysterra RC, you have to use the task manager.



Admin Command
How to use:
You can use it in the form of:
command option ?uid=<steam user id>

  1. god [0/1] ?uid=xxxxxxxxxxxxxxx
    Makes the character invincible.
    Option: 0 or 1 (1 = invincible, 0 = normal)
    god 1 ?uid=xxxxxxxxxxxxxxx

  2. nocost [0/1] ?uid=xxxxxxxxxxxxxxx
    No cost for constructing buildings and crafting items.
    Option: 0 or 1
    nocost 1 ?uid=xxxxxxxxxxxxxxx

  3. getitem [item UID] [count] ?uid=xxxxxxxxxxxxxxx
    Get an item. Item UID can be checked in RC.
    getitem 100100005 10 ?uid=xxxxxxxxxxxxxxx

  4. time [timeOfDay]
    Changes the time in the game. Format: HH:MM:SS
    time 13:00:00

  5. finishworld [seconds]
    Sets the time remaining from the end of the world.
    finishworld 60

  6. setnotice [index] [frequency] [text]
    Specifies server announcements. (English only)
    index: 0-4
    frequency: repeat interval in seconds
    text: notice content
    setnotice 0 300 Test Notice

  7. ban [userUID] [seconds]
    Bans a user from the game and kicks them.
    ban xxxxxxxxxxxxxxxx 60

  8. setnametagtext [name] ?uid=xxxxxxxxxxxxxxx
    Change the name tag.
    setnametagtext SuperName ?uid=xxxxxxxxxxxxxxx

  9. toggleNameTag ?uid=xxxxxxxxxxxxxxx
    Toggle name tag on or off.
    toggleNameTag ?uid=xxxxxxxxxxxxxxx

  10. aae [exp] ?uid=xxxxxxxxxxxxxxx
    Acquire machine arm experience.
    aae 123456 ?uid=xxxxxxxxxxxxxxx

  11. ignoreenv [0/1] ?uid=xxxxxxxxxxxxxxx
    Ignore environmental effects.
    Option: 1 = ignore, 0 = accept
    ignoreenv 1 ?uid=xxxxxxxxxxxxxxx

  12. ignorehunger [0/1] ?uid=xxxxxxxxxxxxxxx
    Ignore hunger.
    Option: 1 = ignore, 0 = normal
    ignorehunger 1 ?uid=xxxxxxxxxxxxxxx

  13. togglefly ?uid=xxxxxxxxxxxxxxx
    Toggle fly mode. Disables flying and collision.
    togglefly ?uid=xxxxxxxxxxxxxxx

  14. takeinfinitymagazine ?uid=xxxxxxxxxxxxxxx
    Weapon does not lose ammo.
    takeinfinitymagazine ?uid=xxxxxxxxxxxxxxx

  15. resetdailyquest ?uid=xxxxxxxxxxxxxxx
    Resets daily quest progress.
    resetdailyquest ?uid=xxxxxxxxxxxxxxx

  16. clearallquest ?uid=xxxxxxxxxxxxxxx
    Clears all quests.
    clearallquest ?uid=xxxxxxxxxxxxxxx

  17. save
    Saves the game.
    save

  18. deleteuser ?uid=xxxxxxxxxxxxxxx
    Deletes a user from the server.
    deleteuser ?uid=xxxxxxxxxxxxxxx

  19. resetlandmark <landmark facility index>
    Restores the landmark facility to its default state.
    [Landmark facility indices]
    0: Chemochamber
    1: Geolab
    2: Meteocenter
    3: Satellite station
    4: Delta Plant
    resetlandmark 1




How to work when you can't connect to a custom server
This is a workaround for those who run a dedicated server on the same computer/network as the game client. Please, use it only if other players already can see and join your server but you can't.

1. Installing Microsoft Loopback Adapter
2. Open Control Panel > Device Manager and select Network Adapters
3. Select menu Action > Add legacy hardware > Next
4. Select Install the hardware that I manually select from a list (Advanced) > Next
5. Select Network Adapters in the list > Next
6. Select Microsoft in Manufacturer list
7. Select Microsoft KM-TEST Loopback Adapter in Model list > Next > Next > Finish
8. Close Device Manager window
9. Open Control Panel > Network and Internet > Network Connections
10. You should see a new connection that uses Microsoft Loopback Adapter but cannot establish connection. Right click on that connection and select Properties
11. Double click Internet Protocol Version 4 (TCP/IPv4)
12. Select Use the following IP address

NOTE: If it was already selected and you see some IPs entered then you opened a wrong connection. Get out of here by clicking Cancel in both windows. Enter in IP address field your external IP address (you can see it here for example https://www.myip.com/)

13. You can leave default Subnet mask
14. Click OK buttons in opened windows to save settings

5 Comments
AlfaOmega 27 Jul, 2024 @ 10:58pm 
Hi, we have a problem with our dedicated server. We have everything set as it should be, the public IP is there, the ports are enabled, but still the server does not appear in the server menu. We have it running on the server PC, where there are other game servers, so there won't be a problem.
USMCMP 4 Jun, 2024 @ 7:03pm 
It truly blows my mind when people make absolute bare minimum documentation, using their own vernacular, and fail to even attempt to give a best-effort attempt to make it human readable by people who aren't familiar with the way their paradigms perform.

A fine example is the information provided here, but also within the documentation linked in regard to the 'world settings'.

Example:
Example of Bad:
Name of Setting Description of Setting
World_Lifetime World Lifetime

How are these helpful?

"World_Lifetime" is "World Lifetime" that's insane...

Especially since the number that goes there makes NO immediate sense.
"World_Lifetime": 14515200,

I still have no idea what most of these mean.
A better description would be:
World_Lifetime: The number of hours the world way be in existence. This refers to game-world hours, not real world hours. You will see in game, this transposed to "Days".
Joew 4 Jun, 2024 @ 5:25pm 
U missed:

World Setting File:
:::::::::::::::::::::::::::::

The path of the World Setting File is as follows:
[Custom Server Installation Path]\Dysterra\WorldSettings\Myserver.json

If the file does not exist, you can create it by copying the Survival_Landscape_Template.json file in the same folder. (In Dysterra RC, it is possible with one click of a button)
The file is in JSON format and can be edited with Notepad, etc.

https://i.ibb.co/WF6CdZj/dysterra-2803567968-preview-My-Server.png

---------------------------------------------------------------------------------------------------------

World Setting File Property Description:
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

https://i.ibb.co/MCxCdM8/dysterra-2-2803567968-preview-2657692765-preview-World-Setting-3.png

;)
Reality MagiQ, Inc.  [developer] 29 May, 2024 @ 8:12pm 
The admin commands are used in the Console tab on the Dysterra RC app, as shown above.
AlfaOmega 29 Aug, 2023 @ 1:19am 
Hi, how use Admin commands? In console ingame or?