[1.1.77] [modded] inserter stack_size_bonus = 4294967295 crash

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

[1.1.77] [modded] inserter stack_size_bonus = 4294967295 crash

Post by Honktown »

What I did:
data.raw["inserter"]["burner-inserter"].stack_size_bonus = 4294967295

What I expected:
Error: "stack_size_bonus must be smaller than or equal to 254.000000" (1 + 254) = 255, same error writing the force inserter bonus

What happened:

situation 1)
inserter shows 0 + 0 stack size
Open inserter:
3776.774 Error Util.cpp:83: Can't set min > max value.
moves item stack size at a time

situation 2)
inserter has stack_size bonus, shows 0 + 2
no error, moves two items.

Additionally:
data.raw["inserter"]["burner-inserter"].stack_size_bonus = 4294967294
No error, in-game shows 4294967295 + 0, moves 255 items, slider works from 1-255
I have mods! I guess!
Link
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3274
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.77] [modded] inserter stack_size_bonus = 4294967295 crash

Post by boskid »

Thanks for the report. In 1.1.78 the InserterPrototype::stack_size_bonus will only accept values from 0 to 255.
Post Reply

Return to “Resolved Problems and Bugs”