TFMG Thermal


This mod is a library for The factory must grow, containing all the code relevant to the thermal system. This mod can be used by other mods to implement thermal mechanics into the game.

Internal
3 days ago
2.0
1.54K
Manufacturing Power

Changelog

Version: 0.4.13
Date: 2026-01-06
  Changes:
    - Thermal gui text isn't hardcoded anymore, and can now be localised.
Version: 0.4.12
Date: 2025-12-28
  Bugfixes:
    - fixed sanity check being broken
Version: 0.4.11
Date: 2025-12-28
  Changes:
    - Added a sanity check for machines that have no collision box or selection box. Machines that have neither, probably shouldn't have thermal interfaces. If you try this, you recive a custom error, telling you to, like, not.
Version: 0.4.10
Date: 2025-12-26
  Bugfixes:
    - Fixed crash when adding to existing save (Thanks to Polka)
Version: 0.4.9
Date: 2025-12-21
  Bugfixes:
    - probably, fixed the crash i created when i fixed the crash, I couldn't recreate the issue, but i think i know where it was. Lemme know if it comes up again.
Version: 0.4.8
Date: 2025-12-20
  Bugfixes:
    - Fixed crash when you try pasting a machine ghost onto a machine.
Version: 0.4.7
Date: 2025-12-15
  Changes:
    - Thermal interfaces are no longer indestructable, but have complete damage resistances (except impact, such that they dont make space platform tiles theyre on near invincible)
Version: 0.4.6
Date: 2025-12-15
  Changes:
    - Machines by default place at 15 degrees.
  Bugfixes:
    - fixed crash on load when mods add surfaces without any surface conditons.
    - Fixed thermal interfaces being rotated when holding a machine or blueprint and hovering over them. So no more rotation discrepancies (hopefully)
    - Fixed some rotation issues.
Version: 0.4.5
Date: 2025-12-12
  Bugfixes:
    - Machine was nil # no longer occurs
Version: 0.4.4
Date: 2025-11-12
  Bugfixes:
    - Fixed rotating entities on other surfaces through map view
    - Fixed disabled by script entities from producing heat when they are overheating.
Version: 0.4.3
Date: 2025-11-10
  Features:
    - heat_when_disabled_by_script added, which allows for machines to still produce heat even when disabled by script. This *might* be useful for certain compound entities.
  Bugfixes:
    - machines now produce heat while in low power, heat production is correct for power consumption
Version: 0.4.2
Date: 2025-10-29
  Bugfixes:
    - fixed thermal gui from appearing when it shouldn't.
Version: 0.4.1
Date: 2025-10-26
  Changes:
    - Small radiator circuit connectors are placed better.
Version: 0.4.0
Date: 2025-10-26
  Features:
    - Space platform thrusters now support thermal system (their heat output is based on their fuel consumption rate)
    - for thrusters, instaid of heat ratio. you should use heat_per_unit_fluid
  Bugfixes:
    - Specified default temperature is actually respected.
Version: 0.3.2
Date: 2025-10-24
  Changes:
    - Improved the small radiator icon and tech icon
    - Resized radiator tech icon to 256x256
Version: 0.3.1
Date: 2025-10-24
  Bugfixes:
    - radiator_tech_icon properly renamed to small-radiator-tech-icon
Version: 0.3.0
Date: 2025-10-24
  Features:
    - Specific heat can now be specified
    - Small radiator for space platforms added. the prototype is setup and ready to use. so you don't have to mess with assembling the rather finnicky graphics yourself. (these will only load if space age is enabled. since their placement rules dissalow placement on normal surfaces anyway.
  Changes:
    - Default specific heat is now based on the specific heat of the heat pipe
Version: 0.2.1
Date: 2025-10-22
  Changes:
    - Thermal systems in machines are now defined by TFMG_thermal = {} instaid of thermal_system = {}. This is to prevent any accidental namespace overlaps by any other mod. TFMG_thermal is fairly unambiguous.
Version: 0.2.0
Date: 2025-10-20
  Features:
    - Buildings now support rotations in blueprints, rotating blueprints, copying rotations via blueprints onto entities etc. Its not guaranteed to be perfect, but its a huge step in the right direction.
    - update quota setting added (Thermal System entity updates per tick)
    - Dynamic update budgeting added, You now have a pool of updates which every machine type draws from, if you have more of that machine, it gets allocated a proportionately larger budget.
Version: 0.1.1
Date: 2025-10-18
  Changes:
    - locale for ground radiator and such. this is the default changelog and can easily be overwritten by whatever you wish it to be.