Is the new Faction/fleet stuff broken on Linux?

    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    I decided for this dev release that I would set up a new user on my server, start using the new launcher and just download a fresh copy of Starmade and drop my old install.
    Unfortunately, starting g a new server leaves me with No factions other than Trader and Pirate.

    Forgot to mention, patched to latest dev with -nogui -dev


    Am I the only one noticing this?
     
    Last edited:

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Can you post the logs you get here?

    As well as if there are zip folders in data/npcConfig?
     
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    There is no data/npcConfig There is a data/npcFactions with the following:

    Code:
    drwxr-xr-x  5 1004 1004  4096 Dec 11 16:31 .
    drwxr-xr-x 20 1004 1004  4096 Nov 20 00:54 ..
    -rw-r--r--  1 1004 1004 45929 Dec 11 16:31 npcConfigDefault.xml
    -rw-r--r--  1 1004 1004  3057 Dec 11 16:31 npcSpawnConfig.xml
    drwxr-xr-x  2 1004 1004  4096 Dec 18 12:10 Outcasts
    drwxr-xr-x  2 1004 1004  4096 Dec 18 12:10 Scavengers
    drwxr-xr-x  2 1004 1004  4096 Dec 18 12:10 Trading Guild
    [doublepost=1482082011,1482081412][/doublepost]The log claims:

    Code:
    [2016-12-18 12:18:57] [IO][COPY] FILE FROM /home/starmade/StarMade/./data/npcFactions/Scavengers/npcConfig.xml to /home/starmade/StarMade/./server-database/world0/npcFactions/Scavengers/npcConfig.xml
    [2016-12-18 12:18:57] java.io.FileNotFoundException: ./server-database/world0/npcFactions/Scavengers/npcConfig.xml (No such file or directory)
    But:

    Code:
    ~/StarMade/data/npcFactions/Scavengers$ ls -an
    total 372
    drwxr-xr-x 2 1004 1004   4096 Dec 18 12:10 .
    drwxr-xr-x 5 1004 1004   4096 Dec 11 16:31 ..
    -rw-r--r-- 1 1004 1004 321837 Dec 18 12:10 blueprints.zip
    -rw-r--r-- 1 1004 1004  44608 Dec 18 12:10 npcConfig.xml
    user/group 1004 is my starmade user
     

    Attachments

    Last edited:

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Can you view the ncpConfig.xml with "less" or vim?
     
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    Code:
    ~/StarMade/data/npcFactions/Scavengers$ head npcConfig.xml
    <NPCFactionConfig>
        <Version>0<!--autocreated--></Version>
        <Config>
            <Outer>
                <!--Classification Weight: A weighted distribution of blueprint classes. This will normalize on existing classes. Example if we have available FIGHTER(weight 3), MINING(weight 1), TRADING(weight 5), then with 9 spawned ships, there would be 3 fighters, 1 miner, and 5 traders. Same happens with mass distribution of every class from index 0 (lightest ship) to 15 (heaviest ship), so if you set 0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, only the biggest mass ships will be spawned (but nothing else). if you set 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1, the smalled and biggest mass ships will spawn equally (but nothing inbetween)-->
                <ClassificationWeight>
                    <Classification>NONE</Classification>
                    <Weight>0.0</Weight>
                    <MassDistribution>1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0</MassDistribution>
                </ClassificationWeight>
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Code:
    ~/StarMade/data/npcFactions/Scavengers$ head npcConfig.xml
    <NPCFactionConfig>
        <Version>0<!--autocreated--></Version>
        <Config>
            <Outer>
                <!--Classification Weight: A weighted distribution of blueprint classes. This will normalize on existing classes. Example if we have available FIGHTER(weight 3), MINING(weight 1), TRADING(weight 5), then with 9 spawned ships, there would be 3 fighters, 1 miner, and 5 traders. Same happens with mass distribution of every class from index 0 (lightest ship) to 15 (heaviest ship), so if you set 0,0,0,0,0,0,0,0,0,0,0,0,0,0,1, only the biggest mass ships will be spawned (but nothing else). if you set 1,0,0,0,0,0,0,0,0,0,0,0,0,0,1, the smalled and biggest mass ships will spawn equally (but nothing inbetween)-->
                <ClassificationWeight>
                    <Classification>NONE</Classification>
                    <Weight>0.0</Weight>
                    <MassDistribution>1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0</MassDistribution>
                </ClassificationWeight>
    And check in the destination folder? "/home/starmade/StarMade/./server-database/world0/npcFactions/Trading Guild/npcConfig.xml"
     
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    doesn't exist... as the log notes, it says that the xml file doesn't exist when it tries to copy it...

    Code:
    [2016-12-18 12:18:57] [IO][COPY] FILE FROM /home/starmade/StarMade/./data/npcFactions/Scavengers/npcConfig.xml to /home/starmade/StarMade/./server-database/world0/npcFactions/Scavengers/npcConfig.xml
    [2016-12-18 12:18:57] java.io.FileNotFoundException: ./server-database/world0/npcFactions/Scavengers/npcConfig.xml (No such file or directory)
    Code:
    ~/StarMade/server-database/world0/npcFactions$ ls -an
    total 8
    drwxr-xr-x 2 1004 1004 4096 Dec 18 13:17 .
    drwxr-xr-x 7 1004 1004 4096 Dec 18 13:47 ..
    [doublepost=1482084225,1482084148][/doublepost]I mean, I could manually copy those files over, but I shouldn't have to.
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    doesn't exist... as the log notes, it says that the xml file doesn't exist when it tries to copy it...

    Code:
    [2016-12-18 12:18:57] [IO][COPY] FILE FROM /home/starmade/StarMade/./data/npcFactions/Scavengers/npcConfig.xml to /home/starmade/StarMade/./server-database/world0/npcFactions/Scavengers/npcConfig.xml
    [2016-12-18 12:18:57] java.io.FileNotFoundException: ./server-database/world0/npcFactions/Scavengers/npcConfig.xml (No such file or directory)
    Code:
    ~/StarMade/server-database/world0/npcFactions$ ls -an
    total 8
    drwxr-xr-x 2 1004 1004 4096 Dec 18 13:17 .
    drwxr-xr-x 7 1004 1004 4096 Dec 18 13:47 ..
    Alright odd they copy doesn't work. What are the permissions on the world0 folder? EDIT, Nice looking forward.
    [doublepost=1482084497,1482084231][/doublepost]Looks like we got a few other reports of this as well. You'll need to manually copy and extract for right now but the team knows about it. AndyP knows. Next time if you have issues like this post in Game Support you'll likely get a faster response. Its a bit on dev server issues though. There are quite a few of us on the testing team but very few run linux on a daily basis.
     
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    Code:
    starmade:~$ ls -ld StarMade
    drwxr-xr-x 19 starmade starmade 4096 Dec 18 13:17 StarMade
    starmade:~$ ls -ld StarMade/server-database/
    drwxr-xr-x 5 starmade starmade 4096 Dec 18 13:17 StarMade/server-database/
    starmade:~$ ls -ld StarMade/server-database/world0/
    drwxr-xr-x 7 starmade starmade 4096 Dec 18 13:52 StarMade/server-database/world0/
    starmade:~$ ls -ld StarMade/server-database/world0/npcFactions/
    drwxr-xr-x 2 starmade starmade 4096 Dec 18 13:17 StarMade/server-database/world0/npcFactions/
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    I've created a bug report here. Login to Phabricator

    I've uploaded your logs as well to it. Its possible it'll be hidden until its reviewed by the team, but there are other users affected by this. Right now you'll just need to manually copy in the assets and unzip them.

    Thanks for finding this Andir

    EDIT: I'll also reiterate for others that read this thread. Posting in support for issues like this will tend to get them resolved faster.
    [doublepost=1482085200,1482084981][/doublepost]Directions from Lancake

    1. copy all folders in `./StarMade/data/npcFactions` to your world in `./StarMade/server-database/worldName/npcFactions`
    2. in each faction folder of `./StarMade/server-database/worldName/npcFactions`, do "extract here" on the blueprints.zip and delete the zip file afterwards
     
    • Like
    Reactions: Top 4ce

    Lancake

    Head of Testing
    Joined
    Aug 20, 2013
    Messages
    794
    Reaction score
    560
    • Schine
    • Tester
    Should look like this:
    upload_2016-12-18_19-21-56.png

    You can do that while we're working on fixing this problem
     
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    Ugh, the annoying part for anyone wanting to fix their server if this is happening...

    1. Start a server however you do (this is for a new world called world0...)
    2. Shut down the server
    3.
    Code:
    cd StarMade/server-database/world0
    cp -R ../../data/npcFactions ./
    mkdir npcFactions/Outcasts/blueprints
    mkdir npcFactions/Scavengers/blueprints
    mkdir npcFactions/Trading\ Guild/blueprints
    unzip npcFactions/Outcasts/blueprints.zip -d npcFactions/Outcasts/blueprints
    unzip npcFactions/Scavengers/blueprints.zip -d npcFactions/Scavengers/blueprints
    unzip npcFactions/Trading\ Guild/blueprints.zip -d npcFactions/Trading\ Guild/blueprints
    4. Restart the server
     
    • Like
    Reactions: nightrune
    Joined
    Nov 6, 2016
    Messages
    11
    Reaction score
    3
    When following this advice, I end up seeing Trading Guild and Traders... Is this normal?

     
    Last edited:
    Joined
    Aug 23, 2016
    Messages
    758
    Reaction score
    129
    I haven't started a sever since the update, only connected to someone's windows server, but I'll try it when I get home tonight.
     
    • Like
    Reactions: nightrune
    Joined
    Mar 3, 2014
    Messages
    1
    Reaction score
    0
    I'm having this same problem. npcFactions folder is there in server-databases, but it is empty. (Sorry, its quite long) I am using linux. My log is attached to this post.
     

    Attachments

    Joined
    Aug 23, 2016
    Messages
    758
    Reaction score
    129
    Appears to be working fine for me without any effort or any need to make any edits to anything.
    I'm seeing Pirates, Trading Guild, and three new NPC factions in my pre-existing universes, and in new universes.
     
    Joined
    Jul 17, 2013
    Messages
    1,438
    Reaction score
    208
    • Tester
    When following this advice, I end up seeing Trading Guild and Traders... Is this normal?
    correct

    the pirates and trade guild faction are the old default ones .. they will be removed from a newly generated universe in the future (probably).
    [doublepost=1482141304,1482141174][/doublepost]Andir Tracing .. what exact OS version are you using ?
     
    Joined
    Nov 6, 2016
    Messages
    11
    Reaction score
    3
    Thank you!

    Since I had the same problem, imagine you might be interested in my OS as well? If not, please ignore. :)

    Code:
    >lsb_release -a
    Distributor ID: Debian
    Description:    Debian GNU/Linux 8.6 (jessie)
    Release:        8.6
    Codename:       jessie
     
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    So that explains why we didn't see any NPC factions after resetting my server (hosted on Ubuntu Server 16.04). We had assumed we had to discover them somehow.