*[13.1]Train PF don't give penalty to circuit closed signal

This subforum contains all the issues which we already resolved.
decay42
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jun 29, 2016 11:23 am
Contact:

[13.0] Train not going to available station, waiting on red

Post by decay42 »

I don't know if it's a bug or just wrong signaling, but I wanted to add it here to let you guys figure it out.

When a signal is blocked (turned red) by a circuit network condition and there is a different station with the same name available, a train still wants to enter the first station (which it does not try to, if a train is inside blocking the signal - then it will automatically pathfind the second station).

See my reddit post for further details: https://www.reddit.com/r/factorio/comme ... led_train/
If i didn't explain enough, please let me know.

Screenshots from the reddit post, in case you don't want to go there:
http://i.imgur.com/UQfP8PB.jpg
http://i.imgur.com/OpNNm7z.jpg
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.0] Circuit network controlled signals

Post by Loewchen »

I was actually worried that something like this would happen.
The good news is the cause of this is documented, the bad news is the fix is now scheduled for .14

Could not find the original report, but its similar to this one: viewtopic.php?f=173&t=26409
Twinsen
Factorio Staff
Factorio Staff
Posts: 1354
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [13.0] Train not going to available station, waiting on red

Post by Twinsen »

For the moment, this is working as intended.

Setting the signal red will not add a penalty to the pathfinder, so the train will not try to find an alternative path.
I added a clarification to the tootip: Note: the train will very often stop at the signal and not try to find an alternative path even if one is available.

I think situations like this will always be problematic since after a certain distance, the train will not change it's path no matter what.
decay42
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jun 29, 2016 11:23 am
Contact:

Re: [13.0] Train not going to available station, waiting on red

Post by decay42 »

I just thought of a possible "solution" to this. Not exactly to this problem, but to the "task" intended by me originally.
Would it be easily possible to make train stations circuit network controlled (disabled/enabled) to achieve the wanted behavior?

So you wouldn't control the signal for the entrance to the station but the station itself, thus making the train chose another station right away.
XKnight
Filter Inserter
Filter Inserter
Posts: 329
Joined: Thu May 28, 2015 10:40 pm
Contact:

*[13.1]Train PF don't give penalty to circuit closed signal

Post by XKnight »

Train pathfinding algo ignores blocks that were locked using circuit network signal.
As a result, train prefer "shortest path + unknown waiting time" than "slightly longer path".

In my opinion, locked signal should have some extra value for pathfinding algo (maybe infinity value? or user-defined?) if it was locked by ciruit network.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by Nexela »

I agree, otherwise the only usefulness I can see for setting a signal to red is to make safer charcter railroad crossings.

Still lots of great train improvements in .13!
User avatar
MrGrim
Fast Inserter
Fast Inserter
Posts: 241
Joined: Sat Apr 09, 2016 7:58 pm
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by MrGrim »

I can't figure out a way to request update notifications for a thread without replying so.. replying.
Mazian
Burner Inserter
Burner Inserter
Posts: 9
Joined: Mon Jun 27, 2016 11:23 pm
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by Mazian »

MrGrim wrote:I can't figure out a way to request update notifications for a thread without replying so.. replying.
Subscribe Topic link is at the very bottom of the page-- part of the theme. It's a yellow bar. Didn't stand out for me at first either.
Twinsen
Factorio Staff
Factorio Staff
Posts: 1354
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [13.0] Train not going to available station, waiting on red

Post by Twinsen »

That is planned in one way or another for 0.14
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [13.0] Train not going to available station, waiting on red

Post by Loewchen »

Twinsen wrote:That is planned in one way or another for 0.14
I'll move this to Waiting for 0.14 then.
ixnorp
Inserter
Inserter
Posts: 48
Joined: Mon Jun 27, 2016 11:06 pm
Contact:

Re: [13.0] Train not going to available station, waiting on red

Post by ixnorp »

How costly is it in terms of processing to have a train re-evaluate its path or to add something like path finding weights for paths which will clearly never be available or the time to wait is unknown? Could trains re-evaluate their paths, say, once a second (every few seconds?) when stopped (even when moving?) to ensure they have the best path? Perhaps there could be a toggle or research item to enable advanced path finding only on certain trains which will be on complex networks and other trains would default to the cheaper default path finding which may not be as smart but is suitable for networks with only a few trains on them.
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by Loewchen »

The PF does not see signals but blocks, so I could imagine that it considers the block as occupied and as the block is part of both routes both get the same penalty and the shortest route is considered fastest. More testing would be necessary to confirm that.
XKnight
Filter Inserter
Filter Inserter
Posts: 329
Joined: Thu May 28, 2015 10:40 pm
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by XKnight »

Loewchen wrote:The PF does not see signals but blocks, so I could imagine that it considers the block as occupied and as the block is part of both routes both get the same penalty and the shortest route is considered fastest. More testing would be necessary to confirm that.
Pic
Last edited by Loewchen on Sat Jul 02, 2016 6:01 pm, edited 1 time in total.
Reason: added spoiler notation
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [0.13.1] Train pathfinding algo ignores locked blocks

Post by Loewchen »

Thank you for testing.
By placing a cargo wagon in the way instead of the circuit it seems that the PF does indeed not give penalties to via circuit network closed signals.
DevilXD
Fast Inserter
Fast Inserter
Posts: 213
Joined: Tue Aug 12, 2014 10:47 am
Contact:

Re: *[13.1]Train PF don't give penalty to circuit closed signal

Post by DevilXD »

Umm, I found this topic in "waiting for 0.14" section: viewtopic.php?f=173&t=27513
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: *[13.1]Train PF don't give penalty to circuit closed signal

Post by Loewchen »

DevilXD wrote:Umm, I found this topic in "waiting for 0.14" section: viewtopic.php?f=173&t=27513
Dammit, I misunderstood the case in the other report completely, this is indeed the same "bug".

Merged both reports.
Loewchen
Global Moderator
Global Moderator
Posts: 9290
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: *[13.1]Train PF don't give penalty to circuit closed signal

Post by Loewchen »

This is going to be fixed in 13.17:
viewtopic.php?f=30&t=31116

Reply here if it didn't.
Post Reply

Return to “Resolved Problems and Bugs”