Space Engineers

Space Engineers

Not enough ratings
Seed Stocker (A mod to help with Planting Automation)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
323.164 KB
28 Sep @ 12:43am
28 Sep @ 11:28pm
3 Change Notes ( view )

Subscribe to download
Seed Stocker (A mod to help with Planting Automation)

Description
This is a simple in game script that you run in a programmable block.

I wrote it to simplify farming automation when using the Planting Automation mod https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3568982238.

It handles stocking connectors on your grid with single seeds, these can then be ejected onto a farm plot below which if you have Planting Automation installed will then plant them. It will also find seeds in your network, prioritizing collector blocks first. Finally if no seeds are available it will locate a Food Processor and order more seeds (assumes you have the food item already).

To be clear it doesn't eject seeds for you, that's an engineering task for you to figure out.

The intended usage pattern here is that it puts a single seed into a connector if it finds one empty. You move the connector over a farm plot and trigger the Drop Item action added by Planting Automation. You then move a collector over the farm plot, this recycles the seed if it didn't plant and the script will find it again.

As stated above. if it runs out of seeds it will automatically make more using a food processor.

Usage

Subscribe to the mod and add the script to a programmable block in game.

Create groups of connectors and name the groups:
FruitSeedEjectors - fruit seeds will be sent to these connectors etc
GrainSeedEjectors
VegetableSeedEjectors
MushroomSporeEjectors

Other Options

By default the script will search all grids including connected grids (ships), you can disable this by setting:
ignoreOtherGrids = true; near the top.

You can also have the grid do seed housekeeping at regular intervals. It will find all seeds (that aren't in the ejectors) and move them all to a single place. This is off by default. Set:
seedTidyUp = true;
Then create a group with a single cargo container in it and name the group "SeedStorage".

This is particularly useful as the collectors will collect seeds and dump them in random inventories.

Final note about IIM
A lot of what this mod does could theoretically also be done with Isy's Inventory Manager, except currently it doesn't understand seeds and it won't order up new seeds.
You can semi fix this by manually specifying seeds in a "special" custom list on a connector, but it still won't order seeds for you. Hence why I wrote this.
The correct keys in Isy format are:
SeedItem/Fruit
SeedItem/Mushrooms
SeedItem/Vegetables
SeedItem/Grain