[BUG] crash when i scan blue tiberium
7046.490 Info AppManager.cpp:313: Saving to _autosave2 (blocking).
7048.003 Info AppManagerStates.cpp:2095: Saving finished
7454.249 Error MainLoop.cpp:1435: Exception at tick 22790428: Le mod YARM - Resource Monitor (1.0.5) a engendré une erreur non récupérable.
Merci d'informer l'auteur de cette erreur.
Error while running event YARM::on_tick (ID 0)
__YARM__/libs/ore_tracker.lua:159: attempt to index local 'tracking_data' (a nil value)
stack traceback:
__YARM__/libs/ore_tracker.lua:159: in function 'update_tracking_data'
__YARM__/libs/ore_tracker.lua:96: in function 'index_of'
__YARM__/libs/ore_tracker.lua:67: in function 'add_entity'
__YARM__/resmon.lua:289: in function 'add_single_entity'
__YARM__/resmon.lua:275: in function 'add_resource'
__YARM__/resmon.lua:841: in function 'update_players'
__YARM__/resmon.lua:892: in function 'on_tick_internal'
__YARM__/resmon.lua:927: in function <__YARM__/resmon.lua:922>
Savegame https://mega.nz/file/5kcRCSYb#G059OAYNFYCMmdkn-r8yur-I9edloxCKFx99iGAKJeI
- Factorio 2.0.32
- yarm 1.0.5
- Tiberium 2.0.10
I was noticing a bug on zone miners that didn't extract the expected resource. I wanted to measure this with yarm, and when I clicked on the blue tiberium field, the game crashed.
@James-Fire @randomflyingtaco
For context, our control script let's Tiberium spread and infect other patches and then itself can also be infected by Blue Tiberium. https://github.com/James-Fire/Factorio-Tiberium/blob/factorio-2.0/control.lua#L532-L555 The original ore "tiberium-ore" is being destroyed and replaced with a different resource entity "tiberium-ore-blue" that has the same position. It seems like the destroyed resource entity is being purged from your storage.ore_tracker.entities but isn't being purged from ore_tracker_module.position_cache
@narc0tiq ?