Stable Foundations

by Dummiez

Your buildings and other structures now gain extra damage resistance, productivity, speed and efficiency when built over stone and concrete tiles! Can also be used to reinforce vehicles, robots and players as well as adjusting the additional foundation stats to your liking. Easily configurable/mod compatible.

Tweaks
21 hours ago
1.1 - 2.0
7.73K
Combat Armor Manufacturing Cheats

Changelog

Version: 1.5.2
Date: 11. 05. 2026
  Optimizations:
    - Bulk tile events now use a single union-area find_entities_filtered call when tiles are dense (≥8 tiles, ≥25% bbox density), falling back to per-tile scans otherwise.
  Bugfixes:
    - Fixed an issue where beacon would overload each other when within another's effect range.
    - Fixed an issue where beacons overload mechanics for modded playthroughs would not get properly removed (Beacon Rebalance).
Version: 1.5.1
Date: 10. 05. 2026
  Features:
    - Added support for Space Exploration and Beacons Rebalance mod. Beacon overload mechanics should now be handled among most other mods that modify this.
Version: 1.5.0
Date: 08. 05. 2026
  Features:
    - Added damage reduction cap setting (default limit 90%). Does not apply to friendly damage.
  Optimizations:
    - Batched chunk mark/unmark for tile placement and removal events; bulk landfill or concrete operations now scan each affected chunk at most once.
    - Entity searches around newly placed tiles now filter by force, skipping trees, rocks, particles, and enemy structures.
    - Throttled damaging area-of-effect near reinforced structures for performance improvements, each affected entity triggers at most one scan per second.
    - Removed redundant beacon search from the building-bonus hot path; orphan recovery now runs only on configuration changes.
    - Removed periodic tile-coverage rescan that was running surface.count_tiles_filtered for every multi-tile reinforced building each cycle; tile coverage is now strictly event-driven.
  Balancing:
    - Lowered default values for entity scan refresh rate and entities-per-scan to reduce idle overhead. Existing saves keep their previous values; new installs get the new defaults.
  Changes:
    - Tile and entity name patterns now use word-boundary matching so e.g. "stone" no longer matches "limestone" by accident. Use * (e.g. *stone*, wood-*, *floor) for substring or prefix/suffix matches.
    - Refactored the runtime control script into focused helper modules under scripts/ for damage handling, reinforcement checks, tile tracking, invulnerability overrides, selection indicators, beacon bonuses, and shared state/config setup.
  Bugfixes:
    - Buildings whose tiles get destroyed by area-of-effect weapons (e.g. atom bombs) no longer keep stale reinforcement bonuses.
    - Position-based fallback UIDs now include surface index, fixing health-tracking collisions for non-unit entities sharing a position across surfaces.
    - Player UIDs now use player index instead of name, avoiding stale entries on rename (for those who play offline/locally).
    - Fixed an issue where segmented enemies would receive damage reduction on tiles.
  Other:
    - Optional dependency for Concrete in Space to allow reinforcing of structures on platforms.
Version: 1.4.0
Date: 06. 05. 2026
  Features:
    - Added support for Space Platform Foundations (See Concrete In Space)
Version: 1.3.9
Date: 03. 05. 2026
  Bugfixes:
    - Fixed a translation issue.
Version: 1.3.8
Date: 02. 05. 2026
  Modding:
    - Added remote.call("damage-indicator", "record_external_damage_reduction", {source, entity, tick, original_damage, final_damage, reduced_damage, damage_type}) to support other mods that require checking damage modifications.
  Bugfixes:
    - Fixed an issue that would incorrectly match entities to the invulnerability list for rails/lights/poles.
Version: 1.3.7
Date: 01. 05. 2026
  Features:
    - Added a reinforced text indicator when selecting reinforced structures and units with alt-mode enabled.
    - Reinforced text indicator now displays the current damage reduction percentage.
  Optimizations:
    - Improved tile matching cache for more consistent foundation tier handling.
    - Improved damage and repair tracking for moving units and players on foundations.
    - Added damage event filtering to reduce unnecessary damage checks.
  Compatibility:
    - Re-added blacklist handling for foundation bonus effects.
    - Improved handling for empty startup setting lists.
    - Report mitigated damage to Damage Indicator when that mod is active, allowing popups like 50 (-50).
  Bugfixes:
    - Fixed an issue where safe foundation entities could stay indestructible after foundations were removed.
    - Fixed an issue where overlapping tile names could receive inconsistent foundation tiers.
    - Fixed reinforced text indicators not updating correctly for moving entities.
Version: 1.3.6
Date: 26. 04. 2026
  Translation:
    - Added Polish (provided by S3BA).
  Bugfixes:
    - Fixed an issue with configuring startup settings that are empty.
Version: 1.3.5
Date: 13. 04. 2026
  Optimizations:
    - Moved shared variables from global scope.
    - Adjusted default settings for entity refresh.
  Bugfixes:
    - Fixed an issue where non-structure entities would not get damage reduction from foundations despite being on top.
    - Fixed an issue where placing/removing foundations would cause an invalid LuaEntity error.
Version: 1.3.4
Date: 13. 04. 2026
  Balancing:
    - Structures now require complete base coverage of the same foundation type in order to receive effects (Jan125).
    - Internal adjustments for damage reduction calculation which should slightly improve mod performance.
  Bugfixes:
    - Fixed an issue where structures would keep damage reduction and bonuses even after foundations were removed. 
    - Fixed a caching issue with entities.
Version: 1.3.3
Date: 08. 04. 2026
  Compatibility:
    - Added handling for script_raised_set_tiles for mod support.
Version: 1.3.2
Date: 08. 04. 2026
  Features:
    - Structures and units with Uncommon quality tier or higher now gain bonus damage reduction. This is configurable in the mod settings.
    - Updated missing on_event triggers for checking structures/units with foundations.
  Balancing:
    - Adjusted damage reduction stats to compensate for quality bonuses.
  Compatibility:
    - Updated mod base version requirements.
  Bugfixes:
    - Fixed the foundation effects not properly applying to structures that were originally whitelisted in the mod settings. This will change behavior of some assembly-type buildings.
    - Minor bug fixes.
Version: 1.3.1
Date: 01. 04. 2026
  Bugfixes:
    - Fixes an issue with structure entity checking and older data cleanup.
Version: 1.3.0
Date: 31. 03. 2026
  Features:
    - Negative values are now possible in the mod settings for damage reduction.
  Translation:
    - Added German (provided by OC1024).
    - Added Simplified Chinese (provided by DeepSeek).
    - Translations now apply to the reinforced indicator text in-game.
  Other:
    - Optimization for structure health calculations.
    - Minor performance improvements to foundation bonuses.
  Bugfixes:
    - Fixed other bonuses not applying due to productivity bonus (This still uses the vanilla method of applying bonuses via beacons, so productivity bonuses only work on intermediate products, etc).
    - Fixed text scrolling speed.
    - Mod compatibility fix attempts.
Version: 1.2.0
Date: 13. 11. 2024
  Bugfixes:
    - Fixed an issue with rocket stack size for some items.
    - Fixed reinforced text appearing on other planets.
Version: 1.1.9
Date: 24. 10. 2024
  Bugfixes:
    - Fixed an issue with reinforcing structures with energy usage (lamps, displays).
Version: 1.1.8
Date: 24. 10. 2024
  Other:
    - Compatibility for 2.0 / Space Age DLC.
Version: 1.1.7
Date: 15. 10. 2024
  Bugfixes:
    - Fixed an issue with mod not correctly loading (Module inventory size is > 0 but no effects are allowed)
Version: 1.1.6
Date: 13. 10. 2024
  Features:
    - Added blacklist setting in mod settings for fixing incompatibility with modded structures.
Version: 1.1.5
Date: 18. 09. 2024
  Bugfixes:
    - Fixed an issue with incorrect bonuses applying and invalid object referencing.
Version: 1.1.4
Date: 03. 09. 2024
  Bugfixes:
    - Fixed an issue with module bonuses.
Version: 1.1.3
Date: 05. 08. 2024
  Bugfixes:
    - Fixed a compatibility issue with Enemy Race Manager.
Version: 1.1.2
Date: 23. 07. 2024
  Bugfixes:
    - Fixed an issue with incorrect variable naming.
Version: 1.1.1
Date: 23. 07. 2024
  Bugfixes:
    - Fixed an issue with an invalid key function.
Version: 1.1.0
Date: 05. 07. 2024
  Bugfixes:
    - Fixed mod conflict with Space Exploration.
Version: 1.0.9
Date: 03. 07. 2024
  Bugfixes:
    - Fixed an issue with modded buildings and foundation bonus incompatibility (if this issue persists, disable the Building foundation bonus effects).
Version: 1.0.8
Date: 01. 07. 2024
  Bugfixes:
    - Fixed an issue with entity cleanup not working as intended.
Version: 1.0.7
Date: 01. 07. 2024
  Bugfixes:
    - Fixed mod conflict with Bob's Modules.
    - Fixed an issue where 1x1 assembly-type buildings would not receive foundation bonuses.
  Other:
    - Fixed minor issues from previous changelog.
Version: 1.0.6
Date: 28. 06. 2024
  Bugfixes:
    - Fixed an issue with health changes for buildings on a tile. Now accounts for repairs and other non-damaging events.
  Other:
    - Minor adjustments to some default settings.
Version: 1.0.5
Date: 28. 06. 2024
  Features:
    - Foundations can now provide most production-type structures with improved productivity, speed and efficiency. This is configurable in the mod settings.
    - You can now configure which tiles and buildings can be utilized with the foundation bonuses in the mod settings.
    - Added Structure/unit update refresh setting to limit how many entities can be updated for proper damage checking. This should improve performance issues for large save files.
  Other:
    - Internal code rewrite (more efficient tile and chunk scanning).
Version: 1.0.4
Date: 04. 02. 2023
  Features:
    - The following structures can now be toggled invulnerable while on a foundation in startup settings: Big poles, rails and signals, lamps and lighting.
    - More support for various mods that add tiles.
  Other:
    - Fixed an issue where certain structures may be incorrectly tagged (mostly modded entities).
    - Minor performance improvements.
Version: 1.0.3
Date: 26. 01. 2023
  Minor Features:
    - Reinforced text popup now displays to all players on the same force if enabled.
    - Bots placing structures on tiles will now properly display reinforced text popup.
Version: 1.0.2
Date: 25. 01. 2023
  Bugfixes:
    - Unresolved bug fix from 1.0.1.
Version: 1.0.1
Date: 25. 01. 2023
  Bugfixes:
    - Fixed an issue with mod error on robot placed tiles/entities.
Version: 1.0.0
Date: 25. 01. 2023
  Major Features:
    - Initial release.