Space Engineers

Space Engineers

Cargo Transfer System (In Game Script)
208 Comments
JohnJ44 27 Nov, 2024 @ 8:40pm 
It has not changed to my knowledge, could use a quality of life update though. Thank you for the response and Happy Thanksgiving!
Prellentor  [author] 27 Nov, 2024 @ 7:57pm 
@JohnJ44 If gas mechanic is same as it always was: gas transfered via conveyor belts, no valves/gates and only one option is stockpile in tank terminal. Then no. By definition. If it was something like in stormworks or stationeers, then i would made it back when i played this game.
JohnJ44 27 Nov, 2024 @ 4:17pm 
Any chance this can be used to transfer hydrogen & oxygen? It's tedious doing it manually via the stockpile button since I tend to have a ton of tanks.
liquid_confidence 1 Oct, 2024 @ 8:47pm 
@Cosmos Yes use the terminal commands. See where it states "Examples of terminal commands"? use that as reference. Such as: "unload 1 "steel plates, potato, radiator" change it to "steel plates" and it will only transfer steel plates.
Cosmos 14 Aug, 2024 @ 5:04am 
This is good but is there a way we can make it so we can choose what we want transfered. eg only steel plates
miku567 17 Apr, 2023 @ 3:07pm 
Upon runing the script I get this error:

Caught exception during execution of script:Controller not found.
at Program.CargoTransferSystem.InitializeSystems()
at Program.CargoTransferSystem..ctor()
at Program..ctor()
Agnafrei 1 Feb, 2023 @ 3:09pm 
Im new to this and have no idea what is the Log and how can i access it.
Agnafrei 1 Feb, 2023 @ 3:03pm 
Can anyone explain to me like I'm really dumb how do this script work? Can i use it to transfer items from a mining ship to a transport rover? (both small grids)
Fallenq 31 Oct, 2022 @ 10:50am 
nevermind
Fallenq 31 Oct, 2022 @ 10:03am 
I have an error a construction lacks of connectors idk it has connectors
CryptikLemur 13 Sep, 2022 @ 8:49am 
Could we get a setting for "Max Fill Level"?
zcaalock 26 Jun, 2022 @ 11:30am 
hi, is it possible to transfer items for blueprint?
Vetrolet 30 Jan, 2022 @ 7:41am 
@Prellentor Команда не помогла, спилил программируемый блок и построил снова, вернул скрипт. Заработало. Спасибо большое за помощь! Уже голову поломал)
Prellentor  [author] 30 Jan, 2022 @ 7:33am 
Окей я понял... Что-то было записано во внутреннюю память скрипта. Скрипт запоминает заказы на перенос предметов. Но видимо что-то записалось не то и не так.
Удали скрипт в блоке и копируй это.
void Main(string argument, UpdateType updateSource)
{ program.Storage = ""; }
Запусти. И потом верни туда скрипт с CTS.
Vetrolet 30 Jan, 2022 @ 7:27am 
@Prellentor На экране вывода интерфейса скрипта идет загрузка, и все. На базе при этом работает. https://www.youtube.com/watch?v=wOjXC-lyOd0
Prellentor  [author] 30 Jan, 2022 @ 7:13am 
Типа: gather 2 "steel tubes, reinforced glass, ammo box"
Prellentor  [author] 30 Jan, 2022 @ 7:12am 
У меня подозрение что там есть числа которые не на том месте стоят.
Prellentor  [author] 30 Jan, 2022 @ 7:09am 
А что ты хочешь сделать? Команду напиши что ты запускаешь
Vetrolet 30 Jan, 2022 @ 6:45am 
@Prellentor Пишет "input string was not in a correct format".
Prellentor  [author] 30 Jan, 2022 @ 6:37am 
@Vetrolet Что пишет то? В терминале.
Vetrolet 30 Jan, 2022 @ 6:34am 
@Prellentor Привет! Не можешь подсказать, почему скрипт не работает? Скрипт на базе работает. Но с транспортом не получилось. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2736848282
Prellentor  [author] 12 Nov, 2021 @ 10:19am 
@zcaalock No. But it can be queued by another script. Here is example of script that converts blueprint to list: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2211055171&searchtext=blue . My script currently bloated with features. So it would be another one. But anyone can hook up to CTS and move items between ships. You can send commands to CTS by intergrid communications system.
zcaalock 12 Nov, 2021 @ 5:44am 
can you make it to transfer components like in build planer? Fe. i want to transfer components for 4 solar panels
Prellentor  [author] 15 Feb, 2021 @ 9:32am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
JustUninstalMan 15 Feb, 2021 @ 8:14am 
been using this script on a server with no issues, like 1000 hours and the last update by keen borked it
JustUninstalMan 15 Feb, 2021 @ 8:14am 
it was working fine until the last keen update
Prellentor  [author] 15 Feb, 2021 @ 7:43am 
Yep. This issue related to a server. For lan and for dedicated. But sometimes messing with displayed script or color of it helps.
JustUninstalMan 15 Feb, 2021 @ 7:10am 
hmmm still didnt work my man, i changed every color a little bit in the custom data still same message. maybe it is the server i play on? offline it works fine
Prellentor  [author] 14 Feb, 2021 @ 10:14pm 
Try to change colors in programmable block custom data.
JustUninstalMan 14 Feb, 2021 @ 8:06pm 
yeah i got it, i changed the font color but it still has the same message. should i change the back ground and other things? i miss the ui :(
lol
Prellentor  [author] 14 Feb, 2021 @ 7:43pm 
Oh. That one problem. It just because render surface not uppdates itself. Try to change script color on whatewer you use for script. You know. That settings where you choose content for screen.
JustUninstalMan 14 Feb, 2021 @ 1:43pm 
yes it shows only that message on the control seat, the PB says " Version: 1.71 last log: State: running" when i sit in the seat
Prellentor  [author] 14 Feb, 2021 @ 8:49am 
So it permametly show this message? What was output from programmable block in terminal?Tried to recompile?
JustUninstalMan 14 Feb, 2021 @ 8:32am 
what i mean is the GUI is gone and it only says "now you can turn off the power"
Prellentor  [author] 14 Feb, 2021 @ 8:08am 
@JustUninstalMan Dunno. Just used it without any issues.
JustUninstalMan 14 Feb, 2021 @ 7:53am 
Hello, after keen recent update, the CTS only show "Now you can turn off the power" am i doing something wrong or did keen mess this up?
Compukit 9 Feb, 2021 @ 6:40am 
a yes i can say i see some progres now :)
Compukit 9 Feb, 2021 @ 6:22am 
a oke the space i whil try that :) thnx
Prellentor  [author] 9 Feb, 2021 @ 6:12am 
Space or whatever you bind for [move up / jump] action. I'm not gonna bother about this on my side. Just send me firend invite and then try to catch me in game. I will take a look at how you do that.
Compukit 9 Feb, 2021 @ 5:45am 
also the terminal command dont seem to work for my
Compukit 9 Feb, 2021 @ 5:43am 
keybord. bad what key is the sp key i think that my by the problem im having
Prellentor  [author] 9 Feb, 2021 @ 5:19am 
@Compukit Keyboard or controller?
Compukit 9 Feb, 2021 @ 5:04am 
im having some problems whit the commands. i can use the roll bottuns i can use the ad in connector page bat thats all i can do. im i dowing somting rong ?
Prellentor  [author] 28 Jan, 2021 @ 10:52pm 
@Syna Do you use mod with cockpit block? Or was this crash happens in use of vanilla cockpit? I just tested script. It works fine. Check out log file for more details why it does it.
Syna 28 Jan, 2021 @ 3:31pm 
The game crash when the script want to display something on a LCD cockpit
Prellentor  [author] 8 Sep, 2020 @ 11:18pm 
@[πrat] Kiyan
I'm sorry but this script works only grids that connected together with connector blocks. But it first. As second there was no suggestions about moved items ammount. A long time ago I was in need in fast transfer of ore/components from mining/constructor ships. So script move all specific items from one place to another as much as possible. But it's good suggestion about moved items amount, i will take that.
What about your problem. Even though that would not work as you need. Control block must be placed on same subgrid as programmable block. If PB placed on a rotor, you must place controller on this subgrid. And check out name of it, in terminal and custom data. There is probably spaces.
Also it's probably more specified script than that i have right now.
Avarice 8 Sep, 2020 @ 9:02pm 
Another question, can I dictate how much of what supplies are gathered or set it to fill the ship's overall cargo of specific resources(ammo) to a certain amount?
Avarice 8 Sep, 2020 @ 8:54pm 
Does this work over subgrids? I have a drone I want to be able to load up on ammo when it comes back for it's docking run(using other scripts to initiate docking and trigger the cargo script), but the design I'm using relies on a 'Data Core'. A large rotor with a small head connected to a pod with all the PBs attached to it.

Will I have to put the cargo script on the main ship or add a remote control to the data core, or is there something I'm just overlooking? Right now it's catching an error message of not finding the RC, even after I put its name in the custom data and recompiled.
Prellentor  [author] 4 Sep, 2020 @ 11:57am 
I should have mentioned this earlier. You need to put names in quotes. With argument: [unload 1 stone] script will search items in type mode. There is no items of stone type. You need to run it as:
[unload 1 "stone"].
[MM] Toasterific 2 Sep, 2020 @ 11:22pm 
is there anyway to unload stones? i tried "unload 1 stone" it doesnt recognize it, nor does its included in the 'ore'