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

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

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

Post by PiggyWhiskey »

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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13174
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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”