Page 1 of 1

[1.1.77] [modded] inserter stack_size_bonus = 4294967295 crash

Posted: Sat Mar 18, 2023 10:37 pm
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

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

Posted: Mon Mar 20, 2023 9:25 am
by boskid
Thanks for the report. In 1.1.78 the InserterPrototype::stack_size_bonus will only accept values from 0 to 255.