[0.17.79] Inserter bonus capacity can go above write-limit

This subforum contains all the issues which we already resolved.
Honktown
Smart Inserter
Smart Inserter
Posts: 1058
Joined: Thu Oct 03, 2019 7:10 am
Contact:

[0.17.79] Inserter bonus capacity can go above write-limit

Post by Honktown »

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:
Error MainLoop.cpp : 1195: Exception at tick 5994823: Error while running command "reset_upgrades": The maximum for stack inserter capacity is 200.
This behavior is documented on the API page:
https://lua-api.factorio.com/latest/Lua ... city_bonus
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.
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.
I have mods! I guess!
Link
Rseding91
Factorio Staff
Factorio Staff
Posts: 16043
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.79] Inserter bonus capacity can go above write-limit

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”