Editing Setting Up a Server

From Eco - English Wiki

Your changes will be displayed to readers once an authorized user accepts them. (help)

Notice: Some of the pending changes affect the area of the page you are editing. (show those changes)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
Eco servers are relatively easy to get running, and there are a couple of ways to set one up.  
[[Eco]] servers are relatively easy to get running, and there are a couple of ways to set one up.  


If you own the game through Steam, you can get the server files and run the server through Steam. If you have a Strange Loop Games account, you can download the server files directly through [https://play.eco/ Eco's website].  
If you own the game through Steam, you can get the server files and run the server through Steam. If you have a [[Strange Loop Games]] account, you can download the server files directly through [http://www.strangeloopgames.com/eco/ Eco's website].  


There are many server hosting companies that offer to host for Eco servers if you don't want to or can't run an Eco server on your computer.
There are many server hosting companies that offer to host for Eco servers if you don't want to or can't run an Eco server on your computer.
== Server Through Steam ==
== Server Through Steam ==
=== Installing ===
=== Installing ===
[[File:Server_Download_Location_Steam.jpg|Eco server download location in Steam.|thumb|600px]]
[[File:Server_Download_Location_Steam.jpg|Eco server download location in Steam.|thumb|600px]]
To run an Eco server through Steam, you must also own the game [http://store.steampowered.com/app/382310/Eco/ on Steam].
To run an Eco server through Steam, you must also own the game [http://store.steampowered.com/app/382310/Eco/ on Steam].
Line 14: Line 15:


You are also able to navigate to the server's install location and launch EcoServer.exe manually.
You are also able to navigate to the server's install location and launch EcoServer.exe manually.
=== Automating Launch ===
==== Windows ====
====== Task Scheduler ======
* Create a new task
* Running as User whether Logged on or Not
* Trigger at system start up
* Create a bat program, update the directory to wherever you have it installed if different, with the following:<syntaxhighlight lang="bat" line="1">
cd "C:\Program Files (x86)\Steam\steamapps\common\Eco Server\"
EcoServer.exe
</syntaxhighlight>Setting the directory is important here as it will not start the server successfully if you try to do this using <code>start /d "path" "executable"</code> or by calling the executable directly.
=== Updating ===
=== Updating ===
Eco Servers installed through Steam will update automatically just like any other Steam game.
Eco Servers installed through Steam will update automatically just like any other Steam game.
Line 42: Line 29:


Download steamCMD, unpack and launch it.
Download steamCMD, unpack and launch it.
=== Downloading SteamCMD ===
==== Windows ====
1. Create a folder for SteamCMD.
''For example:''
D:\steamcmd
2. Download SteamCMD for Windows: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
3. Extract the contents of the zip to the folder.
==== Linux ====
Create a user account named ''steam'' to run SteamCMD safely, isolating it from the rest of the operating system.
'''Warning:''' Do not run <code>steamcmd</code> while operating as the root user. Doing so is a security risk.
1. As the root user, create the ''steam'' user:
<syntaxhighlight lang="bash">
sudo useradd -m steam # Add a new user named 'steam'
sudo passwd steam
</syntaxhighlight>
2. Go into its home folder:
<syntaxhighlight lang="bash">
sudo -u steam -s
cd /home/steam
</syntaxhighlight>
===== Package From Repositories =====
1. It's recommended to install the SteamCMD package from your distribution repositories, if available:
Ubuntu/Debian:
<syntaxhighlight lang="bash">
sudo apt update
sudo apt install steamcmd
</syntaxhighlight>
'''Note:''' If you are using a 64-bit machine, you will need to add multiverse:
Dont forget to update, if you add multiverse before installing.
<syntaxhighlight lang="bash">
sudo add-apt-repository multiverse
sudo apt install software-properties-common
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc-s1 libgdiplus steamcmd
</syntaxhighlight>
RedHat/CentOS:
<syntaxhighlight lang="bash">
yum install steamcmd
</syntaxhighlight>
Arch Linux:
<syntaxhighlight lang="bash">
git clone https://aur.archlinux.org/steamcmd.git
cd steamcmd
makepkg -si
</syntaxhighlight>
'''Note:''' You will need to have the base-devel package installed to execute makepkg:
<syntaxhighlight lang="bash">
sudo pacman -Syy base-devel
</syntaxhighlight>
2. Link the <code>steamcmd</code> executable:
<syntaxhighlight lang="bash">
sudo ln -s /usr/games/steamcmd /home/steam/steamcmd
</syntaxhighlight>
NixOS:
steamcmd is packaged on NixOS.  You will also need a modified steam-run to actually run Eco.  Bring both into an ephemeral shell with:
nix-shell -p steamcmd '(steam.override {extraPkgs = pkgs: [ openssl libgdiplus ]; }).run'
And then run Eco with:
steam-run ./EcoServer
Docker:
If your server is running Docker, you can simply use:
<syntaxhighlight lang="bash">
docker run -it --name=steamcmd cm2network/steamcmd bash
</syntaxhighlight>
<code>steamcmd.sh</code> is located at <code>/home/steam/steamcmd</code>.
This image can be used as a base image for Steam-based dedicated servers. Example: [2]
You can find the associated Docker Hub page here: [3]
===== Manually =====
1. Before you begin, you must first install the dependencies required to run SteamCMD:
Ubuntu/Debian (x86-64):
<syntaxhighlight lang="bash">
sudo apt-get install lib32gcc-s1
</syntaxhighlight>
RedHat/CentOS (x86-64):
<syntaxhighlight lang="bash">
yum install glibc.i686 libstdc++.i686
</syntaxhighlight>
2. As the root user, escalate to the ''steam'' user:
<syntaxhighlight lang="bash">
su - steam
</syntaxhighlight>
If you're not logging in as root and you instead use <code>sudo</code> to perform administration, escalate to the ''steam'' user as follows:
<syntaxhighlight lang="bash">
sudo -iu steam
</syntaxhighlight>
3. Create a directory for SteamCMD and switch to it.
<syntaxhighlight lang="bash">
mkdir ~/Steam && cd ~/Steam
</syntaxhighlight>
4. Download and extract SteamCMD for Linux.
<syntaxhighlight lang="bash">
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
</syntaxhighlight>
5. Install tmux and/or screen for easy server management.
<syntaxhighlight lang="bash">
sudo apt-get install tmux screen -y;
</syntaxhighlight>
=== Manually ===
=== Manually ===
Set the install directory by typing:<pre>force_install_dir ./Eco_Server</pre>
Guide to downloading the server manually through SteamCMD:
Guide to downloading the server manually through SteamCMD:
Double Click the steamcmd.exe
Double Click the steamcmd.exe
Line 176: Line 35:
Once loaded login by typing in:
Once loaded login by typing in:
<pre>login anonymous</pre>
<pre>login anonymous</pre>
Set the install directory by typing:
<pre>force_install_dir ./Eco_Server</pre>
This will install the server in a subdirectory within the SteamCMD directory called "Eco_Server".
This will install the server in a subdirectory within the SteamCMD directory called "Eco_Server".
Finally to download the server itself type:
Finally to download the server itself type:
Line 181: Line 42:
This will download the server. Or when you want to update the server will start downloading the latest version overwriting all the files of the downloaded server.
This will download the server. Or when you want to update the server will start downloading the latest version overwriting all the files of the downloaded server.


<span style="color: #ff0000;">(Please make sure you do not run your server from the same directory just in case you decide to use this method to update and forget to back up your data.)</span>
<span style="color: #e0ff66;">(Please make sure you do not run your server from the same directory just in case you decide to use this method to update and forget to back up your data.)</span>
=== With a bat file ===
=== With a bat file ===
If you want to use a batch file (.bat) make a batch file and put one of the following codes into the file.
If you want to use a batch file (.bat) make a batch file and put one of the following codes into the file.
Line 188: Line 49:
Suggestion A:
Suggestion A:
<pre>
<pre>
steamcmd.exe +force_install_dir "./Eco Server" +login anonymous +app_update 739590 validate +quit
steamcmd.exe +login anonymous +force_install_dir "./Eco Server" +app_update 739590 validate +quit
</pre>
</pre>
Suggestion B:
Suggestion B:
<pre>
<pre>
steamcmd.exe +@ShutdownOnFailedCommand 1 +@NoPromptForPassword 1 +force_install_dir "./Eco Server" +login anonymous +app_update 739590 validate +quit
steamcmd.exe +@ShutdownOnFailedCommand 1 +@NoPromptForPassword 1 +login anonymous +force_install_dir "./Eco Server" +app_update 739590 validate +quit
</pre>
</pre>
These commands will automatically download the eco-server and place it in a folder named "Eco Server". (Inside the SteamCMD folder).
These commands will automatically download the eco-server and place it in a folder named "Eco Server". (Inside the SteamCMD folder).
Line 200: Line 61:


Do not run the downloaded server inside the SteamCMD folder itself. You want to keep that version as a backup and reference to an unedited server.
Do not run the downloaded server inside the SteamCMD folder itself. You want to keep that version as a backup and reference to an unedited server.
== Server Without Steam  ==
== Server Without Steam  ==
=== Installing ===
=== Installing ===
[[File:Server_Download_Location_SLG.jpg|Eco server download location on Strange Loop Games website.|thumb|600px]]
[[File:Server_Download_Location_SLG.jpg|Eco server download location on Strange Loop Games website.|thumb|600px]]
To run a server locally without Steam, you first need to grab the server files from [https://play.eco/ Eco's website] under "Account". This requires you to sign in to your SLG account and to have purchased Eco through that account or a linked Steam account. On the account page, there is a section that lists the current version of Eco and the current staging release with download links for both. Clicking on the "Server" link for the version you want will download a .zip file of the server.
To run a server locally without Steam, you first need to grab the server files from [http://www.strangeloopgames.com/eco/ Strange Loop Game's website] under "Account". This requires you to sign in to your SLG account and to have purchased Eco through that account or a linked Steam account. On the account page, there is a section that lists the current version of Eco and the current staging release with download links for both. Clicking on the "Server" link for the version you want will download a .zip file of the server.


When the server is done downloading, move the .zip file to wherever you want to install the server. It is recommended to install the server into an empty folder. When you have the .zip file in the location where you want to install the server, unzip it using whichever compression program you prefer (common programs include WinRar, 7-zip, and WinZip).
When the server is done downloading, move the .zip file to wherever you want to install the server. It is recommended to install the server into an empty folder. When you have the .zip file in the location where you want to install the server, unzip it using whichever compression program you prefer (common programs include WinRar, 7-zip, and WinZip).
Line 248: Line 109:
* '''Web Client''' — The web server files are found here.
* '''Web Client''' — The web server files are found here.
=== Eco Server UI ===
=== Eco Server UI ===
[[File:Server_UI_0.7.0.4.jpg|Eco server configuration GUI|thumb|600px]]
[[File:Server_UI_0.7.0.4.jpg|Eco server configuration GUI|thumb|600px]]
The server UI provides access to a wide variety of configuration options. Changes made to config options in the UI will apply to the server without needing to restart the server. However, with any changes you make (such as adding an admin), you must click "'''File'''" and "'''Save'''" or else you will lose the changes upon reloading the server.
The server UI provides access to a wide variety of configuration options. Changes made to config options in the UI will apply to the server without needing to restart the server. However, with any changes you make (such as adding an admin), you must click "'''File'''" and "'''Save'''" or else you will lose the changes upon reloading the server.
Please note that all contributions to Eco - English Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Eco:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Templates used on this page: