Fixed unabled to copy humans

This commit is contained in:
Pax1601
2023-12-09 15:51:16 +01:00
parent 0459d5c625
commit b0ee653bff
4 changed files with 26 additions and 30 deletions

View File

@@ -6,7 +6,7 @@ from slpp import slpp as lua
SEARCH_FOLDER = "D:\\Eagle Dynamics\\DCS World OpenBeta"
sys.path.append("D:\\Documents\\dcs")
sys.path.append("..\\..\\..\\dcs-master\\dcs-master")
from dcs.vehicles import *
from dcs.ships import *
@@ -29,7 +29,7 @@ if len(sys.argv) > 1:
units_map = ship_map
# Loads the database
with open(filename) as f:
with open(filename, encoding="utf-8") as f:
database = json.load(f)
for unit in units_map.values():
@@ -41,7 +41,7 @@ if len(sys.argv) > 1:
"label": unit.name,
"shortLabel": unit.name,
"type": unit.__qualname__.split(".")[0],
"enabled": True,
"enabled": False,
"liveries": {}
}
print("Added missing unit " + unit.id)