Grass Grows


Nuclear craters slowly heal back to the ground and plants that were there before the blast. Detects each detonation exactly. Ground around destroyed biter nests heals too. /grass-grows-scan finds older scars.

Tweaks
a month ago
2.1
45
Owner:
ScytheEden
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
a month ago
Latest Version:
0.2.2 (a month ago)
Factorio version:
2.1
Downloaded by:
45 users

Nuclear craters and destroyed biter nests slowly heal. The scorched ground goes back to the tiles and plants that were there before the blast, starting at the edge and working inward. There is nothing to configure to get started. Install it and drop a nuke.

What it heals

  • Nuclear craters. A script trigger placed right before the game paints the scar tiles records each detonation once, at its real position and radius. The mod snapshots the ground and the decoratives (plants, rocks) in that area before the blast, so the crater heals back to what was really there. Mod nukes that paint their scar the same way are picked up too.
  • Biter nest ground. When a nest or worm dies, the decals it left on the ground (enemy-decal, worms-decal and similar) are removed once no living nest or worm is within 16 tiles. Several nests killed together become one site.
  • Older scars. Nauvis is scanned in the background when you add the mod to a save, and again whenever the mod updates. Other surfaces need /grass-grows-scan. Any tile or decorative with nuclear, crater, scorch, burnt or ash in its name counts as a scar.

If the original ground is unknown (an old scar, for example), the mod copies natural ground from next to the scar. When there is none, it uses the fallback tile from the settings.

Tiles you placed yourself are never used as replacements. If you built on a scar, the ground under the building is fixed through its hidden tile, so the building stays.

Commands

Command What it does
/grass-grows-scan [surface] Scan a surface for old scars. Defaults to your current surface.
/grass-grows-status Show how many sites are healing, how many steps are left, and how many were healed so far.
/grass-grows-markers [refresh] Toggle map markers on every crater and nest site being healed. refresh replaces existing markers. Uncharted sites are skipped.

Settings

All settings are runtime map settings.

Setting Default What it does
Scar heal time (minutes) 60 How long a new scar takes to heal, from 1 minute to 7 days.
Maximum healed tiles per second 30 Cap on tile and decorative changes per second, shared by all scars.
Manual scan chunks per minute 1800 Speed of /grass-grows-scan. Each chunk is a fast engine-side search, so high values are cheap.
Fallback replacement tile grass-1 Used only when the original ground is unknown and no natural ground is nearby.
Debug messages off Print a chat message for every blast or nest detected.

Performance

Healing runs once per second instead of every tick, and each site is updated in a single batch. Scans use the game's built-in tile and decorative searches, so they stay cheap on large maps.

For mod authors

The remote interface grass-grows has scan(surface), place_markers(force) and summary().

License

MIT.