[Rseding91] [0.16.45][Modded] Stack Inserter Capacity Bonus overflow

This subforum contains all the issues which we already resolved.
Post Reply
Fast Inserter
Fast Inserter
Posts: 240
Joined: Wed May 13, 2015 5:28 am

[Rseding91] [0.16.45][Modded] Stack Inserter Capacity Bonus overflow

Post by PiggyWhiskey » Fri May 25, 2018 9:25 am

Modded game with Bob's Mod's and Infinite Technology Expanded (https://mods.factorio.com/mod/wormmus-inf-tech) and a few other's that don't apply to this bug.

Infinite Tech Expanded adds infinite research for Stack Inserter Capacity Bonus (+2 for each level past 7)

When Stack Inserter Bonus reaches 256, it overflows to 0 and will move 1 stack of any count instantly. i.e. Stacks of 1,000 landfill.
"Bonus" GUI shows correct value of 256.

Above this value, the Bonus resets and starts actually counting from 0.

Level 128 - Actual +254 - Displays +254 - Bonus shows +254
Level 129 - Actual Infinite (1 Stack) - Displays +0 - Bonus shows +256
Level 130 - Actual +2 - Displays +2 - Bonus shows +258

This came from a 30k science/minute game, I overflowed the value twice before I noticed.

Factorio Staff
Factorio Staff
Posts: 9977
Joined: Wed Jun 11, 2014 5:23 am

Re: [Rseding91] [0.16.45][Modded] Stack Inserter Capacity Bonus overflow

Post by Rseding91 » Fri May 25, 2018 9:59 am

Thanks for the report. The inserter stores the target pickup count using an 8 bit unsigned intenger so it's maximum value can only ever be 255.

I'll fix it so it doesn't overflow but any research bonus which puts it above 255 will cap at 255.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users