DedicatedServer: Difference between revisions
No edit summary |
Mike Thurian (talk | contribs) →Setup: added information how to go back from beta to public builds |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
Open a Command Window (cmd.exe) and navigate to your steamcmd folder. Run steamcmd.exe | Open a Command Window (cmd.exe) and navigate to your steamcmd folder. Run steamcmd.exe | ||
<blockquote><code>steamcmd.exe</code></blockquote> | <blockquote><code>steamcmd.exe</code></blockquote> | ||
Set the install directory for the Onset server files.<br> | |||
<blockquote><code>force_install_dir <Your Path to the Serverfiles.> | Example: C:/OnsetServer/</code></blockquote> | |||
Login to steam as anonymous<br> | Login to steam as anonymous<br> | ||
<blockquote><code>login anonymous</code></blockquote> | <blockquote><code>login anonymous</code></blockquote> | ||
Download the server application.<br> | Download the server application.<br> | ||
<blockquote><code>app_update 1204170 validate</code></blockquote> | <blockquote><code>app_update 1204170 validate</code></blockquote> | ||
<blockquote><code>[IMPORTANT] if you have a new beta version but want to go back to the last public build you have to reinstall SteamCMD!</code></blockquote> | |||
Exit SteamCMD<br> | Exit SteamCMD<br> | ||
Line 38: | Line 40: | ||
As root install the following package.<br> | As root install the following package.<br> | ||
<blockquote><code>apt-get install lib32gcc1</code></blockquote> | <blockquote><code>apt-get install lib32gcc1</code></blockquote> | ||
Ubuntu 20.04 | |||
<blockquote><code>apt-get install lib32gcc-s1</code></blockquote> | |||
* Make sure you run the server on a user without superuser rights. We recommend to add a new user for this step. | * Make sure you run the server on a user without superuser rights. We recommend to add a new user for this step. | ||
Line 49: | Line 53: | ||
Start SteamCMD<br> | Start SteamCMD<br> | ||
<blockquote><code>./steamcmd.sh</code></blockquote> | <blockquote><code>./steamcmd.sh</code></blockquote> | ||
Set the install directory for the Onset server files.<br> | |||
<blockquote><code>force_install_dir ./OnsetServer/</code></blockquote> | |||
Login to steam as anonymous<br> | Login to steam as anonymous<br> | ||
<blockquote><code>login anonymous</code></blockquote> | <blockquote><code>login anonymous</code></blockquote> | ||
Download the server application.<br> | Download the server application.<br> | ||
Line 93: | Line 97: | ||
Ports can be changed in the [[server_config]]. | Ports can be changed in the [[server_config]]. | ||
==Hostname customization== | |||
You can use bbcodes and UTF8 icons in your hostnames. | |||
* [b] - Bold | |||
* [g] - Glow | |||
* [c=name] - Colors like "red, yellow, green, blueviolet". Color codes also supported. Full list of colors: https://www.w3.org/wiki/CSS/Properties/color/keywords | |||
* [c=code] - Example [c=#00ff00] | |||
* [u] - underline | |||
* [i] - italic | |||
Example hostname: | |||
<pre> | |||
[g]🌴 [c=#00ff00]T alos Onset[/c] [c=red]Test[/c] [c=yellow]Server[/c] 🗽 [b]LIT AF[/b] 🚬🔥 [i]бабушка[/i] 🔫 + 💊 = 🚨 [u][b]NOICE[/b][/u] OK come on in 👀[/g] | |||
</pre> | |||
==Master server & server query== | |||
https://developer.valvesoftware.com/wiki/Server_queries | |||
Steam Master Server: '''hl2master.steampowered.com:27011''' | |||
Query for appid 1105810 to get Onset servers. |
Latest revision as of 12:32, 31 December 2023
If you would like to run the Onset Server with Docker check out the OnsetDocker guide.
Windows Server
Minimum requirements
- Development: Windows 10
- Production: Windows Server 2012 or later
- Single core processor with SSE2 instructions
- 50 MB disk space and 100 MB RAM
Setup
Download steamcmd as described on this page: https://developer.valvesoftware.com/wiki/SteamCMD#Windows
Open a Command Window (cmd.exe) and navigate to your steamcmd folder. Run steamcmd.exe
steamcmd.exe
Set the install directory for the Onset server files.
force_install_dir <Your Path to the Serverfiles.> | Example: C:/OnsetServer/
Login to steam as anonymous
login anonymous
Download the server application.
app_update 1204170 validate
[IMPORTANT] if you have a new beta version but want to go back to the last public build you have to reinstall SteamCMD!
Exit SteamCMD
quit
Linux Server
We recommend Linux for production servers.
Minimum requirements
- Ubuntu 18.04, Debian 10 (with openssl installed)
- Single core processor with SSE2 instructions
- 50 MB disk space and 100 MB RAM
- Packages: curl, nano, openssl
Setup
As root install the following package.
apt-get install lib32gcc1
Ubuntu 20.04
apt-get install lib32gcc-s1
- Make sure you run the server on a user without superuser rights. We recommend to add a new user for this step.
Create a new directory for the Onset server.
mkdir Steam
Install SteamCMD
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
Start SteamCMD
./steamcmd.sh
Set the install directory for the Onset server files.
force_install_dir ./OnsetServer/
Login to steam as anonymous
login anonymous
Download the server application.
app_update 1204170 validate
Exit SteamCMD
quit
Configuration
cd OnsetServer
- Edit the server_config.json file nano server_config.json. Info on the config file: server_config.
nano server_config.json
- Once you are done with editing press CTRL+X and then Y to save the config file.
- Run ./start_linux.sh to start your server. The shell file sets the environment path so the server finds the required SteamAPI files.
Gamemode Packages
Packages make up all of your server. Please see this wiki entry (packages) on how to get started with them.
Game Compatibility Version Number
The parameter "--version" displays server version information. The compatibility number determines what clients can connect. Game and server must have the same compatibility number for the connection to succeed. The version number does not matter in this case.
Command line arguments
The parameter "--help" displays available command line options.
Network Ports
The dedicated server requires 3 network ports to be open.
- UDP 7777 - Game
- UDP 7776 - Server query
- TCP 7775 - HTTP server, file downloads
Ports can be changed in the server_config.
Hostname customization
You can use bbcodes and UTF8 icons in your hostnames.
- [b] - Bold
- [g] - Glow
- [c=name] - Colors like "red, yellow, green, blueviolet". Color codes also supported. Full list of colors: https://www.w3.org/wiki/CSS/Properties/color/keywords
- [c=code] - Example [c=#00ff00]
- [u] - underline
- [i] - italic
Example hostname:
[g]🌴 [c=#00ff00]T alos Onset[/c] [c=red]Test[/c] [c=yellow]Server[/c] 🗽 [b]LIT AF[/b] 🚬🔥 [i]бабушка[/i] 🔫 + 💊 = 🚨 [u][b]NOICE[/b][/u] OK come on in 👀[/g]
Master server & server query
https://developer.valvesoftware.com/wiki/Server_queries
Steam Master Server: hl2master.steampowered.com:27011 Query for appid 1105810 to get Onset servers.