Runtime spoilage library

by SirPuck

A library to ease the implementation of (but not only) random spoilage results in your mods. It allows you to set random and/or conditional spoilage results dependent on things accessible at runtime (like temperature, surface, surface conditions, speed, whatever). THIS IS IN AN EXPERIMENTAL STATE ! Please reach out to me on Discord or Github if you encounter issues. Please see the Github repo for a more readable doc.

Internal
6 days ago
2.0
156
Factorio: Space Age Icon Space Age Mod

b game crash

18 days ago
(updated 18 days ago)

Game crashes when an item using this library spoils in a boiler

The mod Runtime spoilage library (0.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event runtime-spoilage-library::on_script_trigger_effect (ID 169)
'inventory index': real number expected got nil.
stack traceback:
[C]: in function 'get_inventory'
runtime-spoilage-library/swap_inventories.lua:260: in function 'hotswap_in_generic_inventory'
runtime-spoilage-library/control.lua:85: in function 'swap_item'
runtime-spoilage-library/control.lua:101: in function <runtime-spoilage-library/control.lua:92>

18 days ago
(updated 18 days ago)

Game crashes when an item using this library spoils in a boiler

The mod Runtime spoilage library (0.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event runtime-spoilage-library::on_script_trigger_effect (ID 169)
'inventory index': real number expected got nil.
stack traceback:
[C]: in function 'get_inventory'
runtime-spoilage-library/swap_inventories.lua:260: in function 'hotswap_in_generic_inventory'
runtime-spoilage-library/control.lua:85: in function 'swap_item'
runtime-spoilage-library/control.lua:101: in function <runtime-spoilage-library/control.lua:92>

edit: also crashes when items spoil in mining drills and labs

17 days ago

Seen. Handled on Discord.

This thread has been locked.