This is a repo containing all the scripts used to parse data from War Thunder and store it in a database.
- Python 3.10+
- Clone this repo
git clone https://github.com/llama-for3ver/WT-Vehicle-Data-Extract.git
- Clone War Thunder Datamine
git clone https://github.com/gszabi99/War-Thunder-Datamine.git
[!warning] This repo is very large, and it will take a while to clone. You can use --depth=1 to download only the latest files, which greatly speeds up cloning and should be sufficient.
- Specify in
.env
(placed inside the utils folder) the path to the datamine repo:DATAMINE_LOCATION="path/to/datamine/repo"
- Also add details for the Postgres database in the
.env
file (placed in root):DB_DATABASE=postgres DB_USER=postgres DB_PASSWORD=postgres DB_HOST=localhost DB_PORT=5432
- Run
main.py
in the root directory of this repo.
The full execution of the script will result in a vehicle
and vehicleold
being created/updated in the Postgres database
JSON files will be created in the nations
folder, images copied to the assets folder and JSON localisation files in locales.
Warning
If there is already data in the database, versioning will be enabled. This means that all the vehicles that have been modified since the last major update will be moved into another table called "vehicles_old" and the new vehicles will be added to the main table.
- Document the code.
- Use Docker.
- Add automatic updating.
- Fork the repo
- Make your changes
- Create a pull request