Page 1 of 1

"Drag-placing" power poles should ignore already built ones

Posted: Sun Feb 10, 2019 9:44 pm
by mrbaggins
Drag-placing power poles is great. And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.

But, drag-placing powerpoles near or to connect to an existing power network doesn't work, as the code clearly does a check in the vein of "If new power pole can reach other power pole, don't place it"

However, 99% of players probably never have more than 1 power network, and if they do, the connection of those networks is not a problem, and actually probably the goal. Generally, the vast majority of cases would be that if dragging a new power line across, to or over an existing line, you want them to connect.

So, proposal: Power pole drag placing only checks whether it's too far from the last drag-placed power pole. It ignores other power poles entirely.

OR

It instead connects to existing power poles, then continues onward, resulting in a single network.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Tue Feb 12, 2019 5:30 pm
by torne
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
Drag-placing power poles is great. And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.
That's not how it works - they don't guarantee that (for an example, try drag-placing large power poles). What it does is place them the maximum distance apart - it just happens that for small and medium poles this only leaves a small gap between each, which may be enough to power all items if the layout isn't too dense.

This is why it has the behaviour that it does while doing it near an existing power network. From experimentation it seems like the way it works is actually "if the *previous* square the mouse was over was connected to another pole, but the *current* square is not, then place the pole on the *previous* square". This logic makes going around corners/following terrain/etc very easy, because it will always place it in the most efficient spot (maximum range) even if the direction you're moving isn't straight. The behaviour you don't want is useful when building long distance power lines, as it means you can plop down a bunch of outpost blueprints (including their own power poles) and then just drag a line of big poles from the nearest source of power that goes somewhere near each of them, and if the most efficient way to connect it up is to let the power flow "through" an outpost's internal power poles it will just do that.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Tue Feb 12, 2019 6:12 pm
by Sad_Brother
torne wrote:
Tue Feb 12, 2019 5:30 pm
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
Drag-placing power poles is great. And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.
That's not how it works - they don't guarantee that (for an example, try drag-placing large power poles). What it does is place them the maximum distance apart - it just happens that for small and medium poles this only leaves a small gap between each, which may be enough to power all items if the layout isn't too dense.
Are you sure? Test it.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Tue Feb 12, 2019 6:32 pm
by 5thHorseman
I'd hate this functionality.

It's not there to stop you from accidentally connecting 2 power networks. It's there to allow you to quickly place power poles that will power everything. Specifically, it will cause you to drop a power pole early if doing so will power something that won't be powered if you don't drop that pole.

I never care if that thing is powered by my current poles. I care if it's powered by anything.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Tue Feb 12, 2019 11:54 pm
by mrbaggins
It's not there to stop you from accidentally connecting 2 power networks. It's there to allow you to quickly place power poles that will power everything. Specifically, it will cause you to drop a power pole early if doing so will power something that won't be powered if you don't drop that pole.
That's my point though. I clearly want to power everything. But unless you START at a powered power pole, you can NEVER connect it to power if you're click-dragging.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Wed Feb 13, 2019 6:14 am
by darkfrei
As a condition the game can use amount of wires on the previous electric pole. If it has only one connection, then power line cannot be ready, next pole must be placed.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Wed Feb 13, 2019 5:09 pm
by torne
Sad_Brother wrote:
Tue Feb 12, 2019 6:12 pm
torne wrote:
Tue Feb 12, 2019 5:30 pm
That's not how it works - they don't guarantee that (for an example, try drag-placing large power poles). What it does is place them the maximum distance apart - it just happens that for small and medium poles this only leaves a small gap between each, which may be enough to power all items if the layout isn't too dense.
Are you sure? Test it.
I did test it before posting but I must have made a mistake, because testing it again now it clearly does consider both things (maximum range and non-covered entities). Thanks for the correction!

Re: "Drag-placing" power poles should ignore already built ones

Posted: Wed Feb 13, 2019 5:34 pm
by Optera
I tend to agree with the op. When I use drag on poles I want to create a line of poles with max spacing.
Since near poles constantly interfere with that I tend to make blueprints and stamp those down rather than ever dragging poles.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Feb 14, 2019 7:02 am
by leadraven
I agree with OP.
Currently, if I'm making power line between two existing blocks, connectivity is not guaranteed.
When I'm using drag-placing, I want to make new power line ignoring existing poles.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Feb 14, 2019 10:43 am
by BenSeidel
+1
This "feature" annoys me to no end. Just stop considering currently placed poles.

please!

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Feb 14, 2019 1:05 pm
by mrvn
When placing poles in a factory you probably want to power every entity. I never noticed that the game would check this, must not have used drag-placing in factories a lot. Nowadays I always use blueprints to build anything that repeats. E.g. build 2 furnaces with inserters and power pole, then copy&paste to make 24. Bluebuild to the rescue.

The other and probably far more used case is making overland power lines between outposts. You start on one side and drag-place till you hit the other side. Problem is the last power pole connecting the two networks is never placed. Any poles you pass will also disrupt the line.

I would like to propose a new algorithm for this use case:

1) A power pole is placed on the last tile that had connection to the previous pole.
2) A pole is also placed (early) on the last tile that would connect to a new network.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Sat Feb 16, 2019 3:38 pm
by trad_emark
+1

Re: "Drag-placing" power poles should ignore already built ones

Posted: Wed Apr 08, 2020 10:41 pm
by mrbaggins
Are bumps allowed? To my knowledge this has never been addressed.

If I have a vertical "bus" of power poles, and I'm dragging from an oil post horizontally, I want to connect to my bus of power. But the power line won't place if it's in range of ANY power pole.

It should either:

Only consider the line it is dragging from; or
Connect to any power network within the dragging line that it can connect to. Once connected, it will attempt the next placement at max range *from the now connected network*

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Apr 09, 2020 1:21 am
by PyroFire
I don't see any posts from wube so,

This has been discussed in the past and if memory serves, this won't be done due to some technical reasons on how the pole dragging works.
But it would be really nice if it could be.
Oh well.
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.
This only exists in your imagination, not in reality.
No such thing.
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
However, 99% of players probably never have more than 1 power network, and if they do, the connection of those networks is not a problem, and actually probably the goal. Generally, the vast majority of cases would be that if dragging a new power line across, to or over an existing line, you want them to connect.
Unless you use mods.
But generally, yes in vanilla you only need one power network, i think it's more ups friendly too.
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
So, proposal: Power pole drag placing only checks whether it's too far from the last drag-placed power pole. It ignores other power poles entirely.

OR

It instead connects to existing power poles, then continues onward, resulting in a single network.
I agree for either, the overlap when connecting a new line of power poles is annoying to work with, how it just stops placing poles.

But like i said this has been discussed in the past, give the search button a try i'm sure you'll find the answers.

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Apr 09, 2020 2:10 am
by 5thHorseman
PyroFire wrote:
Thu Apr 09, 2020 1:21 am
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.
This only exists in your imagination, not in reality.
No such thing.
No it exists. Place a pump and try to drag Medium Electric poles over it so as to not power it (so it falls in the cracks). The game will drop a power pole early to power the pump, even if the poles themselves are not currently being powered.

This does not work for big electric poles, as their use case is different than the medium ones. It does work for small poles. Substations don't matter as they have full coverage of their range.
factorio_powerpole.jpg
factorio_powerpole.jpg (523.38 KiB) Viewed 3822 times

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Apr 09, 2020 3:52 am
by PyroFire
5thHorseman wrote:
Thu Apr 09, 2020 2:10 am
factorio_powerpole.jpg
Ok that's just weird, this game is always evolving.
Well the more you know i guess.

Image

Re: "Drag-placing" power poles should ignore already built ones

Posted: Thu Apr 09, 2020 11:55 am
by mrbaggins
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
And there's clearly some extra functionality built in where they'll guarantee they power all items you drag under it's influence.
This only exists in your imagination, not in reality.
No such thing.
As already addressed by 5th horseman, as well as earlier in the thread.
mrbaggins wrote:
Sun Feb 10, 2019 9:44 pm
However, 99% of players probably never have more than 1 power network, and if they do, the connection of those networks is not a problem, and actually probably the goal. Generally, the vast majority of cases would be that if dragging a new power line across, to or over an existing line, you want them to connect.
Unless you use mods.
Why would mods require separate networks?