mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Minor update to export scripts and added Kiowa
This commit is contained in:
parent
e77356cb61
commit
274c16851e
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
10
scripts/python/.vscode/launch.json
vendored
10
scripts/python/.vscode/launch.json
vendored
@ -6,7 +6,7 @@
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Add missing units",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "addMissingUnits.py",
|
||||
"console": "integratedTerminal",
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Add liveries",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "addLiveries.py",
|
||||
"console": "integratedTerminal",
|
||||
@ -24,7 +24,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Generate payload tables",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "generatePayloadTables.py",
|
||||
"console": "integratedTerminal",
|
||||
@ -33,7 +33,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Add loadouts",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "addLoadouts.py",
|
||||
"console": "integratedTerminal",
|
||||
@ -42,7 +42,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Add ranges",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "addRanges.py",
|
||||
"console": "integratedTerminal",
|
||||
|
||||
@ -78,11 +78,11 @@ if len(sys.argv) > 1:
|
||||
"countries": [country for country in livery.countries] if livery.countries != None else "All"
|
||||
}
|
||||
except Exception as e:
|
||||
print(f"Could not find data for aircraft of type {unit_name}: {e}, skipping...")
|
||||
print(f"Could not find data for unitof type {unit_name}: {e}, skipping...")
|
||||
|
||||
# Dump everything in the database
|
||||
with open(filename, "w") as f:
|
||||
json.dump(database, f, indent=2)
|
||||
with open(filename, "w", encoding='utf8') as f:
|
||||
json.dump(database, f, indent='\t', ensure_ascii=False)
|
||||
|
||||
# Done!
|
||||
print("Done!")
|
||||
|
||||
@ -192,11 +192,11 @@ if len(sys.argv) > 1:
|
||||
}
|
||||
database[unit_name]["loadouts"].append(new_payload)
|
||||
except Exception as e:
|
||||
print(f"Could not find data for aircraft of type {unit_name}: {e}, skipping...")
|
||||
print(f"Could not find data for unitof type {unit_name}: {e}, skipping...")
|
||||
|
||||
# Dump everything in the database
|
||||
with open(filename, "w") as f:
|
||||
json.dump(database, f, indent=2)
|
||||
with open(filename, "w", encoding='utf8') as f:
|
||||
json.dump(database, f, indent='\t', ensure_ascii=False)
|
||||
|
||||
# Done!
|
||||
print("Done!")
|
||||
|
||||
@ -36,8 +36,8 @@ if len(sys.argv) > 1:
|
||||
"name": unit.id,
|
||||
"coalition": "",
|
||||
"era": "",
|
||||
"label": unit.livery_name,
|
||||
"shortLabel": unit.livery_name,
|
||||
"label": unit.livery_name if hasattr(unit, "livery_name") else unit.name,
|
||||
"shortLabel": unit.livery_name if hasattr(unit, "livery_name") else unit.name,
|
||||
"type": unit.__qualname__.split(".")[0],
|
||||
"enabled": False,
|
||||
"liveries": {}
|
||||
@ -69,7 +69,7 @@ if len(sys.argv) > 1:
|
||||
print("Changed case of unit " + id)
|
||||
|
||||
# Dump everything in the database
|
||||
with open(filename, "w") as f:
|
||||
json.dump(database, f, indent=2)
|
||||
with open(filename, "w", encoding='utf-8') as f:
|
||||
json.dump(database, f, indent='\t', ensure_ascii=False)
|
||||
|
||||
print("Done!")
|
||||
@ -51,11 +51,11 @@ if len(sys.argv) > 1:
|
||||
database[unit_name]["engagementRange"] = unitmap[found_name].threat_range
|
||||
|
||||
except Exception as e:
|
||||
print(f"Could not find data for aircraft of type {unit_name}: {e}, skipping...")
|
||||
print(f"Could not find data for unitof type {unit_name}: {e}, skipping...")
|
||||
|
||||
# Dump everything in the database
|
||||
with open(filename, "w") as f:
|
||||
json.dump(database, f, indent=2)
|
||||
with open(filename, "w", encoding='utf8') as f:
|
||||
json.dump(database, f, indent='\t', ensure_ascii=False)
|
||||
|
||||
# Done!
|
||||
print("Done!")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
15073
scripts/unitPayloads.lua
Normal file
15073
scripts/unitPayloads.lua
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user