Sosciencity [WIP]


Factorio: Skylines. Adds citizens to the game. Attract various castes to your city in order to progress the game.

Overhaul
8 months ago
1.1
2.83K
Manufacturing

b Crash

3 months ago

Hello.
First, awesome mod overall.

My problem is, my game is randomly crashing.

Here's the message I get:

Error while running event sosciencity::on_nth_tick(10)
sosciencity/classes/inventories.lua:575: bad argument #2 of 2 to 'find_item_stack' (string expected, got nil)
stack traceback:
[C]: in function 'find_item_stack'
sosciencity/classes/inventories.lua:575: in function 'consume_specific_food'
sosciencity/classes/inventories.lua:617: in function 'consume_food'
sosciencity/classes/inventories.lua:750: in function 'evaluate_diet'
sosciencity/classes/inhabitants.lua:1890: in function 'updater'
sosciencity/classes/register.lua:192: in function 'on_update'
sosciencity/classes/register.lua:431: in function 'update_entities'
sosciencity/control.lua:182: in function <sosciencity/control.lua:175>

2 months ago

Heya. Thanks for reporting. Although I wasn't able to reproduce the crash I think I found the problem that led to this. So this will likely be fixed with the next update.

New response