Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] crash when i scan blue tiberium #202

Open
Fr-Dae opened this issue Feb 22, 2025 · 3 comments
Open

[BUG] crash when i scan blue tiberium #202

Fr-Dae opened this issue Feb 22, 2025 · 3 comments

Comments

@Fr-Dae
Copy link

Fr-Dae commented Feb 22, 2025

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.

@Fr-Dae
Copy link
Author

Fr-Dae commented Feb 22, 2025

@randomflyingtaco
Copy link

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

@Fr-Dae
Copy link
Author

Fr-Dae commented Feb 24, 2025

@narc0tiq ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants