Space Engineers

Space Engineers

DeMerge - Auto Convert Station to Ship (unsupported)
56 Comments
Casper1123 3 Feb, 2023 @ 7:39am 
I managed to (mostly) fix this mod (https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2927777502) and will attempt to keep it up to date as well. :)
Fvracer_x 25 Nov, 2021 @ 4:21pm 
R.I.P.
Scientwist 1 Nov, 2021 @ 10:21am 
@Ritaelyn It's not a script it's a C# mod thats stored in C:\Users\*Username*\AppData\Local\Temp\SpaceEngineers\428599432.sbm_DeMerge\DeMerge.cs

It's got a ton of errors as it's not making calls correctly to IMyCubeGrid and IMyShipMergeBlock, errors say it doesn't exist in Sandbox.ModAPI

If I knew more about C# or.cs file in general I'd fix it and post it but sadly I just don't.
Ritaelyn 5 May, 2021 @ 8:58pm 
I'm subscribed to this script but it's not showing up in game at all. All my other subscribed workshop scripts are showing up.
Dr. Secks 4 Jan, 2021 @ 11:45am 
doesn´t work
LavaSpringer 17 Apr, 2019 @ 4:44am 
However, only the grid whose merge block is deactivated is renamed.
LavaSpringer 17 Apr, 2019 @ 4:42am 
Here is the hopefully full-featured version: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1714963931
pjaj 16 Apr, 2019 @ 12:01am 
@LavaSpringer any chance I can get a copy of that? Only for my own personal use, of course.
LavaSpringer 4 Jan, 2019 @ 12:31pm 
I probably solved the problem. I can send you the file if you want Dark.
Dark  [author] 3 Jan, 2019 @ 10:49am 
Well, its been two years since I last touched SE....and judging by the error log - the old API is no more - not sure when I will have time to spend on SE and catch up with updates.

Sources should be included inside the mod package if anyone wants to try to fix it, maybe just namespace address needs changing.

Sorry folks :wat_creep:
Suicide_Jack 31 Dec, 2018 @ 6:25pm 
@Dark Can you please update this script?
i like the function to auto rename demerged ships very much and would like to be able to use these functions in the future.

Please give us at least a sign of live from your side.
Thanks in advance.

and Happy New Year.
LavaSpringer 10 Jun, 2018 @ 11:36am 
@Dark Can you fix the mod? There are the following errors:

DeMerge.cs(224,48): Error: The type or namespace name 'IMyCubeGrid' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(238,42): Error: The type or namespace name 'IMyCubeGrid' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(31,27): Error: The type or namespace name 'IMyShipMergeBlock' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(111,39): Error: The type or namespace name 'IMyShipMergeBlock' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(136,54): Error: The type or namespace name 'IMyCubeGrid' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(193,21): Error: The type or namespace name 'IMyCubeGrid' does not exist in the namespace 'Sandbox.ModAPI'
DeMerge.cs(193,77): Error: The type or namespace name 'IMyCubeGrid' does not exist in the namespace 'Sandbox.ModAPI'
Dark  [author] 25 Apr, 2016 @ 4:37pm 
Never was in ingame list.
SeptimusCorvus 25 Apr, 2016 @ 3:04pm 
Any chance of an update? Script no longer appears in in-game list
Tiger 12 Mar, 2016 @ 10:28am 
Does this work with the game's voxel support condition, that automatically converts loose stations into ships?
Devistator 12 Dec, 2015 @ 2:33pm 
i might be being abit thick but i cant find the script when i go to the script screen, iv tried refreshing and its still not there, iv added it to my mods list looked again still not there, iv been out of the game for a while so have i missed something?
Demonhunterspoon 26 Oct, 2015 @ 2:41pm 
Is there anyway that you could make the grid renaming function work as an in game script, so that a programming block could be triggered to rename the ship after seperation?
Lathy...or is it 27 Sep, 2015 @ 1:52am 
Thanks for the fix ^_^
Dark  [author] 26 Sep, 2015 @ 2:51pm 
Mod now works fine.
Although merging ships together is more dangerous than ever, my test map literally exploded when merging door again, blame Keen -_-
Dark  [author] 21 Sep, 2015 @ 2:01pm 
Thanks for letting me know, I'll see what can be done about it.
Lathy...or is it 20 Sep, 2015 @ 5:33pm 
Coudl you please update the code for this? It is still using the old .groups and throws an exception when it tries to load. This is a really useful mod, but currently broken because Keen did away with the .groups property on GridTerminalSystem

Thanks
ScaryGuys144 8 Sep, 2015 @ 2:50pm 
Piraneous... i load your map to understand how it work... i work great but i don't understand something ! ! ! ... why i can't find the merge block whit the AUTOCONVERT name in it ! i find the good merge block to turn off and it work , but is name is MERGE BLOCK YLLOW ... where is autoconvert ??? it suppose to be write juste after the name no!???
Dragon Fire 813 31 Aug, 2015 @ 12:57pm 
I use 4 pistons(one in each corner with pillers connecting each merge block to each other) to pull the container into a air tight room.
Dragon Fire 813 31 Aug, 2015 @ 11:33am 
What I'm doing is making a big removable cargo container with 4 merge blocks top and bottom.
I put [AutoConvert] #Main Storage Container on all the merge blocks. It does convert it back to a ship though.
Dragon Fire 813 31 Aug, 2015 @ 11:24am 
I even added the tag with the name after every merge block, when that didn't work I added ! to all of them, still didn't work.
Dragon Fire 813 31 Aug, 2015 @ 11:21am 
For some reason it won't rename the ship when I de-merge.
ScaryGuys144 30 Jul, 2015 @ 9:22pm 
Thank for the anwser Dark! , i think 1 of my problem is when i load my game whit your mod i don't find the "Auto-convert merge block" , i will check again after reload your mod, i will check your update too! before replying ! thank a lot for helping me!
Dark  [author] 29 Jul, 2015 @ 9:09am 
@Sasquatch it does not work, since that docking ring cannot be owned, it was mention before in here.
Dark  [author] 29 Jul, 2015 @ 9:07am 
@ScaryGuys144 please pay attention to the ownership of the auto-convert merge block and the ship - they must match. Auto-convert merge block should be on the ship, station should have usual merge block that is always On. Thats pretty much it.
I might update the world with example ship<->station when I have time.
ScaryGuys144 28 Jul, 2015 @ 8:57pm 
Hello Dark , is your test map is ok! i try to make working the door, i try to understand and modify it to make it work but nothing !! :( , i realy want to use your mod but i think is there something i don't understand , please help me using your mod ! i think is realy great for my world , i docking mutiple ship to a simple station , but you know... info , convert... i'm tired to rename and convert soooo much ! please help me to understand how that work ! thank for your collaboration!
Sasquatch 18 Jun, 2015 @ 12:57pm 
has anyone used this with this docking ring mod? If so how well do they play together?

http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=294619787
Dark  [author] 17 Jun, 2015 @ 11:37am 
It is meant for security in public multiplayer, I'm not sure if faction member is allowed to manually convert a stations that he does not directly own.

If you dock a ship that fully belongs to you and undock it from any station - it should work, because it only checks for ship ownership (which mean grid that was detached by turning off auto convert merge block and in which it still resides).
For now, If you (or the owner of the auto convert merge block) only owns part of the ship - grind and rebuild terminal blocks that does not belong to you.
Tamster 17 Jun, 2015 @ 5:08am 
can it be changed in the mod ? because it would mean that it won't work with faction station or so..
Dark  [author] 16 Jun, 2015 @ 11:17am 
That might be the problem, automatic conversion will happen only if owner of auto convert merge block directly owns most ownable blocks on grid, faction sharing does not matter in this case.
Tamster 16 Jun, 2015 @ 6:51am 
i'll try,
the thing is, both merge block are mine, but some of the block on each side ( station and drill ) are not. do you need the station and drill to be fully yours ?
Dark  [author] 15 Jun, 2015 @ 11:35am 
In no way it could prevent manual conversion.
I also did not test it on a dedi, but it is supposed to work there as well as in player-hosted world.
Could you provide a test world?
Tamster 15 Jun, 2015 @ 4:29am 
even on your demo map, loaded locally, your door work, but if i had a merge block on the station, dock a ship, when a turn off the ship merge block, it doesnt automatically transform it
Tamster 15 Jun, 2015 @ 4:00am 
does it work on dedicated server ?
my drill doesn't seems to transform when dettach.
it is in a tigh hangar so we used the ! to force it, but won't move. Also, since i added the mod i can't transform it manually ( through control panel )
thx
piraneous 10 Jun, 2015 @ 10:13pm 
Aww man... i knew it'd be something stupidly simple like that.... thanks!
Dark  [author] 8 Jun, 2015 @ 12:02pm 
@piraneous your setup would work perfectly, you only need to On/Off the merge block with the [AutoConvert] tag, not the block on the opposite side.
Dark  [author] 8 Jun, 2015 @ 2:08am 
I'll take a look at the world later, thanks.

As was mentioned in the Hint section - groups can behave strangely on merge, it's engine's bug.
Because of this I resorted to use of programming blocks to control mergeblocks/rotors of the hangar.
piraneous 8 Jun, 2015 @ 1:25am 
yeah i added it in mods but still cant get it to work. probably doing something wrong. test world = http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=457434451

only button that is safe to use on the button pannel is the merge block on/off. the others either dont work because for some reason every time the door merges with the station and is converted back to a ship (manually using the control panel above the rotors) it deletes the groups.....
Dark  [author] 8 Jun, 2015 @ 1:06am 
This mod is not an in-game script.
Add it in Mods menu to your world and it will work any merge block according to the Usage section of description.
And if it still does not - please provide a test world or describe a setup where it does not work.
piraneous 8 Jun, 2015 @ 12:52am 
so I just found where it is, still cant get it to work though. i've never had any luck getting mod scripts to do anything. is there some setting i need to set on the savegame or something?
piraneous 7 Jun, 2015 @ 11:40pm 
Why can I never find scripts in game when I subscribe to them???...
Macgunius 27 May, 2015 @ 12:54am 
Great mod !!
I was looking a long time how to script in game or with VB C# for my building block ship (See my workshop) and still designing a large ship hangar (screenshots).
Soon i will tryout your mod on the building block ship.
Lathy...or is it 17 May, 2015 @ 10:31am 
These merge blocks work a treat - thanks for sharing them.
Kham 7 May, 2015 @ 3:46pm 
This is a very handy mod. Mostly for the rename feature really as it's not often we merge large ships to stations right now, but we have a large carrier with multiple smaller ships which merge on and off and it was a pain having to find them in the list by trial and error of "large ship ####".
Dark  [author] 22 Apr, 2015 @ 1:51pm 
It should work now.
ZobrAZ 22 Apr, 2015 @ 5:00am 
Question: does it rename ship if unmerged from another ship?