HeroicLibrary


A library mod for heroic mods

Internal
7 days ago
2.0 - 2.1
236

Changelog

Version: 1.6.0
Date: 2026-07-04
  Changes:
    - Added table.sorted_pairs: deterministic (sorted-key) iteration for data-stage data.raw traversal.
    - Added Recipe module: normalized 2.0 accessors (ingredients/products/enabled/recycling) with
      defensive legacy result/normal handling.
    - Added Tech tech-graph helpers: transitive_prerequisites, reaches, add_prerequisite_safe
      (cycle- and redundancy-guarded), and recipe_unlockers (item/fluid -> unlocking techs index).
    - Added Tech.force_research: guarded runtime unlock of a technology.
Version: 1.5.0
Date: 2026-07-02
  Changes:
    - Updated for Factorio 2.1 (now requires base >= 2.1).
    - Added EntityRegistry: a storage-backed registry that tracks all entities of a type across surfaces.
    - Added WorkQueue: a throttled nth-tick batch processor for spreading per-item work over ticks.
    - Added modules helper: data-stage detection of per-line module tier counts, with mod overrides.
    - Added entities.replace and entities.replace_ghost: nil-guarded fast-replace preserving energy/quality.
    - Added Energy:scaled(multiplier, modifier) for tiered energy scaling.
  Bugfixes:
    - Fixed settings manager crashing when defining a runtime-global or per-user setting from a
      settings.lua that is also required in the data/control stage. GlobalSettings and
      UserSettings now only register the prototype during the settings stage and build an
      accessor container otherwise.
Version: 1.2.0
Date: 2025-07-18
  Changes:
    - Added methods to check if an entity is of a specific type, including ghosts.
    - Added and updated methods for finding entities and items. And also finding items inside entities.
Version: 1.1.0
Date: 2024-03-11
  Changes:
    - Added a item-group for heroic mods.
    - Added various helper functions for heroic mods.
Version: 1.0.4
Date: 2024-03-11
  Changes:
    - Added helper methods for technologies and entities.
Version: 1.0.2
Date: 2024-05-11
  Changes:
    - Added String functions for my other mods.
Version: 1.0.1
Date: 2024-03-11
  Changes:
    - Added a debug print option.
Version: 1.0.0
Date: 2024-03-11
  Changes:
    - Published the mod.