Space Engineers

Space Engineers

27 ratings
Crowigor's Base Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
318.836 KB
Sep 9, 2023 @ 8:41am
Jun 28 @ 5:24am
9 Change Notes ( view )

Subscribe to download
Crowigor's Base Manager

In 1 collection by Crowigor
Crowigor's Survival
83 items
Description
The script is a set of useful functions for automating base management.

Inventory Manager
The function searches for items in all available blocks and transfers them to the specified containers.

Special Containers
The function searches for items in all available blocks and transfers them in the specified quantity to the container.

Assembling and Disassembling Items
The function periodically checks the quantity of specified items and, if the quantity of items (including production queues) is less (in the case of assembly) or less (in the case of disassembly) than the specified quantity, adds the item to the queue. Additionally, in the case of disassembly, the function checks the assembler queue and transfers the necessary items to the inventory.

Clearing Assembler Inventories
The function periodically completely clears the resource inventory of assemblers by transferring the contents to containers associated with these items.

Refinery Management
The function periodically transfers all ore from the refinery to containers, then adds only the ore specified in the settings for processing.

Drone Stopping
The function checks the fill level of the containers specified in the connector settings and, if the percentage of their fill level is higher than the specified one (default is 90%), it turns off the block specified in the settings.

Items Collecting
The function extracts the specified items (or all) from the containers and tools of the connected grid and transfers them to the connector, and then, when the connector is full, to the specified containers.

Displaying on Displays
The function allows displaying the specified information on displays. Currently, this includes:
- Script status
- The quantity of specified items (including queues and limits specified in the assembler)
- The quantity of specified items and its ratio with the limits specified in the display settings

Displays have their own settings that can be edited both globally (in the programmable block) and for each display individually. More details in the manual.
* By default, item names are displayed in English. To switch to Russian, specify
DC:language=local
in the programmable block or
language=local
directly in the display.

Actions
The script allows performing various actions depending on the arguments. Currently available:
- Script restart
- Clearing assembler queues
- Clearing block inventories

Manual
A complete description of functions and a guide to using them can be viewed in the manual:
https://steamcommunity.com/sharedfiles/filedetails/?id=3030970526 (RUS)
https://steamcommunity.com/sharedfiles/filedetails/?id=3119211195 (EN)

Languages
The script was initially written with RU localization in mind, and all item names are taken from the game files. Additionally, the script supports specifying item names in EN.

Mod Support
Paint Gun
https://steamcommunity.com/sharedfiles/filedetails/?id=500818376

Eat. Drink. Sleep. Repeat!
https://steamcommunity.com/sharedfiles/filedetails/?id=2547246713

Plant and Cook
https://steamcommunity.com/sharedfiles/filedetails/?id=2570427696

Plant and Cook (Crowigor's Edition)
https://steamcommunity.com/sharedfiles/filedetails/?id=3243597879

AiEnabled
https://steamcommunity.com/sharedfiles/filedetails/?id=2596208372

Personal Shield Generators
https://steamcommunity.com/sharedfiles/filedetails/?id=1330335279

Defense Shields
https://steamcommunity.com/sharedfiles/filedetails/?id=3154379105

GitHub
https://github.com/Crowigor/SEBaseManagerScript

Update 2.0
The script code has been refactored and rewritten to improve stability, performance, and code readability.
Functions added: Refinery Management, Item Collection, Display Information, and Actions.
Popular Discussions View All (1)
0
Jun 28 @ 9:37am
Mods Support
Crowigor
11 Comments
Crowigor  [author] Jul 4 @ 2:40am 
Images, or better yet videos, are a great idea but they require considerable time. I will try to make them if my free time allows.

Regarding assemblers and refineries, all of them are supported. Not just the vanilla and DLC ones, but even the modded ones. The script restrictions are specifically related to items.
"MrHindsight" Jul 3 @ 5:51pm 
Will the Industrial Refinery, and the Industrial Assembler be supported? In the guide it only shows basic refinery and refinery, plus modded?
Thank you!
"MrHindsight" Jul 3 @ 10:12am 
Good Idea! A few images, or a video showcasing all of the features here would be a good idea for new users.

Thanks Modder!
Crowigor  [author] Jun 28 @ 9:43am 
Hooray, the update has finally passed testing! So, welcome version 2.0.
The guide has also been updated.

---

Ура, наконец обновление прошло испытание! Так что встречайте версию 2.0.
Руководство также обновлено.
Crowigor  [author] Jun 25 @ 2:40pm 
There will soon be a major update, which will include the addition of displays, as well as the ability to extract items through connectors from other grids.
Crowigor  [author] May 17 @ 2:48pm 
Script updated add Plant and Cook (Crowigor's Edition) and Defense Shields items support.
Crowigor  [author] Dec 21, 2023 @ 6:16am 
Обновил скрипт!
Добавил все итемы из последнего обновления и поддержку Personal Shield Generators

Так же сделал EN руководство и выложил на GitHub

---

Script updated!
Added all items from the latest update and support for Personal Shield Generators.

Also created an EN guide and posted it on GitHub.
kinngrimm Oct 25, 2023 @ 3:18am 
" the idea that the script interacts only with blocks that have the required tag"
explicit is better than implicit i get that. For the most part i think it would be beneficial to stick to that, performance and stability wise. Otherwise i have seen scripts that get in the way of other scripts trying to do the same or the opposite which may end badly. The only argument against this approach would be ease of use, where someone using your script expects convenience which depending on functionality maybe still could become higher priority later on, to counter such expectations though, your philosophy and intent could be somewhat put in the discription.

Anyways when i start up a new game, i will give your script a go :)
Crowigor  [author] Oct 24, 2023 @ 5:23am 
@kinngrimm
About cleanup assemblers, I thought about transferring items to any container, but then this goes against the idea that the script interacts only with blocks that have the required tag in their name. And items are transferred only to certain containers.

"How (if) would it handle overflow..."
No way. If the container is full, then items are not transferred to it. Therefore, I usually make a buffer container immediately after the drills and before the main conveyors network.

"function searches for items in all available blocks"
Available blocks - means all blocks with a tag in the name, they can also be a subgrid.

"Does it splitt production..."
The script simply adds the required number of items to the queue (assembly/disassembly). If you have Cooperative Mode configured, it will work.

"Does it give me an output screen..."
It is planned to display information on displays, but I can’t say what exactly will be displayed and when.
kinngrimm Oct 18, 2023 @ 4:00am 
"completely clears the resource inventory of collectors by transferring the contents"
would it be practical and could it be done performant to include all containers so wrongly placed stuff would be redirected (i want all those x type(s) of ore in those containers, while keeping a certain amount of munition in that small cargo container and the remaining munition in that large cargo container
How (if) would it handle overflow created by mining and/or refining?
"function searches for items in all available blocks"
does that include docked gride, also for other cases like the first one mentioned
Does it splitt production and aswell disassembly ques between the available assemblers?
Does it give me an output screen as overview of what i have in comparison to what i want and therefor is in production or disassembly? Including a visual indicator of overflow or having not enough of certain raw or refined materials so someone going out to gather ressources knows what is needed.