Different pathfinding for rails

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
User avatar
98coolmen
Inserter
Inserter
Posts: 23
Joined: Tue Sep 20, 2016 12:22 pm
Contact:

Different pathfinding for rails

Post by 98coolmen »

I suggest that when you are laying rails with the ghostmode or normal, you can change to an alternative Route, beacuse the pathfinding is often not that what you want, so by pressing for example Shift while laying the Rails it could search for another way to reach the Endpoint.
What do you think?!

Edit: it could switch between different aspects for finding the route no only the shortest route but more straight rails more diagonal rails.
Attachments
You can change the routefinding by pressing SHIFT
You can change the routefinding by pressing SHIFT
a996e4af2e68d5e831ea2f12dd09e5f6.jpg (505.07 KiB) Viewed 4626 times

deepdriller
Fast Inserter
Fast Inserter
Posts: 185
Joined: Sat Apr 11, 2015 7:52 pm
Contact:

Re: Alternate pathfinding for rails

Post by deepdriller »

The rail pathfinding always searches for the shortest route. How do you expect the computer to magically guess what it is you want it to do instead?
I mean, what IS it you want it to do instead?

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Alternate pathfinding for rails

Post by Optera »

The request here seems to be "enforce 90° turns with minimal radius".
I still lay tracks mostly manual or by blueprint as longer segments tend to use unwanted long diagonals.

greep
Fast Inserter
Fast Inserter
Posts: 108
Joined: Mon Apr 25, 2016 3:12 am
Contact:

Re: Alternate pathfinding for rails

Post by greep »

As above, there's no way the computer can magically know what you want. Custom pathfinding is not exactly simple, even if it is something like throwing a higher weight on straight rails.

As a user, just blueprint everything complicated, blueprint your main track, and then you'll only use ghost mode for either pre-blueprint or some annoying lake/forest navigation.

User avatar
98coolmen
Inserter
Inserter
Posts: 23
Joined: Tue Sep 20, 2016 12:22 pm
Contact:

Re: Alternate pathfinding for rails

Post by 98coolmen »

The computer don't have to guess what you want but it could consider other aspects for the route like more straight more diagonal it could switch between some aspects by pressing shift.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Alternate pathfinding for rails

Post by Optera »

Spinning the thought further a bit.
Add a a checklist in options where we can select which algorithms with predefined parameters like "minimize diagonals", shortest path", least crossings" we want to cycle through.
When cycling through algorithms show the currently selected on screen.

Bilka
Factorio Staff
Factorio Staff
Posts: 3132
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Alternate pathfinding for rails

Post by Bilka »

It's already possible to cycle through different paths by pressing R.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

deepdriller
Fast Inserter
Fast Inserter
Posts: 185
Joined: Sat Apr 11, 2015 7:52 pm
Contact:

Re: Alternate pathfinding for rails

Post by deepdriller »

Bilka wrote:It's already possible to cycle through different paths by pressing R.
That just turns the end piece around.

Bilka
Factorio Staff
Factorio Staff
Posts: 3132
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Alternate pathfinding for rails

Post by Bilka »

deepdriller wrote:
Bilka wrote:It's already possible to cycle through different paths by pressing R.
That just turns the end piece around.
Oh ok. TIL.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Different pathfinding for rails

Post by ssilk »

It works normally for me, by moving around or build in two steps. But, yes, that would be helpful, but not sure, if shift is really useful here, cause it is already used for auto-deconstruction if stuff "in the way".
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Tekky
Smart Inserter
Smart Inserter
Posts: 1039
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Alternate pathfinding for rails

Post by Tekky »

It seems that the original poster double-posted and that this thread is a duplicate of the following thread:
viewtopic.php?f=6&t=41713

EDIT: This post is no longer relevant, since, in the mean time, a mod seems to have merged both threads into one.
Last edited by Tekky on Sun Feb 26, 2017 11:22 am, edited 1 time in total.

User avatar
98coolmen
Inserter
Inserter
Posts: 23
Joined: Tue Sep 20, 2016 12:22 pm
Contact:

Re: Alternate pathfinding for rails

Post by 98coolmen »

Tekky wrote:It seems that the original poster double-posted and that this thread is a duplicate of the following thread:
viewtopic.php?f=6&t=41713
Yeah I wrote the old article so poorly that I posted it again. But thanks for informing them

Tekky
Smart Inserter
Smart Inserter
Posts: 1039
Joined: Sun Jul 31, 2016 10:53 am
Contact:

Re: Alternate pathfinding for rails

Post by Tekky »

98coolmen wrote:
Tekky wrote:It seems that the original poster double-posted and that this thread is a duplicate of the following thread:
viewtopic.php?f=6&t=41713
Yeah I wrote the old article so poorly that I posted it again. But thanks for informing them
It seems that a mod has now merged both threads into one and now the whole thread is a complete mess. :) Therefore, you may want to edit your posts at the start of the thread, for example by removing one of your duplicate posts.

EDIT: I don't think it is possible to actually delete one of the posts. However, you can replace the text of one of the posts with the text "(removed)" or something like that.
Last edited by Tekky on Mon Feb 27, 2017 12:21 pm, edited 1 time in total.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Alternate pathfinding for rails

Post by ssilk »

Yes, please. Or just mark the to deleted posts somehow.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “Ideas and Suggestions”