Tycoon

by gerpara

Become the transportation tycoon of Nauvis! Collect food from farms, craft delicious food and useful utilities, grow your cities, and cater to the needs of an ever-growing population.

Content
3 months ago
1.1 - 2.0
4.75K
Transportation Manufacturing

b Crasg after removing other mods (storage.tycoon_all_resource_names_cached isn't cleared/cleaned up)

4 months ago

I removed another erroring and WIP mod from my save for a while, now I get the following error when deconstructing empty mining drills:

Error while running event tycoon::on_chunk_charted (ID 115)
Unknown entity name: deep-lunaris_coal
stack traceback:
    [C]: in function 'count_entities_filtered'
    __tycoon__/primary-industries.lua:150: in function 'place_primary_industry_at_position'
    __tycoon__/chunk-charted-handler.lua:91: in function 'on_chunk_charted'
    __tycoon__/control.lua:115: in function <__tycoon__/control.lua:114>

Looking at your code I believe it will be due to the resource name cache linked below not clearing or resetting itself during on_configuration_changed(). https://github.com/bahrmichael/factorio-tycoon/blob/3606f97ecf0477bb2fb1f7c13533532e6dfdbccf/primary-industries.lua#L5

3 months ago

Thank you for the report! I just published 2.0.13 which has a fix for this problem. Would you mind updating the Tycoon mod and trying again?

New response