Jump to content

Turn a non-station-founder ship into a station


Carnaxus

Recommended Posts

Hey all, I've built a prototyping ship in a creative world for the purpose of building a few station designs and saving them.  I've done that, and now I'm trying to make sure it doesn't try to go flying off into the sunset when I tell its captain to "attack enemies."  It has no engines or thrusters, so it can't actually move, but I can't help but worry that that'll break the AI somehow or something.

 

What I'd like to do to fix it is to turn it into an actual station.  Problem is, it's not a station founder, it's a ship I built from scratch.  Does anyone know if there's a way to change a ship into a station, perhaps by editing the save files?

Link to comment
Share on other sites

You could try saving the ship blueprint, then build a new ship with station founder turned on. You should be able to import your saved ship design onto the station ship, then turn it into a station. You may need to make some edits if you pick a station that adds extra parts.

 

Hope that helps.

Link to comment
Share on other sites

  • 2 weeks later...

Forcing the craft into Station-founding capabilities would be rather easy if you want to mod it in / don't mind "cheating".

 

All you need to do is pilot the ship, open chat, and run the command:

/run Entity():addScriptOnce("data/scripts/entity/stationfounder.lua")

 

Alternatively, if you feel like writing a quick mod to always allow Station founding on any ship you pilot, consider adding this line to the data/scripts/lib/defaultscripts.lua file:

ship:addScriptOnce("data/scripts/entity/stationfounder.lua")

inside the function AddDefaultShipScripts(ship). For example, the lines near the start of my defaultscripts.lua now look like this:

 

function AddDefaultShipScripts(ship)
    ship:addScriptOnce("data/scripts/entity/startbuilding.lua")
    ship:addScriptOnce("data/scripts/entity/entercraft.lua")
    ship:addScriptOnce("data/scripts/entity/exitcraft.lua")
    ship:addScriptOnce("data/scripts/entity/invitetogroup.lua")

    ship:addScriptOnce("data/scripts/entity/craftorders.lua")
    ship:addScriptOnce("data/scripts/entity/orderchain.lua")
    ship:addScriptOnce("data/scripts/entity/transfercrewgoods.lua")

    ship:addScriptOnce("data/scripts/entity/stationfounder.lua")
end

 

Actually, that's a good idea for a mod. I'm gonna keep this functionality in. I like not having to enable "station founder" and being able to always found a Station from any old ship I'm pilotting. Neato -- thanks for the suggestion. ;P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...