Page 1 of 1

missing connection in blueprint

Posted: Sun May 02, 2021 1:33 pm
by bobDoesThings
I'm creating blueprints outside of Factorio and have an oddity I can't figure out. I have entities connected with red and/or green wire. In the example below, a green wire between the two wooden chest does not appear when the string is imported. Any ideas?

Code: Select all

0eF7VldtuozAQht/FlytccWwO2jdZVcjAJBkJbGSbdqMo777jUAWWQgpse7FSFGWI5+Dfvz8u
LCsbqDVKy/YXhrmShu1/XZjBoxSle2bPNbA9QwsV85gUlYuEMVBlJcojr0R+Qgk8YlePoSzg
N9sH1xePgbRoEdp6t+CcyqbKQNOCe6UDlhY0R2lA0w9qUStDeUq65lTLf0o8dqaUp4QaFKgh
b//1PUbjyjY0bnXgvjQU/Y5IUXJ9uV5vq61WZZrBSbyi0m51jjpv0KaVKiBVh1TVoEVbP6Cc
D4OH98HfFKVInp/A2Ompw5lTHzWAHM696Q3g4q2TdWR/sdvfyLBRp7Iw9oHG8ZTG8YJpt5+r
TP8V974H1MamnxgtVzWdCM9FVgJrqxsrnFvDyEVVLei8XBf2k42KEHem1WhPFVjMOSVmKG+J
k0cXDcUIZxsuJCk8Fi63Yzdip5V5INYratvQk/se2xUc6FI6uQy4MmmnGqeb1/M4+0GpqrF1
s7j4qNhJ7+DalrOkjtff7WBwR+JpcVvUzOLbu+3qUth32zU3zyV9xI0J8LwcbNyfeevGdu9/
Hdo2C9HGg39hWzjBst0Ey7ZLWfZR1mXj/W2r6DvgBiXNopV0QGqLDBDnz0Pcbi3ieLiecZuH
jHtkzP8dcoG/jnI8Wo+554Efd1+COSTzPYacNxeVvTf0sIp7G7rPHwoqkEA=

Re: missing connection in blueprint

Posted: Sun May 02, 2021 1:52 pm
by Loewchen
How did you create the string?

Re: missing connection in blueprint

Posted: Sun May 02, 2021 2:50 pm
by bobDoesThings
Loewchen wrote:
Sun May 02, 2021 1:52 pm
How did you create the string?
Code external to Factorio (Smalltalk in this case). Uncompressed, it looks like this:

Code: Select all

{"blueprint":{"icons":[{"signal":{"type":"item","name":"assembling-machine-3"},"index":1}],"entities":[{"entity_number":1,"name":"filter-inserter","position":{"x":0.5,"y":1.5},"direction":0,"connections":{"1":{"red":[{"entity_id":5}]}},"control_behavior":{"circuit_mode_of_operation":1}},{"entity_number":2,"name":"wooden-chest","position":{"x":0.5,"y":2.5},"direction":0,"connections":{"1":{"green":[{"entity_id":7},{"entity_id":8}],"red":[{"entity_id":4}]}}},{"entity_number":3,"name":"fast-inserter","position":{"x":4.5,"y":1.5},"direction":4,"connections":{"1":{"green":[{"entity_id":8}]}},"control_behavior":{"circuit_condition":{"first_signal":{"type":"item","name":"copper-cable"},"constant":23,"comparator":"<"}}},{"entity_number":4,"name":"arithmetic-combinator","position":{"x":0.5,"y":3.5},"direction":2,"connections":{"1":{"red":[{"entity_id":2}]},"2":{"red":[{"entity_id":5}]}},"control_behavior":{"arithmetic_conditions":{"first_signal":{"type":"virtual","name":"signal-each"},"second_constant":-1,"operation":"*","output_signal":{"type":"virtual","name":"signal-each"}}}},{"entity_number":5,"name":"constant-combinator","position":{"x":0.5,"y":4.5},"direction":0,"connections":{"1":{"red":[{"entity_id":1},{"entity_id":4}]}},"control_behavior":{"filters":[{"signal":{"type":"item","name":"copper-plate"},"count":25,"index":1}]}},{"entity_number":6,"name":"filter-inserter","position":{"x":0.5,"y":-0.5},"direction":4,"connections":{"1":{"red":[{"entity_id":10}]}},"control_behavior":{"circuit_mode_of_operation":1}},{"entity_number":7,"name":"wooden-chest","position":{"x":0.5,"y":-1.5},"direction":0,"connections":{"1":{"green":[{"entity_id":2}],"red":[{"entity_id":9}]}}},{"entity_number":8,"name":"fast-inserter","position":{"x":4.5,"y":-0.5},"direction":0,"connections":{"1":{"green":[{"entity_id":2},{"entity_id":3}]}},"control_behavior":{"circuit_condition":{"first_signal":{"type":"item","name":"electronic-circuit"},"constant":20,"comparator":"<"}}},{"entity_number":9,"name":"arithmetic-combinator","position":{"x":0.5,"y":-2.5},"direction":2,"connections":{"1":{"red":[{"entity_id":7}]},"2":{"red":[{"entity_id":10}]}},"control_behavior":{"arithmetic_conditions":{"first_signal":{"type":"virtual","name":"signal-each"},"second_constant":-1,"operation":"*","output_signal":{"type":"virtual","name":"signal-each"}}}},{"entity_number":10,"name":"constant-combinator","position":{"x":0.5,"y":-3.5},"direction":0,"connections":{"1":{"red":[{"entity_id":6},{"entity_id":9}]}},"control_behavior":{"filters":[{"signal":{"type":"item","name":"iron-plate"},"count":25,"index":1},{"signal":{"type":"item","name":"copper-cable"},"count":25,"index":2}]}}]}}

Re: missing connection in blueprint

Posted: Mon May 03, 2021 2:14 am
by DaveMcW
Build the blueprint, add the missing wire, create a new blueprint, and decode the blueprint to see the right way to do it.

Re: missing connection in blueprint

Posted: Mon May 03, 2021 10:11 am
by bobDoesThings
Thanks, that was the answer (eventually). It wasn't until I had tried that several times that I really understood what was going on with "circuit_id". All's well now.