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). Please reach out to me on Discord or Github if you encounter issues. Please see the Github repo for the documentation.

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

b FIXED: game crash

6 months ago
(updated 6 months 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>

6 months ago
(updated 6 months 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

6 months ago

Seen. Handled on Discord.

This thread has been locked.