Here's a quick guide how to run SpaceEngineers Dedicated Server on Ubuntu with Wine
- A copy of Space Engineers
- A Windows box
- A Linux box running Ubuntu 14.04 or 14.10 (It'll probably work on other distros, YMMV)
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6
winetricks -q dotnet40
rm -r ~/.wine
WINEARCH=win32 wine wineboot
There are multiple ways for transfering files, easiets would probably be using SCP, WinSCP works well for that. You'll want to transfer the DedicatedServer.zip file found in
[Steam install directory]\steamapps\common\SpaceEngineers\Tools
Unpack the zip somewhere inside
~/.wine/drive_c/users/$(whoami)/
The easiest way to do this is to just generate them locally and copy them over to the server, this can be done by using the dedicated server tool on your windows box, the tool is located in
[Steam intall directory]\steamapps\common\SpaceEngineers\Tools\DedicatedServer\SpaceEngineersDedicated.exe
- Select the Default profile
- Set up the world
- Save the config
- Start to generate the world.
The files will be stored in
C:\Users\{USERNAME}\AppData\Roaming\SpaceEngineersDedicated\Default
Edit the SpaceEngineers-Dedicated.cfg
and copy it with the Saves
folder to the following directory on your Linux box
~/.wine/drive_c/users/$(whoami)/Application\ Data/SpaceEngineersDedicated
You'll have to change the <LoadWorld>
tag so it point to the correct directory.
If the Save folder is located in
~/.wine/drive_c/users/$(whoami)/Application\ Data/SpaceEngineersDedicated/Saves/Created 2015-03-30 2331
the <LoadWorld>
tag must look like this, where {username}
is the same as $(whoami)
<LoadWorld>C:\Users\{username}\Application Data\SpaceEngineersDedicated\Default\Saves\Created 2015-03-30 2331</LoadWorld>
You still need to use windows paths.
- Go to the directory where you have the dedicated server files
wine SpaceEngineersDedicated.exe -console
- There will be a lot of messages regarding xserver, ignore them
- Errors like
fixme:shell:URL_ParseUrl failed to parse L"System.Core"
are okay, ignore them. - Be sure to run 32bit, wine doesn't like the 64bit one.
- There is a small bug where after stopping the server you will no longer see what you're typing into the console.
- This guide is based on the guide I found over at Keen Software House Forums created by AdamAnt
@tvwenger
I have followed our instructions and am having an issue with wine where when running wine at 64 bit is gets errors however when running on 32bit it says the software does not support 32 bit:
Please note that I ended up copying all of the install from windows as it did not create the appropriate directory on first run via command line.
wine with 32 bit prefix:
wine DedicatedServer64/SpaceEngineersDedicated.exe -console 0009:err:process:create_process 64-bit application L"Z:\\home\\wine\\SpaceEngineersDedicatedServer\\DedicatedServer64\\SpaceEngineersDedicated.exe" not supported in 32-bit prefix
wine 64 bit prefix:
wine DedicatedServer64/SpaceEngineersDedicated.exe -console wine: Unhandled page fault on read access to 0x140000000 at address 0x140000000 (thread 002c), starting debugger... 002e:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 002e:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly. 002e:fixme:dbghelp:elf_search_auxv can't find symbol in module 002e:fixme:dbghelp:elf_search_auxv can't find symbol in module 002e:fixme:dbghelp:elf_search_auxv can't find symbol in module 002e:fixme:dbghelp:elf_search_auxv can't find symbol in module Unhandled exception: page fault on read access to 0x140000000 in 64-bit code (0x0000000140000000). 002e:fixme:dbghelp:elf_search_auxv can't find symbol in module Register dump: rip:0000000140000000 rsp:000000000053fdd8 rbp:000000000053ffd0 eflags:00010246 ( R- -- I Z- -P- ) rax:0000000140000000 rbx:0000000000000000 rcx:00007fffffeaf000 rdx:0000000000000000 rsi:0000000000000000 rdi:000000000053fe40 r8:000000000053fd00 r9:0000000000000008 r10:0000000000000008 r11:0000000000000246 r12:0000000000000000 r13:0000000000000000 r14:0000000000000000 r15:0000000000000000 Stack dump: 0x000000000053fdd8: 000000007b47a41a 0000000000000000 0x000000000053fde8: 0000000000000000 0000000000000000 0x000000000053fdf8: 0000000000000000 0000000140000000 0x000000000053fe08: 00007fffffeaf000 0000000000000000 0x000000000053fe18: 0000000000000000 ffffffffffffffff 0x000000000053fe28: 000000007b4a6540 000000007b44c600 0x000000000053fe38: 0000000000000000 0000000000000000 0x000000000053fe48: 609a5e755115332b 0000000000000000 0x000000000053fe58: 0000000000000000 0000000000000000 0x000000000053fe68: 0000000000000000 609a5e755575332b 0x000000000053fe78: 609aa85de89d332b 0000000000000000 0x000000000053fe88: 0000000000000000 0000000000000000 Backtrace: =>0 0x0000000140000000 in spaceengineersdedicated (+0x0) (0x000000000053ffd0) 1 0x000000007b47a41a in kernel32 (+0x5a419) (0x000000000053ffd0) 0x0000000140000000: popq %r10 Modules: Module Address Debug info Name (18 modules) ELF 7b400000- 7b80d000 Dwarf kernel32<elf> \-PE 7b420000- 7b80d000 \ kernel32 ELF 7bc00000- 7bd16000 Deferred ntdll<elf> \-PE 7bc20000- 7bd16000 \ ntdll ELF 7c000000- 7c004000 Deferred <wine-loader> PE 140000000- 140012000 Export spaceengineersdedicated ELF 7f93e458c000- 7f93e47b6000 Deferred libtinfo.so.5 ELF 7f93e47b6000- 7f93e49d9000 Deferred libncurses.so.5 ELF 7f93e4ad9000- 7f93e4ceb000 Deferred libnss_files.so.2 ELF 7f93e4ceb000- 7f93e4f05000 Deferred libnsl.so.1 ELF 7f93e4f05000- 7f93e5111000 Deferred libnss_nis.so.2 ELF 7f93e5111000- 7f93e531b000 Deferred libnss_compat.so.2 ELF 7f93e56f9000- 7f93e5911000 Deferred libgcc_s.so.1 ELF 7f93e5911000- 7f93e5caf000 Deferred libm.so.6 ELF 7f93e5caf000- 7f93e5eb3000 Deferred libdl.so.2 ELF 7f93e5eb3000- 7f93e62a4000 Deferred libc.so.6 ELF 7f93e62a4000- 7f93e64c3000 Deferred libpthread.so.0 ELF 7f93e6868000- 7f93e6a92000 Deferred ld-linux-x86-64.so.2 Threads: process tid prio (all id:s are in hex) 0000000e services.exe 00000024 0 0000001d 0 00000015 0 00000014 0 00000013 0 00000010 0 0000000f 0 00000011 winedevice.exe 0000001c 0 00000019 0 00000018 0 00000017 0 00000016 0 00000012 0 0000001a plugplay.exe 0000001f 0 0000001e 0 0000001b 0 00000020 explorer.exe 0000002a 0 00000029 0 00000021 0 00000022 winedevice.exe 0000002f 0 00000028 0 00000027 0 00000026 0 00000025 0 00000023 0 0000002b (D) Z:\home\wine\SpaceEngineersDedicatedServer\DedicatedServer64\SpaceEngineersDedicated.exe 0000002c 0 <== System information: Wine build: wine-3.0 (Ubuntu 3.0-1ubuntu1) Platform: x86_64 Version: Windows XP Host system: Linux Host version: 4.15.0-74-generic
Any insite to what I may be missing? It appears overall that using wine, or linux in general, is so rare that there is not much information out there for this software.
Thank you for any help you can provide.