[2.1.9] Train interrupt not triggering

Bugs that are actually features.
jobvdl1997
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 01, 2017 8:13 am
Contact:

[2.1.9] Train interrupt not triggering

Post by jobvdl1997 »

What did you do?
I made a train schedule with interrupts to trigger when: 1) Train not as a specific station 2) destination full or no path 3) empty cargo, then go to specific (other) station. There are no other interrupts currently triggered or has its conditions satisfied to be triggered.

What happened?
Interrupt did not get triggered

What did you expect to happen instead? It might be obvious to you, but do it anyway!
Interrupt gets triggered.

Does it happen always, once, or sometimes?
It started happening in 2.1.7 (initial release) and has been since. It seems to only affect this interrupt, others seem unaffected.

I have attached my log and save file. I placed a pin on Nauvis (the only one) with the title "Train interrupt not working!!".
You can find mutliple examples of trains which should have the interrupt trigger but dont.

The interrupt and settings are shown in this screenshot:
factorio_NyjceemGtb.jpg
factorio_NyjceemGtb.jpg (845.12 KiB) Viewed 360 times
The current train stop name can be seen here (this satisfies the third interrupt condition):
factorio_9Q2b5cn7cd.jpg
factorio_9Q2b5cn7cd.jpg (1019.23 KiB) Viewed 360 times
That all destination stations are full and train content or lack there of can be seen here: (this satisfies the frist two conditions)
factorio_9gExIwjLdw.jpg
factorio_9gExIwjLdw.jpg (930.7 KiB) Viewed 360 times
And for good measure, here is a screenshot of a station the train interrupt should make the train head to which can accept 4 more trains (0/4).
factorio_MWHAAhgQEs.jpg
factorio_MWHAAhgQEs.jpg (1.04 MiB) Viewed 360 times
Greetings!
Attachments
SPAGE AGE LETS A GO.zip
(142.85 MiB) Downloaded 25 times
factorio-current.log
(9.54 KiB) Downloaded 16 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 17240
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.9] Train interrupt not triggering

Post by Rseding91 »

Thanks for the report however this is working correctly. Your interrupt is faulty in that it's checking <cargo must be empty> but also <not at stop with cargo-wildcard> - since the cargo wildcard can't match against any cargo in the train it fails the condition completely.
If you want to get ahold of me I'm almost always on Discord.
jobvdl1997
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 01, 2017 8:13 am
Contact:

Re: [2.1.9] Train interrupt not triggering

Post by jobvdl1997 »

That is interesting to hear, because the interrupt works fine on Vulcanus. Same playthrough, on Vulcanus it worked fine for a few hundred hours. It stoped working when I tried to apply the same tick on Nauvis. But it still works on Vulcanus. I have attached a new save, where I have saturated my train network to require trains to use the sleeping bays. I added trains which are currently set to manual and if you switch it to automatic it will start to head to one of the sleeping stations. If it does not happen on the first train, please try the others, for me it works, but you know, "it works on my machine"...
You can find the manual trains at the pin labeled "Trains to start testing interrupt"

Attached are screenshots of this in action should it not work properly on your end.

Item train before switching to automatic:
factorio_n8vxwG99ot.jpg
factorio_n8vxwG99ot.jpg (875.24 KiB) Viewed 296 times
Item train after switching to automatic:
factorio_KEE29Ux88Z.jpg
factorio_KEE29Ux88Z.jpg (881.16 KiB) Viewed 296 times
Liquid train before switching to automatic:
factorio_zqDPO84oDb.jpg
factorio_zqDPO84oDb.jpg (866.08 KiB) Viewed 296 times
Liquid train after switching to automatic:
factorio_TbudWB8UI0.jpg
factorio_TbudWB8UI0.jpg (874.54 KiB) Viewed 296 times
Here is a screenshot of the interrupt that should be triggering (its the same as described in the frist post but its good to show):
factorio_zUYHYpYW3o.jpg
factorio_zUYHYpYW3o.jpg (852.25 KiB) Viewed 296 times
Both the trains and stations were a copy past from Vulcanus to Nauvis so the trains are even in the same train group. Maybe this could explain what I am seeing?

Thank you for taking another look.

Greetings!
Attachments
Debug Train interrupt.zip
(142.88 MiB) Downloaded 43 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 17240
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.9] Train interrupt not triggering

Post by Rseding91 »

Your Vulcanus example works because the train is not at *any* stop so regardless of the wildcard outcome it is always true.
If you want to get ahold of me I'm almost always on Discord.
jobvdl1997
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 01, 2017 8:13 am
Contact:

Re: [2.1.9] Train interrupt not triggering

Post by jobvdl1997 »

Huh, seems you're right! Guess I must have added the "not at specific station" condition later and never noticed the intrrupt stopped working. I swear it worked at some point. Thank you for the quick reply and explanation. Removed the condition and now it works again!
jobvdl1997
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 01, 2017 8:13 am
Contact:

Re: [2.1.9] Train interrupt not triggering

Post by jobvdl1997 »

The reason why I set up the interrupt with the train not at "station" with the station set to [requester chest][item wildcard] is because that is how I named my pick up stations. (this can be seen in the example of Vulcanus. In hind sight with this new info maybe not the base name.) The normal schedule is simply go to [requester chest][item wildcard] station. the train will also be empty (no cargo) and there the [item wildcard] is matched verbatim with out substituting the wildcard for an item. That is why I expected the interrupt to work as well.
Post Reply

Return to “Not a bug”