Skip to content

ilyvion/farming-hysteresis

Repository files navigation

RimWorld 1.4 Build

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

I got tired of keeping track of these numbers myself, so I made a little mod to do it for me. Hopefully it can be of use to you too.

Operation

The mod adds an "Enable farming hysteresis" 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 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 also stops on those when appropriate.

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

Here's a graph illustrating the hysteresis process: graph showing a 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.

Contributors

  • Proxyer: Japanese translation

License

Licensed under either of

at your option.

SPDX-License-Identifier: Apache-2.0 OR MIT

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Farming Hysteresis is a RimWorld mod that lets you automate enabling and disabling growing zones based on the amount of product already in storage

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published

Languages