Krastorio 2 Wind Turbine (ZarSasha's Fork)


A stand-alone, configurable version of the wind turbine from the overhaul mod "Krastorio 2" by raiguard. Forked from "Krastorio 2 Wind Turbine" by mad_engineer. The mod has been adapted for Space Age.

Content
3 months ago
2.0
4.78K
Power

Changelog

Version: 1.2.9
Date: 2025-06-05
  Changes:
    - Compat for AAI Industry: Turbine is now unlocked with electricity tech. Recipe also requires
      an electric motor instead of copper cables, and one less iron plate and iron gear wheel.
  Balancing:
    - Adjusted recipe for turbine (stone bricks: 8 -> 5, iron gear wheels: 6 -> 5).
Version: 1.2.8
Date: 2025-06-02
  Balancing:
    - Increased required surface pressure for turbine to be built (50 -> 100 hPa), added upper
      limit (10000 hPa).
    - Added required gravity for turbine to be built (1-100 m/s²).
Version: 1.2.7
Date: 2025-04-02
  Bugfixes:
    - Subsurface mod by natha: Fixed crash to menu when placing down a turbine on a lower level, by
      checking for the optional surface property, "planet", before passing it as an argument in a
      look-up function. (Note: Turbines really shouldn't work underground at all, but I'll leave
      that for another time, maybe.)
Version: 1.2.6
Date: 2025-03-22
  Changes:
    - Updated sound properties to reflect changes to API in Factorio 2.0.33.
  Balancing:
    - Removed resistances to physical and impact damage types.
  Internal:
    - Tidied up.
Version: 1.2.5
Date: 2025-03-22
  Bugfixes:
    - Removed "not-rotatable" flag from the wind turbine since it prevents rotation of copies &
      blueprints containing the entity. (The downside is that attempting to rotate the turbine
      displays the message "Not operable" rather than "This cannot be rotated".)
Version: 1.2.4
Date: 2025-02-12
  Bugfixes:
    - Renamed "pack" and "unpack" functions so they don't overwrite in-built (but deprecated) Lua
      functions. Fixes a reported compatibility issue with "Factorissimo 3".
Version: 1.2.3
Date: 2025-02-12
  Internal:
    - Greatly simplified code, no longer relying on functions from "Big Data String 2".
    - Tidied up.
Version: 1.2.2
Date: 2025-02-11
  Bugfixes:
    - Finally made the global variable work! Initialized and accepts input at the first prototype
      stage, validated at second stage, transfers content to the runtime stage with a neat trick.
  Info:
    - Improved example of how to use the global table. File must be required by the mod!
  Internal:
    - Moved some code from runtime stage to the prototype stage.
    - Added pack/unpack functions from "Big Data String 2" by plexpt, for sending information from
      the prototype stage to the runtime stage.
    - Tidied up.
Version: 1.2.1
Date: 2025-02-11
  Modding:
    - Now validates data that is put into the global table, just in case.
    - NB: Changed name of global variable to be more unique.
  Info:
    - Fixed changelog for v1.2.0.
  Debug:
    - Added another console command that provides info on the planets where solar power scaling for
      the turbines has been overridden ("/k2wt info").
  Internal:
    - Tidied up.
Version: 1.2.0
Date: 2025-02-11
  Modding:
    - Created a global table that other mods can write to and thereby override scaling according to
      solar power on any particular planet. Planet ID and a percentage value must be provided.
  Bugfixes:
    - Fixed some issues with the fall-back values of a script.
  Info:
    - Made some small changes to descriptions.
  Translation:
    - Updated all translations.
  Internal:
    - Tidied up.
Version: 1.1.1
Date: 2025-01-15
  Info:
    - Updated mod description.
    - Updated descriptions of settings.
    - Corrected changelog.
  Translation:
    - Updated locales, mostly with DeepL.
  Internal:
    - Tidied up.
Version: 1.1.0
Date: 2025-01-14
  Minor Features:
    - Created a simple startup setting that relaxes entity/surface requirements, so wind turbines
      are buildable and useful on Aquilo, just like solar panels.
  Bugfixes:
    - Fixed code so power output actually depends on "solar-power" of surface. Oops!
  Info:
    - Added description of new setting.
    - Corrected changelog.
  Translation:
    - Minimally updated all non-English locales.
Version: 1.0.0
Date: 2025-01-13
  Changes:
    - Initial release. Forked the mod "Krastorio 2 Wind Turbine" by mad_engineer (+ myself), which
      is again derived from "Krastorio 2" by raiguard. (Changelog relative to latter!)
    - Added Space Age DLC (along with Quality specifically) as optional dependencies.
    - Slightly reduced size of collision box for entity, making it easier to squeak through.
  Minor Features:
    - Made power output of turbine freely configurable through a startup setting (default: 20kW).
  Balancing:
    - Made power output of turbine directly correlate with a planet's "solar-power" attribute.
    - Added a condition for surface pressure (>50hPa) so entity can't be built in space.
    - Added a condition for solar power (>5%), meaning that entity can't be built on Aquilo.
    - Added heating requirement to entity, rendering it useless on Aquilo.
    - Reduced mining time for entity (0.25 -> 0.15).
    - Reduced production time for recipe (5 -> 3).
    - Changed recipe to use more iron plates, and stone bricks instead of iron beams.
    - Set weight of item to exactly 20kg, just in case recipe is ever changed.
    - Changed entity resistances towards damage (now mostly resists fire).
  Graphics:
    - Added dying explosion effect to entity (relates to sound as well).
    - Added impact category to entity (relates to sound as well).
    - Replaced the remnants with smaller variants that better fit dimensions of entity.
    - Set same render priority for all graphics.
    - Added simple thumbnail.
  Sounds:
    - Removed the high-pitched, rattling sound effect variation.
    - Reduced volume and audible distance for the remaining sound effect.
    - Fixed issue with idle sound not working (removed "persistent" property).
    - Simplified sound property structure and sound scaling method.
  Gui:
    - Hid useless entity gui by making it inoperable through a script.
    - Entity tooltip now displays the entire object (won't work for ghosts).
    - Removed false/unneeded info about power consumption and buffer content from entity tooltip.
  Bugfixes:
    - Circumvented limitations of "electric-energy-interface" prototype by using runtime scripts
      (negligible performance impact):
      - Fixed new power output not changing for turbines that have already been built.
      - Fixed quality level not affecting power output of turbines.
    - Limited energy buffer to match power output pr. tick. "Fixes" an issue where the content is
      wrongly counted towards power production capacity in the statistics panel.
  Info:
    - Updated descriptions of turbine (added Factoriopedia entry).
    - Added a source.txt file with an explicit reference to the original source (Krastorio 2).
  Translation:
    - Included and updated several translations, mostly relying on DeepL.
  Debug:
    - Added a console command for resetting changeable parameters of the wind turbines
      ("/k2wt reset"). Useful when directly modifying the mod for personal use.
  Internal:
    - Restructured code.
    - Deleted unused assets, reducing file size a bit.