Hazardous Materials

by gz-mods

Unified hazardous-materials system for the GZ ecosystem: industrial chemistry and gases, hydrogen energy, corrosive/molten fluid containment and pipe families, underground tanks, and non-stacking poison/toxic protective equipment.

Content
6 hours ago
2.0
0
Combat Armor Mining Fluids

Changelog

Version: 0.1.10
Date: 2026-09-25
  Bugfixes:
    - Fixed a Factorio 2.0 crash in underground storage tank animation updates caused by calling the newer LuaEntity.get_fluid_capacity runtime API.
    - Underground tank fill-level rendering now uses the tank's own fixed 250,000-unit prototype capacity, avoiding runtime API probing entirely.
Version: 0.1.9
Date: 2026-09-25
  Graphics:
    - Retinted the normal/default-compatible pipe family as hardened glass with a light cyan, semi-transparent look.
    - Reduced the saturation of the corrosive-resistant orange and tungsten purple pipe families.
  Changes:
    - Renamed the reinforced pipe family in player-facing text to Hardened glass pipeworks while preserving internal prototype IDs for save compatibility.
  Bugfixes:
    - Underground storage tank fluid animations are now recreated when fill level changes instead of mutating the existing render object, preventing stale or stuck animation levels.
Version: 0.1.9
Date: 2026-09-25
  Performance:
    - Replaced per-pipe hazardous-fluid polling with one monitor per Factorio fluid segment.
    - Pipe-network topology is rebuilt only after build/remove/rotation/clone changes, using a budgeted connection walk.
    - Existing 0.1.7 tracked-entity state is migrated directly on upgrade; fresh installs perform one discovery pass and do not repeat whole-world pipe scans during normal play.
  Compatibility:
    - Segment access supports both Factorio 2.0 LuaFluidBox APIs and the newer LuaEntity fluid-segment APIs.
    - Added rotation and clone topology invalidation so split/merged networks are re-indexed safely.
  Diagnostics:
    - Pipe scanner stats now report monitored segments, rebuild work, pending topology seeds, and tracked transports.
    - Corrected the Gizmod registry version to the active Hazardous Materials version.
Version: 0.1.7
Date: 2026-09-25
  Changes:
    - Renamed the player-facing Wild Neurotoxic Bacteria item to Wild Stroma Bacteria. Internal prototype IDs are unchanged for save compatibility.

Version: 0.1.6
Date: 2026-09-25
  Features:
    - Added High Explosive and Plastic Explosive intermediates.
    - Added Biological Agents technology using Space, Military, and Agricultural science.
    - Added Toxin Extract, Neurotoxic Bacteria, Neurotoxin, Virulent Pathogen/Virulent Toxin, and specialized payload intermediates.
    - Added optional Fluid Nutrients integration for Nutrient Solution recipes.
  Graphics:
    - Updated Hydrogen Fuel Cell icon.
    - Added dedicated explosive, bacteria, dropper, and biological payload icons.
Version: 0.1.5
Date: 2026-09-25
  Bugfixes:
    - Fixed configuration-change crash by loading the Pipeworks registry module only during control-stage parsing.
    - Runtime hazard-registry refresh no longer calls require().
Version: 0.1.4
Date: 2026-09-25
  Changes:
    - Corrosive-resistant pipe requirements are now limited to acidic, corrosive, and toxic fluid classification/name matches.
    - Removed toxin, venom, waste, chitin, bug, and nitric-only heuristic matches from corrosive pipe detection.
Version: 0.1.3
Date: 2026-09-25
  Bugfixes:
    - Ammonia and ammoniacal solution are no longer classified as corrosive solely by the legacy Pipeworks name matcher.
  Changes:
    - Ammonia is explicitly registered as flammable, explosive, and gaseous in the Hazardous Materials registry.

Version: 0.1.2
Date: 2026-09-25
  Features:
    - Hazardous Materials now owns the authoritative runtime hazard registry previously maintained by Terra Hardmode.
    - Fluid hazard records expose flammable, explosive, gas, corrosive, and molten classifications. Hydrogen is explicitly flammable, explosive, and gaseous.
    - Solid explosive registration, automatic ammo/explosives registration, and hazardous barrel inheritance now live in Hazardous Materials.
    - The resolved hazard registry is published into GIZMOD for inspection and downstream consumers.
  Changes:
    - Added Hazardous Materials hazard query/registration remote calls; Terra no longer owns the gz_terra_explosives registry.

Version: 0.1.0
Date: 2026-09-25
  Major Features:
    - Consolidated GZ Chemistry, GZ Pipeworks, and GZ Hazmat into GZ Hazardous Materials.
  Migration:
    - Retained existing item/entity/recipe prototype identifiers and Pipeworks setting identifiers so current saves keep their objects and settings.
    - Consolidated cross-mod fluid classification and protection APIs under the gz-hazardous-materials namespace.
    - Cleans the retired gz-chemistry Gizmod registry entry when upgrading an existing save.