Skip to main content

Получение информации о самолетах

Project description

War Thunder Plane Info

Библиотека предназначена для получения параметров самолетов из файлов датамайна. Это нужно например для сравнения изменений которые вносит разработчик. Как использовать, посмотрим на простом примере:

  1. Скачать репозиторий вот отсюда: https://github.com/gszabi99/War-Thunder-Datamine/tree/master Спасибо gszabi99 огромное за офигенную работу!
  2. Разархивировать в каталог где собираетесь работать. Выглядеть это будет вот так:
Ваш каталог/
└── War-Thunder-Datamine-master
    ├── .github
    ├── aces.vromfs.bin_u
    ├── atlases.vromfs.bin_u
    ├── char.vromfs.bin_u
    ├── game.vromfs.bin_u
    ├── gui.vromfs.bin_u
    ├── images.vromfs.bin_u
    ├── lang.vromfs.bin_u
    ├── mis.vromfs.bin_u
    ├── raw
    ├── regional.vromfs.bin_u
    ├── tex.vromfs.bin_u
    ├── webUi.vromfs.bin_u
    ├── wwdata.vromfs.bin_u
    ├── .gitattributes
    ├── README.md
    └──  version

Все как положено, инициализируем окружение, питон нужен не ниже 3.13.2 Устанавливаем пакет: pip install war-thunder-plane-info Создаем в корне файл: test.py

Ваш каталог/
├── War-Thunder-Datamine-master
│    ├── .github/
│    ├── aces.vromfs.bin_u/
│    ├── atlases.vromfs.bin_u/
│    ├── char.vromfs.bin_u/
│    ├── game.vromfs.bin_u/
│    ├── gui.vromfs.bin_u/
│    ├── images.vromfs.bin_u/
│    ├── lang.vromfs.bin_u/
│    ├── mis.vromfs.bin_u/
│    ├── raw/
│    ├── regional.vromfs.bin_u/
│    ├── tex.vromfs.bin_u/
│    ├── webUi.vromfs.bin_u/
│    ├── wwdata.vromfs.bin_u/
│    ├── .gitattributes
│    ├── README.md
│    └──  version
└── test.py

Добавляем в test.py следующий код:

import war_thunder_plane_info.wt as wt

list_plane = [
    'er-2_m105_tat'
    ]

if __name__ == "__main__":
    for plane_id in list_plane:
        plane_datamine = wt.WTPlaneFullInfo(plane_id)
        print(plane_datamine.get_all())

Запускаем, получаем:

{'PlaneID': 'er-2_m105_tat', 'Name': {'English': 'Yer-2\xa0(M-105)\xa0TAT-BT'}, 'fmFile': 'fm/er-2_m105_mv3.blkx', 'Type': 'bomber', 'FmID': 'er-2_m105_mv3', 'Length': 16.4, 'WingSpan': [[0, 21.686]], 'WingArea': [[0, 73.156]], 'EmptyMass': 7236, 'MaxFuelMass': 3500.0, 'VNE': [[0, 556]], 'MNE': [[0, 0.68]], 'VLO': 300.0, 'Flaps': {'Combat': 20.0, 'Takeoff': 33.0}, 'VFE': [[0.1, 470.0], [1.0, 270.0]], 'CritWingOverload': [[0, -148000.0, 222000.0]], 'NumEngines': 2, 'RPM': {'RPMMin': 450, 'RPMMax': 2700, 'RPMMaxAllowed': 2850}, 'MaxNitro': 0.0, 'NitroConsum': 0.0, 'CritAoA': [[0, 13.5, -10.0, 12.5, -10.0]]}

Пожалуйста :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

war_thunder_plane_info-0.0.8.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

war_thunder_plane_info-0.0.8-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file war_thunder_plane_info-0.0.8.tar.gz.

File metadata

  • Download URL: war_thunder_plane_info-0.0.8.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for war_thunder_plane_info-0.0.8.tar.gz
Algorithm Hash digest
SHA256 cc3089e549538e6e2fc6015ff0f033c706009a73ec8938fb030304c570bc171a
MD5 ac6eccc15f30a33583d7e9ffdf2e5c26
BLAKE2b-256 eb5f1a64dacf6dfc00cc7601992d01ae2b8e81d2c9b65125c0b6ab38ac4775d0

See more details on using hashes here.

File details

Details for the file war_thunder_plane_info-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for war_thunder_plane_info-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd633e432e7a60c73696a5460caf2d4775f5dfa9b49d579b019bdd633568241
MD5 118d8ea45ab83740f06b5be4fd074055
BLAKE2b-256 1b830fa41933cc81b423d894108310dc1c38f509ba272a9f8fa9b4ade1dfa86e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page