Game Stats 2.0

by Pirate

The indicator of evolution, the number of killed biters and more. Original mod by Ajick. 2.0 compatible version by filip-t

Utilities
3 months ago
2.0
604

b GameStats20::on_nth_tick(60)

3 months ago

Hello!
When loading the map, this error pops up:

Error while running event GameStats20::on_nth_tick(60)
__GameStats20__/scripts/stats/stats.lua:325: attempt to index field '?' (a nil value)
stack traceback:
    __GameStats20__/scripts/stats/stats.lua:325: in function 'get_stats'
    __GameStats20__/scripts/stats/ui.lua:137: in function 'update'
    __GameStats20__/scripts/stats/controller.lua:58: in function <__GameStats20__/scripts/stats/controller.lua:51>
3 months ago

Hi,
I was not able to reproduce this or find anything that could cause this issue. Can you provide the mod settings you are using and a save file where this happens? You have any other mods installed?

3 months ago
(updated 3 months ago)

I also have an error:
Error while running event GameStats20::on_nth_tick(60)
GameStats20/scripts/stats/stats.lua:325: attempt to index field '?' (a nil value)
stack traceback:
GameStats20/scripts/stats/stats.lua:325: in function 'get_stats'
GameStats20/scripts/stats/ui.lua:137: in function 'update'
GameStats20/scripts/stats/controller.lua:58: in function <GameStats20/scripts/stats/controller.lua:51>

Mostly Bob's mods are installed

3 months ago

Hi,
I was not able to reproduce this or find anything that could cause this issue. Can you provide the mod settings you are using and a save file where this happens? You have any other mods installed?

I have 470 mods installed, apparently one of them interacts with this mod incorrectly.
I can load a save, but is there any point in doing so with so many mods?

3 months ago
(updated 3 months ago)

In general, I turned off all mods except the standard mod - quality, relevated rails and space age, and when loading a save I also get an error.
Here is the save file:

https://drive.google.com/file/d/1Zsk0eMPpu12nlq3c3SXfXQVPtLO4XwNS/view?usp=sharing

3 months ago

Addition: I started a new map and everything is fine, no errors, but the old save won't load.

3 months ago

Ok, I found something that might have caused this. Check the newest version and let me know.

3 months ago

Now there is such an error :)

Error while running event GameStats20::on_nth_tick(60)
__GameStats20__/scripts/stats/ui.lua:24: attempt to index field 'gamestats20_show_background' (a nil value)
stack traceback:
    __GameStats20__/scripts/stats/ui.lua:24: in function 'get_main_flow'
    __GameStats20__/scripts/stats/ui.lua:117: in function 'update'
    __GameStats20__/scripts/stats/controller.lua:58: in function <__GameStats20__/scripts/stats/controller.lua:51>
3 months ago

Thanks for the info. I fixed it. Minor oversight ;)

New response