Welcome to WarThunder’s documentation!

telemetry.py

Module to query and access telemetry data during War Thunder matches.

mapinfo.py

Module to query and access map and non-player object/vehicle data during War Thunder matches.

acmi.py

Module to make Tacview compatible ACMI files - see https://www.tacview.net/documentation/acmi/en/.

Module to make Tacview compatible ACMI files - see https://www.tacview.net/documentation/acmi/en/

class acmi.ACMI(num_objs=1)

Class used to create and maintain a given ACMI file used by the downloadable program Tacview

Initialize class object and create a member dict named “obj_ids” to hold unique/valid HEX ID values for each object to be displayed

Parameters:

num_objs (int) – Number of objects to simulaneously display in Tacview

add_object()

Append a new and unique hex object ID to the self.obj_ids dict

Return type:

int

Returns:

Hex ID for new object

create(file_name, file_type='text/acmi/tacview', acmi_ver='2.1')

Create an ACMI file with a basic header

Parameters:
  • file_name (str) – Full filepath or filename of ACMI file to create

  • file_type (str) – See default

  • acmi_ver (str) – See default

format_entry(obj_num, data, timestamp=True)

Create a single entry of telemetry for a given object

Parameters:
  • obj_num (int) – Object number as represented in the ID-lookup dictionary self.obj_ids

  • data (dict) – Object information to be included in the new entry

Returns:

Formatted entry string

format_user_header(header_content)

Create an ACMI file header with user defined fields/values (does not include mandatory header fields)

Parameters:

header_content (dict) – Header property names and values

Return type:

str

Returns:

Formatted header string

get_timestamp()

Find the true time to provide accurate sample timestamps

Return type:

datetime

Returns:

Current UTC time

insert_entry(obj_num, data, timestamp=True)

Log a single entry of telemetry in the ACMI file for a given object

Parameters:
  • obj_num (int) – Object number as represented in the ID-lookup dictionary self.obj_ids

  • data (dict) – Object information to be included in the new entry

Returns:

Whether or not the operation was successful

Return type:

Success

insert_user_header(header_content)

Insert special header parameters (NOTE - DO THIS BEFORE INSERTING ANY ENTRIES)**************************

Parameters:

header_content (dict) – Header property names and values

Returns:

Whether or not the operation was successful

Return type:

Success

Indices and tables