Skip to main content

Access regiments of IL-2 Forgotten Battles flight simulator.

Project description

Version of PyPI package Number of downloads of PyPI package Supported versions of Python Package license

unix_build Build status of the master branch on Windows Test coverage

This is a Python library for accessing regiments of IL-2 Forgotten Battles flight simulator.

Information about regiments was extracted directry from SFS archive named files.sfs.

Data in il2fb/regiments/data directory contains the following files:

Filename

Original path

regShort_en.properties

files.sfs/i18n/regShort.properties

regShort_ru.properties

files.sfs/i18n/regShort_ru.properties

regInfo_en.properties

files.sfs/i18n/regInfo.properties

regInfo_ru.properties

files.sfs/i18n/regInfo_ru.properties

regiments.ini

files.sfs/PaintSchemes/regiments.ini

NOTE:

regShort.properties was renamed to regShort_en.properties. regInfo.properties was renamed to regInfo_en.properties. These names must be retained for localization sanity!

Do not edit or resave the contents of files in this directory manually! Instead, extract files from SFS archive and replace current ones with them.

Usage

from il2fb.regiments import Regiments

regiment = Regiments.get_by_code_name("USN_VT_9B")

print(regiment.code_name)
# USN_VT_9B

print(regiment.air_force.verbose_name)
# USN

print(regiment.verbose_name)
# VT-9 USS Essex CV-9

print(regiment.help_text)
# US Navy Torpedo Squadron 9 USS Essex CV-9

Human-readable messages are sensitive to current language:

from verboselib import use_language
from il2fb.regiments import Regiments

regiment = Regiments.get_by_code_name("890DBAP")

print(regiment.verbose_name)
# 890th "Bryansk" AP DD

print(regiment.help_text)
# 890th "Bryansk" AP DD

use_language('ru')

print(regiment.verbose_name)
# 890-й Брянский АП ДД

print(regiment.help_text)
# 890-й Брянский Авиационный Полк Дальнего Действия

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

il2fb-regiments-1.0.0.tar.gz (100.6 kB view details)

Uploaded Source

File details

Details for the file il2fb-regiments-1.0.0.tar.gz.

File metadata

File hashes

Hashes for il2fb-regiments-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cd3ac134a0ae90cada6605cd593141a8f254ec2a28d9db666dd6f105023e073d
MD5 fcb6a066ccc90e59bb9b893bda7ed120
BLAKE2b-256 2f95abf15279a784c77e58dbdf05d905004202e90ecd775ed83edc35748a001d

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