[0.17.79] Inserter bonus capacity can go above write-limit
Posted: Wed Jan 29, 2020 5:40 pm
Playing a combination of mods that make the end-game too easy, and I did loads of stack-inserter capacity research.
The stack inserters capped at 255. They do in-fact move 255 items, their hand limit box shows 255, and the info on the side under the map shows 254 + 1. There was a limit implemented by Rseding91 to fix an overflow bug: viewtopic.php?f=11&t=60613&p=364487&hil ... us#p364487
However, if one tries to write a value above 200, the game has an error and exits to the main menu:
https://lua-api.factorio.com/latest/Lua ... city_bonus
The stack inserters capped at 255. They do in-fact move 255 items, their hand limit box shows 255, and the info on the side under the map shows 254 + 1. There was a limit implemented by Rseding91 to fix an overflow bug: viewtopic.php?f=11&t=60613&p=364487&hil ... us#p364487
However, if one tries to write a value above 200, the game has an error and exits to the main menu:
This behavior is documented on the API page:Error MainLoop.cpp : 1195: Exception at tick 5994823: Error while running command "reset_upgrades": The maximum for stack inserter capacity is 200.
https://lua-api.factorio.com/latest/Lua ... city_bonus
I believe the difference between research and writing the value constitute a bug. Either the research cap would be limited to 200 to match the write/api, or the write limit should be raised to 254 and api docs changed.stack_inserter_capacity_bonus :: uint [Read-Write]
Number of items that can be transferred by stack inserters. When writing to this value, it must be 0 >= and <= 200.