Giter VIP home page Giter VIP logo

cs-budgetcontroller's Introduction

Cities: Skylines - Budget Controller

This is a mod for Cities:Skylines that controls the water, sewage, electricity and education budgets automatically based on consumption rates. This mod only updates the budget by looking at the consumption vs production. It is currently set to keep the budget at just above 5% of center, meaning you should always have "green" capacity. There is an offset panel in the options to modify this, but it currently does not work well.

The mod handles the following budgets:

  • Water (Water and Sewage)
  • Electricity
  • Education (Elementary, High School, and University)

With regards to combined budgets, the algorithm chooses the minimum producer as the benchmark. The best way to treat this is to ensure that all your producers for that particular budget are close to equal in production to consumption ratio. For example, if you have a lot of water towers, but not enough sewage pumps, the budget will optimize strictly against sewage. You will need to shut off some of the water towers until the water and sewage is equalized. Another example is if you provide a university, you may need to plop a few more elementary schools to reduce the budget spent towards the university.

Known Problems

  • The budget panel does not update in real-time, but you can see the effects of the budget modification if you bring up either of the utility panels. If you adjust the budget manually, the algorithm will immediately set that value and then try to optimized back to +5%. Keep that in mind when you open the budget panel to just leave those sliders alone.

Disclaimer

This is my first code in C# and my first mod for Cities:Skylines (or any game). It is currently in beta and users should apply it at their own risk. It's very possible for the controller to become unstable at this time, until I can find time to do some actual system analysis and proper tuning adjustments.

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.