Automatic Underground Pipe Connectors

by sparr

Automatically place a pipe when two undergrounds are placed at a corner or one space apart.

Utilities
a day ago
1.0 - 2.1
38.9K

b Advanced Fluid Handeling + PYmods

1 year, 2 months ago

AFH + PY, places normal pipe when T2-AFH pipe to underground is placed, instead of Py T2-Pipe, suggestion: add override option to specify a entity name that gets used

1 year, 2 months ago

Good idea. I'll also look into whether I can automatically detect this particular type of pipe.

1 year, 1 month ago

any update on this?

4 days ago

Sorry for lack of a response. I'm planning to look into this specifically. In general, though, there's an interface exposed for other mods to tell AUPC what pipes should get placed to match their undergrounds. https://github.com/sparr/factorio-mod-automatic-underground-pipe-connectors/blob/ead480a9e7a673da4258b9f45631659f53f86971/control.lua#L441-L474 I'll try to document this better soon.

4 days ago

It looks like the T2-AFH pipe to ground is crafted from a vanilla pipe instead of from a py t2-pipe. I could use the connection category to identify a valid pipe, but there's no guarantee it would be the "right" valid pipe.

Why does the recipe not use the t2 pipe? That seems like it would be more valid in general, and it would also be compatible with this mod. Failing that, they or you will have to implement a compatibility layer to use the AUPC interface to specify the mapping of underground to pipe.

4 days ago

I've tried to work around this by selecting some connectable pipe if the pipe in the recipe can't connect.

New response