[go: up one dir, main page]

Skip to content

Script for starting and configuring a Space Engineers server on a (optionally headless) Linux machine.

License

Notifications You must be signed in to change notification settings

g1franc/SEDS-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

SEDS-Setup

Description

It's a bash script for starting and configuring a Space Engineers server on a optionally headless Linux machine.

Report issues on the issues page. MAKE SURE YOU LOOK THROUGH THEM FIRST. Someone's probably already posted a solution, or it's a known bug.

Requirements

A Debian or Ubuntu-based OS (Others untested, use at own risk, report success/failures/tweaks to issues)
bash
WINE 1.7.30 or higher
winetricks
python-2.7
unzip
wget
screen

Usage

Step one: Download the script.

mkdir ~/spaceengineers
cd ~/spaceengineers
wget -O start.sh https://raw.githubusercontent.com/ArghArgh200/SEDS-Setup/master/start.sh
chmod +x start.sh
The script is hardcoded to put your server in ~/spaceengineers. If you want to change that... good luck.

Step two: Check your wine version.

Run wine --version and also check if you have winetricks installed by running which winetricks

If your wine version is not 1.7.30 or higher the script will not work properly and I will absolutely refuse to help you.

Step three: Run the script's setup function

cd ~/spaceengineers
chmod +x start.sh
./start.sh setup
It'll ask you for your Steam user and password. Not to worry, your password is NOT saved anywhere on disk by my script. Your username is used at server start to check for updates, and is stored in plaintext at ~/spaceengineers/Steamcmd/.steamuser

Step four: Upload your configuration and start the server.

This is probably the most important part, and also the part where most of the stuff that can go wrong goes wrong.

Your configuration needs to go in /spaceengineers/config/SpaceEngineers-Dedicated.cfg, your world in /spaceengineers/config/Saves/SEDSWorld, and your configuration's LoadWorld directive should point to C:\users<your username>\Application Data\SpaceEngineersDedicated\Saves\SEDSWorld in order for the server to Start right.

Alternatively you can just put the SpaceEngineers-Dedicated.cfg on the server, and have the server generate a world.

This should get you off the ground. I won't tell you how to make the configurations here, but there are numerous forum posts on the matter. Here's one you can use. Hint: it involves running the dedicated server on your computer, generating a configuration using their program, and uploading it with some minor changes.

A note on changing server settings once you have a world made.

All server settings are overridden by the world's specific settings. The server name is one of the only things that isn't. If you want to add or remove mods, change the world's name or description, or refining speed/inventory sizes, you NEED to do it in the world! Use WinSCP or Filezilla to download the world folder to your local worlds, and edit the world via the game. If you have custom inventory limits or assembler speeds etc you'll have to open your Sandbox.sbc and edit them that way. BE CAREFUL! MAKE BACKUPS! Reckless editing of world files can and in most cases WILL break your world!

Now, run ./start.sh, screen -x spaceengineers, and enjoy!

Automated World Backups using crontab

Add the following line in your crontab file:
*/A NUMBER * * * * /home/YOUR USERNAME/spaceengineers/start.sh backupworld
The number means that every that many minutes that go by, backup the world.

Planned features

Restarting the server safely every day

Completely clear installation every week/month, and reinstall, this can be done already by manually removing all but the .cfg, the world, and the script and running ./start.sh setup again.

Credits to Andy_S and NolanSyKinsley of the space-engineers IRC channel on Esper for their tidbits, and Andy_S's NPC identity cleaner.

About

Script for starting and configuring a Space Engineers server on a (optionally headless) Linux machine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages