Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

pashok3d/WotHub

Repository files navigation

WotHub

About

WotHub is a data mining project for World of Tanks in which we parse data packets from game replays, preprocess data and make players position predictions based on statistical approach.

How to use

Only Windows OS is supported.

If you want to check out web version, jump to "Deployment" section.

Preparing

  • Make sure to have Python 3+ along with all necessary libraries from requirements.txt.
  • For a parsing part we use wotreplay-parser created by Jan Temmerman. Download parser binaries and extract in the repo directory.
  • Download replays and place them in /replays folder. The more, the better.

Parsing

  • run parser.py

Parser reads replay files from /replays folder. Parsed data will appear in /raw_data folder in .json format for each replay.

Preprocessing

  • run preprocessor.py

It reads json files from /raw_data folder. Preprocessed data will appear in /pro_data folder in .csv format, accumulated for each map.

Visualization

Visualization consists in creating position density plot where high values represent most frequent players positions.

Note: Heroku does not store csv files, so we load data from AWS S3 Server, instead of /pro_data folder. So, if you run visualization on localhost, you can use /pro_data folder.

We use streamlit for convenient manipulation.

  • streamlit run .\web_visual.py runs visualization on localhost

Example:

Deployment

We use heroku for further project deployment. Here is a link to web app - WotHub (depricated).

TODO

  • Update maps.
  • Change density function parameters for smoother plot.
  • Add Unix support.
  • Archive repo.

Releases

No releases published

Packages

No packages published