narc0tiq / YARM

Yet another variant of the Resource Monitor for Factorio
https://mods.factorio.com/mod/YARM
MIT License
54 stars 42 forks source link

Exception in update_chart_tag #108

Closed narc0tiq closed 5 years ago

narc0tiq commented 5 years ago

Reported on the mod portal at https://mods.factorio.com/mod/YARM/discussion/5cbc4cf55862c4000b547352:

The mod YARM - Resource Monitor caused a non-recoverable error.
Please report this error to the mod author.

Error while running event YARM::on_tick (ID 0)
__YARM__/resmon.lua:473: attempt to index local 'entity_prototype' (a nil value)
stack traceback:
    __YARM__/resmon.lua:473: in function 'update_chart_tag'
    __YARM__/resmon.lua:607: in function 'finish_deposit_count'
    __YARM__/resmon.lua:555: in function 'tick_deposit_count'
    __YARM__/resmon.lua:536: in function 'count_deposits'
    __YARM__/resmon.lua:1216: in function 'update_forces'
    __YARM__/resmon.lua:1238: in function 'on_tick_internal'
    __YARM__/resmon.lua:1271: in function <__YARM__/resmon.lua:1266>
narc0tiq commented 5 years ago

I think I see what happened: an ore type disappeared or was renamed (possibly just an internal name change with no obvious signs). In this case, we should really think about discarding the site or something...