Git Product home page Git Product logo

farming-hysteresis's Introduction

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.

farming-hysteresis's People

Contributors

ilyvion avatar proxyer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

proxyer

farming-hysteresis's Issues

Crop rotation

Based on comments from: https://steamcommunity.com/sharedfiles/filedetails/?id=2431191516

Now all I hope to find is a mod that automate crop rotation, so the field can change the crop after every harvest automatically...
[...]
just having two crops and when the prime is at the limit it shift to the other would be very useful I feel, as for restarting the prime, I would think most often I would prefer it to finish the current growth, but an option to select on the individual field would be perfect, though a lot harder to make I suspect.
- Mads

It would go from 5/5 to 6/5 if it was possible to grow something else when above the upper bound.
- RNZTH

The best thing would be if a growing zone would have two or more crops at any time. Once a crop is 100% ready, it can be harvested and at that point there would be a decision on what to grow there
- abmpicoli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.