Space Engineers

Space Engineers

75 ratings
Farmhand - Farm Manager
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
712.138 KB
20 Sep @ 4:00pm
30 Sep @ 12:26pm
8 Change Notes ( view )

Subscribe to download
Farmhand - Farm Manager

Description
A script to help ensure high yields and automate harvesting. Full details can be found in the Farmhand Guide.

This is a beta. It's pretty well tested but there may be bugs. There may also be breaking changes between versions, so make sure you read the Upgrade Notes section. Additional planned features are at the bottom of this page.



Features
Changes the lights on the farm plots to indicate the status of the crop. This is configurable, but these are the defaults:
  • Dark Purple: Nothing planted
  • White: Plant is growing
  • Green: Plant is ready to harvest
  • Red: Plant is dead
  • Blinking White: Farm plot is low on water
Tracks the amount of ice in irrigation systems
Tracks the amount of water in the farm plots
Tracks the air/pressurization status using an air vent
Triggers timer blocks when certain events occur



Setup
Load the script into a programmable block. You should see a summary of tracked blocks on the programmable block's screen.

Take all the blocks you want to track and put them in a group together. This include farm plots, irrigation systems, air vents, and timer blocks. All blocks are technically optional.

Next, add the tag [FarmLCD] to any LCD Panels or Control Seats/Cockpits. Then go into the Custom Data of the block and add the group name. This LCD Panel/Control Seat/Cockpit will now monitor that group. You can add as many LCDs to a group as you want, and you can have as many groups as you want.

(Optional) If you only want to track one group and don't want to see a readout on a screen, you can add a single group to the Custom Data of the programmable block. This will still control farm plot lights and trigger timers, but it can only track one group.

Congrats, setup is now complete!



Customizing
There are many ways to configure the script, including changing the farm plot light colors, trigger timer blocks, changing alerting thresholds, etc.

For a full list of options, see the Farmhand Guide.



Upgrade Notes
During the beta period, there may be breaking changes in how the script works. Please follow all the migration guides between your current version and the one you're upgrading to.

Upgrading to v0.7.0+
  • Default "low water" alert threshold changed from 20% to 50%. You will need to manually change it on any existing blocks (if you want to)
  • If you're splitting output between multiple LCDs, you may want to set which one(s) show the new Farm Plots category in the LCDs' custom data.

Upgrading to v0.6.0+
  • You no longer have to put LCD panels in the group. Tag them with [FarmLCD] instead.
  • You can keep the group name in the programmable block custom data if you want (it is no longer required), but if you want the readout on the LCD, you'll have to tag the LCD with [FarmLCD] and add the group name to the LCD Custom Data.

Upgrading to v0.5.0+
  • In the LCD Panel custom data, "Show Errors" has changed to "Show Alerts." If you changed the value of "Show Errors" to false, you will need to change "Show Alerts" to false as well.
  • "Show Errors" can be deleted from custom data if you want. The script ignores it now and won't add it to new blocks.



Planned Features
These are in no particular order. Hopefully I get to all of them eventually.
  • Ability to customize the colors for each state
  • Customizable thresholds for ice and water levels
  • Support for using screens on blocks with multiple screens
  • Support for multiple farm groups
  • Better LCD output with graphical representation of more data
  • Support for broadcast controllers



[h2Known Issues[/h2]
  • For some reason, the farm lights don't sync to the client properly on some dedicated servers. No idea why yet but it might be a bug with the farm plot



Links
Discord[discord.gg] Has a dedicated chat room for help and bug reports for this script.
18 Comments
Bystander 6 Oct @ 10:22am 
I created an ingame script that orders up seeds, manages them and sends single seeds to connectors. Feel free to incorporate parts of that code if you want. Probably nicer having it in one place https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3576255186 .
Also some notes at the bottom about IIM.
PumaDove 3 Oct @ 11:06am 
AB-SO-LU-TLY Genius Sir! Congratz from France and amazing job!
Days 3 Oct @ 5:23am 
@aantono There are some custom data edits for the IIM programmable block that allow seed recipes to be !learnt. Check out the IIM discussions on Isy's discord for help.
Duke Skyloafer  [author] 30 Sep @ 9:47am 
@aantono That's beyond the scope of the project as I envision is right now, but I'm also feeling the IIM pain, so maybe once all the rest of the functionality I'm planning is done, I can look into it. No promises, though.
aantono 28 Sep @ 7:48pm 
Given that Isy Inventory Manager does not seem to work with crops/seeds, is it possible to add support to be able to configure making seeds to a specified quantity to be queued in the Food Processor as well as configure which containers/connectors/etc they should be placed and how many?
Duke Skyloafer  [author] 28 Sep @ 5:30pm 
@abordoli Yep, LCDs changed to support multiple groups. Check out the Upgrade Notes section for what you need to change.
abordoli 28 Sep @ 12:25pm 
Has there been a change to the LCD screen configuration. It worked prior. I can't seem to get Farm Hand to recognize the LCD panel that I have assigned it under the specified groups name,
Duke Skyloafer  [author] 26 Sep @ 7:27pm 
@Ronin Planetary Industries It's funny, I was just saying yesterday that adding broadcast controller support would be cool. It's kind of low on my list at the moment, but I would like to add that eventually. Thanks!
Myst Leissa 26 Sep @ 10:15am 
@Ronin, or a universal "Master Alarm" Action Group...that way whether you prefer sound blocks/broadcast controllers or lights you can trigger an event when somethings wrong with your farm :P
Ronin Planetary Industries 26 Sep @ 9:25am 
To expand on my previous comment. The programmable block can change the messages in the Broadcast Controller block as well as trigger them. So sending out updates via the chat system regarding growth, threats, and readiness would be a great addition.