Page 1 of 1

[0.18.30] Wired circuit connection not working after logistic connection

Posted: Mon Jun 08, 2020 12:27 am
by bluecube22
Wired circuit conditions are not working if a belt or pump was previously connected to the logistic network.

STR:
1. Place two belts
2. Check the Connect box the first belt to connect to the logistic network
3. Connect a wire between the belts
4. Set a true condition, such as "water = 0"
5. The first belt will not be enabled, but the second will with the same conditions

Expected: Both belts are enabled
Actual: Only the second belt is enabled
Workaround: Copy a working entity's settings or rebuild the entity.

This also works with fluids signals as seen in the attached save file.

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Mon Jun 08, 2020 2:04 am
by Loewchen
All belts connected to the logistics network fail to meet their conditions ([]<0 is always false) and are therefore disabled, circuit network conditions are met for all belts and are therefore irrelevant in the whole setup so all I can see is working fine, or am I misunderstanding what you consider to be the bug?

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Mon Jun 08, 2020 5:50 pm
by bluecube22
There was some confusion on my part. I didn't realize you could be connected to the logistic network and wired network at the same time. In my attached save file I have a false condition (logistics) and a true condition (wired connection).

It's not clear to me as a user which has the priority (enabling vs disabling or logistics vs wires), but it sounds like this is not a bug.

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Mon Jun 08, 2020 6:00 pm
by Loewchen
There is no priority, "enabled" is the default so circuit condition and logistic condition build an AND gate.

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Tue Jun 09, 2020 1:24 am
by bluecube22
Thank you, that makes sense. This can be closed in my opinion.

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Tue Jun 09, 2020 9:04 am
by gGeorg
Loewchen wrote: Mon Jun 08, 2020 6:00 pm There is no priority, "enabled" is the default so circuit condition and logistic condition build an AND gate.
When I found this feature (few month ago) I was suprised that is not highlighted anywhere. Option to add 2 conditions on a single inserter could simplify some creation a lot.
If you can, would you add a note to the wiki ?

Re: [0.18.30] Wired circuit connection not working after logistic connection

Posted: Tue Jun 09, 2020 3:06 pm
by bluecube22
Suggestion :
- If the logistic and wired networks are both connected, show both UIs side by side when the entity UI opens.
- If the logistic network is not connected, keep the current behavior.
suggested_connection_ui_change.png
suggested_connection_ui_change.png (91.45 KiB) Viewed 1898 times