All of the space engineers dedicated server on wine containers I found wouldn't build, and I embarked on a journey to create my own.
<LoadWorld>
element in SpaceEngineers-Dedicated.cfg
./appdata/space-engineers/config
with your favorite backup tool.Thank you to:
./start
script will start the server using docker-compose in detached mode, and then attaches to the log output. You can press ctrl+c to detach from the logs and keep the server running.<Plugins />
, exactly like that. The server will query ./appdata/space-engineers/config/Plugins and update the config file as needed from then on.git clone https://github.com/mmmaxwwwell/space-engineers-dedicated-docker-linux.git
.cd space-engineers-dedicated-docker-linux
../start
. This will initialize the ./appdata folder, unzip an empty star system from star-system.zip and start the server.From this directory run :
docker run --restart always -p "27016:27016/udp" \
-v $(pwd)/appdata/space-engineers/config/World:/appdata/space-engineers/World\
-v $(pwd)/appdata/space-engineers/bins/SpaceEngineersDedicated:/appdata/space-engineers/SpaceEngineersDedicated\
-v $(pwd)/appdata/space-engineers/bins/steamcmd:/home/se/.steam\
-v $(pwd)/appdata/space-engineers/config/SpaceEngineers-Dedicated.cfg:/appdata/space-engineers/SpaceEngineersDedicated/SpaceEngineers-Dedicated.cfg\
mmmaxwwwell/space-engineers-dedicated-docker-linux:latest
Exit Code | Reason |
---|---|
129 | Container is missing /appdata/space-engineers/World folder, volume mounts are mounted incorrectly. |
130 | Container is missing /appdata/space-engineers/World/Sandbox.sbc, World is not placed in the right folder, or the volume mounts are mounted incorrectly. Ensure your world is in ./appdata/space-engineers/config/World/ . |
131 | Container is missing the dedicated server config file SpaceEngineers-Dedicated.cfg. Ensure that you have placed SpaceEngineers-Dedicated.cfg at ./appdata/space-engineers/config/SpaceEngineers-Dedicated.cfg . |
SpaceEngineersDedicated contains the dedicated server files
steamcmd contains steamcmd
config contains all the user configurable files for the game instance
World contains the world files
appdata
└── space-engineers
├── bins
│ ├── SpaceEngineersDedicated
│ └── steamcmd
└── config
├── SpaceEngineers-Dedicated.cfg
└── World
├── Alien-291759539d120000.vx2
├── EarthLike-1779144428d120000.vx2
├── Europa-595048092d19000.vx2
├── Mars-2044023682d120000.vx2
├── Moon-1353915701d19000.vx2
├── SANDBOX_0_0_0_.sbs
├── Sandbox.sbc
├── Sandbox_config.sbc
├── Titan-2124704365d19000.vx2
├── Triton-12345d80253.vx2
└── thumb.jpg