[Klonan] [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

This subforum contains all the issues which we already resolved.
Milichip
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Jan 30, 2025 11:51 pm
Contact:

[Klonan] [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Milichip »

Hello!

Please refer to the image/video for context.
When using the wildcard signal in a train interrupt against another signal's value, the game behaves incorrectly.

For example, while the train stop is being supplied "Iron 100" and "A 100", the interrupt "Wildcard(signal) == A" will not trigger. This is also true for "Wildcard(signal) <= A", and yet "Wildcard(signal) >= A" does trigger the interrupt, as well as "Wildcard(signal) != A" also does.
Of course Iron 100 == A 100 should trigger because it's true, but it doesn't. Same for <=, all the while != shouldn't trigger. Didn't test the others.

Testing against constants, however, works perfectly fine.

I suggest you test every operator when wildcard is used against signals, since they seem to be particularly wonky.

Thanks :3
Attachments
factorio_8b8v8rSysu.png
factorio_8b8v8rSysu.png (83.4 KiB) Viewed 429 times
factorio_WD6jH4UZJf.mp4
(660.42 KiB) Downloaded 22 times
robot256
Smart Inserter
Smart Inserter
Posts: 1063
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by robot256 »

When testing the Signal Wildcard against a constant, does the interrupt trigger for a signal with the correct value but for which no station exists? I forget if they accounted for that case. The problem with "Signal Wildcard == A" is that A == A whenever A is nonzero.
Loewchen
Global Moderator
Global Moderator
Posts: 9752
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Loewchen »

The wildcard just does not take the "iron" value (even though it does take the icon in the station name), greater than even triggers with an iron signal of 1 and A of 1M. It is also not limited to signals, it is the same for the cargo wildcard. It is not signal ID that takes precedence because swapping them does not change anything.
Muche
Filter Inserter
Filter Inserter
Posts: 747
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Muche »

It seems to me that the issue is the (signal) wildcard is being evaluated in a mode similar to combinators' EACH, but not exactly.

Combinators first evaluate all incoming signals, then run the parallel EACH mode.
That is, a decider with "EACH=A -> EACH" will output all signals whose value is the value of A.

Interrupt's wildcard mode seems to skip the signals evaluation, so "SignalWildcard=A" is effectively "EACH=0".
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Klonan »

Milichip wrote: Fri Jan 31, 2025 12:08 am Hello!

Please refer to the image/video for context.
When using the wildcard signal in a train interrupt against another signal's value, the game behaves incorrectly.
Hello, thank you for the report, and welcome to the forum

Would you kindly be able to upload your save game and attach it here?
Muche
Filter Inserter
Filter Inserter
Posts: 747
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Muche »

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [Klonan] [2.0.32] Train interrupt wildcard conditions evaluated incorrectly

Post by Klonan »

Thanks for the report,

This is fixed for 2.0.34
Post Reply

Return to “Resolved Problems and Bugs”