Search found 4 matches

by francoisdevlin
Tue Nov 02, 2021 2:28 am
Forum: Duplicates
Topic: [1.1.45] Copying circuit wires onto existing entities does not consume them
Replies: 2
Views: 1107

[1.1.45] Copying circuit wires onto existing entities does not consume them

Hi, I've noticed an issue when copy/pasting a setup with red or green wires. You can copy paste circuit information onto existing entities, and they will not be consumed. Let's walk through an example

Steps to reproduce:

First, put down some boxes, and connect them with green wire

Screen Shot ...
by francoisdevlin
Tue Aug 31, 2021 11:08 am
Forum: Modding discussion
Topic: Help Automating Circuit Network Creation
Replies: 2
Views: 1478

Re: Help Automating Circuit Network Creation

Interesting, I tried something similar to that and it didn't work for me, I got an error message in game. Maybe I fat fingered something. I did find a way to make it work, here's what I did:


function new_network_id(entity)
local lamp1 = entity.surface.create_entity{
name = 'small-lamp ...
by francoisdevlin
Tue Aug 31, 2021 2:18 am
Forum: Modding discussion
Topic: Help Automating Circuit Network Creation
Replies: 2
Views: 1478

Help Automating Circuit Network Creation

Hi, I'm trying to programmatically create a circuit network for a combinator based mod I'm working on. I've found the connect_neighbour method here:

https://lua-api.factorio.com/latest/LuaEntity.html#LuaEntity.connect_neighbour

However, it requires providing a circuit network id, and I need to ...

Go to advanced search