Page 1 of 1

[2.0.8] Factorio locomotive slot bug

Posted: Wed Oct 23, 2024 4:55 am
by Tellegar
I have these mods
version and mods
version and mods
10-23-2024, 09-16-02.png (51.51 KiB) Viewed 357 times
2024-10-23 06-50-16.mp4
bug
(9.56 MiB) Downloaded 46 times
2.0.zip
game save
(10.26 MiB) Downloaded 14 times

Re: Factorio locomotive slot bug

Posted: Wed Oct 23, 2024 5:18 am
by robot256
Somehow copper ore wound up inside a locomotive? When it was left in the hand of an inserter and the locomotive approached and stopped there?

Re: Factorio locomotive slot bug

Posted: Wed Oct 23, 2024 5:59 am
by vinzenz
This is probably easy to reproduce and test, but it would still be great if you could attach a save file with this problem to this thread.

Re: Factorio locomotive slot bug

Posted: Wed Oct 23, 2024 12:08 pm
by Rseding91
I believe I know what happened...

* Spoiling introduced the concept of an item in an inserter hand changing as the inserter was swinging to the destination.
* Since the inserter hand contents may change while it's on the way to the target, it needed a way to get rid of the result item once it got to the target instead of getting stuck forever
* Burner fuel sources have a "trash" inventory where items that spoil, or produce burnt-result go
* Items in the burnt result inventory of the burner fuel inventory will get extracted from the burner when inserters go to grab anything from the entity
* If an inserter is bringing something to an entity and the item doesn't fit into the entity when it gets there, and the item is marked as "produced by spoiling" it is put into the entity trash inventory for later disposal
* Since copper ore is a result of an item spoiling it is considered a "trash result" item and the inserter when it tries to put it into the locomotive ends up putting it into the trash inventory since it won't fit in other places

Everything is working as intended, however the result is not desired. I have no solutions to stop inserters from doing that since generically they're working correctly from everything the game engine knows about.