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

g [Bug] Asphalt being placed at junction in Py's

3 days ago

Recently updated to 2.1.2 on our pyanodons server and I'm getting this behaviour where the underground junction that is created will also place an asphalt tile down as well. I did not experience this behaviour before. Let me know how I can help debug this.
https://imgur.com/a/pkwlHA1

2 days ago

Can you tell me more about the ground in the screenshot? What specific tile is it? I'm trying to reproduce this with plain vanilla dirt tiles and py loaded for the asphalt but I can't. Alternately, can you give me a small save that reproduces the issue, so I can load up the exact same mods you have in the same place?

2 days ago

What I think happened... Your force paves with asphalt, and asphalt isn't allowed on water-type ground, so the mod was ordering a tile ghost the game would never let you build and the pipe ghost was stuck waiting on it. It now checks that the paving tile is legal there first (that's the fix).

One thing I still can't place: nothing in pyindustry or pycoalprocessing is water-type, so the ground in your screenshot must be a tile from something else in your mod set that doesn't look wet. If you're willing, stand on that tile and run /c game.print(game.player.surface.get_tile(game.player.position).name) and paste the name, plus your mod list? I'd like a regression test with the real tile in it.

2 days ago

I was able to create a new map with the same mods and reproduce the bug.
https://cerberus.soon.it/public_docs/APC%20asphalt%20bug.zip

a day ago

Thanks, that save was exactly what I needed.

Worth flagging first: the save says Factorio 2.0.77, with this mod at 2.0.14. The 2.1.x releases only go to Factorio 2.1, so nothing I said above about 2.1.2 or 2.1.3 ever reached you. If you still think you're using 2.1.2, please give me more information, but I've at least solved the problem in 2.0.14.

The mod was reading "this ground has a cover tile on record" as "this ground needs paving". It does not: that record is a paving choice, and the game keeps one per force for each kind of ground. Something in your game has asphalt on record for ordinary ground, so every connector got an asphalt tile ghost under it, and the connector itself was downgraded to a ghost instead of the pipe you had just paid for. Nothing Pyanodons specific about it, any force with a tile on record would see the same thing.

Fixed for 2.0.15: a cover tile is only laid where the ground would really stop a pipe sitting there, water and the like. I brought the two related fixes over from the 2.1 line as well, so a cover the game would never let you build, asphalt on water for instance, now falls back to one it will, or to leaving the gap alone.

Checked against your mod list on Factorio 2.0.77, every tile it puts in the game, with and without a cover tile on record: 62 tiles, and nothing paved that a pipe can sit on. The same run before the fix paved 66 of them.

Please let me know if this solves the problem for you, in SP and/or MP.

8 hours ago

One of the other players in MP says the problem is fixed. Thanks 👍

This thread has been locked.