Help Starting Linux Server

    Joined
    Jul 7, 2013
    Messages
    472
    Reaction score
    156
    • Purchased!
    • Legacy Citizen 4
    OK, I know bugger-all about Linux so I've been using this video as a guide to installing a StarMade server on a Raspberry Pi running Linux Debian. It all looked simple enough until I started getting errors. When I type "./StarMade-dedicated-server-linux.sh" I get the below output:
    [VERSION] loading version from install dir: ./
    [VERSION] VERSION: 0.199.535
    [VERSION] BUILD: 20170427_155818
    #################### StarMade #######################
    # version 0.199.535 - build 20170427_155818 #
    #####################################################
    [SERIAL] "not retrieved"
    [INSTALLATION_DIRECTORY] "/home/starmade/starmade/."
    [JVM-ARGUMENTS] [-Xms128m, -Xmx1024m]
    [TEXTURE-PACK] WARNING: ignoring lava.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring shield_tex.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring lava.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring shield_tex.png.zip: not a directory
    java.io.FileNotFoundException: ./settings.cfg (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileReader.<init>(FileReader.java:72)
    at obfuscated.aGf.b(SourceFile:590)
    at obfuscated.aGf.d(SourceFile:632)
    at org.schema.game.common.Starter.main(SourceFile:868)
    Could not read settings file: using defaults
    [STARTER] template dir exists. overwriting template with current data
    [IO][COPY] FILE FROM /home/starmade/starmade/./data/config/FactionConfig.xml to /home/starmade/starmade/./customFactionConfig/FactionConfigTemplate.xml
    [IO][COPY] FILE FROM /home/starmade/starmade/./data/config/customFactionConfigHOWTO.txt to /home/starmade/starmade/./customFactionConfig/customFactionConfigHOWTO.txt
    [STARTER] template dir exists. overwriting template with current data
    [IO][COPY] FILE FROM /home/starmade/starmade/./data/config/customBlockBehaviorConfigTemplate.xml to /home/starmade/starmade/./customBlockBehaviorConfig/customBlockBehaviorConfigTemplate.xml
    [IO][COPY] FILE FROM /home/starmade/starmade/./data/config/customBlockBehaviorConfigHOWTO.txt to /home/starmade/starmade/./customBlockBehaviorConfig/customBlockBehaviorConfigHOWTO.txt
    [RESOURCES][CustomTextures] No need to create pack.zip. Hash matches (as rewriting a zip changes the hash on it)
    [LANGUAGE] detected language: en
    [LANGUAGE] loading language: english; Resolved to english
    java.io.FileNotFoundException: ./keyboard.cfg (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileReader.<init>(FileReader.java:72)
    at org.schema.schine.input.KeyboardMappings.a(SourceFile:185)
    at obfuscated.Wi.b(SourceFile:96)
    at obfuscated.Wi.a(SourceFile:241)
    at org.schema.game.common.Starter.main(SourceFile:892)
    Could not read settings file: using defaults (./keyboard.cfg (No such file or directory))
    [LANGUAGE] Loading English; Version: 0
    [LANGUAGE] LOADED FONT PATH/NAME: font/Monda-Regular.ttf
    [SERVER] using world: world0; ./server-database/world0/
    [INIT] Segment Database Path: /home/starmade/starmade/./server-database/world0/DATA; exists? true; is Dir? true; creating dir successful (gives false if exists)? false
    [GUI] NO STARMADE-WINDOW CONFIG FOUND. Using defaults
    [LIBLOADER] OS Linux - 3.18.11-v7+
    [LIBLOADER] JAVA Oracle Corporation - 1.8.0 - /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre
    [LIBLOADER] ARCHITECTURE arm
    Exception in thread "main"
    java.lang.UnsatisfiedLinkError: /home/starmade/starmade/native/linux/libStarMadeNative.so: /home/starmade/starmade/native/linux/libStarMadeNative.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1119)
    at obfuscated.Wj.a(SourceFile:122)
    at org.schema.game.common.Starter.main(SourceFile:924)

    The number of "No such file or directory" errors implies I've done something wrong but I don't know what.


    I don't know if this is relevant but when I run "java -jar StarMade.jar -nogui" I get the following output:
    [VERSION] loading version from install dir: ./
    [VERSION] VERSION: 0.199.535
    [VERSION] BUILD: 20170427_155818
    #################### StarMade #######################
    # version 0.199.535 - build 20170427_155818 #
    #####################################################
    [SERIAL] "not retrieved"
    [INSTALLATION_DIRECTORY] "/home/starmade/starmade/."
    [JVM-ARGUMENTS] []
    [TEXTURE-PACK] WARNING: ignoring lava.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring shield_tex.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring lava.png.zip: not a directory
    [TEXTURE-PACK] WARNING: ignoring shield_tex.png.zip: not a directory
    java.io.FileNotFoundException: ./settings.cfg (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileReader.<init>(FileReader.java:72)
    at obfuscated.aGf.b(SourceFile:590)
    at obfuscated.aGf.d(SourceFile:632)
    at org.schema.game.common.Starter.main(SourceFile:868)
    Could not read settings file: using defaults
    [SERVER] using world: world0; ./server-database/world0/
    [INIT] Segment Database Path: /home/starmade/starmade/./server-database/world0/DATA; exists? true; is Dir? true; creating dir successful (gives false if exists)? false
    [GUI] NO STARMADE-WINDOW CONFIG FOUND. Using defaults
    [LIBLOADER] OS Linux - 3.18.11-v7+
    [LIBLOADER] JAVA Oracle Corporation - 1.8.0 - /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre
    [LIBLOADER] ARCHITECTURE arm
    Exception in thread "main"
    java.lang.UnsatisfiedLinkError: /home/starmade/starmade/native/linux/libopenal.so: /home/starmade/starmade/native/linux/libopenal.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1119)
    at obfuscated.Wj.a(SourceFile:104)
    at org.schema.game.common.Starter.main(SourceFile:924)


    Does anyone have any experiencing with this? Any help or advice would be greatly appreciated :)
     

    Sachys

    Hermit.
    Joined
    Nov 30, 2015
    Messages
    646
    Reaction score
    315
    I have no idea regarding the logs right now (bit late int the day for me), AND im no linux expert, BUT... is the PI capable of running a server? Amazing things as they may be, I know they are generally not fancy in their specs unless upgraded. Hence: questions.
    hope you get it sorted anyways!
     
    Joined
    Feb 10, 2017
    Messages
    350
    Reaction score
    775
    • Community Content - Bronze 2
    • Legacy Citizen 5
    • Likeable
    The missing files bit is standard loading, the bit it's having problems with is that it's running on an ARM CPU... (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
    AFAIK Starmade won't run on an ARM processor. It's a different architecture to your standard x86 CPU and is not as capable, ARM is designed for speed and efficiency, that's why it's in mobile phones. The game would have to be ported, if that's even possible, I doubt it... beyond my ken. /shrug.
     

    Sachys

    Hermit.
    Joined
    Nov 30, 2015
    Messages
    646
    Reaction score
    315
    tech stuff
    well, if nothing else, I know more about things than i did before, so cheers!

    Edit: genuine as well. edited your quote down for "tech stuff" simplicity, now i just look like a git! O__o
     
    Joined
    Jun 27, 2013
    Messages
    895
    Reaction score
    165
    You could try recompiling libStarMadeNative; AFAIR the source is (was?) open. It should be possible to find the links somewhere on these forums.
    Of course you'll probably also need LWJGL and OpenAL, no idea whether Starmade.jar depends on them when launched as a server, and whether or not they are portable enough (ISTR an ARM port of OpenAL at least).

    Not to discourage you, but I doubt you'd be happy with the RPi's limited speed and memory, even for a single player universe...
    I think it'd be worth trying, for the learning experience if nothing else.