-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Some pumpjacks are left disconnected after planner completes #254
Comments
Picking this up to work. I found the root cause area, just nailing down the scenarios that cause it and then i'll have a patch up shortly. |
After looking at this a bit more, the pathing for the pipes does not quite support "backtracking" or "extra spacing" to connect pipe groups. The following blueprint, while similar, moves 1 pumpjack over, and all pumpjacks are now connecting. This is due to the fact that pathing can be handled with the current algorithms.
I'm going to talk with @teoxoy about this a bit, as i believe to "correct" this, we may have to update the algorithms quite a bit. |
Found a much smaller blueprint this happens on. Easier to reproduce and see.
|
@sighnwaive I was able to resolve the issue by allowing the FBE algorithm more retries: |
OK, Found that during pipe generation, we don't generate any underground pipe for connection purposes. Underground pipe is only used to replace stretches of straight pipe. Will work to refactor this to use underground pipe as a method of connection on either side of a building as well. |
The bigger issue here is that we don't actually use undergrounds as part of the pathing algorithm. |
Describe the bug
If you run the oil field generator on this blueprint, some pumpjacks don't get connected.
0eJyUlsluwzAMRP+FZx2sxeuvFEWRRSjUxorhpWgQ+N9rhToUiQCNj3HkZ4qaGepOx8tih9H5mbo7udPVT9S93Wlyn/5wCc/8obfU0bD0w9fh9E2C5tsQnrjZ9rQKcv5sf6mT67sg62c3O8uMx4/bh1/6ox23BSLBGq7T9sLVhy9tEN0Ium1L9cY9u9Ge+L9iFS84BeDKgnFlHqeR6irGNXmcAXBVrK7N40oAZ+QDp4o8rkJ6pxgn87gawdWMU3lcgxxFyThAKC3SuxrGyQIpr2WeAXiIL6RmHiBkiRhDxfoqgIc4w5RJnkrxEGvouN8aqA/yRoHz9pgD4SHu0FF/QLJIxB4m9q8FzgPyR5PkJXN5hz80EC4KmhusPw2ki1J4HjzzUv1T0ORg/WlkriH+MArnlfighHjVjvN9yj+T4tU79lsBPMgfUS9A/oWozO/XMA/IgyAFWC9AHmi5Q8+Af7XC89kA/g1LUb0YQH+h1WgeGGS/0Pzg833lbXfexz24+3eRFvRjxykuWP8AAAD//wMA5MG5Zw==
To Reproduce
Use the above blueprint and click "Generate" under "Oil Outpost Generator Settings"
Expected behavior
A clear and concise description of what you expected to happen.
It is because the
aloneGroups
array is not empty at the end. The 5 pumpjacks here are in one leftover alone group.factorio-blueprint-editor/packages/editor/src/core/generators/pipe.ts
Line 265 in 83343e6
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: