How to instantly kill all pirates? I need to save my ship

    Joined
    Jan 13, 2020
    Messages
    3
    Reaction score
    0
    Help,
    I've spent 11 hours building a large carrier ship, but haven't added any weapon systems, or a warp drive yet, and I'm being attacked by pirates. I exited the game to stop my ship being destroyed as I cannot fight them off or run away. Is there any way for me to stop them from destroying my ship. Either by killing them, exporting my ship to another world, or making it invincible or something? Please help, I've put so much effort into this ship, I really don't want to see it destroyed.
    I'm very new to the game so I don't know what to do.
     
    Joined
    Sep 18, 2014
    Messages
    621
    Reaction score
    448
    I suppose you are playing solo.

    /god_mode YourName true

    Then select ennemies by pressing "f", it's the default key.

    /destroy_entity_dock

    You can then use a repair beam to replace damaged blocks easily. Be warned however that you actually need to touch the block with the beam to repair the block's hp. So you'll replace destroyed blocks but some blocks will stick to being damaged unless you repair them specifically. It is possible to replace them with the replace tool to get new blocks with a full hp pool.
     
    • Like
    Reactions: cogi234 and Agame3
    Joined
    Dec 14, 2014
    Messages
    225
    Reaction score
    251
    • Purchased!
    • Community Content - Silver 1
    • Legacy Citizen 8
    in addition to the above...

    copy (cntrl+c):

    /god_mode YourPlayerName true

    onto the clipboard before you enter the game, be ready to open chat: (enter / return-key)
    quickly paste (cntrl+v) into chat and (enter / return) again to send it.

    At this point you / yourShip will be safe as soon as you enter it.

    or to immediately disable damage in the sector:
    /sector_chmod 2 2 2 + protected
    replace sector coordinates as needed*

    Best option:
    /despawn_all MOB_ all true
    will deleate all Pirates in one sweep!
    Also in the Catalog- Admin panel there is also the option to delete all MOBs in the area.

    Good Luck!
     
    Last edited:
    • Like
    Reactions: Agame3
    Joined
    Jan 13, 2020
    Messages
    3
    Reaction score
    0
    I suppose you are playing solo.

    /god_mode YourName true

    Then select ennemies by pressing "f", it's the default key.

    /destroy_entity_dock

    You can then use a repair beam to replace damaged blocks easily. Be warned however that you actually need to touch the block with the beam to repair the block's hp. So you'll replace destroyed blocks but some blocks will stick to being damaged unless you repair them specifically. It is possible to replace them with the replace tool to get new blocks with a full hp pool.

    Absolute legend, thank you so much!
    You are a literal lifesaver!
     
    Joined
    Jan 13, 2020
    Messages
    3
    Reaction score
    0
    in addition to the above...

    copy (cntrl+c):

    /god_mode YourPlayerName true

    onto the clipboard before you enter the game, be ready to open chat: (enter / return-key)
    quickly paste (cntrl+v) into chat and (enter / return) again to send it.

    At this point you / yourShip will be safe as soon as you enter it.

    or to immediately disable damage in the sector:
    /sector_chmod 2 2 2 + protected
    replace sector coordinates as needed*

    Best option:
    /despawn_all MOB_ all true
    will deleate all Pirates in one sweep!
    Also in the Catalog- Admin panel there is also the option to delete all MOBs in the area.

    Good Luck!
    Thank you so much my guy, you've saved my ship!
     

    Skwidz

    turtleStew
    Joined
    Jun 14, 2017
    Messages
    273
    Reaction score
    148
    You can also navigate to (starmade folder)/server-database/(name of your save)/ and delete all entity (.ent) files with "pirate" in it. Ship file names begin with "ENTITY_SHIP" while stations begin with "ENTITY_STATION." If you don't want anymore pirates to spawn, you can disable enemy usage for all the blueprints in the catalog. The fastest way is by using the admin tab