Statistics
Moderator: ickputzdirwech
-
- Manual Inserter
- Posts: 3
- Joined: Wed Feb 14, 2018 3:17 pm
- Contact:
Statistics
The game could send production and energy stats back to a server and you can go to a website and view the total production of everyone playing Factorio.
Re: Statistics
1. What about when people are offline?
2. What if people are concerned about privacy?
3. This would be wildly inaccurate.
4. What about the fact that people use several versions?
5. What about people with horrible internet/data caps?
6. Creating another website isn't exactly trivial.
2. What if people are concerned about privacy?
3. This would be wildly inaccurate.
4. What about the fact that people use several versions?
5. What about people with horrible internet/data caps?
6. Creating another website isn't exactly trivial.
There are 10 types of people: those who get this joke and those who don't.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Statistics
7. What would be the point?
Re: Statistics
This is one of those things that would be better done as a mod (if you could make "non-game-changing" mods it would be better). You could also encode the logic into a scenario, or drop it into the control.lua of the save game.
1) Every tick (or appropriate duration) output the current stats of the various things you want to go to your website to a file.
2) Have a helper process read the file (or you could | them together) to update your web server.
3) Profit!
1) Every tick (or appropriate duration) output the current stats of the various things you want to go to your website to a file.
2) Have a helper process read the file (or you could | them together) to update your web server.
3) Profit!