Cargo Sorter - Potateau/Space-Engineers GitHub Wiki

Script to sort grid cargo.

Script Link
In-Game Directory


Potential User Issues

I have noticed when interacting with other mods or modded blocks that move items into said blocks the script can run into an error where it tries to move an item after a mod has already moved it. This makes the script stop and needs to be manually restarted.

Custom Data Configuration

Note:

  • Containers are only sorted within a grid.
  • Items move as a stack and will only move if space is available for the entire stack. This is measured in L.
  • Hydrogen and Oxygen Bottles are sorted with tools.
  • The script will try to keep space available in O2/H2 generators for at least one bottle. You will notice ice being taken out of and back into the generator if the volume would not allow one bottle (120L).
  • Script uses a loose text search so if you write Oregon in the custom data field it will sort ore into that container.

Ore Storage => ore
Ingot Storage => ingot
Component Storage => component
Ammo Storage => ammo
Tool Storage => tool
Miscellaneous => misc

Development

Reduce use of global variables and instead properly use sending the variable to the function