[0.17.66] Ghost rail planner fails to find direct path
[0.17.66] Ghost rail planner fails to find direct path
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.
Re: shift+train tracks?
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.
Re: shift+train tracks?
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:
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:
- BlueTemplar
- Smart Inserter
- Posts: 2420
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: shift+train tracks?
Correct, so point to the actual place where you want the rail to go.
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.
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.
- 5thHorseman
- Smart Inserter
- Posts: 1193
- Joined: Fri Jun 10, 2016 11:21 pm
- Contact:
Re: shift+train tracks?
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.
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: shift+train tracks?
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.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: shift+train tracks?
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.
Moved to bugs.
Re: [0.17.66] Ghost rail planner fails to find direct path
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.
Re: [0.17.66] Ghost rail planner fails to find direct path
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 (4.24 MiB) Viewed 2271 times
-
- Fac_railpl_noshift.png (4.11 MiB) Viewed 2271 times
Re: [0.17.66] Ghost rail planner fails to find direct path
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...
Re: [0.17.66] Ghost rail planner fails to find direct path
Yes, that is what's happening.Allaizn wrote: ↑Sun Sep 01, 2019 8:39 pmI 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...
If you want to get ahold of me I'm almost always on Discord.
Re: [0.17.66] Ghost rail planner fails to find direct path
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.
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.
- eradicator
- 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
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.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: [0.17.66] Ghost rail planner fails to find direct path
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.