Recursive Blueprints

by DaveMcW

Automate blueprints to build a self-expanding factory.

Content
1 year, 6 months ago
0.13 - 1.1
30.1K
Blueprints

i Cloning Compatability / Warptorio2

5 years ago
(updated 5 years ago)

Credit to Ravage @ https://discord.gg/a9CNarA Yesterday at 11:12 PM

https://mods.factorio.com/mod/recursive-blueprints
https://mods.factorio.com/mod/pushbutton

Optional but really helpfull to set X-Y W-H signal.

https://mods.factorio.com/mod/Tapeline

Usage
Create a blueprint.
Put the blueprint in the upper Blueprint Deployer chest .
Set X-Y to shift the position of the construction order.
Push the button using F key.

Put a deconstruction planer (you can use filter) in the the lowerBlueprint Deployer chest.
Set X-Y same as the construction order.
Set W-H width height of your bluprint
Push the button using F key.

BP String

https://pastebin.com/Yye4wFAY
Pastebin
0eNrVmc1um0AYRV8lYm0ihj//rLvoupu0qiIL2xNnVAx0GNxakd+9MzixaX3B3Cxad...

Fix recursive-blueprints_0.17.7 --> control.lua

ADD

function on_cloned(event)
local entity = event.destination
if not entity or not entity.valid then return end
if entity.name == "blueprint-deployer" then
table.insert(global.deployers, entity)
end
end

BEFORE

function on_built(event)
local entity = event.created_entity or event.entity
if not entity or not entity.valid then return end
if entity.name == "blueprint-deployer" then
table.insert(global.deployers, entity)
end
end

CHANGE

script.on_event(defines.events.on_entity_cloned, on_built)

TO

script.on_event(defines.events.on_entity_cloned, on_cloned)

5 years ago
(updated 5 years ago)

Thanks for the report, it is fixed in version 0.17.9.

New response