RimWorld

RimWorld

148 ratings
Farming Hysteresis
5
4
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3, 1.4, 1.5, 1.6
File Size
Posted
Updated
856.947 KB
21 Mar, 2021 @ 12:37am
20 Jul @ 4:14am
20 Change Notes ( view )

Subscribe to download
Farming Hysteresis

Description
Farming Hysteresis lets you automate enabling and disabling growing zones based on the amount of product already in storage.

Operation

The mod adds an "Enable hysteresis" gizmo to all supported growing zones and hydroponics basins. Only plants that produce a harvestable product are supported. When you enable this setting, the "Enable sowing" button is removed, and sowing and/or harvesting is instead controlled by a set of hysteresis bounds. Hydroponics basins typically don't have this setting, but with this mod and hysteresis enabled, sowing and/or harvesting also stops on those when appropriate.

When the amount of stored product goes below the lower bound, sowing and/or harvesting is enabled and remains enabled until the amount of stored product goes above the upper bound, at which point it is disabled and remains disabled until the amount of stored product once again goes below the lower bound.

Here's a graph illustrating the hysteresis process:


In this example, we assume the lower bound is set to 500, and the upper bound is set to 1000. As we can see by the three regions:
* 0-500 is the region below the "lower bound" in which sowing gets enabled if it were disabled,
* 500-1000 is the region between the "lower bound" and the "upper bound" in which no change to whether sowing is enabled or disabled is made,
* 1000+ is the region above the "upper bound" in which sowing gets disabled if it were enabled.

What this gives us is a way to build up a buffer of product, then hold off on production while we're consuming some of it, and then turning production back on when we're running low, but before we're running out.

Translations
  • None yet
Want your translation in this list? Release a translation mod (i.e. a mod with only a Languages folder, not a copy of this entire mod + the translation) for this mod, and notify me of its existence, and I'll add it to the list.

Version support

This mod supports RimWorld 1.3, 1.4, 1.5 and 1.6

Source code

Source code can be found on GitHub[github.com]. Report any bugs or feature suggestions/requests on the issue tracker[github.com].

Like my work?
[ko-fi.com]

Feel free to join my Discord server[discord.gg] if you want to talk to me (and other members) about my projects, or just to hang out, I guess. :)
Popular Discussions View All (2)
4
26 Jul @ 12:19am
Bug with planting zone in water using the fishing zone
electrix1337
0
30 May, 2024 @ 4:54am
Your hysteresis bounds?
lol
162 Comments
Monkey Magic 23 hours ago 
Random nobody here :P I use the mod Smart Farming for automated seasonal sowing mechanics (automated early harvest, and disallowing growing if the harvest would not viable before the season is over) stuff - how would this mod interact with that one? D:
DawnsGlow 25 Aug @ 1:07am 
@ilyvion : Okay, thanks for the mod.
ilyvion  [author] 24 Aug @ 10:24pm 
@DawnsGlow: "Global" bounds are per-map; this mod was made before Odyssey when people built bases on a single map, not gravships that move around, and hasn't been updated to account for it yet. I'll get to it eventually, but unfortunately I have more pressing things to work on right now.
DawnsGlow 24 Aug @ 12:16pm 
Is the global bounds and gravship bug fixed ? Global Bounds were being set to default after launch.
ilyvion  [author] 9 Aug @ 10:02pm 
@BugWolf: Glad I could help. Exactly why I made the mod in the first place. 😁
BugWolf 9 Aug @ 9:20pm 
Hello. I have been using this mod for quite a while and I have to thank you for the many hours of micromanagement you've saved us.
FerrisCG 29 Jul @ 9:15am 
@Lorebot that bug is now fixed in smart farming sry about that xD
Lorebot 27 Jul @ 4:13pm 
bah...it was keeping me from sleeping so I looked through my mod list. Looks like that button is from Smart Farming not your mod. I'm gonna go get some sleep before trying to figure out if Smart Farming is actually doing anything I want or if I should just disable it...sigh... I'm really sorry for bothering you with this...
Lorebot 27 Jul @ 4:04pm 
hold on, I think I may be mistaken...I'll have to double check my mod list, maybe something else is creating that alternate Sowing button...I'm very tired, confused, and apologize if i'm wrong. I'll take another look after i get some sleep and let you know.
ilyvion  [author] 27 Jul @ 6:25am 
@Lorebot: I don't do anything to stop plants from growing; I've never observed that happen personally. Also, be aware that cutting =/= harvesting; the game doesn't actually let you turn off harvesting in vanilla. If you read the tooltip on the "disable cutting" gizmo, you'll see what I mean.