Difference between revisions of "Running a server"

From Sven Co-op
Jump to navigation Jump to search
(→‎Choosing a server package: Steam tool install URL.)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
This section will guide you through the basic installation of Sven Co-op's dedicated server application.
+
This section will guide you through the basic installation of Sven Co-op's game server.
 +
 
 +
== Starting up a game quickly for your friends ==
 +
 
 +
If you're looking to begin a game to play with your friends as quickly as possible you should use the game's built-in "listen server", which is launched by using the '''Create Game''' option in the main menu.
 +
 
 +
You can find a more detailed explanation of this, and how it works, at this [https://steamcommunity.com/sharedfiles/filedetails/?id=1705149010 Guide on Steam Community: Creating a game for your friends without ANY port forwarding or firewall configuration at all].
 +
 
 +
(The rest of this article will not be for you.)
 +
 
 +
== Types of game server ==
 +
 
 +
There are two types of servers for Sven Co-op: '''Listen''' and '''Dedicated'''. Both do almost the same job but with some slight differences.
 +
 
 +
=== Listen server ===
 +
 
 +
This type of server is launched via the Sven Co-op game main menu, using '''Create Game'''. It's available immediately with Sven Co-op via Steam with no further installation necessary, excluding 3rd party extra content.
 +
 
 +
These games are hosted by a particular player's computer, the same computer used to play. While the listen server is running the hosting player will be present in game. Therefore it's not possible to have a listen server with no players in it.
 +
 
 +
Because a listen server is fully dependent on the host player's game running, if the host player leaves their game, it crashes, or loses connectivity, then the server also closes down for everyone else that was playing on it.
 +
 
 +
Listen servers are best used for temporary games usually for either:
 +
 
 +
* Content creators to test their creations themselves.
 +
* Groups of friends (or known people) to quickly get in a game without the hassle of setting up a dedicated server or firewall/router settings. (See "Starting up a game quickly for your friends" above.)
 +
* Playing alone. :(
 +
 
 +
=== Dedicated server ===
 +
 
 +
This type of server is launched completely separate from the Sven Co-op game. It comes as its own independent application, either via Steam as a tool, or fully stand alone via the [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD] tool.
 +
 
 +
These games can be hosted on almost any computer anywhere often without the need for Steam to be installed at all, and even without the need for any graphical system interface. It can either be run as a regular interactive application (both with a graphical interface or command/terminal "console" interface), or as an unattended service application (or [https://en.wikipedia.org/wiki/Daemon_(computing) Daemon]) without any interactive interface at all. Because of this the system specifications required to run a dedicated server are a bit less than a listen server, as it can be done so with no graphics processor at all.
 +
 
 +
Dedicated servers are best used for either temporary or permanent games for a range of reasons:
 +
 
 +
* Allowing the game to continue even if the person hosting it needs to leave the game.
 +
* Hosting a game from a computer at a data centre or server specific computer, be it on premises or anywhere else in the world.
 +
* Hosting a game for public use, such as for building a long term community among larger groups.
  
 
== Choosing a server package ==
 
== Choosing a server package ==
Line 10: Line 48:
 
! Steam tool !! Standalone application
 
! Steam tool !! Standalone application
 
|-
 
|-
|colspan="2"|Distribution
+
!colspan="2"|Distribution
 
|-
 
|-
 
|
 
|
* Install through Steam.
+
* Install through [steam://install/276060 Steam].
 
* Appears as a tool in your Steam account's library.
 
* Appears as a tool in your Steam account's library.
 
* Ideal for temporary/observed servers.
 
* Ideal for temporary/observed servers.
Line 21: Line 59:
 
* Ideal for permanent/unattended servers.
 
* Ideal for permanent/unattended servers.
 
|-
 
|-
|colspan="2"|Benefits
+
!colspan="2"|Benefits
 
|-
 
|-
 
|
 
|
Line 36: Line 74:
 
* Can run multiple servers with a single set of application files.
 
* Can run multiple servers with a single set of application files.
 
|-
 
|-
|colspan="2"|Drawbacks
+
!colspan="2"|Drawbacks
 
|-
 
|-
 
|
 
|
Line 52: Line 90:
 
|}
 
|}
  
== Installation ==
+
== Further reading ==
 
 
=== Steam tool ===
 
 
 
Our dedicated server package in Steam will allow you to effortlessly install a server attached to your Steam account. It's quick, easy, and should be up and running as fast as you can download it. This is an ideal approach for temporary / part-time servers. You will require Sven Co-op to exist within your account first. (Doesn't have to be installed, but must be "purchased" so to speak.)
 
 
 
Instructions are as follows:
 
 
 
# Launch Steam and log in.
 
# In the main Steam screen hover over '''Library''' and click '''Tools'''.
 
# Scroll down the list of available tools until you see '''Sven Co-op Dedicated Server'''.
 
# Double-click the package to install it.
 
# Follow the on-screen installation.
 
 
 
That is it. You should now have the dedicated server tool ready to launch. Double-click the tool in the library and select '''Play Sven Co-op Dedicated Server''' to launch a server with a graphical interface.
 
 
 
=== Standalone application ===
 
 
 
Our dedicated server package is also available as a standalone package available via the [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD] tool. Though it requires further knowledge to install and use you will benefit from a server that doesn't depend on your Steam client, can be run as a console application, and even be run as an unattended system service. Permanent / full-time servers should opt for this approach. You will also NOT require an existing Sven Co-op installation to continue.
 
 
 
Warning: Do not use this method of installation if you are unfamiliar with some basic server administration concepts such as using a command prompt or terminal environment, and reading/writing configuration files.
 
  
Instructions are as follows:
+
{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}}
  
# Open a command prompt or terminal environment on your system.
+
== Updates ==
# Download and install [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD].
 
# Download our dedicated server package with the following command:
 
#* On Windows:<br>  steamcmd +login anonymous +force_install_dir "C:\SvenDS" +app_update 276060 validate +exit
 
#* On Linux:<br>  steamcmd +login anonymous +force_install_dir "~/SvenDS" +app_update 276060 validate +exit`
 
#* Replace the path "'''C:\SvenDS'''" or "'''~/SvenDS'''" with a location to your preference.
 
# Wait for the package to download and validate.
 
  
Once it has finished you can use the '''SvenDS.exe''' or '''svends_run''' executable to launch a server. Launching without any arguments will start it with a graphical interface (Windows only), or if you specify the `-console` argument it will start with a console interface.
+
If you would like to be notified when server updates are released you can [https://www.svencoop.com/mailman/listinfo/svends_announce_svencoop.com subscribe to our SvenDS announce mailing list].
  
The same command is used to update the server application too, however be sure you have no server instances running or the update will fail.
+
[[Category:Server]]

Latest revision as of 01:12, 4 February 2022

This section will guide you through the basic installation of Sven Co-op's game server.

1 Starting up a game quickly for your friends

If you're looking to begin a game to play with your friends as quickly as possible you should use the game's built-in "listen server", which is launched by using the Create Game option in the main menu.

You can find a more detailed explanation of this, and how it works, at this Guide on Steam Community: Creating a game for your friends without ANY port forwarding or firewall configuration at all.

(The rest of this article will not be for you.)

2 Types of game server

There are two types of servers for Sven Co-op: Listen and Dedicated. Both do almost the same job but with some slight differences.

2.1 Listen server

This type of server is launched via the Sven Co-op game main menu, using Create Game. It's available immediately with Sven Co-op via Steam with no further installation necessary, excluding 3rd party extra content.

These games are hosted by a particular player's computer, the same computer used to play. While the listen server is running the hosting player will be present in game. Therefore it's not possible to have a listen server with no players in it.

Because a listen server is fully dependent on the host player's game running, if the host player leaves their game, it crashes, or loses connectivity, then the server also closes down for everyone else that was playing on it.

Listen servers are best used for temporary games usually for either:

  • Content creators to test their creations themselves.
  • Groups of friends (or known people) to quickly get in a game without the hassle of setting up a dedicated server or firewall/router settings. (See "Starting up a game quickly for your friends" above.)
  • Playing alone. :(

2.2 Dedicated server

This type of server is launched completely separate from the Sven Co-op game. It comes as its own independent application, either via Steam as a tool, or fully stand alone via the SteamCMD tool.

These games can be hosted on almost any computer anywhere often without the need for Steam to be installed at all, and even without the need for any graphical system interface. It can either be run as a regular interactive application (both with a graphical interface or command/terminal "console" interface), or as an unattended service application (or Daemon) without any interactive interface at all. Because of this the system specifications required to run a dedicated server are a bit less than a listen server, as it can be done so with no graphics processor at all.

Dedicated servers are best used for either temporary or permanent games for a range of reasons:

  • Allowing the game to continue even if the person hosting it needs to leave the game.
  • Hosting a game from a computer at a data centre or server specific computer, be it on premises or anywhere else in the world.
  • Hosting a game for public use, such as for building a long term community among larger groups.

3 Choosing a server package

Our dedicated server package comes in two variants both with different benefits. One is distributed to you through your Steam client (the same application you use to launch games in Steam) as a tool, and the other is distributed through Steam's console client (SteamCMD) as a standalone application.

Here are the basic differences and benefits of them both:

Steam tool Standalone application
Distribution
  • Install through Steam.
  • Appears as a tool in your Steam account's library.
  • Ideal for temporary/observed servers.
  • Install through SteamCMD.
  • Downloads as a standalone application.
  • Ideal for permanent/unattended servers.
Benefits
  • Installation is fast and easy.
  • Start a server quickly through Steam.
  • Easy graphical interface to set options, see statistics, players, and manage bans.
  • Server will automatically update like with any other Steam package.
  • No Steam account required, though recommended.
  • No Steam client installation required.
  • Can play on your server at the same time.
  • Can be launched in graphical and console modes.
  • Can be launched as a regular application or system service.
  • Can run multiple servers with a single set of application files.
Drawbacks
  • Requires a Steam account.
  • Requires the Steam client to be running.
  • Can't play the game at the same time.
  • Can't be launched in console mode.
  • Can't be launched as a system service.
  • Can't run multiple servers.
  • Installation requires knowledge of a command line / terminal environment.
  • Starting a server requires a custom shortcut or command.
  • More complicated console/command interface to manage the server.
  • Updates must be downloaded manually or through a defined schedule.

4 Further reading

5 Updates

If you would like to be notified when server updates are released you can subscribe to our SvenDS announce mailing list.