University Project, January 2021
-
What I did:
Analyze real world log data from a game server I host in regard to time of day, game strategy and duration. Includes fancy hand-made graphs.
-
Background information:
This script can analyze files generated by the game server I run. The accompanying app has around 1700 downloads on the playstore of which 600 still have the app installed. The game is a minimal version of the classic game "Four in a Row" written in Flutter+Dart, with added online functionality, friends list, chat, lobby system and local (two players, one device) play. Download it here: Google Play Store (Android only)
A Web-Version can be found here
It is not bug-free because the mobile version has higher priority.
The server is written in Rust. In case you care, please have a look here and give it a star :)
This "project" contains:
- log analyzer with several modi
- (real world example) log file
- Open console window in fullscreen.
python3 src/main.py
- Follow the interactive prompts to explore the logs.
Add your own logs in the given format or modify them.
The script interactively asks which file you would like to analyze (proposing the first .log file it finds in the script's working directory), lists the available analyzation methods. Then, the selected method is executed, displaying general (how many ...?) stats and a graph with x and y legends.
None.
Much larger amounts of data might surface processing time issues but the current set of 500,000 lines only took a couple of seconds to process.
Please use fullscreen to view properly.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| Welcome to the Four in a Row Log Analyzer by Filippo Orru (ffactory) |
| For more information, please refer to the readme. |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Which file you would like to process? [Leave empty for: fiar-20210105_2131.log]
>
OK! File loaded successfully.
Available analyzation choices:
[1]: Game Start Time
[2]: First Chip Placement
[3]: Game Duration
Please make a choice: 3
| -- Analyzing Game Duration -- |
| |
| How long did the games last? |
| Not showing outliers. (shortest and longest 5%) |
| This will take a while... |
Total games played: 290
_______________________________________________________________________________________________________
10.3%| # |
| # |
| # |
| # |
7.8%| # # |
| # # # # |
| # # # # # # |
| # # # # # # |
5.2%| # # # # # # # # |
| # # # # # # # # # |
| # # # # # # # # # # # |
| # # # # # # # # # # # |
2.6%| # # # # # # # # # # # |
| # # # # # # # # # # # # # # # # # |
| # # # # # # # # # # # # # # # # # # # |
| # # # # # # # # # # # # # # # # # # # # # # # |
-------------------------------------------------------------------------------------------------------
11 21 31 41 51 61 71 81 91 101 111 121 131 141 151 161 171 181 191 201 211 221 231 241 251
Game duration in seconds ->