Stamina


Hand crafting stuff costs health. Keep some fish handy, and research Automation ASAP.

Tweaks
3 years ago
0.13 - 1.1
199

b If "cancel_crafting" option enabled and the mod tries to clear the crafting queue, the game crashes if there are more than 65535 items in it

4 years ago

Just what the title says.
How did I achieved that ?
I used the "LaboriousLaboratory" mod and shift-clicked the added recipe a bunch of times to see what happens.
(Every shift-click adds 3600 items to the crafting queue.)
I'm not sure if it's fixable, as it causes an overflow error.
Maybe "LaboriousLaboratory" mod should have a max-stack option or a max-items-in-crafting-queue option,
but this mod crashed, so I thought I am reporting the bug here first.

Can you bypass the restrictions of the variables having a max value, so it doesn't cause an overflow error ?
Or, as alternative, to pause the crafting queue instead of clearing it ?

Thank you for reading my bug report and have a nice day !

4 years ago
(updated 4 years ago)

Yeah turns out Factorio really doesn't expect you to ever have more than 65535 of a single item queued up for handcrafting, so the call to cancel an item has a cap.

Changed it so instead of trying to be precise about it, Stamina just throws big numbers at your crafting queue until it disappears.

4 years ago

Thank you for responding and fixing the bug.

As I would like to try it, there is still one problem:
Is there a version of this mod for Factorio 0.17 ?

4 years ago

2.1, thought it doesn't have the queue cancel fix.

4 years ago

I mean, is it possible to include this fix in your mod, that is also compatible with Factorio 0.17 ?

4 years ago

ok!

4 years ago

Thank you for taking your time!
Have a nice day!

New response