Neutral coalition support

Added support for DB info in the miz regarding neutral groups. Removed the checks for the coalition name so that if there are ever more coalitions added to the game the mist code won't need to explicitly look for them.

Added local function to verify the DB entries for anything that was spawned before mist is loaded.

Set all popup messages to false.
This commit is contained in:
mrSkortch
2020-09-17 16:56:25 -06:00
parent 14843a5690
commit 5e26588a91
24 changed files with 16897 additions and 11458 deletions

View File

@@ -3,6 +3,40 @@ MEunitsByCat =
["helicopter"] =
{
[1] =
{
["alt"] = 500,
["point"] =
{
["y"] = 405888.85058741,
["x"] = -155967.80633993,
}, -- end of ["point"]
["alt_type"] = "BARO",
["livery_id"] = "Australia RAAF",
["onboard_num"] = "050",
["category"] = "helicopter",
["unitName"] = "Rotary-1-1",
["type"] = "CH-47D",
["country"] = "australia",
["psi"] = -2.6461357622286,
["groupId"] = 45,
["groupName"] = "nH",
["callsign"] =
{
[1] = 2,
[2] = 1,
[3] = 1,
["name"] = "Springfield11",
}, -- end of ["callsign"]
["countryId"] = 21,
["x"] = -155967.80633993,
["skill"] = "High",
["heading"] = 2.6461357622286,
["unitId"] = 68,
["y"] = 405888.85058741,
["coalition"] = "neutral",
["speed"] = 44.444444444444,
}, -- end of [1]
[2] =
{
["alt"] = 500,
["hardpoint_racks"] = true,
@@ -36,8 +70,8 @@ MEunitsByCat =
["countryId"] = 2,
["coalition"] = "blue",
["speed"] = 55.555555555556,
}, -- end of [1]
[2] =
}, -- end of [2]
[3] =
{
["alt"] = 500,
["point"] =
@@ -70,8 +104,8 @@ MEunitsByCat =
["y"] = 631695.14285713,
["coalition"] = "blue",
["speed"] = 55.555555555556,
}, -- end of [2]
[3] =
}, -- end of [3]
[4] =
{
["alt"] = 500,
["point"] =
@@ -98,8 +132,8 @@ MEunitsByCat =
["y"] = 615000,
["coalition"] = "red",
["speed"] = 55.555555555556,
}, -- end of [3]
[4] =
}, -- end of [4]
[5] =
{
["alt"] = 500,
["point"] =
@@ -126,8 +160,8 @@ MEunitsByCat =
["y"] = 615040,
["coalition"] = "red",
["speed"] = 55.555555555556,
}, -- end of [4]
[5] =
}, -- end of [5]
[6] =
{
["alt"] = 500,
["point"] =
@@ -162,8 +196,8 @@ MEunitsByCat =
["y"] = 603285.71428571,
["countryId"] = 0,
["speed"] = 55.555555555556,
}, -- end of [5]
[6] =
}, -- end of [6]
[7] =
{
["alt"] = 500,
["point"] =
@@ -198,11 +232,33 @@ MEunitsByCat =
["y"] = 603325.71428571,
["countryId"] = 0,
["speed"] = 55.555555555556,
}, -- end of [6]
}, -- end of [7]
}, -- end of ["helicopter"]
["ship"] =
{
[1] =
{
["type"] = "PERRY",
["point"] =
{
["y"] = 342754.30716193,
["x"] = -153426.17965693,
}, -- end of ["point"]
["groupId"] = 44,
["groupName"] = "perry",
["livery_id"] = "ReubenJames",
["skill"] = "Average",
["country"] = "australia",
["coalition"] = "neutral",
["x"] = -153426.17965693,
["heading"] = 0,
["category"] = "ship",
["unitName"] = "Naval-1-1",
["unitId"] = 67,
["y"] = 342754.30716193,
["countryId"] = 21,
}, -- end of [1]
[2] =
{
["type"] = "TICONDEROG",
["point"] =
@@ -222,8 +278,8 @@ MEunitsByCat =
["unitId"] = 13,
["y"] = 443853.03529495,
["countryId"] = 2,
}, -- end of [1]
[2] =
}, -- end of [2]
[3] =
{
["type"] = "TICONDEROG",
["point"] =
@@ -243,8 +299,8 @@ MEunitsByCat =
["unitId"] = 14,
["y"] = 444653.03529495,
["countryId"] = 2,
}, -- end of [2]
[3] =
}, -- end of [3]
[4] =
{
["type"] = "MOSCOW",
["point"] =
@@ -264,8 +320,8 @@ MEunitsByCat =
["unitId"] = 15,
["y"] = 200000,
["countryId"] = 0,
}, -- end of [3]
[4] =
}, -- end of [4]
[5] =
{
["type"] = "MOSCOW",
["point"] =
@@ -285,8 +341,8 @@ MEunitsByCat =
["unitId"] = 16,
["y"] = 200800,
["countryId"] = 0,
}, -- end of [4]
[5] =
}, -- end of [5]
[6] =
{
["type"] = "MOSCOW",
["point"] =
@@ -306,8 +362,8 @@ MEunitsByCat =
["unitId"] = 17,
["y"] = 73571.428571428,
["countryId"] = 0,
}, -- end of [5]
[6] =
}, -- end of [6]
[7] =
{
["type"] = "MOSCOW",
["point"] =
@@ -327,11 +383,33 @@ MEunitsByCat =
["unitId"] = 18,
["y"] = 74371.428571428,
["countryId"] = 0,
}, -- end of [6]
}, -- end of [7]
}, -- end of ["ship"]
["static"] =
{
[1] =
{
["shape_name"] = "stolovaya",
["type"] = "Cafe",
["point"] =
{
["y"] = 464123.689023,
["x"] = -115514.59796101,
}, -- end of ["point"]
["categoryStatic"] = "Fortifications",
["country"] = "australia",
["groupName"] = "Static Cafe-1",
["heading"] = 0,
["y"] = 464123.689023,
["x"] = -115514.59796101,
["unitId"] = 69,
["category"] = "static",
["unitName"] = "Static Cafe-1",
["groupId"] = 46,
["countryId"] = 21,
["coalition"] = "neutral",
}, -- end of [1]
[2] =
{
["shape_name"] = "PalatkaB",
["type"] = "FARP Tent",
@@ -352,8 +430,8 @@ MEunitsByCat =
["groupId"] = 15,
["countryId"] = 2,
["coalition"] = "blue",
}, -- end of [1]
[2] =
}, -- end of [2]
[3] =
{
["shape_name"] = "PalatkaB",
["type"] = "FARP Tent",
@@ -374,8 +452,8 @@ MEunitsByCat =
["groupId"] = 16,
["countryId"] = 2,
["coalition"] = "blue",
}, -- end of [2]
[3] =
}, -- end of [3]
[4] =
{
["type"] = "Sandbox",
["point"] =
@@ -395,8 +473,8 @@ MEunitsByCat =
["groupId"] = 30,
["y"] = 684605.71428571,
["countryId"] = 2,
}, -- end of [3]
[4] =
}, -- end of [4]
[5] =
{
["shape_name"] = "ab-212_cargo",
["type"] = "uh1h_cargo",
@@ -418,8 +496,8 @@ MEunitsByCat =
["countryId"] = 2,
["categoryStatic"] = "Cargos",
["coalition"] = "blue",
}, -- end of [4]
[5] =
}, -- end of [5]
[6] =
{
["shape_name"] = "ab-212_cargo",
["type"] = "uh1h_cargo",
@@ -441,8 +519,8 @@ MEunitsByCat =
["countryId"] = 2,
["categoryStatic"] = "Cargos",
["coalition"] = "blue",
}, -- end of [5]
[6] =
}, -- end of [6]
[7] =
{
["heading"] = 0,
["point"] =
@@ -463,8 +541,8 @@ MEunitsByCat =
["unitId"] = 63,
["y"] = 443856.28948724,
["countryId"] = 2,
}, -- end of [6]
[7] =
}, -- end of [7]
[8] =
{
["heading"] = 0,
["point"] =
@@ -485,8 +563,8 @@ MEunitsByCat =
["unitId"] = 64,
["y"] = 443849.03844635,
["countryId"] = 2,
}, -- end of [7]
[8] =
}, -- end of [8]
[9] =
{
["type"] = "FARP",
["point"] =
@@ -506,8 +584,8 @@ MEunitsByCat =
["groupId"] = 17,
["y"] = 617591.42857143,
["countryId"] = 0,
}, -- end of [8]
[9] =
}, -- end of [9]
[10] =
{
["shape_name"] = "PalatkaB",
["type"] = "FARP Tent",
@@ -528,8 +606,8 @@ MEunitsByCat =
["groupId"] = 18,
["countryId"] = 0,
["coalition"] = "red",
}, -- end of [9]
[10] =
}, -- end of [10]
[11] =
{
["shape_name"] = "PalatkaB",
["type"] = "FARP Tent",
@@ -550,8 +628,8 @@ MEunitsByCat =
["groupId"] = 19,
["countryId"] = 0,
["coalition"] = "red",
}, -- end of [10]
[11] =
}, -- end of [11]
[12] =
{
["shape_name"] = "PalatkaB",
["type"] = "FARP Tent",
@@ -572,8 +650,8 @@ MEunitsByCat =
["groupId"] = 36,
["countryId"] = 0,
["coalition"] = "red",
}, -- end of [11]
[12] =
}, -- end of [12]
[13] =
{
["shape_name"] = "teplowoz",
["type"] = "Locomotive",
@@ -593,8 +671,8 @@ MEunitsByCat =
["country"] = "russia",
["y"] = 652535.98623348,
["coalition"] = "red",
}, -- end of [12]
[13] =
}, -- end of [13]
[14] =
{
["shape_name"] = "elektrowoz",
["type"] = "Electric locomotive",
@@ -614,11 +692,48 @@ MEunitsByCat =
["country"] = "russia",
["y"] = 652535.98623348,
["coalition"] = "red",
}, -- end of [13]
}, -- end of [14]
}, -- end of ["static"]
["plane"] =
{
[1] =
{
["alt"] = 2000,
["point"] =
{
["y"] = 319582.08692347,
["x"] = -198551.02959497,
}, -- end of ["point"]
["alt_type"] = "BARO",
["livery_id"] = "Australian 75th Squadron",
["onboard_num"] = "010",
["category"] = "plane",
["unitName"] = "Aerial-1-1",
["AddPropAircraft"] =
{
}, -- end of ["AddPropAircraft"]
["type"] = "FA-18C_hornet",
["country"] = "australia",
["psi"] = -2.1995926132104,
["groupId"] = 42,
["groupName"] = "cloneNeut",
["skill"] = "High",
["coalition"] = "neutral",
["x"] = -198551.02959497,
["callsign"] =
{
[1] = 1,
[2] = 1,
[3] = 1,
["name"] = "Enfield11",
}, -- end of ["callsign"]
["heading"] = 2.1995926132104,
["unitId"] = 65,
["y"] = 319582.08692347,
["countryId"] = 21,
["speed"] = 180.55555555556,
}, -- end of [1]
[2] =
{
["alt"] = 2000,
["point"] =
@@ -651,8 +766,8 @@ MEunitsByCat =
["y"] = 662142.85714286,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [1]
[2] =
}, -- end of [2]
[3] =
{
["alt"] = 2000,
["point"] =
@@ -685,8 +800,8 @@ MEunitsByCat =
["y"] = 668428.57142857,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [2]
[3] =
}, -- end of [3]
[4] =
{
["alt"] = 2000,
["point"] =
@@ -719,8 +834,8 @@ MEunitsByCat =
["y"] = 636428.57142857,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [3]
[4] =
}, -- end of [4]
[5] =
{
["alt"] = 2000,
["point"] =
@@ -753,8 +868,8 @@ MEunitsByCat =
["y"] = 644428.57142857,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [4]
[5] =
}, -- end of [5]
[6] =
{
["alt"] = 2000,
["point"] =
@@ -787,8 +902,8 @@ MEunitsByCat =
["y"] = 682714.28571429,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [5]
[6] =
}, -- end of [6]
[7] =
{
["alt"] = 2000,
["hardpoint_racks"] = true,
@@ -822,8 +937,8 @@ MEunitsByCat =
["countryId"] = 2,
["coalition"] = "blue",
["speed"] = 138.88888888889,
}, -- end of [6]
[7] =
}, -- end of [7]
[8] =
{
["alt"] = 2000,
["point"] =
@@ -850,8 +965,8 @@ MEunitsByCat =
["y"] = 590391.42857142,
["coalition"] = "red",
["speed"] = 138.88888888889,
}, -- end of [7]
[8] =
}, -- end of [8]
[9] =
{
["alt"] = 2000,
["point"] =
@@ -878,8 +993,8 @@ MEunitsByCat =
["y"] = 590431.42857142,
["coalition"] = "red",
["speed"] = 138.88888888889,
}, -- end of [8]
[9] =
}, -- end of [9]
[10] =
{
["alt"] = 2000,
["point"] =
@@ -906,11 +1021,33 @@ MEunitsByCat =
["y"] = 590471.42857142,
["coalition"] = "red",
["speed"] = 138.88888888889,
}, -- end of [9]
}, -- end of [10]
}, -- end of ["plane"]
["vehicle"] =
{
[1] =
{
["type"] = "M-113",
["point"] =
{
["y"] = 445199.91242668,
["x"] = -146108.63642373,
}, -- end of ["point"]
["groupId"] = 43,
["skill"] = "Average",
["country"] = "australia",
["groupName"] = "Ground-1",
["y"] = 445199.91242668,
["coalition"] = "neutral",
["x"] = -146108.63642373,
["unitId"] = 66,
["category"] = "vehicle",
["unitName"] = "Ground-1-1",
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 21,
}, -- end of [1]
[2] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -931,8 +1068,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [1]
[2] =
}, -- end of [2]
[3] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -953,8 +1090,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [2]
[3] =
}, -- end of [3]
[4] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -975,8 +1112,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [3]
[4] =
}, -- end of [4]
[5] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -997,8 +1134,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [4]
[5] =
}, -- end of [5]
[6] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -1019,8 +1156,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 1.4977557614926,
["countryId"] = 2,
}, -- end of [5]
[6] =
}, -- end of [6]
[7] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -1041,8 +1178,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 1.4977557614926,
["countryId"] = 2,
}, -- end of [6]
[7] =
}, -- end of [7]
[8] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -1063,8 +1200,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 1.4977557614926,
["countryId"] = 2,
}, -- end of [7]
[8] =
}, -- end of [8]
[9] =
{
["type"] = "M-1 Abrams",
["point"] =
@@ -1085,8 +1222,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 1.4977557614926,
["countryId"] = 2,
}, -- end of [8]
[9] =
}, -- end of [9]
[10] =
{
["type"] = "M-113",
["point"] =
@@ -1107,8 +1244,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [9]
[10] =
}, -- end of [10]
[11] =
{
["type"] = "M-113",
["point"] =
@@ -1129,8 +1266,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [10]
[11] =
}, -- end of [11]
[12] =
{
["type"] = "Hawk tr",
["point"] =
@@ -1151,8 +1288,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [11]
[12] =
}, -- end of [12]
[13] =
{
["type"] = "Hawk sr",
["point"] =
@@ -1173,8 +1310,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [12]
[13] =
}, -- end of [13]
[14] =
{
["type"] = "Hawk pcp",
["point"] =
@@ -1195,8 +1332,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [13]
[14] =
}, -- end of [14]
[15] =
{
["type"] = "Hawk ln",
["point"] =
@@ -1217,8 +1354,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [14]
[15] =
}, -- end of [15]
[16] =
{
["type"] = "Hawk ln",
["point"] =
@@ -1239,8 +1376,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [15]
[16] =
}, -- end of [16]
[17] =
{
["type"] = "Hawk ln",
["point"] =
@@ -1261,8 +1398,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [16]
[17] =
}, -- end of [17]
[18] =
{
["type"] = "Hawk cwar",
["point"] =
@@ -1283,8 +1420,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 2,
}, -- end of [17]
[18] =
}, -- end of [18]
[19] =
{
["type"] = "BTR-80",
["point"] =
@@ -1305,8 +1442,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [18]
[19] =
}, -- end of [19]
[20] =
{
["type"] = "BTR-80",
["point"] =
@@ -1327,8 +1464,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [19]
[20] =
}, -- end of [20]
[21] =
{
["type"] = "BTR-80",
["point"] =
@@ -1349,8 +1486,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [20]
[21] =
}, -- end of [21]
[22] =
{
["type"] = "BTR-80",
["point"] =
@@ -1371,8 +1508,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [21]
[22] =
}, -- end of [22]
[23] =
{
["type"] = "BTR-80",
["point"] =
@@ -1393,8 +1530,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [22]
[23] =
}, -- end of [23]
[24] =
{
["type"] = "BTR-80",
["point"] =
@@ -1415,8 +1552,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = -1.7994767003775,
["countryId"] = 0,
}, -- end of [23]
[24] =
}, -- end of [24]
[25] =
{
["type"] = "T-55",
["point"] =
@@ -1437,8 +1574,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 0,
}, -- end of [24]
[25] =
}, -- end of [25]
[26] =
{
["type"] = "T-55",
["point"] =
@@ -1459,8 +1596,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 0,
}, -- end of [25]
[26] =
}, -- end of [26]
[27] =
{
["type"] = "T-55",
["point"] =
@@ -1481,8 +1618,8 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 0,
}, -- end of [26]
[27] =
}, -- end of [27]
[28] =
{
["type"] = "T-55",
["point"] =
@@ -1503,6 +1640,6 @@ MEunitsByCat =
["playerCanDrive"] = true,
["heading"] = 0,
["countryId"] = 0,
}, -- end of [27]
}, -- end of [28]
}, -- end of ["vehicle"]
} -- end of MEunitsByCat