Hi i am trying to edit the staring default info in Scripts\stats\stats.lua
<code>self.default_columns = {
{
self.stats.game_time,
self.stats.evolution_percentage,
self.stats.dead_players_count
},
{
self.stats.killed_biters_count,
self.stats.killed_worms_count,
self.stats.destroyed_nests_count
}
}</code>
but whenever i try rearranging or adding a new stat i get this error
Error AppManagerStates.cpp:2630: GameStats/control.lua:3: GameStats/scripts/stats/stats.lua:233: '}' expected (to close '{' at line 229) near 'self'
stack traceback:
I want to do this for my mod configuration so if you could help mi id appreciate it
I am taking the column names from this (i assume those are the stats that need to be there to show up on start of the game)
<code>function self.get_stats(player)
local kill_counts = calculate_killed_enemy_count(player)
return {
[self.stats.game_time] = calculate_game_time(player),
[self.stats.evolution_percentage] = calculate_evolution_percentage(),
[self.stats.pollution] = calculate_pollution(player),
[self.stats.global_pollution] = calculate_global_pollution(player),
[self.stats.online_players_count] = calculate_online_players_count(),
[self.stats.dead_players_count] = calculate_dead_players_count(player),
[self.stats.killed_biters_count] = kill_counts[self.stats.killed_biters_count],
[self.stats.killed_worms_count] = kill_counts[self.stats.killed_worms_count],
[self.stats.destroyed_nests_count] = kill_counts[self.stats.destroyed_nests_count],
[self.stats.killed_enemy_count] = kill_counts[self.stats.killed_enemy_count]
}
end</code>