Magic Science Chest

by Dreaden

This mod adds a chest that magically refills with science packs.

Content
1 year, 1 month ago
1.1 - 2.0
1.54K
Storage Cheats

g Crash after update. Unknown hard drive

3 months ago

Error while running event magic-science-chest::on_nth_tick(300)
Unknown item name: hard-drive
stack traceback:
[C]: in function 'get_input_count'
magic-science-chest/src/GlobalState.lua:190: in function 'get_force_prod_count'
magic-science-chest/src/MagicScienceChest.lua:18: in function 'filter_science_packs'
magic-science-chest/src/MagicScienceChest.lua:111: in function 'handler'
core/lualib/event_handler.lua:81: in function <core/lualib/event_handler.lua:79>

22 days ago

In case anyone wants to fix this...
The issue is that the mod remembers the science packs and doesn't clear the list when mods change.
The simple solution is to add a handler for the "modules changed" event (I don't recall what it is called) and set storage.science_packs = {}.
It will rebuild the list on the next cycle.

New response