[2.0.15] Disabled inserters holding item will still insert into train car
Posted: Thu Nov 14, 2024 10:01 pm
I have inserters at a loading station disabled through a circuit condition. They will only enable when a train is sitting at the station and only if the train id does not match my "personal" train. I wanted to be able to stop at stations without having to worry about accidentally loading my train with unwanted items.
Blueprint of full station and train:
Note: I noticed my train id had changed when working to duplicate and I addressed that by updating the condition to ensure the id in the condition would match the train id. Also note the constant combinator below the track is disabled and not sending any signal on the circuit.
Combinator and inserter settings: Station layout with ore train being loaded:
Note: The other combinators are configured to enable/disable the station itself through train limit and priority and are not used to alter the inserter state Ore train has just left the station and personal train is entering:
Note: Only the two loading sections on the left have 5 x inserters actively holding 2 ore each, as only the first two cars in the ore train had a slot available
Personal train id 111, matching the above combinator rule, is at the station and has had 20 copper ore loaded, 10 in each of the first two cars. Space is available in all four cars but the last two did not have any ore loaded: Here you can see the inserters are in a disabled state due to the circuit configuration:
There appears to be a bug/undesired behavior where if an inserter is currently holding say copper ore, and is disabled, it will still insert that ore into a train car but will not insert any further ore. I can duplicate by having a "normal" ore loading train stop at the station with available space, accept some ore and leave the station. When I then send my "personal" train to the station it will load the ore the inserters are currently holding that they did not insert in the previous train. It's interesting to note that only inserters which were adjacent to a car on the previous ore train that had available space would then insert into the next train. So essentially only inserters which were actively engaged previously will show this behavior, while inserters which had nowhere to insert on the previous train will not.
Expected behavior would be for an inserter to remain completely disabled regardless if an available container/car is adjacent and regardless if the inserter is holding anything. As it is disabled, it should not perform any function except wait to be enabled.
Blueprint of full station and train:
Note: I noticed my train id had changed when working to duplicate and I addressed that by updating the condition to ensure the id in the condition would match the train id. Also note the constant combinator below the track is disabled and not sending any signal on the circuit.
Combinator and inserter settings: Station layout with ore train being loaded:
Note: The other combinators are configured to enable/disable the station itself through train limit and priority and are not used to alter the inserter state Ore train has just left the station and personal train is entering:
Note: Only the two loading sections on the left have 5 x inserters actively holding 2 ore each, as only the first two cars in the ore train had a slot available
Personal train id 111, matching the above combinator rule, is at the station and has had 20 copper ore loaded, 10 in each of the first two cars. Space is available in all four cars but the last two did not have any ore loaded: Here you can see the inserters are in a disabled state due to the circuit configuration:
There appears to be a bug/undesired behavior where if an inserter is currently holding say copper ore, and is disabled, it will still insert that ore into a train car but will not insert any further ore. I can duplicate by having a "normal" ore loading train stop at the station with available space, accept some ore and leave the station. When I then send my "personal" train to the station it will load the ore the inserters are currently holding that they did not insert in the previous train. It's interesting to note that only inserters which were adjacent to a car on the previous ore train that had available space would then insert into the next train. So essentially only inserters which were actively engaged previously will show this behavior, while inserters which had nowhere to insert on the previous train will not.
Expected behavior would be for an inserter to remain completely disabled regardless if an available container/car is adjacent and regardless if the inserter is holding anything. As it is disabled, it should not perform any function except wait to be enabled.