Space Engineers

Space Engineers

Not enough ratings
Inventory Digital Sorter and Statictics
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
500.197 KB
29 May, 2020 @ 6:43am
29 May, 2020 @ 9:12am
4 Change Notes ( view )

Subscribe to download
Inventory Digital Sorter and Statictics

Description
What it is
This script allows:
  • Flexible and fast sorting of your items between Containers, Refineries, etc
  • Limit input inventories (i.e. limit reactor only have some amount of uranium in inventory)
  • Display dynamic statistics on any item set (see screenshot) on Text Panel or Cockpit Display
  • DIsplay it's own log
  • Connected ships also will be sorted(unloaded from ore, loaded with uranium i.e.)

Will be glad to receive feedback or feature requests :)

Setup
  1. Subscribe
  2. Load Digital_Sorter script in programmable block
  3. Argument - limit of stacks to move for one execution. Leave blank for unlimited.
  4. Place Timer Block and setup to execute PB with 5-10 seconds interval. Often movement of large count of stacks(regardless of size) may stuck your conveyor system
  5. Text Panels or cockpit displays, you want to use, must be set in text mode.

Configuration
All configuration is done through the Custom Data of blocks.

Example config of Cargo Container:
@ds Allow=Ingot/,Ore/ Deny=Stone,Ingot/Uran

This makes sorter to store in this container all ingots and ore except Stone(ingots and ore) and Uranium ingots.

For inventory statistics:
@ds DisplayInventory=Component/

For log:
@ds DisplayLog=20

First line of CustomData should be "@ds".

Configuration directives list:
Parameter
Description
Allow=Component/,Ore
List of substrings in item names. "All" means all.This items will be moved to this container. All other items will be moved out(if there is where). You can enter any part of item name("Component/Metal_Grid") as substring. I.e. "Component/Metal" or "/Metal_Grid".
Deny=Component/,Ore
List of substrings in item names. "All" means all. This items will be excluded from Allow list. I.e. Allow=Component and Deny=Reactor means all components, except reactor.
Unsorted=1
Flag, that enables this container as Unsorted. This container accept everything. Unsorted containers have less priority than "normal". They will only receive items for which "normal" containers are not configured.
InputLimit=200
Limit for input inventories of Assemblers and Reactors in liters. If items volume in inventory exceeds this limit, sorter start to move items from inventory by 500/exec. You should have container to accept this items, or Unsorted.
DontTouch=1
Flag. Don't touch items in this container.
DisplayInventory=All
List of substrings in item names. All means all.
Should be used for Text Panels or Cockpits to display inventory statistic. Patterns mean what items to display.
DisplayLog=20
Display log in this Cockpit/Text_Panel. Number of lines to display. You must set here number of lines, that fits your Text Panel (-2 for title). Standard Text Panel with Font size = 1 holds 17 lines of text.
CockpitDisplay=3
Number of cockpit display if block is cockpit. Try values 0-5. Display must be set in text mode in cockpit settings.
5 Comments
vsxg-sonic 27 May, 2021 @ 4:19pm 
how do i make it fill the container full and not 3/4s full ?
spacemoses 13 Apr, 2021 @ 1:36am 
If i understand correctly, you put the argument in the title of the block. right?
Phoenyx 10 Jan, 2021 @ 4:15pm 
Statistics, not Statictics.
Tecnos 26 Jul, 2020 @ 9:57am 
for example, if i want a container with only componets, and the rest with materias, where i have to put dat @ds?
Tecnos 26 Jul, 2020 @ 9:54am 
Hello, could you put more pic about the use of arguments and setup?