How can I add the NPC factions to an existing server universe?

    Joined
    Jun 20, 2013
    Messages
    4
    Reaction score
    0
    • Legacy Citizen 5
    Hello. I created a world on a home server (playing from a different computer, but for singleplayer use only so far), have played on it for a while, and just realized it is missing the three default factions. Pirates still show up, but the Outcasts, Scavengers and Trade Guild factions don't seem to be there. Shops, pirate stations and ships still exist, but no sectors are claimed nor are there any NPC fleets. Is there any way to add them?
     
    Joined
    Jun 27, 2013
    Messages
    895
    Reaction score
    165
    Check server.cfg for
    Code:
    NPC_FACTION_SPAWN_LIMIT = -1 //Maximum npc factions per galaxy (-1 for unlimited (will still be around 2-10))
    If it is set to anything except zero, it should generate them even if you migrated an old universe from before the NPCs were added.

    Just guessing, but maybe if it is set higher than the actual number of actually available factions (that is, ones with config files and models) it might not work as expected? Negative one should be a safe setting in any case.
     
    Joined
    Jan 28, 2015
    Messages
    492
    Reaction score
    149
    • Community Content - Bronze 1
    • Purchased!
    • Legacy Citizen 3
    have played on it for a while
    Your map is probably from before the NPC update. Existing maps do not have there universe upgraded with the NPC.

    If you start a new map then it will get the NPC provided you turn the option to spawn them on.

    You can transfer sectors from your existing map to your new map just make sure you use the same size sectors in both maps.

    export_sector
    • DESCRIPTION: exports the whole sector. be sure to use /force_save before
    • PARAMETERS: X(Integer), Y(Integer), Z(Integer), name(String)
    • EXAMPLE: /export_sector 2 3 4 mySavedSector
    import_sector
    • DESCRIPTION: make sure that the target sector is unloaded
    • PARAMETERS: toX(Integer), toY(Integer), toZ(Integer), name(String)
    • EXAMPLE: /import_sector 2 3 4 mySavedSector
    mySavedSector is the file name. Replace this with a name of your own but keep it simple so you remember it for when you do the import.

    You may have to transfer the saved sector files from the old map folder to the new map folder before you can import them.

    If you do start a new map then check out these posts on other possible changes such as the default stations you find on the map:

    Fixing StarMade's Continued Play Value

    You can also change the ships the NPC use or even add NPC factions of your own. Beware though they are rather buggy. They send a lot of ships and those ships tend to stay around eating away CPU power.

    In your StarMade folder find:

    The data\npcFactions folder

    The .xml files set the behaviour and spawn. Replace the blueprints in the .zip files to add your own ships.

    To edit .xml files download the free Notepad++

    Tip use ships with a single core and no turrets so nothing falls off. Good luck.