NPC Crew Improvements

    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    This isn't what you think it is, that title is probably a bit misleading. Sorry!

    First, what I'm actually proposing has more to do with shops. Currently, if you have replaced your server/singleplayer spawn shop, there is no NPC trader from which to buy NPCs. Either we need a guide on how to create an "advanced" shop with the NPC trader or we need a system in place that lets us do that.

    Secondly, making the first issue worse is the fact that we have no way of spawning NPCs: there needs to be an admin command making this possible.
     

    Master1398

    Keep calm and quit raging
    Joined
    Aug 19, 2013
    Messages
    293
    Reaction score
    229
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 3
    Actually the only way to spawn NPCs the easy way is /spawn_creature but these are just normal NPCs not traders.

    But there is a way to spawn a trader: in 2,2,2 you have to use:
    /populate_sector.
    This spawns a shop with a trader. If you only want the trader do:
    /destroy_entity
    while you have the shop selected.
    Now you have the trader floating in space that's why you need to use
    /creature_goto
    to align this trader to your own spawn station or your ship to transport him.
    The later brings the risk that the NPC glitches out of your ship or doesn't move with it at all.
    So you may want to use:
    /creature_enter_gravity
    The trader NPC is now in the gravity of the ship (or station)

    This is basicly how i got this guy [and his friends ;)]

    But be careful! When you /populate_sector a sector where there already is a station in the center the spawned shop may cause lag!

    Edit: I'll just going to leave a link to some /spawn_creature suggestions
     
    Last edited:
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    Thanks master, that's exactly the kind of thing I was looking to do! I just couldn't find it anywhere on the forums or old site or anywhere.

    Another question you might be able to answer, what are the commands to give the various personal beams?
     

    Master1398

    Keep calm and quit raging
    Joined
    Aug 19, 2013
    Messages
    293
    Reaction score
    229
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 3
    With personal beams you mean the different guns right?
    /give_heal_weapon [PlayerName]
    /give_marker_weapon [PlayerName]
    /give_laser_weapon [PlayerName] *
    /give_power_supply_weapon [PlayerName]

    * you can also use /give_metaitem [PlayerName] weapon (or helmet or logbook)
     
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    And ONE more thing... when I use /spawn_creature an NPC appears, however, there is no way to recruit them into a faction or give them orders.
     

    Master1398

    Keep calm and quit raging
    Joined
    Aug 19, 2013
    Messages
    293
    Reaction score
    229
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 3
    You won't believe it but for this there is also a solution.
    Select the NPC with 'F' or whatever you have to use to select something and do:
    /faction_set_entity [factionID]*
    *The number in the [] brackets behind your faction name

    When you did this you can talk to him and hire him and give him orders. If you want to give him a name you can do this under "AI-Config".
    Click on "Crew" and you should see that NPC under the name "NoName". Click on it and you should see an option called rename.

    You can find all the ancient knowledge about Admin Commands here. Currently outdated by the way: There was one (or more) new command added with 0.017: /execute_entity_effect 0|1|2 (these three effects are the only one i found out to work so far). It shows the warp-effect when used on a ship or a station (i quess it also works planets o__o )
     
    Last edited:
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    Holy shit, your endless knowledge of adminship is most impressive. The page I was using is even more out of date than the one you linked.
     

    Lone_Puppy

    Me, myself and I.
    Joined
    Mar 12, 2015
    Messages
    1,274
    Reaction score
    529
    • Purchased!
    • Community Content - Bronze 2
    • Legacy Citizen 8
    I found that, if I create a login name for my server and then add him to the Trading Guild faction, every time he requests crew he gets a shop keep. :)

    I've created loads of them this way and they are all under my command. Good for my own custom stations.
     

    StormWing0

    Leads the Storm
    Joined
    Jun 26, 2015
    Messages
    2,126
    Reaction score
    316
    • Community Content - Bronze 1
    Hmm this is rather useful too. Also wonder if there is more up to date info? o_O
     
    Joined
    Jul 29, 2013
    Messages
    1,173
    Reaction score
    494
    • Competition Winner - Small Fleets
    • Top Forum Contributor
    • Legacy Citizen 5
    From what I've seen in the updates, all of this is pretty much current. No real new NPC stuff other than this.