Is the new Faction/fleet stuff broken on Linux?

    Joined
    Nov 30, 2015
    Messages
    855
    Reaction score
    75
    I have this problem as well. I can only see the trading guild and pirate factions. Also, does fog of war cloud out factions? Because I spent a good hour making a jumper ship to go out and find it.
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    We had a tester try to repro on a fresh Ubuntu 16.x and couldn't repro it.

    We're all of these upgrades or fresh installs?
     
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    Mine was an upgrade from the previous StarMade version. Though I did a fresh install/reset the day before the update, I'd have waited a day had I known ahead of time.
     
    Joined
    Aug 23, 2016
    Messages
    758
    Reaction score
    129
    Mine (working fine/correctly) was an upgrade.

    I'm going to go out on a limb here and just take a guess at the root of the problem: permissions in the steam folders.

    Because I have my steam install on a separate partition, and because I'm lazy and not security conscious, I just recursively chmod my steam folder and all its children to 775 or 777, so I'm guessing I have permissions for creating/copying files that many people don't. And looking at the log posted on page 1, it's when trying to copy files/folders that npcs on the server fails.

    So mine works while no-one else's does ;)
     
    Last edited:
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    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
    Doing this seems to have fixed NPC Factions on my server.

    One thing I noticed was unzip was not even installed on my server (Ubuntu 16.04 Server, bare-bones command-line install only). So maybe this step failed during initial world creation because of missing dependencies.
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    The testserver never had issues with updating the map and extracting the files.

    So missing zip support could be a reason.
    However, to my knowledge:
    "java.util.zip"
    should work on every system.
    And this is (as far as I know) used to extract the files.

    Not sure if a missing installed "unzip/zlib" could make the java.util.zip fail to operate.
    Unless java.util.zip uses the unzip command behind the scenes.
    (And this works from my experience on all operating systems with the same format and arguments)

    - Andy
     
    • Like
    Reactions: nightrune
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    Oracle's documentation on java.util.zip doesn't make any mention of any required system utilities for it to work. But their documentation seems horribly-formatted so maybe I missed something.

    If I have time tonight, I'll spawn up a fresh Ubuntu Server VM and install unzip before starting a StarMade server, just to confirm or deny that this is the problem.
     

    nightrune

    Wizard/Developer/Project Manager
    Joined
    May 11, 2015
    Messages
    1,324
    Reaction score
    577
    • Schine
    • Top Forum Contributor
    • Thinking Positive
    Oracle's documentation on java.util.zip doesn't make any mention of any required system utilities for it to work. But their documentation seems horribly-formatted so maybe I missed something.

    If I have time tonight, I'll spawn up a fresh Ubuntu Server VM and install unzip before starting a StarMade server, just to confirm or deny that this is the problem.
    Start with a fresh server and see if it fails first please. Then install unzip and see if it fixes it! That should be a pretty good definitive.
     

    AndyP

    Customer Experience Manager
    Joined
    Aug 15, 2013
    Messages
    1,199
    Reaction score
    264
    • Schine
    • Wired for Logic
    Great, that would be helpful.
    And good to know.

    - Andy
     
    • Like
    Reactions: nightrune
    Joined
    Jun 24, 2013
    Messages
    270
    Reaction score
    43
    I had unzip installed previously. I did not install anything new or unusual between the normal server setup and running the commands manually.

    I normally run starmade in a screen session, but I did try manually running the Linux dedicated script with no difference.

    The server is a Debian (Stretch) server running in a VM which I gave:
    6 Core (AMD Opteron)
    16 GB RAM
    10 GB Disk space

    I created a user for starmade (called 'starmade') and ran the new installer in the home directory.

    I both run the server and the above move commands as the starmade user (so I assume it was not rights related)
     
    Joined
    Nov 1, 2014
    Messages
    317
    Reaction score
    98
    • Legacy Citizen
    • Purchased!
    Okay, just did some testing with fresh Ubuntu Server 16.04 server VMs and I was unable to reproduce this. One VM had unzip installed (and unzip dependencies) and the other did not. Both had NPC Factions when I joined.

    It could be something with the upgrade from the previous version then, and not with fresh installs of the current version.
     

    DukeofRealms

    Count Duku
    Joined
    Sep 4, 2013
    Messages
    1,476
    Reaction score
    1,616
    • Schine
    and because I'm lazy and not security conscious, I just recursively chmod my steam folder and all its children to 775 or 777
    Please, please, please don't do this. 1 million innocent puppies die every time you set 777 perms.
     
    Joined
    Aug 23, 2016
    Messages
    758
    Reaction score
    129
    Please, please, please don't do this. 1 million innocent puppies die every time you set 777 perms.
    Haha, yes, I don't advocate anyone doing this, it's just that I knew I'd done it and assumed others hadn't, so my guess (apparently wrong anyway) was that it could be exposing the reason I was having no trouble while others were.
     
    Joined
    Jul 17, 2013
    Messages
    1,438
    Reaction score
    208
    • Tester
    it just describes the fact that some people had seen universes after the NPC update that did not contain the new factions.
    so far only happend to linux systems afaik.
    the npc assets do not get copied into the proper folders on setup or conversion of a universe.
    afaik no known way to reproduce that effect.
     
    Joined
    Jun 24, 2015
    Messages
    385
    Reaction score
    59
    The description is too brief for an outsider (well, me anyway) to understand what is being described
    In short, when the game makes a new world, it un-packs the data needed from several locations. Somtimes this is actually copying the information, others it is actually un-packing it. (.zip and .rar files)

    The problem is, sometimes, despite having permission and space to do so, the files fail to copy. (this could be a "filename too long" type error, or could be something else equally stupid)
    The result is, NPC factions will not spawn for that world, untill someone with direct file access manually copies them into the correct locations.
    (which somehow works, when the automated system failed)

    EDIT: good one SmilingDemon, ya beat me to it.
     
    Joined
    Aug 23, 2016
    Messages
    758
    Reaction score
    129
    it just describes the fact that some people had seen universes after the NPC update that did not contain the new factions.
    The result is, NPC factions will not spawn for that world, untill someone with direct file access manually copies them into the correct locations.
    (which somehow works, when the automated system failed)
    Oh ok, sorry, same issue that was being discussed previously, not a new one.
    I'm not seeing this at all, I've had no trouble.
     
    Joined
    Jun 24, 2015
    Messages
    385
    Reaction score
    59
    Only one server I've been on had encountered it, and it was literally the day after they had switched to a physical Linux server box rather than a virtualized Win-10 server.

    It may have been a result of his unfamiliarity with Starmade servers, or from setting it up on Linux (which he allso wasn't too familiar with.)
     
    Joined
    Jul 10, 2013
    Messages
    626
    Reaction score
    486
    • Community Content - Bronze 2
    • Purchased!
    • Legacy Citizen 7
    it just describes the fact that some people had seen universes after the NPC update that did not contain the new factions.
    so far only happend to linux systems afaik.
    the npc assets do not get copied into the proper folders on setup or conversion of a universe.
    afaik no known way to reproduce that effect.
    Same happened to me, no new factions even after creating new universe.

    had to do a clean fresh install to see the new faction. Running on linux ubuntu 14.04.