[2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Bugs that are actually features.
lordfwahfnah
Inserter
Inserter
Posts: 23
Joined: Sat Jul 18, 2015 12:25 am
Contact:

[2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Post by lordfwahfnah »

Hi,

i wanted to make an interrupt, that moves my train to the refuel station as soon as a threshold of fuel is below a certain point.

i have 2 locomotives and i selected "Fuel (all locomotives)" as condition. however only the content of one locomotive is shown in the overview (e.g. i have 20 fuel in the first and 20 in the second locomotive. the overview only shows a total of 20 instead of 40 what would be expected).

It seems to show only the highest stack among all locomotives.

Is this expected behaviour? i was expecting the sum among all locomotives of the train.
Since the fuel gets used evenly, both "Fuel (all)" and "Fuel (any)" show the same result given the train has been filled to the brim at one point.
Kyralessa
Filter Inserter
Filter Inserter
Posts: 668
Joined: Thu Sep 29, 2016 5:58 pm
Contact:

Re: [2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Post by Kyralessa »

I think this is probably intended.

Say you have a condition to refuel if fuel is less than or equal to 50. Suppose it sums your locomotives and finds that one has 150 coal, and the other has 0. Because 150 coal is more than 50, you don't refuel, and one locomotive becomes dead weight.

So you probably want to refuel if any locomotive has fuel below the threshold.
Nemoricus
Filter Inserter
Filter Inserter
Posts: 387
Joined: Mon Jan 19, 2015 7:48 am

Re: [2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Post by Nemoricus »

I think this sort of thing is more critical for trains with locomotives in both directions, where you might end up using the fuel unevenly.
lordfwahfnah
Inserter
Inserter
Posts: 23
Joined: Sat Jul 18, 2015 12:25 am
Contact:

Re: [2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Post by lordfwahfnah »

Nemoricus wrote: Sat Oct 26, 2024 3:06 pm I think this sort of thing is more critical for trains with locomotives in both directions, where you might end up using the fuel unevenly.
For that you can use "any locomotive". Here it should check each locomotive if the condition is given. with "all locomotives", one direction can run dry.
Kyralessa wrote: Sat Oct 26, 2024 1:31 pm I think this is probably intended.

Say you have a condition to refuel if fuel is less than or equal to 50. Suppose it sums your locomotives and finds that one has 150 coal, and the other has 0. Because 150 coal is more than 50, you don't refuel, and one locomotive becomes dead weight.

So you probably want to refuel if any locomotive has fuel below the threshold.
Then i don't understand what could be the usecase for "all locomotives" ?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15251
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.11] "Fuel (all locomotives)" condition with unexpected behavior

Post by Rseding91 »

Wait until all locomotives fuel is >= X -> all of your locomotives are fully fueled.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”