1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

[Tool] Space Engineers Dedicated Server Linux Setup Script

Discussion in 'Groups & Dedicated Servers' started by arghargh200, Mar 4, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. arghargh200

    arghargh200 Trainee Engineer

    Messages:
    44
    Arghlex's Space Engineers Dedicated Server Setup and Management Script

    GET IT HERE
    Uses Andy_S/deltaflyer4747's SE Cleaner script. ​
    Requirements:
    A Debian/Ubuntu-based Operating System for the server
    WINE 1.7.30 and up
    WineTricks
    Python 2.7 and up
    wget (installed by default on most, if not all, modern Linux OSes)
    unzip (Might not be installed)
    screen (Might not be installed)
    Optional: crontab for automated world backups

     
  2. arghargh200

    arghargh200 Trainee Engineer

    Messages:
    44
    reserved
     
  3. Demortes

    Demortes Trainee Engineer

    Messages:
    1
    Wanted to throw up a THANK YOU! :D While I had issues with loading my save up (Ultimately let it create the game save itself, then replaced the files in it... I think I was uploading old/outdated files that it threw up on and said, OH WELL! We'll start fresh), this saved me such a headache.

    Question, what about doing this for other games?
     
  4. birgersp

    birgersp Trainee Engineer

    Messages:
    3
    Thanks a lot for this! However I am having some difficulties with the script: One line of output when starting the server says "2015-07-23 07:40:55.933: Cannot start new world - scenario not found (null)/(null)". When I try to join the server, it connects but then errors: "Game does not exist anymore".
    I generated a world on my Windows computer, and copied the 3 world files to my server to directory "~/spaceengineers/config/Saves/SEDSWorld" (Although "SEDSWorld" is not the name I intended for the world...).

    In the tutorial you say the following:
    What do you mean by this, exactly? I tried editing the "LoadWorld" line in "SpaceEngineers-Dedicated.cfg.xml" so that it reads: "<LoadWorld>C:\users\birger\Application Data\SpaceEngineers-Dedicated.cfg</LoadWorld>". Is this correct?


    Cheers
     
  5. birgersp

    birgersp Trainee Engineer

    Messages:
    3
  6. diemonkey

    diemonkey Trainee Engineer

    Messages:
    1
    Gonna give this a try. Any thoughts on if it's possible to get it working in docker?
     
  7. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    To the OP or anyone who's gotten this working..
    I'm looking for additional info..
    What exact version OS are you running, and is it 32 or 64 bit? What architecture are you running for wine?

    I ask because my first debain-based attempt was a SteamOS box which sits idle often (it is a pc hooked up to the tv that's always on, and would make a great local server). There was no 1.7 wine in the repo, only 1.6 which the OP insists will not work with his script. I then ran into an issue because my box is a 64-bit box and the source compiled wine that was 1.7.xx was throwing a fit about my OS being 64-bit and kept wanting to download a 32-bit version which failed. I manually tried some stuff (no idea at this point, crap that forums recommended to get a 32-bit wine installed on a 64-bit OS) and ended up killing the OS with overwritten dependancy issues. I don't mind, it was just a mess-around box, but still.. Failed attempt #1.

    My other linux box is a CentOS 6.7 box, which clearly is not the "required" debian-based build, but it was easier to get all the required files/programs on. It actually built a successful wine64 (don't ask me why the debian box would not build it), and things were looking good until what seems like the winetricks throws a fit about it not being able to find wine (doesn't want to see wine64 I guess??) I dunno. Two solid days on this and nothing to yield. And I'd like to read a success story or something to give me hope.

    My other concern is.. Space engineers is a memory hog, well if you run a decent amount of mods on it, or set stuff off the degault settings. I am additionally worried that if I DO end up getting wine and winetricks working and and able to run the script, that the 32bit edition of wine is going to cripple my server and render it useless anyway, negating the need to even run it. Well.. TO be fair, to run it on a linux box. I LOVE the idea of it, and really want SE dedicated server to support linux, but it needs the same 64 bit support the actual windows versions supports. Does it run in 64bit?

    Also, I ask about what OS, specifically and exactly the OP or anyone who got this running because if you didn't gather from my comments here, I've got a box that I'm not afraid to install (yet another) flavor of linux on to make this work/test it out. :) So fire away and let me know what to run :)

    Thanks!
     
  8. King

    King Trainee Engineer

    Messages:
    50
    Arghlex, thank you so much for this script. I've been using it for a couple weeks now and it works great. With my lack in experience in Linux, I'm not sure I could have gotten a server running on it any other way.

    I'm only having one issue with it so far, I need to rebuild my VM from scratch every week when an update is released. If I stop the server and run start.sh again, the game files aren't being updated. I've gone as far as to delete the entire ~/spaceengineers directory and start over again and it doesn't seem to be downloading any of the server files from Steam at all.

    Actually, I was mistaken there. Running start.sh with the setup flag updated the server files.



    MTXRooster, I'm running a VM through Digital Ocean using Ubuntu 14.04 x32. I honestly couldn't tell you if it's any sort of special distribution that they use or not. Here are the exact steps I take to get it working (for any one else interested).

    Code:
    Install Wine:
    sudo add-apt-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get install wine1.7
    winetricks -q dotnet40
    
    Install Python:
    sudo add-apt-repository ppa:fkrull/deadsnakes
    sudo apt-get update
    sudo apt-get install python2.7
    
    Get and run Arghlex's script:
    mkdir ~/spaceengineers
    cd ~/spaceengineers
    wget -O start.sh https://raw.githubusercontent.com/ArghArgh200/SEDS-Setup/master/start.sh
    chmod +x start.sh
    
    cd ~/spaceengineers
    chmod +x start.sh
    ./start.sh setup
     
    Last edited: Sep 25, 2015
  9. Quazil

    Quazil Trainee Engineer

    Messages:
    23
    I'm running Ubuntu MyHosting.com and can get the server up and running and people can initially connect to the server but they cannot download the world and then the connection times-out.
    Anyone else run into this and resolve it?
     
  10. phit

    phit Trainee Engineer

    Messages:
    15
    same issue here, I made a thread about it, but no solution so far
    https://forum.keenswh.com/threads/wine-server-host-has-left-the-game.7368022/
     
  11. King

    King Trainee Engineer

    Messages:
    50
    I don't have a source, but I've seen more than once that the dedicated server doesn't like 64-bit under Wine. Have you tried 32-bit instead?
     
  12. phit

    phit Trainee Engineer

    Messages:
    15
    my wine installation is 32bit
     
  13. phit

    phit Trainee Engineer

    Messages:
    15
    I just updated the script to use the new server package which saves a lot of bandwidth and will only update if there is actually a change and not on every reboot!
    Arghlex was so nice and accepted my changes just now, so grab the latest version from github! Make sure to run "./start.sh setup" once so all the changes are applied. It shouldn't break existing installations! To make sure please backup your world before updating.
     
  14. Quazil

    Quazil Trainee Engineer

    Messages:
    23
    Yes but I had to switch my hosting provider. Rumor is that it has something to do with OpenVZ containers. (I had an Ubuntu 12.04 on OpenVZ.)
    First disable your firewall (set the INPUT chain to default to ACCEPT) and verify they still cannot download the world to rule-out a firewall issue.
    I switched to https://www.ovh.com/us/ to run my server - $14/mn for 2 cores, 8GB RAM, and I think it was 20 or 40GB HD.
    This is Ubuntu 15.04 on KVM and it works.
     
  15. Quazil

    Quazil Trainee Engineer

    Messages:
    23
    The setup script seems to download or copy the stuff twice and you end up with two copies of DedicatedServer which I am sure is very confusing for people.
     
  16. phit

    phit Trainee Engineer

    Messages:
    15
    that's the old outdated folder, just delete it.. if you aren't sure which one is the old one delete both, the script will redownload the new one. thats because i didnt add a cleanup part for the old version, but i can assure you the script only downloads once
     
  17. James Moore

    James Moore Trainee Engineer

    Messages:
    1
    Last edited: Oct 23, 2015
  18. King

    King Trainee Engineer

    Messages:
    50
    Is it possible to get this script to get the old_multiplayer fork dedicated server files? The latest update has left the game unplayable for some of us who play multiplayer.
     
  19. phit

    phit Trainee Engineer

    Messages:
    15
    yeah, change this line to this
    Code:
    ./steamcmd.sh +force_install_dir $HOME/.wine/drive_c/users/$whoami/Desktop/spaceengineers +login anonymous +app_update 298740 -beta old_multiplayer -verify +quit
    for the curious read here (step 3)
     
  20. OldShadowHand

    OldShadowHand Trainee Engineer

    Messages:
    2
    Hey Guys
    Since the last update my dedicated server keeps crashing after somebody logs in
    Log:

    Im runing on debian jessie with wine 1.7.52
    I run on ah root server i7 with 32gig ram

    Does somebody have ah suggestion for this problem
     
    Last edited: Nov 7, 2015
  21. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    I read awhile ago somewhere that this script doesn't work with SESE (Space Engineers Server Extender) - Something about IIRC either the script or WINE not liking that SESE (might?) modify the dedicated.exe file or something? Wondering if this is accurate or not, and/or if anyone running this script (which totally rocks BTW) with SESE instead of the standard spaceengineersdedicated.exe?
     
  22. phit

    phit Trainee Engineer

    Messages:
    15
    unless that was changed SESE only works with the 64bit server, wine can only run the 32bit server since there is no dotnet40 or dotnet45 64bit version

    SESE Reference
    Wine dotnet45 dotnet40
     
  23. [RLM] Tea Without Donuts

    [RLM] Tea Without Donuts Trainee Engineer

    Messages:
    1
    Does anyone have any info about windows vs linux with wine perfomance? If dotnet is 32bit, will SE server be able to use more than 4gb ram? Anyone running seds-linux with ~20 players here?
     
  24. Joykiller

    Joykiller Trainee Engineer

    Messages:
    11
    It really sucks and their should be linux binaries, but I hate using wine it kills performance.
     
  25. MastaC729

    MastaC729 Trainee Engineer

    Messages:
    1
    I have just started using your setup and run script for this, and my main issue is when a user tries to connect to the server, the server refuses connection, and after a bit of time it crashes with an out of memory error. Any tips on how to address this issue?

    My specs are:
    Linux distro: Debian Jessie 8.3
    Wine: 1.9.3
    Python: 2.7

    Let me know if you need any additional information.
     
  26. Kalraken

    Kalraken Trainee Engineer

    Messages:
    3
    Is there a way to run multiple servers on the same linux box with this?
     
  27. MTXRooster

    MTXRooster Trainee Engineer

    Messages:
    60
    Posted on the git website (followed link on first post) - Been running this for several months flawlessly, but something after this past Thursday's update has broken running SEDedicated on linus with wine. Someone else beat me to the first post, but apparently I'm not alone..
     
  28. rexxar

    rexxar Senior Engineer

    Messages:
    1,532
    Since SE is now 64bit-only and Wine cannot run 64bit .NET, you can no longer run an SE server on Linux.
     
Thread Status:
This last post in this thread was made more than 31 days old.