Export Electricity Revisited

If you liked this item, please rate it up on Steam Workshop page.

Author: logicallysynced

Last revision: 27 Jan, 2022 at 03:11 UTC

File size: 143.36 KB

On Steam Workshop

Description:
Updated version of George Jones’ mod for latest CS version.

Original Mod: https://steamcommunity.com/sharedfiles/filedetails/?id=702070768
Source Code: https://github.com/roxaskeyheart/csm-exportelectricity

Real Time Mod Compatibility

This mod has been updated to be compatible with Real Time (RT) mod. When you are running RT, you will get payouts every 12 hours (instead of the default weekly payouts when not running RT), you can change this interval in the mod options.

When running RT, the next payout will be calculated relative to the current simulation time when the save was created or last loaded. Changing the interval in the mod settings will also re-calculate the next payout relative to the current simulation time. When not running RT the next payout is always at the start of the week on Sunday.

When loading/creating a save, the estimated income for each category will always start at ₡0 until the first payout date.

Please note that RT mod compatibility is in beta and there may be bugs present.

Main Changes from Original
  • Updated mod to be compatible with latest version of C:S.
  • Compatibility for Real Time mod.
  • Updated formatting on the Export Electricity Income Panel to be nicer.
  • Added a next payout indicator in the Income Panel.
  • Minor code cleanup & bug fixes.

Mod Compatibility

Working – Tested

  • Real Time
  • Real City
Known Bugs
  • Using the close icon won’t close the Income panel.

Original Mod Description

Export Electricity – make money from unused electricity and other production.

Once enabled, extra electricity automatically earns you a modest amount of money. For most power plants, the extra income will be less than the cost of producing electricity, so normally this is just a small bonus. Expect crazy (but still proportional) income from the fusion plant.

This is my first mod. Source code is included and can be found at https://github.com/george-jones/csm-exportelectricity .

Just added – the ability (via the options menu) to enable exporting excess production for any of these items:

* Electricity (enabled by default)
* Elementary education
* High school
* University
* Health
* Heat
* Jail
* Sewage
* Water

There is also a Multiplier slider in the options menu that increases or decreases the income made from extra production. All the way to the left means 0 money will be made, right in the middle should be moderate, and all the right would be double the default setting.