pydcs/dcs

Static object liveries are not saved

Bankler opened this issue · 0 comments

After pydcs parses a mission file, some information on Static Objects are lost. Most notably, the liveries on aircraft are not saved.

Instead of the attribute "livery_id", it saves the attribute "canCargo" and sets it to false.

Original:

	[1] = 
	{
		["livery_id"] = "air force ukraine standard",
		["category"] = "Planes",
		["type"] = "Su-27",
		["unitId"] = 1409,
		["rate"] = "50",
		["y"] = 683784.5080273,
		["x"] = -284388.00879465,
		["name"] = "Static Su-27-1",
		["heading"] = 6.0039326268605,
	}, -- end of [1]

After pydcs parsing:

	[1]=
	{
		["canCargo"]=false,
		["category"]="Planes",
		["heading"]=6.0039326268605,
		["name"]="Static Su-27-1",
		["rate"]="50",
		["type"]="Su-27",
		["unitId"]=1409,
		["x"]=-284388.00879465,
		["y"]=683784.5080273
	}