Wreck to Ghost


Turn wrecked machines back into ghosts. Click a wreck within build distance with an empty hand and it becomes a ghost of the machine as it was: same spot, direction, quality, recipe and filters. Ctrl+G does every wreck in reach at once. Works on wrecks from before the mod too (assemblers get their recipe back from the inserters around them). For the time before construction robots.

Utilities
a day ago
2.1
11
Blueprints
Owner:
ModBarrage
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
a day ago
Latest Version:
0.5.0 (a day ago)
Factorio version:
2.1
Downloaded by:
11 users

Wreck to Ghost

Turn wrecked machines back into ghosts, before you have construction robots.

Until your force gets ghosts on death, a machine that is destroyed leaves only its remnants, and you have to remember what stood there. With this mod, click a wreck with an empty hand and the machine that stood there becomes a ghost of the machine as it was: same spot, direction, quality, recipe, filters and module requests. Then fill the ghost by hand (or let robots do it later).

To do them all at once, press Ctrl+G: every wreck of yours within your build distance becomes a ghost.

  • A click acts only with an empty hand, on a wreck within your build distance, and not over a window or on another entity. Holding the machine's own item, a click builds it on the wreck as in the base game.
  • A wreck out of reach says "Out of reach"; one whose spot is taken says "Something is in the way of this ghost".

  • Works for anything an item places: belts, undergrounds, splitters, inserters, assemblers, furnaces, chests, poles, pipes, walls, turrets, rails, labs.

  • Only your own force's wrecks, only on the surface you are on, only within build distance. Wrecks farther away stay as they are until you walk up to them.
  • A wreck can be turned into a ghost for as long as its remnants are there. In the base game they stay until something is built on them.
  • If you build something on a wreck yourself, the mod leaves it alone.

Ghosts when remnants fade

Mod setting (Map tab), on by default. If the remnants of a remembered machine go away on their own, for example with a mod that makes remnants fade or cleans them up, a ghost of the machine takes their place when the machine would still fit there. Turn it off and such a wreck is simply forgotten.

Good to know

  • The mod remembers machines that are destroyed while it is active. For wrecks from before you added it, and any other remnants it has no record for, it reads the remnants: they tell the machine, its spot and its direction. Those become ghosts without filters, module requests or quality. An assembler among them gets its recipe back when the inserters around it tell it: what they take out of it (the belt or chest they drop to, the machine they feed) or what they put into it. Inserters that are wrecks or ghosts themselves count too. When that points to more than one recipe, or to none you have unlocked, the ghost has no recipe.
  • Left alone among those: vehicles, underground belts (their remnants do not keep their direction), and remnants that several machines share and that are not named after one of them.
  • Circuit and copper wires are not restored.
  • A force that already gets ghosts when its machines die (after researching construction robotics) is left to the game.
  • The click and the key can be changed under Settings, Controls, Mods.

How it works

When a machine dies, the game still has it on the map for a moment. The mod takes a one-entity blueprint of it right then, so everything a blueprint keeps is kept, and ties that to the remnants. A click (or Ctrl+G) builds that blueprint where the machine stood and removes the remnants.