mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Merge remote-tracking branch 'khopa/develop_2_3_x' into develop_2_3_x
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -52,14 +52,14 @@
|
||||
"name": "",
|
||||
"callsign": "IBND",
|
||||
"beacon_type": 14,
|
||||
"hertz": 333800000,
|
||||
"hertz": 109900000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "IBND",
|
||||
"beacon_type": 15,
|
||||
"hertz": 333800000,
|
||||
"hertz": 109900000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
@@ -77,12 +77,19 @@
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
"name": "BandarEJask",
|
||||
"name": "JASK",
|
||||
"callsign": "JSK",
|
||||
"beacon_type": 9,
|
||||
"hertz": 349000000,
|
||||
"hertz": 349000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "JSK",
|
||||
"beacon_type": 5,
|
||||
"hertz": null,
|
||||
"channel": 110
|
||||
},
|
||||
{
|
||||
"name": "BandarLengeh",
|
||||
"callsign": "LEN",
|
||||
@@ -101,8 +108,8 @@
|
||||
"name": "",
|
||||
"callsign": "MMA",
|
||||
"beacon_type": 15,
|
||||
"hertz": 111100000,
|
||||
"channel": 48
|
||||
"hertz": 109100000,
|
||||
"channel": 28
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
@@ -115,28 +122,28 @@
|
||||
"name": "",
|
||||
"callsign": "IMA",
|
||||
"beacon_type": 15,
|
||||
"hertz": 109100000,
|
||||
"channel": 28
|
||||
"hertz": 111100000,
|
||||
"channel": 48
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "RMA",
|
||||
"beacon_type": 15,
|
||||
"hertz": 114900000,
|
||||
"hertz": 108700000,
|
||||
"channel": 24
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "MMA",
|
||||
"beacon_type": 14,
|
||||
"hertz": 111100000,
|
||||
"channel": 48
|
||||
"hertz": 109100000,
|
||||
"channel": 28
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "RMA",
|
||||
"beacon_type": 14,
|
||||
"hertz": 114900000,
|
||||
"hertz": 108700000,
|
||||
"channel": 24
|
||||
},
|
||||
{
|
||||
@@ -150,8 +157,8 @@
|
||||
"name": "",
|
||||
"callsign": "IMA",
|
||||
"beacon_type": 14,
|
||||
"hertz": 109100000,
|
||||
"channel": 28
|
||||
"hertz": 111100000,
|
||||
"channel": 48
|
||||
},
|
||||
{
|
||||
"name": "AlDhafra",
|
||||
@@ -332,7 +339,7 @@
|
||||
"name": "KishIsland",
|
||||
"callsign": "KIH",
|
||||
"beacon_type": 9,
|
||||
"hertz": 201000000,
|
||||
"hertz": 201000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
@@ -367,14 +374,14 @@
|
||||
"name": "LavanIsland",
|
||||
"callsign": "LVA",
|
||||
"beacon_type": 9,
|
||||
"hertz": 310000000,
|
||||
"hertz": 310000,
|
||||
"channel": 0
|
||||
},
|
||||
{
|
||||
"name": "LiwaAirbase",
|
||||
"callsign": "\u00c4\u00bc",
|
||||
"beacon_type": 7,
|
||||
"hertz": null,
|
||||
"callsign": "OMLW",
|
||||
"beacon_type": 6,
|
||||
"hertz": 117400000,
|
||||
"channel": 121
|
||||
},
|
||||
{
|
||||
@@ -433,13 +440,6 @@
|
||||
"hertz": 113600000,
|
||||
"channel": 83
|
||||
},
|
||||
{
|
||||
"name": "SasAlNakheelAirport",
|
||||
"callsign": "SAS",
|
||||
"beacon_type": 10,
|
||||
"hertz": 128925,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
"name": "SasAlNakheel",
|
||||
"callsign": "SAS",
|
||||
@@ -500,14 +500,14 @@
|
||||
"name": "",
|
||||
"callsign": "ISYZ",
|
||||
"beacon_type": 15,
|
||||
"hertz": 109900000,
|
||||
"hertz": 108500000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"callsign": "ISYZ",
|
||||
"beacon_type": 14,
|
||||
"hertz": 109900000,
|
||||
"hertz": 108500000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
@@ -556,7 +556,7 @@
|
||||
"name": "DezfulAirport",
|
||||
"callsign": "DZF",
|
||||
"beacon_type": 9,
|
||||
"hertz": 293000000,
|
||||
"hertz": 293000,
|
||||
"channel": null
|
||||
},
|
||||
{
|
||||
|
||||
85
resources/factions/iraq_1991.json
Normal file
85
resources/factions/iraq_1991.json
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"country": "Iraq",
|
||||
"name": "Iraq 1991",
|
||||
"authors": "Hawkmoon",
|
||||
"description": "<p>Iraq forces during desert Storm</p>",
|
||||
"aircrafts": [
|
||||
"MiG_19P",
|
||||
"MiG_21Bis",
|
||||
"MiG_23MLD",
|
||||
"MiG_25PD",
|
||||
"Su_17M4",
|
||||
"Mi_8MT",
|
||||
"Su-25",
|
||||
"Su-24M",
|
||||
"MiG_25PD",
|
||||
"Tu_22M3",
|
||||
"L_39C",
|
||||
"L_39ZA",
|
||||
"Mi_24V"
|
||||
],
|
||||
"awacs": [
|
||||
"A_50"
|
||||
],
|
||||
"tankers": [
|
||||
"IL_78M"
|
||||
],
|
||||
"frontline_units": [
|
||||
"IFV_BMP_1",
|
||||
"APC_MTLB",
|
||||
"MBT_T_55",
|
||||
"MBT_T_72B",
|
||||
"APC_BTR_80",
|
||||
"ARV_BRDM_2",
|
||||
"SPH_2S1_Gvozdika"
|
||||
],
|
||||
"artillery_units": [
|
||||
"MLRS_BM_21_Grad"
|
||||
],
|
||||
"logistics_units": [
|
||||
"Transport_Ural_375",
|
||||
"Transport_UAZ_469"
|
||||
],
|
||||
"infantry_units": [
|
||||
"Paratrooper_AKS",
|
||||
"Infantry_Soldier_Rus",
|
||||
"Paratrooper_RPG_16",
|
||||
"SAM_SA_18_Igla_MANPADS"
|
||||
],
|
||||
"air_defenses": [
|
||||
"ColdWarFlakGenerator",
|
||||
"EarlyColdWarFlakGenerator",
|
||||
"SA2Generator",
|
||||
"SA3Generator",
|
||||
"SA6Generator",
|
||||
"SA8Generator",
|
||||
"SA9Generator",
|
||||
"SA13Generator",
|
||||
"ZSU23Generator",
|
||||
"ZU23Generator",
|
||||
"ZU23UralGenerator"
|
||||
],
|
||||
"ewrs": [
|
||||
"BoxSpringGenerator"
|
||||
],
|
||||
"missiles": [
|
||||
"ScudGenerator"
|
||||
],
|
||||
"missiles_group_count": 1,
|
||||
"aircraft_carrier": [
|
||||
],
|
||||
"helicopter_carrier": [
|
||||
],
|
||||
"helicopter_carrier_names": [
|
||||
],
|
||||
"destroyers": [
|
||||
],
|
||||
"cruisers": [
|
||||
],
|
||||
"requirements": {},
|
||||
"carrier_names": [
|
||||
],
|
||||
"navy_generators": [
|
||||
"GrishaGroupGenerator"
|
||||
]
|
||||
}
|
||||
@@ -24,6 +24,7 @@ import argparse
|
||||
from contextlib import contextmanager
|
||||
import dataclasses
|
||||
import gettext
|
||||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
import textwrap
|
||||
@@ -60,6 +61,7 @@ def convert_lua_frequency(raw: Union[float, int]) -> int:
|
||||
|
||||
|
||||
def beacons_from_terrain(dcs_path: Path, path: Path) -> Iterable[Beacon]:
|
||||
logging.info(f"Loading terrain data from {path}")
|
||||
# TODO: Fix case-sensitive issues.
|
||||
# The beacons.lua file differs by case in some terrains. Will need to be
|
||||
# fixed if the tool is to be run on Linux, but presumably the server
|
||||
@@ -84,13 +86,20 @@ def beacons_from_terrain(dcs_path: Path, path: Path) -> Iterable[Beacon]:
|
||||
end
|
||||
|
||||
"""))
|
||||
translator = gettext.translation(
|
||||
"messages", path / "l10n", languages=["en"])
|
||||
|
||||
def translate(message_name: str) -> str:
|
||||
if not message_name:
|
||||
try:
|
||||
translator = gettext.translation(
|
||||
"messages", path / "l10n", languages=["en"])
|
||||
|
||||
def translate(message_name: str) -> str:
|
||||
if not message_name:
|
||||
return message_name
|
||||
return translator.gettext(message_name)
|
||||
except FileNotFoundError:
|
||||
# TheChannel has no locale data for English.
|
||||
def translate(message_name: str) -> str:
|
||||
return message_name
|
||||
return translator.gettext(message_name)
|
||||
|
||||
bind_gettext(translate)
|
||||
|
||||
src = beacons_lua.read_text()
|
||||
@@ -148,7 +157,6 @@ class Importer:
|
||||
], indent=True))
|
||||
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
"""Parses and returns command line arguments."""
|
||||
parser = argparse.ArgumentParser()
|
||||
@@ -175,6 +183,7 @@ def parse_args() -> argparse.Namespace:
|
||||
|
||||
def main() -> None:
|
||||
"""Program entry point."""
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
args = parse_args()
|
||||
Importer(args.dcs_path, args.export_to).run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user