Space Engineers

Space Engineers

48 ratings
How to create new Cargo Ships
By Arara
Steps to make your ships to spawn as new cargo ship.
   
Award
Favorite
Favorited
Unfavorite
Export your ship to file
Export your ship in creative mode.
Copy ship(Ctrl+c) -> F11 -> click "Export clipboard to file"
then you will get sbc file of your ship like as shipname.sbc
(save location will be shown in info message.)

*Cargo Ships may need cockpit block.

Find original settings
Find SpawnGroups.sbc and Fake.dds in SE install folder.

ex)
C:\Games\SteamLibrary\SteamApps\common\SpaceEngineers
\Content\Data\SpawnGroups.sbc
\Content\Textures\GUI\Icons\Fake.dds
Make mod folder and Copy files
Make mod folder and Copy files.

ex)
C:\Users\[ user name ]\AppData\Roaming\SpaceEngineers\Mods\[ your mod name ]
\Data\SpawnGroups.sbc
\Data\Prefabs\shipname.sbc
\Textures\GUI\Icons\Fake.dds

You want to show thumbnail in workshop, add a image file into your mod Folder.
File name must be "thumb.jpg".

ex)
C:\Users\[ user name ]\AppData\Roaming\SpaceEngineers\Mods\[ your mod name ]
thumb.jpg
Edit your SpawnGroups
Edit SpawnGroups.sbc.
you can use text editor.

You need to write <SpawnGroup> Element and its children between <SpawnGroups> - </SpawnGroups>.

-Change <SubtypeId> to unique name.

-Change <Prefab SubtypeId="xxx">,
xxx to your ship's <SubtypeId>.
(You can find your <SubtypeId> in your sbc file.)

-Change <Frequency><BeaconText><Speed> as you like.

*delete Unnecessary <SpawnGroup> in your SpawnGroups.sbc.
**If you write multiple <Prefabs>, multiple ships come same time.
Sample code
Here is a sample setting from my Invaders.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=318471083
<?xml version="1.0"?> <Definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SpawnGroups> <SpawnGroup> <Id> <TypeId>SpawnGroupDefinition</TypeId> <SubtypeId>-Invader3</SubtypeId> </Id> <DisplayName>-Invader3</DisplayName> <Description>Invader spawn group</Description> <Icon>Textures\GUI\Icons\Fake.dds</Icon> <Frequency>5.0</Frequency> <Prefabs> <Prefab SubtypeId="-Invader3"> <Position> <X>300.0</X> <Y>300.0</Y> <Z>0.0</Z> </Position> <BeaconText>-Invader Fighter B-</BeaconText> <Speed>25.0</Speed> </Prefab> <Prefab SubtypeId="-Invader3"> <Position> <X>0.0</X> <Y>0.0</Y> <Z>0.0</Z> </Position> <BeaconText>-Invader Fighter A-</BeaconText> <Speed>25.0</Speed> </Prefab> <Prefab SubtypeId="-Invader3"> <Position> <X>-300.0</X> <Y>-300.0</Y> <Z>0.0</Z> </Position> <BeaconText>-Invader Fighter C-</BeaconText> <Speed>25.0</Speed> </Prefab> </Prefabs> </SpawnGroup> </SpawnGroups> </Definitions>
Finish
Now you got new cargo ship.
Select and set/publish from mod panel in game.
Have fun! :)
41 Comments
ThePhoenixKnight 10 Jul, 2020 @ 7:45am 
umm. does this still work?
Moogek 9 Jan, 2016 @ 6:27pm 
Thanks
Arara  [author] 9 Jan, 2016 @ 6:04pm 
Cargo ship was temporarily disabled on screen.
But you can edit your Sandbox.sbc in your save date: search <CargoshipEnabled> and change "false" to "true".
Moogek 9 Jan, 2016 @ 3:19pm 
How enable cargo ships? :C
Rude 25 Apr, 2015 @ 12:02am 
Oh i didn't saw your invader script. I'll try it. since i don't know C# :(

Thanks for your answer.
Arara  [author] 24 Apr, 2015 @ 11:40pm 
-I haven't try to use absolute path.
-Cargo ship setting seems not having parameter about spawning position.(only related positions..)
If you want, You can write script to navigate cargo ships to your ship or specified position.
Rude 24 Apr, 2015 @ 10:39am 
Hello, Thank you for this..

Is it possible to keep the ship in the blueprint section and path the ship ? Like <SubtypeId>C:\Users\....</SubtypeId> ?

Also do you know how to get Cargo Ships to last "longer" or to come "closer" ?

Thanks again for this :)
Avelius 14 Apr, 2015 @ 11:33am 
It worked! But my PC had over 60°C at the GPU! Also he got pretty loud. But.... it worked! Thanks for this awesome tutourial!
Arara  [author] 14 Apr, 2015 @ 8:16am 
I think it works, if your PC could process it.
Avelius 14 Apr, 2015 @ 12:05am 
Is there any ship size limitation? I have a huge ship (about 100.000 Blocks) and try to make it to an NPC controlled cargo ship. Would this work?