Difference between revisions of "User:Gdude2002/Starting a Server"

From wiki
Jump to: navigation, search
(Initial page, still got lots to do)
 
(Blanked the page)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
The following explains how to start a server and connect to it. Currently, there is no way to start a multiplayer server in-game, nor is there a way to limit a server to just Steam friends.
 
  
The developers have stated that they're looking into Steam for multiplayer networking - but this may be some time coming, as they have a very long list of things to do!
 
 
For reference, the default port for Staxel is '''38465'''.
 
 
= Windows =
 
 
Staxel is designed with Windows in mind, and this is the easiest platform to host a server on.
 
 
If you're inexperienced with server hosting or just want to play with your friends, this is the best option for you.
 
 
== Requirements ==
 
 
* A copy of Staxel, either on Steam or the Standalone version
 
* The ability to forward a port on your router (this is preferred)
 
 
If you're unable to forward ports, you may also use Hamachi. This is detailed towards the end of the Windows section.
 
 
== Starting the server with Steam ==
 
 
'''Note''': If you're using SteamCMD, skip to the next section.
 
 
Starting the server with Steam on Windows is very simple:
 
 
# Open up steam and find Staxel in your library
 
# Double-click on Staxel or click the play button
 
# Select '''"Dedicated Server"''' and click the play button
 
 
If you want to play Staxel at the same time, press the '''"Start game client with Steam"''' button now. This will open a copy of Staxel for you to play on.
 
 
For a list of settings and what they do, please see the [[#Server_Configuration|Server Configuration]] section.
 
 
== Starting the server without Steam ==
 
 
Starting the server with the Standalone version of Staxel is very simple:
 
 
# Open up the Staxel launcher
 
# Click on the '''"Server"''' button
 
 
If you want to play Staxel at the same time, press the '''"Start game client"''' button now. This will open a copy of Staxel for you to play on.
 
 
For a list of settings and what they do, please see the [[#Server_Configuration|Server Configuration]] section.
 
 
== Starting the server with the command-line ==
 
 
If you're working remotely, don't have a screen, or just don't want to use your mouse, you can also start the server from the command-line.
 
 
'''This is a more advanced technique''' - if you're not confident with your skills on the command-line, it's recommended that you choose one of the first two methods.
 
 
# Open up a copy of Powershell, or the Windows command prompt (<code>cmd</code>)
 
# Use <code>cd</code> to find your way to wherever you have Staxel installed
 
# Once you've found Staxel's install folder, <code>cd</code> into the <code>bin</code> folder
 
# Run <code>Staxel.Server.exe</code> and the server will start in the command-prompt
 
 
'''Please note''': This method will not allow you to configure the server with the Server Wizard. Details on how to configure your server this way can be found in the [[#Server_Configuration|Server Configuration]] section.
 
 
== Installing the server using SteamCMD ==
 
 
If you have a dedicated Windows server, you can simply install and use Steam as you would at home. However, if you'd rather not run Steam all the time, you may prefer to work with SteamCMD instead.
 
 
'''This is a more advanced technique''' - if you're not confident with your skills on the command-line, it's recommended that you choose one of the first two methods. In fact, if you don't specifically need SteamCMD, please don't use it.
 
 
SteamCMD is a command-line application, which allows you to download and install games and game servers from Steam. If you're planning to do this, you may prefer to set up a separate Steam account with only Staxel on it, as you're going to have to save the password to your Steam account on the server if you want to make updates quicker.
 
 
'''Note''': This guide assumes that you're installing SteamCMD to <code>C:\steam\steamcmd</code> and storing your games in <code>C:\steam\games</code>. If this isn't the case, remember to modify the paths below!
 
 
In short, here's what you'll need to do:
 
 
# Download a copy of SteamCMD to your computer and extract it
 
# Set up a couple of scripts to make your life easier
 
# Update and login with SteamCMD
 
# Download Staxel
 
# Run the server using the methods explained previously
 
 
If you need more detailed instructions:
 
 
# Download SteamCMD from [https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip this link] and extract <code>steamcmd.exe</code> to <code>C:\steam\steamcmd</code>.
 
# Add <code>C:\steam</code> to your system's <code>PATH</code>
 
#* Open '''This PC''' (or '''My Computer''' on earlier versions of Windows)
 
#* Right-click a blank section of the window and select '''Properties'''
 
#* Select '''Advanced System Settings''', and then select the '''Advanced''' tab in the window that appears
 
#* Click the '''Environment Variables''' button, select the <code>PATH</code> entry in the '''System Variables''' section, and hit '''Edit'''
 
#** On newer versions of Windows: Hit the '''Add''' button, type <code>C:\steam</code> into the box it gives you and click OK
 
#** On older versions of Windows: Add the following text to the value: <code>;C:\steam</code> and click OK - don't forget the semicolon!
 
#* Click OK and close the windows you just opened
 
# Create a file named <code>steam.bat</code> in <code>C:\steam</code> and insert [https://gist.github.com/gdude2002/17be96da179d6a63ccb3264f62451802 the contents of this file]
 
# Open a command prompt or Powershell, type <code>steam</code> and hit enter - this will download Steam and you will be presented with a <code>Steam&gt;</code> prompt
 
# Use <code>login account_name password</code> to log into your Steam account - follow the instructions given to authenticate with Steam Guard or 2-factor as necessary
 
# Type <code>quit</code> and hit enter to close SteamCMD
 
# Create a file named <code>update_staxel.bat</code> in <code>C:\steam</code> and insert [https://gist.github.com/gdude2002/51c0f78e8ba3132c39698ad438d53499 the contents of this file]
 
# Replace <code>ACCOUNT_NAME</code> and <code>PASSWORD</code> in the file with your Steam account name and password
 
# Go back to your command prompt or Powershell window, type <code>update_staxel</code> and hit enter - this will download and install Staxel in <code>C:\steam\games\staxel</code>
 
# Open <code>C:\steam\games\staxel\_CommonRedist</code> and install each of the requirements - if you're not planning to actually run the game, then you will not need to install DirectX, but do install everything else
 
# Once these are all installed, you're ready to go - See [[#Starting_the_server_without_Steam|Starting the server without Steam]] or [[#Starting_the_server_with_the_command-line|Starting the server with the command-line]] for information on running the server
 
# If you want to update the server again at any point, simply stop it and run <code>update_staxel</code> in a command prompt or Powershell again
 
 
== Hamachi ==
 
 
= Linux =
 
 
While the Staxel server does not have official Linux support, it is possible to at least get the server to run on Linux.
 
 
'''Please note:''' This is an unsupported setup. There may be stability issues. Additionally, the server will run slower than it would under Windows.
 
 
'''This is only recommended for advanced users!'''
 
 
== Requirements ==
 
 
=== Setting up Wine ===
 
 
== Starting the server with Steam ==
 
 
For a list of settings and what they do, please see the [[#Server_Configuration|Server Configuration]] section.
 
 
== Starting the server without Steam ==
 
 
For a list of settings and what they do, please see the [[#Server_Configuration|Server Configuration]] section.
 
 
== Headless instructions ==
 
 
For a list of settings and what they do, please see the [[#Server_Configuration|Server Configuration]] section.
 
 
= Server Configuration =
 
 
For reference, the default port for Staxel is '''38465'''.
 
 
== Configuring with the Server Wizard ==
 
 
== Configuring from the command-line ==
 

Latest revision as of 07:17, 29 January 2018