Utilities
4 years ago
0.18
7

g Few questions

4 years ago

1) Is the graph software grafana based? i'm trying to configure certain statistics like production/consumption rate p/min rather than per second but it's not exactly going as i hoped it would.

2)
We're running a few maps, is it possible to also have player statistics? like who played the most across the leader board etc?

3) Discord? are you contactable somewhere?

4 years ago

Oh something i actually missed, if you want to run your linux process in the background, is there a special trigger to use? or do i have to wrap it myself in something?

4 years ago
(updated 4 years ago)

1) I't does not use Grafana. Try adding 60* to the beginning of the Value-field:
Example: 60*((datasources["Factorio"]["ProductionStatsCurrent"]["coal"]["Produced"]-datasources["Factorio"]["ProductionStatsPrevious"]["coal"]["Produced"])/datasources["Factorio"]["SecondsBetweenTicks"]).toFixed(2);

2) The statistics can be found here: datasources["Factorio"]["Players"] so you should be able to create a listing on the "Dashboad" using the HTML-widget. It is not currently possible to show on the "Leaderboard".

3) No Discord yet. Here or on the email listed on the website.

4) Sorry, no triggers. But a great idéa, I'll add it to my todo-list.

4 years ago
(updated 4 years ago)

This is an example on how to list player 'names' and 'online_time' using the HTML-widget:

var output = ''; for (var key in datasources["Factorio"]["Players"]) { var obj = datasources["Factorio"]["Players"][key]; output += '<p>'+obj.name+' - '+((obj.online_time*0.01667)/3600).toFixed(0)+' hours online'+'</p>' } return output;

4 years ago
(updated 4 years ago)

The FactorioLeaderboard mod is the newer version of this mod. I made it so that it's 'stats-trasfer'-application can run as a services.