Page 1 of 1

[Rseding91] [1.1.104] inserters not switching to sleep state while train is departing

Posted: Fri Feb 16, 2024 3:52 pm
by Vega 128
When i was trying to ups optimize a build i noticed some stack inserters (green set to 12 stack size) unloading a train not going to sleep, untill the end of the last wagon has passed the inserter.
(all observations and experiments were done with single headed trains)

Expected result:
i expected that the inserters would have gone to a sleeping state as soon as the train starts moveing, like in the case of the inserters loading a train.

Repeatability:
it seems to be a very repeatable.
all mods have been disabled and removed from the factorio mods directory.

to reproduce it in isolation i built a loop of track one load and one unload station, and the train was loaded and unloaded with infinite chests
the cargo wagons had a slot limit of 12 slots set. (so have the train load faster)
on the unloading station each wagon was unloaded by 6 stack inserters with the default stack limit of 12 .
on the loading station each wagon was loaded with fish by 6 stack inserters having a stack limit of 10.
(so there would be no inserters stuck holding a partial stack)

in the atachments i included the map on wich i recreated the observation
it was generated with the creative mode preset, the polution and cliffs have been turned off

the 2 commands that were run on the map were "/cheat"(twice) and "/editor"

Experiment results:
inserters being in a sleeping state while the train is ariving
train ariving at unloading station.jpg
train ariving at unloading station.jpg (713.88 KiB) Viewed 554 times

Once the train started to move the stack inserters closest to the trailing end of the train have entered their sleeping state
train departing unload station 1.jpg
train departing unload station 1.jpg (716.86 KiB) Viewed 554 times

As the train is departing the station more and more inserters switch to a sleeping state reducing the inerter entity time usage
train departing unload station 2.jpg
train departing unload station 2.jpg (710.4 KiB) Viewed 554 times

This behavior was not observed in case of a train being loaded
train being loaded.jpg
train being loaded.jpg (748.7 KiB) Viewed 554 times

all inserters go to sleep as soon as the train gets ready to move
train departing loading station.jpg
train departing loading station.jpg (737.05 KiB) Viewed 554 times

the log has the username of the acount changed for anonymity.

Re: [Rseding91] [1.1.104] inserters not switching to sleep state while train is departing

Posted: Fri Feb 16, 2024 6:57 pm
by Rseding91
Thanks for the report. This looks like a super super old artifact from when the game was in early development that was never changed. I don't want to risk changing it for 1.1 but I will change it for 2.0 and assuming no issues are found it will be fixed in the 2.0 release.