[0.17.66] Ghost rail planner fails to find direct path

Bugs that are actually features.
Post Reply
llVIU
Inserter
Inserter
Posts: 48
Joined: Sat Jul 06, 2019 9:19 pm
Contact:

[0.17.66] Ghost rail planner fails to find direct path

Post by llVIU »

Hello, when building tracks I just let builder robots do their work, clearing trees and laying tracks... so I hold down shift. But for some reason, very frequently the tracks keep trying to go in a circle (similar to pic). Why is this? It's not necessarily because it cannot go any other way, but it seems ridiculous. Like it's not even TRYING to go the normal way.
3382.png
3382.png (1.03 MiB) Viewed 2339 times

Loewchen
Global Moderator
Global Moderator
Posts: 8308
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: shift+train tracks?

Post by Loewchen »

llVIU wrote:
Sun Sep 01, 2019 9:38 am
Why is this? It's not necessarily because it cannot go any other way[...]
It uses the shortest path to get to the target point you specify in the direction you specify, if it creates a circle to get there then there is no other way.

llVIU
Inserter
Inserter
Posts: 48
Joined: Sat Jul 06, 2019 9:19 pm
Contact:

Re: shift+train tracks?

Post by llVIU »

but I remember in 0.16 before using bots that it would never try to go in a circle, and I wasn't using bots of holding shift.

But now it seems like it will make a circle unless I put the perfectly reasonable point. One square too much left or right and it starts making circles.

I mean come on, does that stupid circle look like it would be of any use to anyone?

edit: to make it more clear what I'm talking about:
3383.png
3383.png (607.55 KiB) Viewed 2324 times
3384.png
3384.png (1.44 MiB) Viewed 2324 times

User avatar
BlueTemplar
Smart Inserter
Smart Inserter
Posts: 2420
Joined: Fri Jun 08, 2018 2:16 pm
Contact:

Re: shift+train tracks?

Post by BlueTemplar »

Try removing that signal ?
BobDiggity (mod-scenario-pack)

User avatar
disentius
Filter Inserter
Filter Inserter
Posts: 694
Joined: Fri May 12, 2017 3:17 pm
Contact:

Re: shift+train tracks?

Post by disentius »

Correct, so point to the actual place where you want the rail to go. :D
Shift-pathing tries to path to the position of your cursor in any way it can.
(and for interesting results, try using R while shift-pathing)
Took me a while and some strong profanities to get used to, but now i use it a lot.

User avatar
5thHorseman
Smart Inserter
Smart Inserter
Posts: 1193
Joined: Fri Jun 10, 2016 11:21 pm
Contact:

Re: shift+train tracks?

Post by 5thHorseman »

llVIU wrote:
Sun Sep 01, 2019 10:36 am
"completely useless idea."
That's the problem with your assumptions. It is a completely USEFUL idea. By holding shift you're telling the game "Please make this work no matter what, if it is at all possible." By not holding shift you're telling the game "Please make this go directly if possible, but not at all otherwise."

Unless you can think of a UI friendly way to allow for both of those and also exclude what you think is completely useless.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: shift+train tracks?

Post by eradicator »

llVIU wrote:
Sun Sep 01, 2019 10:36 am
but I remember in 0.16 before using bots that it would never try to go in a circle, and I wasn't using bots of holding shift.
0.17 changed how planning works to make it one mode, instead of a different mode depending on how you start drawing. But what you describe still works exactly like on your picture if you *don't* hold shift. What are you trying to achieve by stating that "shift"-mode is different from "not shift"-mode?
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Loewchen
Global Moderator
Global Moderator
Posts: 8308
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: shift+train tracks?

Post by Loewchen »

I get it now, shift seems to create an offset to the mouse position which looks as if you force a specific direction while not actually doing so.
Moved to bugs.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by Rseding91 »

I don't see any bug here. In every image you've shown when you are holding shift there is no path between the start and the cursor that's buildable except the loop. The game will not put ghost rails in places where they aren't going to be buildable (curve too tight in the first picture, rail signal in the way in the 2nd one).
If you want to get ahold of me I'm almost always on Discord.

Loewchen
Global Moderator
Global Moderator
Posts: 8308
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by Loewchen »

Both screenshots are taken without the cursor moving, the only difference is pressing shift.
Attachments
cheat_15.12_ReResave.zip
(4.39 MiB) Downloaded 52 times
Fac_railpl_yesshift.png
Fac_railpl_yesshift.png (4.24 MiB) Viewed 2271 times
Fac_railpl_noshift.png
Fac_railpl_noshift.png (4.11 MiB) Viewed 2271 times

Allaizn
Former Staff
Former Staff
Posts: 90
Joined: Sat Mar 03, 2018 12:07 pm
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by Allaizn »

Loewchen wrote:
Sun Sep 01, 2019 8:06 pm
Both screenshots are taken without the cursor moving, the only difference is pressing shift.
I always had the feeling that both shift & non-shift versions try to give you a path that preserves the orientation of the rail on where your cursor is, but if that fails they'll fall back to other orientations. The non-shift version simply fails for the "point to the right" case because it has a limited length of rails that it's allowed to build, while the shift version "correctly" finds it.
I think both can be controlled by pressing R, but the non-shift version is in most (if not all cases) unique due to it's short length anyway, so not much happens.

I have no idea whether that behavior should be considered buggy or not though...

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by Rseding91 »

Allaizn wrote:
Sun Sep 01, 2019 8:39 pm
Loewchen wrote:
Sun Sep 01, 2019 8:06 pm
Both screenshots are taken without the cursor moving, the only difference is pressing shift.
I always had the feeling that both shift & non-shift versions try to give you a path that preserves the orientation of the rail on where your cursor is, but if that fails they'll fall back to other orientations. The non-shift version simply fails for the "point to the right" case because it has a limited length of rails that it's allowed to build, while the shift version "correctly" finds it.
I think both can be controlled by pressing R, but the non-shift version is in most (if not all cases) unique due to it's short length anyway, so not much happens.

I have no idea whether that behavior should be considered buggy or not though...
Yes, that is what's happening.
If you want to get ahold of me I'm almost always on Discord.

llVIU
Inserter
Inserter
Posts: 48
Joined: Sat Jul 06, 2019 9:19 pm
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by llVIU »

Am I the only one around here that uses shift button to plan paths? For example: you hold a belt in your cursor/hand/mouse, hold shift, make a line. Now you got a line of belts being planned, and builder robots start working.

Same thing with train tracks.

Why do I do this? Because there's constant trees/rocks in the way that builder robots will automatically remove, you can't do that with regular track laying, you gotta chop every single tree and mine every single rock by hand. And the construction planner has no range limit, you can plan ANYWHERE on the map (press M and do it in any area you want).

So who the hell decided to put these 2 functions on the same hotkey? How do I remove this? I need to look around tomorrow and see if I can find an option somewhere in the keyboard configuration, thanks for all the posts.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by eradicator »

llVIU wrote:
Sun Sep 01, 2019 9:42 pm
Am I the only one around here that uses shift button to plan paths? For example: you hold a belt in your cursor/hand/mouse, hold shift, make a line. Now you got a line of belts being planned, and builder robots start working.

Same thing with train tracks.
That's exactly the behavior you get if you take a rail, hold shift and start dragging. What you're complaining about here only happens if you left-click on the green arrow of an *already existing rail* and *then* start shift-dragging.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

llVIU
Inserter
Inserter
Posts: 48
Joined: Sat Jul 06, 2019 9:19 pm
Contact:

Re: [0.17.66] Ghost rail planner fails to find direct path

Post by llVIU »

yeah, that's what i do because it makes a straight line without worrying that it goes off in some other direction, or be misaligned etc.

Post Reply

Return to “Not a bug”