Empyrion - Galactic Survival

Empyrion - Galactic Survival

78 ratings
Dedicated Server Setup
By feanor_269 and 1 collaborators
This guide will run you through dedicated server setup from A-Z. Tested on a fresh install, it works. It also has links to other pages describing things like telnet, port forwarding and the windows firewall.
If you ran a pre-alpha server you MUST delete all the YAML files, config files and any modified sector and playfield files. The formats changed, NOTHING IS COMPATIBLE.
 
Rate  
Favorite
Favorited
Unfavorite
Requirements
  • 8GB RAM – Running with less will cause sync and saving problems
  • Firewall you control – Not applicable if you're going to play on a LAN
  • Access to your router or modem – Not applicable if running on VPS or limited to LAN
Notes
  • If you will be running the server on the same machine you're playing on, you'll need to change the ports. 29600 is recommended.
  • If you can't see the extensions in 3 and 4, you may need to enable that feature in explorer. How to do that varies by windows version, and it's best to just google your windows version and “show file extensions”.
  • This guide is using the version without the GUI. If you want to use the GUI (not recommended for performance reasons), simply use EmpyrionDedicated.cmd instead and ignore the steps for telnet. You're on your own for figuring out the GUI, since I don't use it.
  • Editing config files with word can make them unreadable to the game. Use notepad or notepad++. Shift-right-click on the file, choose open with.
  • YAML files use comments. These are lines that are unread by the game, and are preceded with a #. When I refer to uncommenting a line, it means remove the #. Similarly, commenting a line means to add a # at the start. In the current version of the YAML files, just removing the "#" will leave an extra space, please remove an extra space as well.
  • YAML files are very whitespace sensitive. Please be careful not to remove or add any.
  • You'll need to modify your firewall, How to do this varies by Windows version, so use the following Microsoft site for help: http://windows.microsoft.com/en-us/windows/communicate-through-windows-firewall
  • You'll need to install a telnet client. This varies by Windows version, so look at the following page if you need help https://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx
  • You'll need to know how to use the telnet client, seehttp://windows.microsoft.com/en-us/windows/telnet-faq for information
  • You may need to know how to forward ports on your router. This guide was recommended by Boss_CyAn1d3 (he didn't do anything else with this guide, don't bother him with questions, I'm just citing sources): http://www.pcworld.com/article/244314/how_to_forward_ports_on_your_router.html
  • One final note… if you're thinking of running a public server, please don't. We have too many servers and not enough people playing on them, just join one instead. If you want to host a private server for your group, go right ahead!
Setup
  1. Open the steam library, right click “Empyrion – Galactic Survival”, click properties.
  2. Go to the local files tab, click “BROWSE LOCAL FILES”, it will open an explorer window.
  3. Copy EmpyrionDedicated_NoGraphics.cmd to server.cmd. This is required because EmpyrionDedicated_NoGraphics.cmd frequently gets overwritten when the game updates.
  4. Copy dedicated.yaml to server.yaml. This is required because dedicated.yaml frequently gets overwritten when the game updates.
  5. Install a telnet client.
Configs
Edit these files with notepad, not word. Notepad++ also works. Wordpad will not.
To help find errors - http://www.yamllint.com/


server.cmd
  • Find the line that starts with “EmpyrionLauncher -startDedi” and add “-dedicated server.yaml” to the end, without the quotes.

server.yaml
  • Srv_port is the port you want to run on, leave it the same.
  • Srv_Name is the server name, you should set this to something memorable.
  • Srv_Password is for password protected servers. If you want to password your server, uncomment this and set it.
  • Srv_MaxPlayers is the maximum slots available on the server. 5-10 is good, uncomment it if you want to change the default of 5.
  • Srv_Description is the server description, please uncomment and set this if you have a public server! Contact info for the admin is a good thing to put.
  • Srv_StopPeriod is the number of hours between automatic server restarts. This is a good thing to do, and I'd recommend 24 hours for stability.
  • Tel_Enabled – uncomment this line, this guide uses telnet to admin the server.
  • Tel_Port – uncomment and change if you want to run telnet on a different port. Save the port, number, it's important for later in the guide.
  • Tel_Pwd – uncomment this line, and set a new password to access the telnet admin console.
  • EACActive – This is currently under development, don't uncomment it.
  • GameName is the name of the save game to use. Players don't see this.
  • The rest of the settings can be changed at your leisure. I'd recommend a different seed and possibly changing the decay, wipe and protect times.
Firewall
You'll need to allow Empyrion.exe and EmpyrionDedicated.exe to communicate through your firewall, see the guide in the notes.
Administration
To run the server, double click server.cmd
It'll bring up some information, read it, then press any key to close the window. The server will still be running if that window closes.

Open telnet, connect to your server's address on the Tel_Port in your server.yaml file.
If you're using telnet from the same computer your server is hosted on, use the ip address 127.0.0.1, otherwise use the address that comes up when you click this link: https://www.google.com/?gws_rd=ssl#q=what%27s+my+ip

The help command will give you all the help you need. You'll need to set yourself as an admin. When you're logged into the game as a player, go to the telnet console and enter:
setrole yourname admin
Port Forwarding
This section is required for hosting from behind a router (for example, from a home or work). If you're hosting on a VPS, you probably don't need this section.
  1. Get your server's LAN address.
    • Open a command prompt, (usually you'll click start and type cmd).
    • Type ipconfig, look for a line that says IPv4 Address. You'll need the 4 sets of numbers, separated by dots. It should look something like “IPv4 Address. . . . . . . . . . . : 192.168.1.2” you need the 192.168.1.2 number.
  2. Log in to your router, and forward the following ports and protocols to the ip address you found in step 1.
< >
105 Comments
Tyiarra Marie Sep 17 @ 8:40am 
Everything worked as stated above just fine [v6+] my next question or guide im searching for is how to config starter items? No wreckage POI's are showing I do get the abandoned mining base, the ship POI's the Drones, all that is working but on single player I see "wreckage" and on multiplayer I dont so on my server I would like to spawn in "wreakage pieces" that are all ready built into the game just are not showing, Im not referring to building my own wreckage and spawning it in.. is there a folder where I can import the games pieces onto my server map myself?
TheBath Aug 29 @ 7:27pm 
I keep getting could not connect to host, on port [30004]: connection failed, what am i missing here?
Dex Jul 25 @ 10:26pm 
wtf, the setup directions are awful. Those file names don't exist -.-*
Jakeyboo Jul 12 @ 8:15pm 
is there anyway to play with a mate without making a server
Kunu Jul 11 @ 5:33pm 
@Gwalin If your computer is still in the same network then:

"You'll need to allow Empyrion.exe and EmpyrionDedicated.exe to communicate through your firewall, see the guide in the notes."

else if its a seperate network then restart from the beginning.

@Rex 81-12:

"YAML files use comments. These are lines that are unread by the game, and are preceded with a #. When I refer to uncommenting a line, it means remove the #. Similarly, commenting a line means to add a # at the start. In the current version of the YAML files, just removing the "#" will leave an extra space, please remove an extra space as well."
Gwailin Jul 11 @ 8:55am 
I made a dedicated server on my brother's PC using port forwarding and it worked perfectly for a week. I then moved the hard-drive with the game and the server installed onto my own computer. The server now won't display in the list and I cannot connect. Any ideas?
icky Jun 6 @ 10:16am 
this cant be done anymore can it? im in 6.0 experimental
Capt_Price May 31 @ 11:05pm 
@Rex 81-21 are you useing note++
Rex 81-12 May 5 @ 3:21pm 
So I'm using the Experimental build server and if I uncomment anything in my dedicated.yaml the entire server freaks out and fails to boot due to not finding an expected key. My method of uncommenting was simply deleting the #. Got any ideas?
FireWaran Mar 25 @ 3:51pm 
Thanks works great :)