From 45fd759aaee3ae95a4ef8ec01c9386aa1d54833a Mon Sep 17 00:00:00 2001 From: mrSkortch Date: Fri, 11 Feb 2022 01:58:17 -0700 Subject: [PATCH] Build 106 - Added mist.DBs.drawingsByName and mist.DBs.drawingIndexed. They are a table of points -Added new callsigns to mist.DBs.const.callsigns -Added mist.marker.drawShape. mist.shape.getPointOnSegment -Added mist.shape.segmentInsersect -Added mist.mapValue -Added mist.utils.hexToRGB -Added mist.getWindBearingAndVel -Updated mist.messages to only display a message if the messages has been updated. This should prevent spamming the message log. Fixed: Bug with mist.marker.add() associated with text boxes Fixed: Zone radius value of verticies present Updated: DB Sample Files --- Example DBs/mist_DBs_MEgroupsById.lua | 60 +- Example DBs/mist_DBs_MEgroupsByName.lua | 60 +- Example DBs/mist_DBs_MEunits.lua | 68 +- Example DBs/mist_DBs_MEunitsByCat.lua | 60 +- Example DBs/mist_DBs_MEunitsById.lua | 60 +- Example DBs/mist_DBs_MEunitsByName.lua | 60 +- Example DBs/mist_DBs_MEunitsByNum.lua | 60 +- Example DBs/mist_DBs_aliveUnits.lua | 1701 ++++++++++---------- Example DBs/mist_DBs_const.lua | 204 ++- Example DBs/mist_DBs_deadObjects.lua | 220 +-- Example DBs/mist_DBs_drawingByName.lua | 232 +++ Example DBs/mist_DBs_drawingIndexed.lua | 266 +++ Example DBs/mist_DBs_dynGroupsAdded.lua | 426 ++--- Example DBs/mist_DBs_groupsById.lua | 440 ++--- Example DBs/mist_DBs_groupsByName.lua | 494 +++--- Example DBs/mist_DBs_markList.lua | 8 +- Example DBs/mist_DBs_missionData.lua | 2 +- Example DBs/mist_DBs_removedAliveUnits.lua | 112 +- Example DBs/mist_DBs_units.lua | 486 +++--- Example DBs/mist_DBs_unitsByCat.lua | 494 +++--- Example DBs/mist_DBs_unitsById.lua | 494 +++--- Example DBs/mist_DBs_unitsByName.lua | 494 +++--- Example DBs/mist_DBs_unitsByNum.lua | 494 +++--- Example DBs/mist_DBs_zonesByName.lua | 207 ++- Example DBs/mist_DBs_zonesByNum.lua | 159 +- mist.lua | 654 ++++++-- mist_4_5_104.lua => mist_4_5_106.lua | 654 ++++++-- 27 files changed, 5010 insertions(+), 3659 deletions(-) create mode 100644 Example DBs/mist_DBs_drawingByName.lua create mode 100644 Example DBs/mist_DBs_drawingIndexed.lua rename mist_4_5_104.lua => mist_4_5_106.lua (93%) diff --git a/Example DBs/mist_DBs_MEgroupsById.lua b/Example DBs/mist_DBs_MEgroupsById.lua index 0dddf0b..575c69f 100644 --- a/Example DBs/mist_DBs_MEgroupsById.lua +++ b/Example DBs/mist_DBs_MEgroupsById.lua @@ -1414,25 +1414,25 @@ MEgroupsById = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [1] }, -- end of ["units"] }, -- end of [31] @@ -1449,25 +1449,25 @@ MEgroupsById = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [1] }, -- end of ["units"] }, -- end of [32] @@ -1832,25 +1832,25 @@ MEgroupsById = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of [1] }, -- end of ["units"] }, -- end of [41] @@ -2113,25 +2113,25 @@ MEgroupsById = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of [1] }, -- end of ["units"] }, -- end of [40] diff --git a/Example DBs/mist_DBs_MEgroupsByName.lua b/Example DBs/mist_DBs_MEgroupsByName.lua index d015693..fc9196d 100644 --- a/Example DBs/mist_DBs_MEgroupsByName.lua +++ b/Example DBs/mist_DBs_MEgroupsByName.lua @@ -488,25 +488,25 @@ MEgroupsByName = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [1] }, -- end of ["units"] }, -- end of ["cloneCargoBase"] @@ -1052,25 +1052,25 @@ MEgroupsByName = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of [1] }, -- end of ["units"] }, -- end of ["static_on_ship1 #001"] @@ -1086,25 +1086,25 @@ MEgroupsByName = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of [1] }, -- end of ["units"] }, -- end of ["static_on_ship1"] @@ -1121,25 +1121,25 @@ MEgroupsByName = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [1] }, -- end of ["units"] }, -- end of ["cargoBob"] diff --git a/Example DBs/mist_DBs_MEunits.lua b/Example DBs/mist_DBs_MEunits.lua index a3094e1..695c718 100644 --- a/Example DBs/mist_DBs_MEunits.lua +++ b/Example DBs/mist_DBs_MEunits.lua @@ -1311,25 +1311,25 @@ MEunits = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [1] }, -- end of ["units"] }, -- end of [4] @@ -1346,25 +1346,25 @@ MEunits = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [1] }, -- end of ["units"] }, -- end of [5] @@ -1380,25 +1380,25 @@ MEunits = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [1] }, -- end of ["units"] }, -- end of [6] @@ -1414,25 +1414,25 @@ MEunits = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [1] }, -- end of ["units"] }, -- end of [7] diff --git a/Example DBs/mist_DBs_MEunitsByCat.lua b/Example DBs/mist_DBs_MEunitsByCat.lua index 0c01469..598e45f 100644 --- a/Example DBs/mist_DBs_MEunitsByCat.lua +++ b/Example DBs/mist_DBs_MEunitsByCat.lua @@ -477,92 +477,92 @@ MEunitsByCat = [5] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [5] [6] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [6] [7] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of [7] [8] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of [8] [9] = { diff --git a/Example DBs/mist_DBs_MEunitsById.lua b/Example DBs/mist_DBs_MEunitsById.lua index a74e7fb..50a85d5 100644 --- a/Example DBs/mist_DBs_MEunitsById.lua +++ b/Example DBs/mist_DBs_MEunitsById.lua @@ -1022,48 +1022,48 @@ MEunitsById = [45] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [45] [46] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [46] [47] = { @@ -1454,47 +1454,47 @@ MEunitsById = }, -- end of [62] [63] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of [63] [64] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of [64] [65] = { diff --git a/Example DBs/mist_DBs_MEunitsByName.lua b/Example DBs/mist_DBs_MEunitsByName.lua index a488525..e4013f5 100644 --- a/Example DBs/mist_DBs_MEunitsByName.lua +++ b/Example DBs/mist_DBs_MEunitsByName.lua @@ -365,25 +365,25 @@ MEunitsByName = ["cloneCargoBase"] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of ["cloneCargoBase"] ["USTanks2_1"] = { @@ -512,25 +512,25 @@ MEunitsByName = }, -- end of ["Unit #006"] ["static_on_ship1"] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of ["static_on_ship1"] ["tent"] = { @@ -1226,25 +1226,25 @@ MEunitsByName = }, -- end of ["Ground-1-1"] ["static_on_ship1 #001"] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of ["static_on_ship1 #001"] ["RuTent1"] = { @@ -1643,25 +1643,25 @@ MEunitsByName = ["cargoBob"] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of ["cargoBob"] ["USTanks2_4"] = { diff --git a/Example DBs/mist_DBs_MEunitsByNum.lua b/Example DBs/mist_DBs_MEunitsByNum.lua index e1bcc74..43f92ad 100644 --- a/Example DBs/mist_DBs_MEunitsByNum.lua +++ b/Example DBs/mist_DBs_MEunitsByNum.lua @@ -247,92 +247,92 @@ MEunitsByNum = [11] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] + ["unitId"] = 45, ["groupId"] = 31, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cargoBob", ["x"] = -292007.14285714, - ["y"] = 675199.99999999, + ["coalition"] = "blue", ["mass"] = 371, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", + ["y"] = 675199.99999999, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [11] [12] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] + ["unitId"] = 46, ["groupId"] = 32, - ["country"] = "usa", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["groupName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["y"] = 674842.85714285, + ["coalition"] = "blue", ["mass"] = 1337, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", + ["y"] = 674842.85714285, + ["country"] = "usa", ["countryId"] = 2, - ["categoryStatic"] = "Cargos", - ["coalition"] = "blue", }, -- end of [12] [13] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 40, + ["country"] = "usa", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["coalition"] = "blue", ["y"] = 443856.28948724, - ["countryId"] = 2, }, -- end of [13] [14] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["groupId"] = 41, + ["country"] = "usa", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["country"] = "usa", - ["coalition"] = "blue", + ["heading"] = 0, + ["countryId"] = 2, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["coalition"] = "blue", ["y"] = 443849.03844635, - ["countryId"] = 2, }, -- end of [14] [15] = { diff --git a/Example DBs/mist_DBs_aliveUnits.lua b/Example DBs/mist_DBs_aliveUnits.lua index 5f4628a..b846438 100644 --- a/Example DBs/mist_DBs_aliveUnits.lua +++ b/Example DBs/mist_DBs_aliveUnits.lua @@ -175,11 +175,11 @@ aliveUnits = }, -- end of [16788224] [16792320] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -193,18 +193,18 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694877, + ["x"] = -285009, ["coalition"] = "blue", - ["type"] = "Hawk cwar", + ["type"] = "Hawk ln", ["groupId"] = 35, - ["unitId"] = 58, - ["unitName"] = "Unit #008", + ["unitId"] = 57, + ["unitName"] = "Unit #007", ["pos"] = { - ["y"] = 60.085838317871, - ["x"] = -285216.25, - ["z"] = 689799.4375, + ["y"] = 74.050750732422, + ["x"] = -285008.96875, + ["z"] = 694877.4375, }, -- end of ["pos"] }, -- end of [16792320] [16794368] = @@ -213,7 +213,7 @@ aliveUnits = ["point"] = { ["y"] = 686871, - ["x"] = -286447, + ["x"] = -286407, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -226,28 +226,62 @@ aliveUnits = ["type"] = "M-113", ["groupId"] = 7004, ["groupName"] = "USA gnd 2", - ["unitName"] = "USA gnd 2 unit2", + ["unitName"] = "USA gnd 2 unit1", ["countryId"] = 2, - ["x"] = -286447, + ["x"] = -286407, ["country"] = "usa", ["heading"] = 0, - ["unitId"] = 7008, + ["unitId"] = 7007, ["y"] = 686871, ["coalition"] = "blue", ["pos"] = { - ["y"] = 47.876796607959, - ["x"] = -286447.15625, + ["y"] = 47.951913858982, + ["x"] = -286407.15625, ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16794368] - [16798464] = + [16796416] = { - ["alt"] = 68, + ["alt"] = 62, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 690314, + ["x"] = -284956, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16796416, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 1.497755755511, + ["country"] = "usa", + ["groupName"] = "USA gnd 3", + ["countryId"] = 2, + ["y"] = 690314, + ["x"] = -284956, + ["coalition"] = "blue", + ["type"] = "M-1 Abrams", + ["groupId"] = 7008, + ["unitId"] = 7015, + ["unitName"] = "USA gnd 3 unit4", + ["pos"] = + { + ["y"] = 62.104196563333, + ["x"] = -284955.8128938, + ["z"] = 690313.50394304, + }, -- end of ["pos"] + }, -- end of [16796416] + [16798464] = + { + ["alt"] = 73, + ["point"] = + { + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -257,101 +291,67 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557591357, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691751, + ["x"] = -283221, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7015, - ["unitId"] = 7024, - ["unitName"] = "USA gnd 5 unit2", + ["unitId"] = 7023, + ["unitName"] = "USA gnd 5 unit1", ["pos"] = { - ["y"] = 68.242343870855, - ["x"] = -287590.1449949, - ["z"] = 695089.53310439, + ["y"] = 73.060448716327, + ["x"] = -283223.65801962, + ["z"] = 691751.91357136, }, -- end of ["pos"] }, -- end of [16798464] [16800512] = { - ["alt"] = 1998, + ["alt"] = 1997, ["point"] = { - ["y"] = 319595, - ["x"] = -198560, + ["y"] = 682727, + ["x"] = -288608, }, -- end of ["point"] ["alt_type"] = "BARO", - ["coalitionId"] = 0, - ["livery_id"] = "Australian 75th Squadron", + ["coalitionId"] = 2, + ["livery_id"] = "usaf standard", ["skill"] = "High", ["unit"] = { ["id_"] = 16800512, }, -- end of ["unit"] ["category"] = "plane", - ["speed"] = 180.49294253728, - ["heading"] = 2.1995924992708, - ["groupId"] = 7020, - ["unitName"] = "AUSTRALIA air 6 unit1", - ["groupName"] = "AUSTRALIA air 6", + ["speed"] = 138.85196364465, + ["heading"] = 1.6162179734619, + ["groupId"] = 7019, + ["unitName"] = "USA air 5 unit1", + ["groupName"] = "USA air 5", ["callsign"] = { - [1] = 1, + [1] = 4, [2] = 1, [3] = 1, - ["name"] = "Enfield11", + ["name"] = "Colt11", }, -- end of ["callsign"] - ["coalition"] = "neutral", - ["x"] = -198560, - ["unitId"] = 7032, - ["type"] = "FA-18C_hornet", - ["country"] = "australia", - ["y"] = 319595, - ["countryId"] = 21, + ["coalition"] = "blue", + ["x"] = -288608, + ["unitId"] = 7031, + ["type"] = "B-52H", + ["country"] = "usa", + ["y"] = 682727, + ["countryId"] = 2, ["pos"] = { - ["y"] = 1982.9801268833, - ["x"] = -199243.67266703, - ["z"] = 320534.47014546, + ["y"] = 1987.3907815825, + ["x"] = -288648.02914749, + ["z"] = 683613.54764354, }, -- end of ["pos"] }, -- end of [16800512] - [16802560] = - { - ["alt"] = 48, - ["point"] = - { - ["y"] = 686871, - ["x"] = -286407, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16802560, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["type"] = "M-113", - ["groupId"] = 7025, - ["groupName"] = "USA gnd 8", - ["unitName"] = "USA gnd 8 unit1", - ["countryId"] = 2, - ["x"] = -286407, - ["country"] = "usa", - ["heading"] = 0, - ["unitId"] = 7040, - ["y"] = 686871, - ["coalition"] = "blue", - ["pos"] = - { - ["y"] = 47.951913858982, - ["x"] = -286407.15625, - ["z"] = 686871.4375, - }, -- end of ["pos"] - }, -- end of [16802560] [16778240] = { ["country"] = "russia", @@ -424,9 +424,9 @@ aliveUnits = ["countryId"] = 0, ["pos"] = { - ["y"] = 505.76930271528, - ["x"] = -244659.22325279, - ["z"] = 604147.642762, + ["y"] = 508.23984253819, + ["x"] = -244656.30510529, + ["z"] = 604145.48703791, }, -- end of ["pos"] }, -- end of [16782336] [16784384] = @@ -552,18 +552,18 @@ aliveUnits = ["y"] = 185783.38833846, ["pos"] = { - ["y"] = -2.0085389614105, - ["x"] = -244767.30964541, - ["z"] = 185823.78915671, + ["y"] = -2.0082261562347, + ["x"] = -244762.02599275, + ["z"] = 185818.17850341, }, -- end of ["pos"] }, -- end of [16790528] [16792576] = { - ["alt"] = 72, + ["alt"] = 74, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -573,74 +573,65 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557542423, + ["heading"] = 0, ["country"] = "usa", - ["groupName"] = "USA gnd 1", + ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 694952, + ["x"] = -284964, ["coalition"] = "blue", - ["type"] = "M-1 Abrams", - ["groupId"] = 7001, - ["unitId"] = 7001, - ["unitName"] = "USA gnd 1 unit1", + ["type"] = "Hawk cwar", + ["groupId"] = 35, + ["unitId"] = 58, + ["unitName"] = "Unit #008", ["pos"] = { - ["y"] = 72.200818460582, - ["x"] = -284652.55858872, - ["z"] = 693755.91988087, + ["y"] = 74.311630249023, + ["x"] = -284964.125, + ["z"] = 694951.5, }, -- end of ["pos"] }, -- end of [16792576] [16794624] = { - ["alt"] = 1997, + ["alt"] = 48, ["point"] = { - ["y"] = 682727, - ["x"] = -288608, + ["y"] = 686871, + ["x"] = -286447, }, -- end of ["point"] - ["alt_type"] = "BARO", ["coalitionId"] = 2, - ["livery_id"] = "usaf standard", - ["skill"] = "High", + ["skill"] = "Average", ["unit"] = { ["id_"] = 16794624, }, -- end of ["unit"] - ["category"] = "plane", - ["speed"] = 138.85196364465, - ["heading"] = 1.6162179734619, - ["groupId"] = 7005, - ["unitName"] = "USA air 1 unit1", - ["groupName"] = "USA air 1", - ["callsign"] = - { - [1] = 4, - [2] = 1, - [3] = 1, - ["name"] = "Colt11", - }, -- end of ["callsign"] - ["coalition"] = "blue", - ["x"] = -288608, - ["unitId"] = 7009, - ["type"] = "B-52H", - ["country"] = "usa", - ["y"] = 682727, + ["category"] = "vehicle", + ["speed"] = 0, + ["type"] = "M-113", + ["groupId"] = 7004, + ["groupName"] = "USA gnd 2", + ["unitName"] = "USA gnd 2 unit2", ["countryId"] = 2, + ["x"] = -286447, + ["country"] = "usa", + ["heading"] = 0, + ["unitId"] = 7008, + ["y"] = 686871, + ["coalition"] = "blue", ["pos"] = { - ["y"] = 1991.4670941319, - ["x"] = -288665.65259277, - ["z"] = 684001.27794778, + ["y"] = 47.876796607959, + ["x"] = -286447.15625, + ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16794624] [16798720] = { - ["alt"] = 69, + ["alt"] = 74, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -650,57 +641,65 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557660229, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691898, + ["x"] = -283194, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7015, - ["unitId"] = 7025, - ["unitName"] = "USA gnd 5 unit3", + ["unitId"] = 7024, + ["unitName"] = "USA gnd 5 unit2", ["pos"] = { - ["y"] = 69.449898336486, - ["x"] = -287518.40594793, - ["z"] = 695151.14068808, + ["y"] = 73.602359921368, + ["x"] = -283198.99441689, + ["z"] = 691897.7610464, }, -- end of ["pos"] }, -- end of [16798720] [16800768] = { - ["alt"] = 0, + ["alt"] = 1998, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 319595, + ["x"] = -198560, }, -- end of ["point"] + ["alt_type"] = "BARO", ["coalitionId"] = 0, - ["livery_id"] = "ReubenJames", - ["skill"] = "Average", + ["livery_id"] = "Australian 75th Squadron", + ["skill"] = "High", ["unit"] = { ["id_"] = 16800768, }, -- end of ["unit"] - ["category"] = "ship", - ["speed"] = 0, - ["type"] = "PERRY", - ["groupId"] = 7021, - ["groupName"] = "AUSTRALIA shp 3", - ["unitName"] = "AUSTRALIA shp 3 unit1", + ["category"] = "plane", + ["speed"] = 180.49294253728, + ["heading"] = 2.1995924992708, + ["groupId"] = 7020, + ["unitName"] = "AUSTRALIA air 6 unit1", + ["groupName"] = "AUSTRALIA air 6", + ["callsign"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + ["name"] = "Enfield11", + }, -- end of ["callsign"] ["coalition"] = "neutral", - ["x"] = -163156, + ["x"] = -198560, + ["unitId"] = 7032, + ["type"] = "FA-18C_hornet", ["country"] = "australia", - ["y"] = 268869, - ["heading"] = 0, - ["unitId"] = 7033, + ["y"] = 319595, ["countryId"] = 21, ["pos"] = { - ["y"] = 0, - ["x"] = -163156.453125, - ["z"] = 268869.0625, + ["y"] = 1982.9801268833, + ["x"] = -199243.67266703, + ["z"] = 320534.47014546, }, -- end of ["pos"] }, -- end of [16800768] [16802816] = @@ -709,7 +708,7 @@ aliveUnits = ["point"] = { ["y"] = 686871, - ["x"] = -286447, + ["x"] = -286407, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -722,18 +721,18 @@ aliveUnits = ["type"] = "M-113", ["groupId"] = 7025, ["groupName"] = "USA gnd 8", - ["unitName"] = "USA gnd 8 unit2", + ["unitName"] = "USA gnd 8 unit1", ["countryId"] = 2, - ["x"] = -286447, + ["x"] = -286407, ["country"] = "usa", ["heading"] = 0, - ["unitId"] = 7041, + ["unitId"] = 7040, ["y"] = 686871, ["coalition"] = "blue", ["pos"] = { - ["y"] = 47.876796607959, - ["x"] = -286447.15625, + ["y"] = 47.951913858982, + ["x"] = -286407.15625, ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16802816] @@ -834,45 +833,58 @@ aliveUnits = }, -- end of [16786688] [16790784] = { - ["alt"] = 60, + ["alt"] = 2000, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 636428.57142857, + ["x"] = -318142.85714286, }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", + ["alt_type"] = "BARO", + ["livery_id"] = "104th FS Maryland ANG, Baltimore (MD)", + ["onboard_num"] = "52", ["unit"] = { ["id_"] = 16790784, }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["heading"] = 0, + ["category"] = "plane", + ["unitName"] = "A-10C Client #1_unit", + ["AddPropAircraft"] = + { + }, -- end of ["AddPropAircraft"] + ["type"] = "A-10C", + ["speed"] = 138.88888888889, ["country"] = "usa", - ["groupName"] = "teleGroup", - ["countryId"] = 2, - ["y"] = 689785, - ["x"] = -285145, + ["psi"] = 0.67060113146646, + ["groupId"] = 6, + ["groupName"] = "A-10C Client #1", + ["skill"] = "Client", ["coalition"] = "blue", - ["type"] = "Hawk tr", - ["groupId"] = 35, - ["unitId"] = 52, - ["unitName"] = "Unit #002", + ["x"] = -318142.85714286, + ["callsign"] = + { + [1] = 3, + [2] = 1, + [3] = 1, + ["name"] = "Uzi11", + }, -- end of ["callsign"] + ["heading"] = -0.67060113146646, + ["unitId"] = 11, + ["y"] = 636428.57142857, + ["countryId"] = 2, ["pos"] = { - ["y"] = 60.353408813477, - ["x"] = -285145.125, - ["z"] = 689785.3125, + ["y"] = 1912.3736665438, + ["x"] = -314625.75359652, + ["z"] = 633651.41337382, }, -- end of ["pos"] }, -- end of [16790784] [16792832] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -882,170 +894,25 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557542423, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692292, + ["x"] = -284982, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7001, - ["unitId"] = 7002, - ["unitName"] = "USA gnd 1 unit2", + ["unitId"] = 7001, + ["unitName"] = "USA gnd 1 unit1", ["pos"] = { - ["y"] = 73.104113727721, - ["x"] = -284455.82134373, - ["z"] = 693770.54507245, + ["y"] = 67.288836055423, + ["x"] = -284973.22177254, + ["z"] = 692290.16685181, }, -- end of ["pos"] }, -- end of [16792832] [16794880] = - { - ["alt"] = 1998, - ["point"] = - { - ["y"] = 319595, - ["x"] = -198560, - }, -- end of ["point"] - ["alt_type"] = "BARO", - ["coalitionId"] = 0, - ["livery_id"] = "Australian 75th Squadron", - ["skill"] = "High", - ["unit"] = - { - ["id_"] = 16794880, - }, -- end of ["unit"] - ["category"] = "plane", - ["speed"] = 180.49294253728, - ["heading"] = 2.1995924992708, - ["groupId"] = 7006, - ["unitName"] = "AUSTRALIA air 2 unit1", - ["groupName"] = "AUSTRALIA air 2", - ["callsign"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - ["name"] = "Enfield11", - }, -- end of ["callsign"] - ["coalition"] = "neutral", - ["x"] = -198560, - ["unitId"] = 7010, - ["type"] = "FA-18C_hornet", - ["country"] = "australia", - ["y"] = 319595, - ["countryId"] = 21, - ["pos"] = - { - ["y"] = 1988.2813909589, - ["x"] = -199535.70144928, - ["z"] = 320936.00557625, - }, -- end of ["pos"] - }, -- end of [16794880] - [16796928] = - { - ["alt"] = 48, - ["point"] = - { - ["y"] = 686871, - ["x"] = -286407, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16796928, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["heading"] = 0, - ["country"] = "usa", - ["groupName"] = "USA gnd 4", - ["countryId"] = 2, - ["y"] = 686871, - ["x"] = -286407, - ["coalition"] = "blue", - ["type"] = "M-113", - ["groupId"] = 7011, - ["unitId"] = 7018, - ["unitName"] = "USA gnd 4 unit1", - ["pos"] = - { - ["y"] = 47.951913858982, - ["x"] = -286407.15625, - ["z"] = 686871.4375, - }, -- end of ["pos"] - }, -- end of [16796928] - [16798976] = - { - ["alt"] = 68, - ["point"] = - { - ["y"] = 694882, - ["x"] = -287479, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16798976, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["heading"] = 1.4977557575044, - ["country"] = "usa", - ["groupName"] = "USA gnd 5", - ["countryId"] = 2, - ["y"] = 694882, - ["x"] = -287479, - ["coalition"] = "blue", - ["type"] = "M-1 Abrams", - ["groupId"] = 7015, - ["unitId"] = 7026, - ["unitName"] = "USA gnd 5 unit4", - ["pos"] = - { - ["y"] = 67.549932193396, - ["x"] = -287479.33570923, - ["z"] = 694882.45568802, - }, -- end of ["pos"] - }, -- end of [16798976] - [16801024] = - { - ["alt"] = 73, - ["point"] = - { - ["y"] = 693098, - ["x"] = -284021, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16801024, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["heading"] = 1.4977557645728, - ["country"] = "usa", - ["groupName"] = "USA gnd 7", - ["countryId"] = 2, - ["y"] = 693098, - ["x"] = -284021, - ["coalition"] = "blue", - ["type"] = "M-1 Abrams", - ["groupId"] = 7022, - ["unitId"] = 7034, - ["unitName"] = "USA gnd 7 unit1", - ["pos"] = - { - ["y"] = 73.449123755413, - ["x"] = -284025.43622442, - ["z"] = 693098.87273888, - }, -- end of ["pos"] - }, -- end of [16801024] - [16803072] = { ["alt"] = 1997, ["point"] = @@ -1059,14 +926,14 @@ aliveUnits = ["skill"] = "High", ["unit"] = { - ["id_"] = 16803072, + ["id_"] = 16794880, }, -- end of ["unit"] ["category"] = "plane", ["speed"] = 138.85196364465, ["heading"] = 1.6162179734619, - ["groupId"] = 7026, - ["unitName"] = "USA air 7 unit1", - ["groupName"] = "USA air 7", + ["groupId"] = 7005, + ["unitName"] = "USA air 1 unit1", + ["groupName"] = "USA air 1", ["callsign"] = { [1] = 4, @@ -1076,16 +943,119 @@ aliveUnits = }, -- end of ["callsign"] ["coalition"] = "blue", ["x"] = -288608, - ["unitId"] = 7042, + ["unitId"] = 7009, ["type"] = "B-52H", ["country"] = "usa", ["y"] = 682727, ["countryId"] = 2, ["pos"] = { - ["y"] = 1986.5427819389, - ["x"] = -288642.36046096, - ["z"] = 683488.83206213, + ["y"] = 1991.4670941319, + ["x"] = -288665.65259277, + ["z"] = 684001.27794778, + }, -- end of ["pos"] + }, -- end of [16794880] + [16798976] = + { + ["alt"] = 72, + ["point"] = + { + ["y"] = 691826, + ["x"] = -283357, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16798976, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 1.4977557538798, + ["country"] = "usa", + ["groupName"] = "USA gnd 5", + ["countryId"] = 2, + ["y"] = 691826, + ["x"] = -283357, + ["coalition"] = "blue", + ["type"] = "M-1 Abrams", + ["groupId"] = 7015, + ["unitId"] = 7025, + ["unitName"] = "USA gnd 5 unit3", + ["pos"] = + { + ["y"] = 72.12411776751, + ["x"] = -283357.17133258, + ["z"] = 691826.36193748, + }, -- end of ["pos"] + }, -- end of [16798976] + [16801024] = + { + ["alt"] = 0, + ["point"] = + { + ["y"] = 268107, + ["x"] = -163693, + }, -- end of ["point"] + ["coalitionId"] = 0, + ["livery_id"] = "ReubenJames", + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16801024, + }, -- end of ["unit"] + ["category"] = "ship", + ["speed"] = 0, + ["type"] = "PERRY", + ["groupId"] = 7021, + ["groupName"] = "AUSTRALIA shp 3", + ["unitName"] = "AUSTRALIA shp 3 unit1", + ["coalition"] = "neutral", + ["x"] = -163693, + ["country"] = "australia", + ["y"] = 268107, + ["heading"] = 0, + ["unitId"] = 7033, + ["countryId"] = 21, + ["pos"] = + { + ["y"] = 0, + ["x"] = -163693.34375, + ["z"] = 268106.96875, + }, -- end of ["pos"] + }, -- end of [16801024] + [16803072] = + { + ["alt"] = 48, + ["point"] = + { + ["y"] = 686871, + ["x"] = -286447, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16803072, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["type"] = "M-113", + ["groupId"] = 7025, + ["groupName"] = "USA gnd 8", + ["unitName"] = "USA gnd 8 unit2", + ["countryId"] = 2, + ["x"] = -286447, + ["country"] = "usa", + ["heading"] = 0, + ["unitId"] = 7041, + ["y"] = 686871, + ["coalition"] = "blue", + ["pos"] = + { + ["y"] = 47.876796607959, + ["x"] = -286447.15625, + ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16803072] [16778752] = @@ -1115,8 +1085,8 @@ aliveUnits = ["pos"] = { ["y"] = 0, - ["x"] = -87204.18841578, - ["z"] = 74429.879538476, + ["x"] = -87203.760480064, + ["z"] = 74430.905392154, }, -- end of ["pos"] }, -- end of [16778752] [16780800] = @@ -1232,11 +1202,11 @@ aliveUnits = }, -- end of [16786944] [16791040] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1250,27 +1220,27 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 694968, + ["x"] = -285046, ["coalition"] = "blue", - ["type"] = "Hawk sr", + ["type"] = "Hawk tr", ["groupId"] = 35, - ["unitId"] = 53, - ["unitName"] = "Unit #003", + ["unitId"] = 52, + ["unitName"] = "Unit #002", ["pos"] = { - ["y"] = 60.798156738281, - ["x"] = -285166.40625, - ["z"] = 689947.8125, + ["y"] = 73.912696838379, + ["x"] = -285046.125, + ["z"] = 694968, }, -- end of ["pos"] }, -- end of [16791040] [16793088] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1280,57 +1250,65 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557542423, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692208, + ["x"] = -284870, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7001, - ["unitId"] = 7003, - ["unitName"] = "USA gnd 1 unit3", + ["unitId"] = 7002, + ["unitName"] = "USA gnd 1 unit2", ["pos"] = { - ["y"] = 72.269631188927, - ["x"] = -284638.74305088, - ["z"] = 693780.59223319, + ["y"] = 67.240456886011, + ["x"] = -284870.4375, + ["z"] = 692207.9375, }, -- end of ["pos"] }, -- end of [16793088] [16795136] = { - ["alt"] = 0, + ["alt"] = 1998, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 319595, + ["x"] = -198560, }, -- end of ["point"] + ["alt_type"] = "BARO", ["coalitionId"] = 0, - ["livery_id"] = "ReubenJames", - ["skill"] = "Average", + ["livery_id"] = "Australian 75th Squadron", + ["skill"] = "High", ["unit"] = { ["id_"] = 16795136, }, -- end of ["unit"] - ["category"] = "ship", - ["speed"] = 0, - ["type"] = "PERRY", - ["groupId"] = 7007, - ["groupName"] = "AUSTRALIA shp 1", - ["unitName"] = "AUSTRALIA shp 1 unit1", + ["category"] = "plane", + ["speed"] = 180.49294253728, + ["heading"] = 2.1995924992708, + ["groupId"] = 7006, + ["unitName"] = "AUSTRALIA air 2 unit1", + ["groupName"] = "AUSTRALIA air 2", + ["callsign"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + ["name"] = "Enfield11", + }, -- end of ["callsign"] ["coalition"] = "neutral", - ["x"] = -163065, + ["x"] = -198560, + ["unitId"] = 7010, + ["type"] = "FA-18C_hornet", ["country"] = "australia", - ["y"] = 265153, - ["heading"] = 0, - ["unitId"] = 7011, + ["y"] = 319595, ["countryId"] = 21, ["pos"] = { - ["y"] = 0, - ["x"] = -163065.140625, - ["z"] = 265152.96875, + ["y"] = 1988.2813909589, + ["x"] = -199535.70144928, + ["z"] = 320936.00557625, }, -- end of ["pos"] }, -- end of [16795136] [16797184] = @@ -1339,7 +1317,7 @@ aliveUnits = ["point"] = { ["y"] = 686871, - ["x"] = -286447, + ["x"] = -286407, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1354,26 +1332,60 @@ aliveUnits = ["groupName"] = "USA gnd 4", ["countryId"] = 2, ["y"] = 686871, - ["x"] = -286447, + ["x"] = -286407, ["coalition"] = "blue", ["type"] = "M-113", ["groupId"] = 7011, - ["unitId"] = 7019, - ["unitName"] = "USA gnd 4 unit2", + ["unitId"] = 7018, + ["unitName"] = "USA gnd 4 unit1", ["pos"] = { - ["y"] = 47.876796607959, - ["x"] = -286447.15625, + ["y"] = 47.951913858982, + ["x"] = -286407.15625, ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16797184] - [16801280] = + [16799232] = { - ["alt"] = 73, + ["alt"] = 72, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 691852, + ["x"] = -283362, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16799232, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 1.4977557720036, + ["country"] = "usa", + ["groupName"] = "USA gnd 5", + ["countryId"] = 2, + ["y"] = 691852, + ["x"] = -283362, + ["coalition"] = "blue", + ["type"] = "M-1 Abrams", + ["groupId"] = 7015, + ["unitId"] = 7026, + ["unitName"] = "USA gnd 5 unit4", + ["pos"] = + { + ["y"] = 72.166241925805, + ["x"] = -283361.7937593, + ["z"] = 691852.30478528, + }, -- end of ["pos"] + }, -- end of [16799232] + [16801280] = + { + ["alt"] = 59, + ["point"] = + { + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1382,66 +1394,66 @@ aliveUnits = ["id_"] = 16801280, }, -- end of ["unit"] ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, - ["heading"] = 1.4877557641795, + ["speed"] = 0, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692769, + ["x"] = -287355, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7022, - ["unitId"] = 7035, - ["unitName"] = "USA gnd 7 unit2", + ["unitId"] = 7034, + ["unitName"] = "USA gnd 7 unit1", ["pos"] = { - ["y"] = 73.066103941006, - ["x"] = -284053.49892158, - ["z"] = 693012.19131309, + ["y"] = 59.238122595386, + ["x"] = -287358.35658634, + ["z"] = 692769.94557295, }, -- end of ["pos"] }, -- end of [16801280] [16803328] = { - ["alt"] = 1998, + ["alt"] = 1997, ["point"] = { - ["y"] = 319595, - ["x"] = -198560, + ["y"] = 682727, + ["x"] = -288608, }, -- end of ["point"] ["alt_type"] = "BARO", - ["coalitionId"] = 0, - ["livery_id"] = "Australian 75th Squadron", + ["coalitionId"] = 2, + ["livery_id"] = "usaf standard", ["skill"] = "High", ["unit"] = { ["id_"] = 16803328, }, -- end of ["unit"] ["category"] = "plane", - ["speed"] = 180.49294253728, - ["heading"] = 2.1995924992708, - ["groupId"] = 7027, - ["unitName"] = "AUSTRALIA air 8 unit1", - ["groupName"] = "AUSTRALIA air 8", + ["speed"] = 138.85196364465, + ["heading"] = 1.6162179734619, + ["groupId"] = 7026, + ["unitName"] = "USA air 7 unit1", + ["groupName"] = "USA air 7", ["callsign"] = { - [1] = 1, + [1] = 4, [2] = 1, [3] = 1, - ["name"] = "Enfield11", + ["name"] = "Colt11", }, -- end of ["callsign"] - ["coalition"] = "neutral", - ["x"] = -198560, - ["unitId"] = 7043, - ["type"] = "FA-18C_hornet", - ["country"] = "australia", - ["y"] = 319595, - ["countryId"] = 21, + ["coalition"] = "blue", + ["x"] = -288608, + ["unitId"] = 7042, + ["type"] = "B-52H", + ["country"] = "usa", + ["y"] = 682727, + ["countryId"] = 2, ["pos"] = { - ["y"] = 1981.902511151, - ["x"] = -199142.78627169, - ["z"] = 320395.75279009, + ["y"] = 1986.5427819389, + ["x"] = -288642.36046096, + ["z"] = 683488.83206213, }, -- end of ["pos"] }, -- end of [16803328] [16779008] = @@ -1590,18 +1602,18 @@ aliveUnits = ["y"] = 653171.42857143, ["pos"] = { - ["y"] = 10.568131374762, - ["x"] = -293132.56916307, - ["z"] = 653229.31101923, + ["y"] = 10.573285658245, + ["x"] = -293125.28492283, + ["z"] = 653221.89168815, }, -- end of ["pos"] }, -- end of [16787200] [16791296] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1615,27 +1627,27 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 695126, + ["x"] = -285098, ["coalition"] = "blue", - ["type"] = "Hawk pcp", + ["type"] = "Hawk sr", ["groupId"] = 35, - ["unitId"] = 54, - ["unitName"] = "Unit #004", + ["unitId"] = 53, + ["unitName"] = "Unit #003", ["pos"] = { - ["y"] = 59.9983253479, - ["x"] = -285297.625, - ["z"] = 689856.375, + ["y"] = 73.909408569336, + ["x"] = -285097.78125, + ["z"] = 695126.4375, }, -- end of ["pos"] }, -- end of [16791296] [16793344] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1645,108 +1657,100 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557629417, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692374, + ["x"] = -284971, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7001, - ["unitId"] = 7004, - ["unitName"] = "USA gnd 1 unit4", + ["unitId"] = 7003, + ["unitName"] = "USA gnd 1 unit3", ["pos"] = { - ["y"] = 71.997656902822, - ["x"] = -284698.71782492, - ["z"] = 693652.50385317, + ["y"] = 67.619678071864, + ["x"] = -284962.54069446, + ["z"] = 692372.41661837, }, -- end of ["pos"] }, -- end of [16793344] [16795392] = { - ["alt"] = 66, + ["alt"] = 0, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] - ["coalitionId"] = 2, + ["coalitionId"] = 0, + ["livery_id"] = "ReubenJames", ["skill"] = "Average", ["unit"] = { ["id_"] = 16795392, }, -- end of ["unit"] - ["category"] = "vehicle", + ["category"] = "ship", ["speed"] = 0, - ["heading"] = 1.4977557594982, - ["country"] = "usa", - ["groupName"] = "USA gnd 3", - ["countryId"] = 2, - ["y"] = 691761, - ["x"] = -284967, - ["coalition"] = "blue", - ["type"] = "M-1 Abrams", - ["groupId"] = 7008, - ["unitId"] = 7012, - ["unitName"] = "USA gnd 3 unit1", + ["type"] = "PERRY", + ["groupId"] = 7007, + ["groupName"] = "AUSTRALIA shp 1", + ["unitName"] = "AUSTRALIA shp 1 unit1", + ["coalition"] = "neutral", + ["x"] = -164471, + ["country"] = "australia", + ["y"] = 267081, + ["heading"] = 0, + ["unitId"] = 7011, + ["countryId"] = 21, ["pos"] = { - ["y"] = 65.668038424368, - ["x"] = -284974.27915004, - ["z"] = 691761.52921714, + ["y"] = 0, + ["x"] = -164470.953125, + ["z"] = 267080.75, }, -- end of ["pos"] }, -- end of [16795392] [16797440] = { - ["alt"] = 1997, + ["alt"] = 48, ["point"] = { - ["y"] = 682727, - ["x"] = -288608, + ["y"] = 686871, + ["x"] = -286447, }, -- end of ["point"] - ["alt_type"] = "BARO", ["coalitionId"] = 2, - ["livery_id"] = "usaf standard", - ["skill"] = "High", + ["skill"] = "Average", ["unit"] = { ["id_"] = 16797440, }, -- end of ["unit"] - ["category"] = "plane", - ["speed"] = 138.85196364465, - ["heading"] = 1.6162179734619, - ["groupId"] = 7012, - ["unitName"] = "USA air 3 unit1", - ["groupName"] = "USA air 3", - ["callsign"] = - { - [1] = 4, - [2] = 1, - [3] = 1, - ["name"] = "Colt11", - }, -- end of ["callsign"] - ["coalition"] = "blue", - ["x"] = -288608, - ["unitId"] = 7020, - ["type"] = "B-52H", + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 0, ["country"] = "usa", - ["y"] = 682727, + ["groupName"] = "USA gnd 4", ["countryId"] = 2, + ["y"] = 686871, + ["x"] = -286447, + ["coalition"] = "blue", + ["type"] = "M-113", + ["groupId"] = 7011, + ["unitId"] = 7019, + ["unitName"] = "USA gnd 4 unit2", ["pos"] = { - ["y"] = 1988.5854966465, - ["x"] = -288653.69584605, - ["z"] = 683738.21954942, + ["y"] = 47.876796607959, + ["x"] = -286447.15625, + ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16797440] [16801536] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1755,58 +1759,66 @@ aliveUnits = ["id_"] = 16801536, }, -- end of ["unit"] ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, - ["heading"] = 1.5077557625432, + ["speed"] = 0, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692754, + ["x"] = -287476, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7022, - ["unitId"] = 7036, - ["unitName"] = "USA gnd 7 unit3", + ["unitId"] = 7035, + ["unitName"] = "USA gnd 7 unit2", ["pos"] = { - ["y"] = 73.827574370095, - ["x"] = -283897.97030909, - ["z"] = 693025.56614306, + ["y"] = 59.222299098578, + ["x"] = -287476.21777116, + ["z"] = 692753.69256042, }, -- end of ["pos"] }, -- end of [16801536] [16803584] = { - ["alt"] = 0, + ["alt"] = 1998, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 319595, + ["x"] = -198560, }, -- end of ["point"] + ["alt_type"] = "BARO", ["coalitionId"] = 0, - ["livery_id"] = "ReubenJames", - ["skill"] = "Average", + ["livery_id"] = "Australian 75th Squadron", + ["skill"] = "High", ["unit"] = { ["id_"] = 16803584, }, -- end of ["unit"] - ["category"] = "ship", - ["speed"] = 0, - ["type"] = "PERRY", - ["groupId"] = 7028, - ["groupName"] = "AUSTRALIA shp 4", - ["unitName"] = "AUSTRALIA shp 4 unit1", + ["category"] = "plane", + ["speed"] = 180.49294253728, + ["heading"] = 2.1995924992708, + ["groupId"] = 7027, + ["unitName"] = "AUSTRALIA air 8 unit1", + ["groupName"] = "AUSTRALIA air 8", + ["callsign"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + ["name"] = "Enfield11", + }, -- end of ["callsign"] ["coalition"] = "neutral", - ["x"] = -162226, + ["x"] = -198560, + ["unitId"] = 7043, + ["type"] = "FA-18C_hornet", ["country"] = "australia", - ["y"] = 266075, - ["heading"] = 0, - ["unitId"] = 7044, + ["y"] = 319595, ["countryId"] = 21, ["pos"] = { - ["y"] = 0, - ["x"] = -162225.578125, - ["z"] = 266075.21875, + ["y"] = 1981.902511151, + ["x"] = -199142.78627169, + ["z"] = 320395.75279009, }, -- end of ["pos"] }, -- end of [16803584] [16779264] = @@ -1836,7 +1848,7 @@ aliveUnits = ["pos"] = { ["y"] = 0, - ["x"] = -356011.92788773, + ["x"] = -356010.2612211, ["z"] = 444653.03125, }, -- end of ["pos"] }, -- end of [16779264] @@ -1872,6 +1884,38 @@ aliveUnits = ["z"] = 445199.90625, }, -- end of ["pos"] }, -- end of [16781312] + [16783360] = + { + ["point"] = + { + ["y"] = 654665.71428571, + ["x"] = -292962.85714286, + }, -- end of ["point"] + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16783360, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["unitName"] = "RuBTRs4", + ["heading"] = -1.7994767003775, + ["unitId"] = 30, + ["groupName"] = "RuBTRs", + ["countryId"] = 0, + ["coalition"] = "red", + ["x"] = -292962.85714286, + ["type"] = "BTR-80", + ["groupId"] = 13, + ["country"] = "russia", + ["playerCanDrive"] = true, + ["y"] = 654665.71428571, + ["pos"] = + { + ["y"] = 11.950934404379, + ["x"] = -293001.18163074, + ["z"] = 654663.33660475, + }, -- end of ["pos"] + }, -- end of [16783360] [16785408] = { ["alt"] = 2000, @@ -1912,9 +1956,9 @@ aliveUnits = ["coalition"] = "blue", ["pos"] = { - ["y"] = 1987.9963939735, - ["x"] = -277035.05136533, - ["z"] = 663222.28561488, + ["y"] = 1987.9862179962, + ["x"] = -277039.54944886, + ["z"] = 663219.26272566, }, -- end of ["pos"] }, -- end of [16785408] [16787456] = @@ -1944,18 +1988,18 @@ aliveUnits = ["y"] = 653211.42857143, ["pos"] = { - ["y"] = 10.578705771489, - ["x"] = -293125.35483757, - ["z"] = 653211.79188619, + ["y"] = 10.578737878163, + ["x"] = -293125.46162944, + ["z"] = 653211.70008691, }, -- end of ["pos"] }, -- end of [16787456] [16791552] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1969,27 +2013,61 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 694892, + ["x"] = -285039, ["coalition"] = "blue", - ["type"] = "Hawk ln", + ["type"] = "Hawk pcp", ["groupId"] = 35, - ["unitId"] = 55, - ["unitName"] = "Unit #005", + ["unitId"] = 54, + ["unitName"] = "Unit #004", ["pos"] = { - ["y"] = 60.672706604004, - ["x"] = -285057.90625, - ["z"] = 689796.125, + ["y"] = 73.954246520996, + ["x"] = -285038.8125, + ["z"] = 694892.4375, }, -- end of ["pos"] }, -- end of [16791552] - [16795648] = + [16793600] = { - ["alt"] = 66, + ["alt"] = 68, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 692388, + ["x"] = -284932, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16793600, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 1.4977557602231, + ["country"] = "usa", + ["groupName"] = "USA gnd 1", + ["countryId"] = 2, + ["y"] = 692388, + ["x"] = -284932, + ["coalition"] = "blue", + ["type"] = "M-1 Abrams", + ["groupId"] = 7001, + ["unitId"] = 7004, + ["unitName"] = "USA gnd 1 unit4", + ["pos"] = + { + ["y"] = 67.771455646655, + ["x"] = -284932.00965646, + ["z"] = 692388.36656636, + }, -- end of ["pos"] + }, -- end of [16793600] + [16795648] = + { + ["alt"] = 62, + ["point"] = + { + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1999,108 +2077,74 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557625792, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690419, + ["x"] = -284972, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7008, - ["unitId"] = 7013, - ["unitName"] = "USA gnd 3 unit2", + ["unitId"] = 7012, + ["unitName"] = "USA gnd 3 unit1", ["pos"] = { - ["y"] = 66.202428226177, - ["x"] = -284860.57541592, - ["z"] = 691809.18734628, + ["y"] = 61.94913810018, + ["x"] = -284968.89655888, + ["z"] = 690416.83778872, }, -- end of ["pos"] }, -- end of [16795648] [16797696] = { - ["alt"] = 1998, + ["alt"] = 1997, ["point"] = { - ["y"] = 319595, - ["x"] = -198560, + ["y"] = 682727, + ["x"] = -288608, }, -- end of ["point"] ["alt_type"] = "BARO", - ["coalitionId"] = 0, - ["livery_id"] = "Australian 75th Squadron", + ["coalitionId"] = 2, + ["livery_id"] = "usaf standard", ["skill"] = "High", ["unit"] = { ["id_"] = 16797696, }, -- end of ["unit"] ["category"] = "plane", - ["speed"] = 180.49294253728, - ["heading"] = 2.1995924992708, - ["groupId"] = 7013, - ["unitName"] = "AUSTRALIA air 4 unit1", - ["groupName"] = "AUSTRALIA air 4", + ["speed"] = 138.85196364465, + ["heading"] = 1.6162179734619, + ["groupId"] = 7012, + ["unitName"] = "USA air 3 unit1", + ["groupName"] = "USA air 3", ["callsign"] = { - [1] = 1, + [1] = 4, [2] = 1, [3] = 1, - ["name"] = "Enfield11", + ["name"] = "Colt11", }, -- end of ["callsign"] - ["coalition"] = "neutral", - ["x"] = -198560, - ["unitId"] = 7021, - ["type"] = "FA-18C_hornet", - ["country"] = "australia", - ["y"] = 319595, - ["countryId"] = 21, + ["coalition"] = "blue", + ["x"] = -288608, + ["unitId"] = 7020, + ["type"] = "B-52H", + ["country"] = "usa", + ["y"] = 682727, + ["countryId"] = 2, ["pos"] = { - ["y"] = 1984.4381141247, - ["x"] = -199333.93720144, - ["z"] = 320658.58260143, + ["y"] = 1988.5854966465, + ["x"] = -288653.69584605, + ["z"] = 683738.21954942, }, -- end of ["pos"] }, -- end of [16797696] - [16799744] = - { - ["alt"] = 48, - ["point"] = - { - ["y"] = 686871, - ["x"] = -286407, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16799744, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["type"] = "M-113", - ["groupId"] = 7018, - ["groupName"] = "USA gnd 6", - ["unitName"] = "USA gnd 6 unit1", - ["countryId"] = 2, - ["x"] = -286407, - ["country"] = "usa", - ["heading"] = 0, - ["unitId"] = 7029, - ["y"] = 686871, - ["coalition"] = "blue", - ["pos"] = - { - ["y"] = 47.951913858982, - ["x"] = -286407.15625, - ["z"] = 686871.4375, - }, -- end of ["pos"] - }, -- end of [16799744] [16801792] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2109,25 +2153,60 @@ aliveUnits = ["id_"] = 16801792, }, -- end of ["unit"] ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, - ["heading"] = 1.4877557641795, + ["speed"] = 0, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692726, + ["x"] = -287538, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7022, - ["unitId"] = 7037, - ["unitName"] = "USA gnd 7 unit4", + ["unitId"] = 7036, + ["unitName"] = "USA gnd 7 unit3", ["pos"] = { - ["y"] = 72.86544323544, - ["x"] = -284127.15798047, - ["z"] = 693093.5300743, + ["y"] = 59.030057380211, + ["x"] = -287538.03020083, + ["z"] = 692726.00406844, }, -- end of ["pos"] }, -- end of [16801792] + [16803840] = + { + ["alt"] = 0, + ["point"] = + { + ["y"] = 265427, + ["x"] = -164284, + }, -- end of ["point"] + ["coalitionId"] = 0, + ["livery_id"] = "ReubenJames", + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16803840, + }, -- end of ["unit"] + ["category"] = "ship", + ["speed"] = 0, + ["type"] = "PERRY", + ["groupId"] = 7028, + ["groupName"] = "AUSTRALIA shp 4", + ["unitName"] = "AUSTRALIA shp 4 unit1", + ["coalition"] = "neutral", + ["x"] = -164284, + ["country"] = "australia", + ["y"] = 265427, + ["heading"] = 0, + ["unitId"] = 7044, + ["countryId"] = 21, + ["pos"] = + { + ["y"] = 0, + ["x"] = -164283.859375, + ["z"] = 265426.875, + }, -- end of ["pos"] + }, -- end of [16803840] [16781568] = { ["alt"] = 500, @@ -2166,38 +2245,6 @@ aliveUnits = ["z"] = 615841.88237501, }, -- end of ["pos"] }, -- end of [16781568] - [16783616] = - { - ["point"] = - { - ["y"] = 654705.71428571, - ["x"] = -293002.85714286, - }, -- end of ["point"] - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16783616, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["unitName"] = "RuBTRs5", - ["heading"] = -1.7994767003775, - ["unitId"] = 31, - ["groupName"] = "RuBTRs", - ["countryId"] = 0, - ["coalition"] = "red", - ["x"] = -293002.85714286, - ["type"] = "BTR-80", - ["groupId"] = 13, - ["country"] = "russia", - ["playerCanDrive"] = true, - ["y"] = 654705.71428571, - ["pos"] = - { - ["y"] = 12.108674123943, - ["x"] = -293049.90666016, - ["z"] = 654690.7394103, - }, -- end of ["pos"] - }, -- end of [16783616] [16785664] = { ["alt"] = 500, @@ -2270,18 +2317,18 @@ aliveUnits = ["y"] = 653251.42857143, ["pos"] = { - ["y"] = 10.550800822096, - ["x"] = -293165.35664945, - ["z"] = 653251.79444434, + ["y"] = 10.550834639592, + ["x"] = -293165.46162943, + ["z"] = 653251.70008691, }, -- end of ["pos"] }, -- end of [16787712] [16791808] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2295,27 +2342,27 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 695084, + ["x"] = -284914, ["coalition"] = "blue", ["type"] = "Hawk ln", ["groupId"] = 35, - ["unitId"] = 56, - ["unitName"] = "Unit #006", + ["unitId"] = 55, + ["unitName"] = "Unit #005", ["pos"] = { - ["y"] = 60.813724517822, - ["x"] = -285191.375, - ["z"] = 689972.5, + ["y"] = 74.842834472656, + ["x"] = -284914, + ["z"] = 695083.5625, }, -- end of ["pos"] }, -- end of [16791808] [16795904] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2325,57 +2372,65 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557573233, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690558, + ["x"] = -284846, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7008, - ["unitId"] = 7014, - ["unitName"] = "USA gnd 3 unit3", + ["unitId"] = 7013, + ["unitName"] = "USA gnd 3 unit2", ["pos"] = { - ["y"] = 65.613190076765, - ["x"] = -284981.99382804, - ["z"] = 691744.15185067, + ["y"] = 62.854867766404, + ["x"] = -284846.46341879, + ["z"] = 690558.47076276, }, -- end of ["pos"] }, -- end of [16795904] [16797952] = { - ["alt"] = 0, + ["alt"] = 1998, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 319595, + ["x"] = -198560, }, -- end of ["point"] + ["alt_type"] = "BARO", ["coalitionId"] = 0, - ["livery_id"] = "ReubenJames", - ["skill"] = "Average", + ["livery_id"] = "Australian 75th Squadron", + ["skill"] = "High", ["unit"] = { ["id_"] = 16797952, }, -- end of ["unit"] - ["category"] = "ship", - ["speed"] = 0, - ["type"] = "PERRY", - ["groupId"] = 7014, - ["groupName"] = "AUSTRALIA shp 2", - ["unitName"] = "AUSTRALIA shp 2 unit1", + ["category"] = "plane", + ["speed"] = 180.49294253728, + ["heading"] = 2.1995924992708, + ["groupId"] = 7013, + ["unitName"] = "AUSTRALIA air 4 unit1", + ["groupName"] = "AUSTRALIA air 4", + ["callsign"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + ["name"] = "Enfield11", + }, -- end of ["callsign"] ["coalition"] = "neutral", - ["x"] = -161099, + ["x"] = -198560, + ["unitId"] = 7021, + ["type"] = "FA-18C_hornet", ["country"] = "australia", - ["y"] = 267048, - ["heading"] = 0, - ["unitId"] = 7022, + ["y"] = 319595, ["countryId"] = 21, ["pos"] = { - ["y"] = 0, - ["x"] = -161098.828125, - ["z"] = 267047.71875, + ["y"] = 1984.4381141247, + ["x"] = -199333.93720144, + ["z"] = 320658.58260143, }, -- end of ["pos"] }, -- end of [16797952] [16800000] = @@ -2384,7 +2439,7 @@ aliveUnits = ["point"] = { ["y"] = 686871, - ["x"] = -286447, + ["x"] = -286407, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2397,21 +2452,55 @@ aliveUnits = ["type"] = "M-113", ["groupId"] = 7018, ["groupName"] = "USA gnd 6", - ["unitName"] = "USA gnd 6 unit2", + ["unitName"] = "USA gnd 6 unit1", ["countryId"] = 2, - ["x"] = -286447, + ["x"] = -286407, ["country"] = "usa", ["heading"] = 0, - ["unitId"] = 7030, + ["unitId"] = 7029, ["y"] = 686871, ["coalition"] = "blue", ["pos"] = { - ["y"] = 47.876796607959, - ["x"] = -286447.15625, + ["y"] = 47.951913858982, + ["x"] = -286407.15625, ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16800000] + [16802048] = + { + ["alt"] = 59, + ["point"] = + { + ["y"] = 692766, + ["x"] = -287511, + }, -- end of ["point"] + ["coalitionId"] = 2, + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16802048, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["speed"] = 0, + ["heading"] = 1.4977557605856, + ["country"] = "usa", + ["groupName"] = "USA gnd 7", + ["countryId"] = 2, + ["y"] = 692766, + ["x"] = -287511, + ["coalition"] = "blue", + ["type"] = "M-1 Abrams", + ["groupId"] = 7022, + ["unitId"] = 7037, + ["unitName"] = "USA gnd 7 unit4", + ["pos"] = + { + ["y"] = 59.194805123349, + ["x"] = -287511.05258727, + ["z"] = 692766.47421955, + }, -- end of ["pos"] + }, -- end of [16802048] [16777728] = { ["point"] = @@ -2477,9 +2566,9 @@ aliveUnits = ["coalition"] = "red", ["pos"] = { - ["y"] = 504.74683163756, - ["x"] = -238890.14085771, - ["z"] = 615859.871189, + ["y"] = 506.90896808275, + ["x"] = -238890.09765484, + ["z"] = 615859.43884751, }, -- end of ["pos"] }, -- end of [16781824] [16783872] = @@ -2509,9 +2598,9 @@ aliveUnits = ["y"] = 654745.71428571, ["pos"] = { - ["y"] = 12.084689792163, - ["x"] = -293047.55373527, - ["z"] = 654726.74612589, + ["y"] = 12.092081669295, + ["x"] = -293045.32029431, + ["z"] = 654735.67442175, }, -- end of ["pos"] }, -- end of [16783872] [16785920] = @@ -2553,9 +2642,9 @@ aliveUnits = ["coalition"] = "blue", ["pos"] = { - ["y"] = 878.19875528093, - ["x"] = -297388.94747588, - ["z"] = 630756.80669453, + ["y"] = 803.26614010437, + ["x"] = -297356.80664321, + ["z"] = 630659.45639512, }, -- end of ["pos"] }, -- end of [16785920] [16787968] = @@ -2585,18 +2674,18 @@ aliveUnits = ["y"] = 653291.42857143, ["pos"] = { - ["y"] = 10.50833521483, - ["x"] = -293205.33993311, - ["z"] = 653291.76519743, + ["y"] = 10.508593796065, + ["x"] = -293205.47520804, + ["z"] = 653291.70292073, }, -- end of ["pos"] }, -- end of [16787968] [16792064] = { - ["alt"] = 60, + ["alt"] = 73, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2610,61 +2699,27 @@ aliveUnits = ["country"] = "usa", ["groupName"] = "teleGroup", ["countryId"] = 2, - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694985, + ["x"] = -285104, ["coalition"] = "blue", ["type"] = "Hawk ln", ["groupId"] = 35, - ["unitId"] = 57, - ["unitName"] = "Unit #007", + ["unitId"] = 56, + ["unitName"] = "Unit #006", ["pos"] = { - ["y"] = 60.498825073242, - ["x"] = -285149.125, - ["z"] = 689859.75, + ["y"] = 73.475082397461, + ["x"] = -285103.90625, + ["z"] = 694984.875, }, -- end of ["pos"] }, -- end of [16792064] - [16794112] = - { - ["alt"] = 48, - ["point"] = - { - ["y"] = 686871, - ["x"] = -286407, - }, -- end of ["point"] - ["coalitionId"] = 2, - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16794112, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["speed"] = 0, - ["type"] = "M-113", - ["groupId"] = 7004, - ["groupName"] = "USA gnd 2", - ["unitName"] = "USA gnd 2 unit1", - ["countryId"] = 2, - ["x"] = -286407, - ["country"] = "usa", - ["heading"] = 0, - ["unitId"] = 7007, - ["y"] = 686871, - ["coalition"] = "blue", - ["pos"] = - { - ["y"] = 47.951913858982, - ["x"] = -286407.15625, - ["z"] = 686871.4375, - }, -- end of ["pos"] - }, -- end of [16794112] [16796160] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2674,99 +2729,91 @@ aliveUnits = }, -- end of ["unit"] ["category"] = "vehicle", ["speed"] = 0, - ["heading"] = 1.4977557640291, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690360, + ["x"] = -285032, ["coalition"] = "blue", ["type"] = "M-1 Abrams", ["groupId"] = 7008, - ["unitId"] = 7015, - ["unitName"] = "USA gnd 3 unit4", + ["unitId"] = 7014, + ["unitName"] = "USA gnd 3 unit3", ["pos"] = { - ["y"] = 65.202388017452, - ["x"] = -285098.05627546, - ["z"] = 691756.83934286, + ["y"] = 61.763868858352, + ["x"] = -285032.15427946, + ["z"] = 690360.06593797, }, -- end of ["pos"] }, -- end of [16796160] [16798208] = { - ["alt"] = 69, + ["alt"] = 0, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] - ["coalitionId"] = 2, + ["coalitionId"] = 0, + ["livery_id"] = "ReubenJames", ["skill"] = "Average", ["unit"] = { ["id_"] = 16798208, }, -- end of ["unit"] - ["category"] = "vehicle", + ["category"] = "ship", ["speed"] = 0, - ["heading"] = 1.4977557701918, - ["country"] = "usa", - ["groupName"] = "USA gnd 5", - ["countryId"] = 2, - ["y"] = 695073, - ["x"] = -287442, - ["coalition"] = "blue", - ["type"] = "M-1 Abrams", - ["groupId"] = 7015, - ["unitId"] = 7023, - ["unitName"] = "USA gnd 5 unit1", + ["type"] = "PERRY", + ["groupId"] = 7014, + ["groupName"] = "AUSTRALIA shp 2", + ["unitName"] = "AUSTRALIA shp 2 unit1", + ["coalition"] = "neutral", + ["x"] = -162283, + ["country"] = "australia", + ["y"] = 267810, + ["heading"] = 0, + ["unitId"] = 7022, + ["countryId"] = 21, ["pos"] = { - ["y"] = 69.448234452506, - ["x"] = -287444.96647698, - ["z"] = 695072.71255626, + ["y"] = 0, + ["x"] = -162282.96875, + ["z"] = 267810.09375, }, -- end of ["pos"] }, -- end of [16798208] [16800256] = { - ["alt"] = 1997, + ["alt"] = 48, ["point"] = { - ["y"] = 682727, - ["x"] = -288608, + ["y"] = 686871, + ["x"] = -286447, }, -- end of ["point"] - ["alt_type"] = "BARO", ["coalitionId"] = 2, - ["livery_id"] = "usaf standard", - ["skill"] = "High", + ["skill"] = "Average", ["unit"] = { ["id_"] = 16800256, }, -- end of ["unit"] - ["category"] = "plane", - ["speed"] = 138.85196364465, - ["heading"] = 1.6162179734619, - ["groupId"] = 7019, - ["unitName"] = "USA air 5 unit1", - ["groupName"] = "USA air 5", - ["callsign"] = - { - [1] = 4, - [2] = 1, - [3] = 1, - ["name"] = "Colt11", - }, -- end of ["callsign"] - ["coalition"] = "blue", - ["x"] = -288608, - ["unitId"] = 7031, - ["type"] = "B-52H", - ["country"] = "usa", - ["y"] = 682727, + ["category"] = "vehicle", + ["speed"] = 0, + ["type"] = "M-113", + ["groupId"] = 7018, + ["groupName"] = "USA gnd 6", + ["unitName"] = "USA gnd 6 unit2", ["countryId"] = 2, + ["x"] = -286447, + ["country"] = "usa", + ["heading"] = 0, + ["unitId"] = 7030, + ["y"] = 686871, + ["coalition"] = "blue", ["pos"] = { - ["y"] = 1987.3907815825, - ["x"] = -288648.02914749, - ["z"] = 683613.54764354, + ["y"] = 47.876796607959, + ["x"] = -286447.15625, + ["z"] = 686871.4375, }, -- end of ["pos"] }, -- end of [16800256] } -- end of aliveUnits diff --git a/Example DBs/mist_DBs_const.lua b/Example DBs/mist_DBs_const.lua index 8253999..54c3551 100644 --- a/Example DBs/mist_DBs_const.lua +++ b/Example DBs/mist_DBs_const.lua @@ -141,58 +141,166 @@ const = { ["groupLimit"] = 9, }, -- end of ["rules"] - ["aircraft"] = + ["TRANSPORT"] = { - ["Uzi"] = 3, - ["Pontiac"] = 8, - ["Chevy"] = 7, - ["Dodge"] = 5, - ["Ford"] = 6, - ["Enfield"] = 1, - ["Colt"] = 4, - ["Springfield"] = 2, - }, -- end of ["aircraft"] - ["unique"] = - { - ["A10"] = + ["unique"] = { - ["Boar"] = 10, - ["Pig"] = 11, - ["rules"] = + ["b52"] = { - ["canUseAircraft"] = true, - ["appliesTo"] = + ["rules"] = { - [1] = "A-10C", - [2] = "A-10A", - }, -- end of ["appliesTo"] - }, -- end of ["rules"] - ["Tusk"] = 12, - ["Hawg"] = 9, - }, -- end of ["A10"] - }, -- end of ["unique"] - ["JTAC"] = - { - ["Ferret"] = 10, - ["Finger"] = 8, - ["Deathstar"] = 15, - ["Pointer"] = 4, - ["Anvil"] = 16, - ["Darknight"] = 2, - ["Whiplash"] = 7, - ["Warrior"] = 3, - ["Eyeball"] = 5, - ["Mantis"] = 18, - ["Playboy"] = 12, - ["Axeman"] = 1, - ["Moonbeam"] = 6, - ["Hammer"] = 13, - ["Shaba"] = 11, - ["Badger"] = 19, - ["Jaguar"] = 14, - ["Firefly"] = 17, - ["Pinpoint"] = 9, - }, -- end of ["JTAC"] + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "B-52H", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Dump"] = 10, + ["Kenworth"] = 11, + ["Buff"] = 9, + }, -- end of ["b52"] + ["f15e"] = + { + ["Rage"] = 17, + ["rules"] = + { + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "F-15E", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Trek"] = 12, + ["Thud"] = 10, + ["Sled"] = 14, + ["Gunny"] = 11, + ["Dude"] = 9, + ["Tahoe"] = 18, + ["Jazz"] = 16, + ["Best"] = 15, + ["Sniper"] = 13, + }, -- end of ["f15e"] + ["A10"] = + { + ["Boar"] = 10, + ["Pig"] = 11, + ["rules"] = + { + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "A-10C_2", + [2] = "A-10C", + [3] = "A-10A", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Tusk"] = 12, + ["Hawg"] = 9, + }, -- end of ["A10"] + ["f16"] = + { + ["rules"] = + { + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "F-16C_50", + [2] = "F-16C bl.52d", + [3] = "F-16C bl.50", + [4] = "F-16A MLU", + [5] = "F-16A", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Panther"] = 15, + ["Weasel"] = 17, + ["Viper"] = 9, + ["Lobo"] = 11, + ["Jedi"] = 20, + ["Ninja"] = 19, + ["Python"] = 13, + ["Wild"] = 18, + ["Rattler"] = 14, + ["Wolf"] = 16, + ["Cowboy"] = 12, + ["Venom"] = 10, + }, -- end of ["f16"] + ["b1"] = + { + ["Dark"] = 10, + ["rules"] = + { + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "B-1B", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Vader"] = 11, + ["Bone"] = 9, + }, -- end of ["b1"] + ["f18"] = + { + ["Jury"] = 14, + ["rules"] = + { + ["canUseAircraft"] = true, + ["appliesTo"] = + { + [1] = "FA-18C_hornet", + [2] = "F/A-18C", + }, -- end of ["appliesTo"] + }, -- end of ["rules"] + ["Ram"] = 16, + ["Roman"] = 12, + ["Hornet"] = 9, + ["Squid"] = 10, + ["Snake"] = 20, + ["Hawk"] = 17, + ["Devil"] = 18, + ["Check"] = 19, + ["Ragin"] = 11, + ["Jokey"] = 15, + ["Sting"] = 13, + }, -- end of ["f18"] + }, -- end of ["unique"] + ["Trash"] = 10, + ["aircraft"] = + { + ["Uzi"] = 3, + ["Pontiac"] = 8, + ["Chevy"] = 7, + ["Dodge"] = 5, + ["Ford"] = 6, + ["Enfield"] = 1, + ["Colt"] = 4, + ["Springfield"] = 2, + }, -- end of ["aircraft"] + ["JTAC"] = + { + ["Ferret"] = 10, + ["Finger"] = 8, + ["Deathstar"] = 15, + ["Pointer"] = 4, + ["Anvil"] = 16, + ["Darknight"] = 2, + ["Whiplash"] = 7, + ["Warrior"] = 3, + ["Eyeball"] = 5, + ["Mantis"] = 18, + ["Playboy"] = 12, + ["Axeman"] = 1, + ["Moonbeam"] = 6, + ["Hammer"] = 13, + ["Shaba"] = 11, + ["Badger"] = 19, + ["Jaguar"] = 14, + ["Firefly"] = 17, + ["Pinpoint"] = 9, + }, -- end of ["JTAC"] + ["Ascot"] = 12, + ["Cargo"] = 11, + ["Heavy"] = 9, + }, -- end of ["TRANSPORT"] ["TANKER"] = { ["Texaco"] = 1, diff --git a/Example DBs/mist_DBs_deadObjects.lua b/Example DBs/mist_DBs_deadObjects.lua index 83a387d..f8de8f4 100644 --- a/Example DBs/mist_DBs_deadObjects.lua +++ b/Example DBs/mist_DBs_deadObjects.lua @@ -1,58 +1,12 @@ deadObjects = { - [16783360] = - { - ["objectPos"] = - { - ["y"] = 11.949347758943, - ["x"] = -293002.76155801, - ["z"] = 654661.93956923, - }, -- end of ["objectPos"] - ["objectType"] = "vehicle", - ["objectData"] = - { - ["point"] = - { - ["y"] = 654665.71428571, - ["x"] = -292962.85714286, - }, -- end of ["point"] - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16783360, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["unitName"] = "RuBTRs4", - ["type"] = "BTR-80", - ["groupId"] = 13, - ["groupName"] = "RuBTRs", - ["countryId"] = 0, - ["coalition"] = "red", - ["x"] = -292962.85714286, - ["y"] = 654665.71428571, - ["heading"] = -1.7994767003775, - ["unitId"] = 30, - ["playerCanDrive"] = true, - ["country"] = "russia", - ["pos"] = - { - ["y"] = 11.942705180761, - ["x"] = -292999.01167319, - ["z"] = 654661.6137778, - }, -- end of ["pos"] - }, -- end of ["objectData"] - ["object"] = - { - ["id_"] = 16783360, - }, -- end of ["object"] - }, -- end of [16783360] [16782592] = { ["objectPos"] = { - ["y"] = 11.745858960922, - ["x"] = -292853.03376572, - ["z"] = 654539.31845625, + ["y"] = 11.75361563721, + ["x"] = -292856.39553252, + ["z"] = 654542.61205442, }, -- end of ["objectPos"] ["objectType"] = "vehicle", ["objectData"] = @@ -82,9 +36,9 @@ deadObjects = ["country"] = "russia", ["pos"] = { - ["y"] = 11.750308354347, - ["x"] = -292852.11861931, - ["z"] = 654539.33966137, + ["y"] = 11.754341371009, + ["x"] = -292856.19491841, + ["z"] = 654542.5822736, }, -- end of ["pos"] }, -- end of ["objectData"] ["object"] = @@ -92,59 +46,13 @@ deadObjects = ["id_"] = 16782592, }, -- end of ["object"] }, -- end of [16782592] - [16783616] = - { - ["objectPos"] = - { - ["y"] = 12.114658336158, - ["x"] = -293052.09177348, - ["z"] = 654688.79118826, - }, -- end of ["objectPos"] - ["objectType"] = "vehicle", - ["objectData"] = - { - ["point"] = - { - ["y"] = 654705.71428571, - ["x"] = -293002.85714286, - }, -- end of ["point"] - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16783616, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["unitName"] = "RuBTRs5", - ["type"] = "BTR-80", - ["groupId"] = 13, - ["groupName"] = "RuBTRs", - ["countryId"] = 0, - ["coalition"] = "red", - ["x"] = -293002.85714286, - ["y"] = 654705.71428571, - ["heading"] = -1.7994767003775, - ["unitId"] = 31, - ["playerCanDrive"] = true, - ["country"] = "russia", - ["pos"] = - { - ["y"] = 12.108674123943, - ["x"] = -293049.90666016, - ["z"] = 654690.7394103, - }, -- end of ["pos"] - }, -- end of ["objectData"] - ["object"] = - { - ["id_"] = 16783616, - }, -- end of ["object"] - }, -- end of [16783616] [16782848] = { ["objectPos"] = { - ["y"] = 11.895307197448, - ["x"] = -292885.90343864, - ["z"] = 654581.74191148, + ["y"] = 11.829393615855, + ["x"] = -292900.70531913, + ["z"] = 654582.31756955, }, -- end of ["objectPos"] ["objectType"] = "vehicle", ["objectData"] = @@ -174,9 +82,9 @@ deadObjects = ["country"] = "russia", ["pos"] = { - ["y"] = 11.896243705612, - ["x"] = -292885.8154643, - ["z"] = 654581.81480703, + ["y"] = 11.835539878247, + ["x"] = -292898.99755273, + ["z"] = 654582.04906262, }, -- end of ["pos"] }, -- end of ["objectData"] ["object"] = @@ -184,59 +92,13 @@ deadObjects = ["id_"] = 16782848, }, -- end of ["object"] }, -- end of [16782848] - [16783872] = - { - ["objectPos"] = - { - ["y"] = 12.083325901948, - ["x"] = -293047.96598556, - ["z"] = 654725.0984902, - }, -- end of ["objectPos"] - ["objectType"] = "vehicle", - ["objectData"] = - { - ["point"] = - { - ["y"] = 654745.71428571, - ["x"] = -293042.85714286, - }, -- end of ["point"] - ["skill"] = "Average", - ["unit"] = - { - ["id_"] = 16783872, - }, -- end of ["unit"] - ["category"] = "vehicle", - ["unitName"] = "RuBTRs6", - ["type"] = "BTR-80", - ["groupId"] = 13, - ["groupName"] = "RuBTRs", - ["countryId"] = 0, - ["coalition"] = "red", - ["x"] = -293042.85714286, - ["y"] = 654745.71428571, - ["heading"] = -1.7994767003775, - ["unitId"] = 32, - ["playerCanDrive"] = true, - ["country"] = "russia", - ["pos"] = - { - ["y"] = 12.084689792163, - ["x"] = -293047.55373527, - ["z"] = 654726.74612589, - }, -- end of ["pos"] - }, -- end of ["objectData"] - ["object"] = - { - ["id_"] = 16783872, - }, -- end of ["object"] - }, -- end of [16783872] [16783104] = { ["objectPos"] = { - ["y"] = 11.916789886161, - ["x"] = -292939.16858087, - ["z"] = 654619.78649539, + ["y"] = 11.923311694265, + ["x"] = -292943.35378497, + ["z"] = 654623.45115955, }, -- end of ["objectPos"] ["objectType"] = "vehicle", ["objectData"] = @@ -266,9 +128,9 @@ deadObjects = ["country"] = "russia", ["pos"] = { - ["y"] = 11.927206059256, - ["x"] = -292936.5144784, - ["z"] = 654619.49063824, + ["y"] = 11.931074299111, + ["x"] = -292941.20047403, + ["z"] = 654623.11353253, }, -- end of ["pos"] }, -- end of ["objectData"] ["object"] = @@ -276,4 +138,50 @@ deadObjects = ["id_"] = 16783104, }, -- end of ["object"] }, -- end of [16783104] + [16783616] = + { + ["objectPos"] = + { + ["y"] = 12.057971873824, + ["x"] = -293013.37808746, + ["z"] = 654700.95592945, + }, -- end of ["objectPos"] + ["objectType"] = "vehicle", + ["objectData"] = + { + ["point"] = + { + ["y"] = 654705.71428571, + ["x"] = -293002.85714286, + }, -- end of ["point"] + ["skill"] = "Average", + ["unit"] = + { + ["id_"] = 16783616, + }, -- end of ["unit"] + ["category"] = "vehicle", + ["unitName"] = "RuBTRs5", + ["type"] = "BTR-80", + ["groupId"] = 13, + ["groupName"] = "RuBTRs", + ["countryId"] = 0, + ["coalition"] = "red", + ["x"] = -293002.85714286, + ["y"] = 654705.71428571, + ["heading"] = -1.7994767003775, + ["unitId"] = 31, + ["playerCanDrive"] = true, + ["country"] = "russia", + ["pos"] = + { + ["y"] = 12.057955079325, + ["x"] = -293012.83464525, + ["z"] = 654701.02104299, + }, -- end of ["pos"] + }, -- end of ["objectData"] + ["object"] = + { + ["id_"] = 16783616, + }, -- end of ["object"] + }, -- end of [16783616] } -- end of deadObjects diff --git a/Example DBs/mist_DBs_drawingByName.lua b/Example DBs/mist_DBs_drawingByName.lua new file mode 100644 index 0000000..62b9170 --- /dev/null +++ b/Example DBs/mist_DBs_drawingByName.lua @@ -0,0 +1,232 @@ +drawingByName = +{ + ["Blue Line"] = + { + ["visible"] = true, + ["mapY"] = 653204.31828899, + ["primitiveType"] = "Line", + ["layer"] = "Author", + ["closed"] = false, + ["thickness"] = 8, + ["lineMode"] = "segments", + ["style"] = "solid", + ["layerName"] = "Author", + ["name"] = "Blue Line", + ["points"] = + { + [1] = + { + ["y"] = 653204.31828899, + ["x"] = -91302.340018104, + }, -- end of [1] + [2] = + { + ["y"] = 723491.4290735, + ["x"] = -90143.761268909, + }, -- end of [2] + [3] = + { + ["y"] = 725036.2007391, + ["x"] = -129921.63165795, + }, -- end of [3] + [4] = + { + ["y"] = 669810.61369412, + ["x"] = -127604.47415956, + }, -- end of [4] + [5] = + { + ["y"] = 707271.32658477, + ["x"] = -161203.25788622, + }, -- end of [5] + }, -- end of ["points"] + ["mapX"] = -91302.340018104, + ["colorString"] = "0x0000ffff", + }, -- end of ["Blue Line"] + ["Text Box 1"] = + { + ["visible"] = true, + ["fontSize"] = 24, + ["mapY"] = 821584.42983871, + ["primitiveType"] = "TextBox", + ["layer"] = "Author", + ["font"] = "DejaVuLGCSansCondensed.ttf", + ["mapX"] = -217973.61659679, + ["colorString"] = "0x004040ff", + ["name"] = "Text Box 1", + ["angle"] = 0, + ["text"] = "Objective HERE", + ["fillColorString"] = "0x00000080", + ["borderThickness"] = 4, + ["layerName"] = "Author", + }, -- end of ["Text Box 1"] + ["Red Line"] = + { + ["visible"] = true, + ["mapY"] = 624626.04247551, + ["primitiveType"] = "Line", + ["layer"] = "Author", + ["closed"] = false, + ["thickness"] = 8, + ["lineMode"] = "segment", + ["style"] = "solid", + ["layerName"] = "Author", + ["name"] = "Red Line", + ["points"] = + { + [1] = + { + ["y"] = 624626.04247551, + ["x"] = -35304.367140331, + }, -- end of [1] + [2] = + { + ["y"] = 650887.1607906, + ["x"] = -87440.410854119, + }, -- end of [2] + }, -- end of ["points"] + ["mapX"] = -35304.367140331, + ["colorString"] = "0xff0000ff", + }, -- end of ["Red Line"] + ["ellipse"] = + { + ["visible"] = true, + ["points"] = + { + [1] = + { + ["y"] = 830250.78116076, + ["x"] = 11345.221862616, + }, -- end of [1] + [2] = + { + ["y"] = 830744.08029641, + ["x"] = 5911.6635979767, + }, -- end of [2] + [3] = + { + ["y"] = 829981.52257348, + ["x"] = -2199.1070035738, + }, -- end of [3] + [4] = + { + ["y"] = 828015.0750406, + ["x"] = -12434.354329222, + }, -- end of [4] + [5] = + { + ["y"] = 824978.74784743, + ["x"] = -24096.563188272, + }, -- end of [5] + [6] = + { + ["y"] = 821079.46167442, + ["x"] = -36390.973319689, + }, -- end of [6] + [7] = + { + ["y"] = 816582.94643038, + ["x"] = -48479.740990492, + }, -- end of [7] + [8] = + { + ["y"] = 811795.63219835, + ["x"] = -59539.036661549, + }, -- end of [8] + [9] = + { + ["y"] = 807043.76653182, + ["x"] = -68815.187609226, + }, -- end of [9] + [10] = + { + ["y"] = 802651.18122316, + ["x"] = -75676.039476005, + }, -- end of [10] + [11] = + { + ["y"] = 798917.22370205, + ["x"] = -79654.036545258, + }, -- end of [11] + [12] = + { + ["y"] = 796096.35700289, + ["x"] = -80478.084890666, + }, -- end of [12] + [13] = + { + ["y"] = 794380.81852954, + ["x"] = -78092.026979294, + }, -- end of [13] + [14] = + { + ["y"] = 793887.51939389, + ["x"] = -72658.468714655, + }, -- end of [14] + [15] = + { + ["y"] = 794650.07711682, + ["x"] = -64547.698113104, + }, -- end of [15] + [16] = + { + ["y"] = 796616.5246497, + ["x"] = -54312.450787456, + }, -- end of [16] + [17] = + { + ["y"] = 799652.85184287, + ["x"] = -42650.241928406, + }, -- end of [17] + [18] = + { + ["y"] = 803552.13801588, + ["x"] = -30355.831796989, + }, -- end of [18] + [19] = + { + ["y"] = 808048.65325992, + ["x"] = -18267.064126186, + }, -- end of [19] + [20] = + { + ["y"] = 812835.96749195, + ["x"] = -7207.7684551292, + }, -- end of [20] + [21] = + { + ["y"] = 817587.83315848, + ["x"] = 2068.3824925484, + }, -- end of [21] + [22] = + { + ["y"] = 821980.41846714, + ["x"] = 8929.234359327, + }, -- end of [22] + [23] = + { + ["y"] = 825714.37598825, + ["x"] = 12907.23142858, + }, -- end of [23] + [24] = + { + ["y"] = 828535.24268741, + ["x"] = 13731.279773988, + }, -- end of [24] + }, -- end of ["points"] + ["layer"] = "Author", + ["r1"] = 49818.886215397, + ["mapY"] = 812315.79984515, + ["layerName"] = "Author", + ["name"] = "ellipse", + ["fillColorString"] = "0xffffff80", + ["thickness"] = 8, + ["polygonMode"] = "oval", + ["style"] = "solid", + ["colorString"] = "0x008000ff", + ["mapX"] = -33373.402558339, + ["angle"] = 19, + ["r2"] = 9268.6299935624, + ["primitiveType"] = "Polygon", + }, -- end of ["ellipse"] +} -- end of drawingByName diff --git a/Example DBs/mist_DBs_drawingIndexed.lua b/Example DBs/mist_DBs_drawingIndexed.lua new file mode 100644 index 0000000..8fbeb07 --- /dev/null +++ b/Example DBs/mist_DBs_drawingIndexed.lua @@ -0,0 +1,266 @@ +drawingIndexed = +{ + [1] = + { + ["visible"] = true, + ["hiddenOnPlanner"] = false, + ["mapY"] = 687961.68076485, + ["primitiveType"] = "Line", + ["layer"] = "Author", + ["closed"] = false, + ["thickness"] = 8, + ["colorString"] = "0xff0000ff", + ["style"] = "solid", + ["layerName"] = "Author", + ["name"] = "Red Line", + ["points"] = + { + [1] = + { + ["y"] = 687961.68076485, + ["x"] = -129535.43874155, + }, -- end of [1] + [2] = + { + ["y"] = 687961.68076485, + ["x"] = -129535.43874155, + }, -- end of [2] + [3] = + { + ["y"] = 686803.10201565, + ["x"] = -126832.08832676, + }, -- end of [3] + }, -- end of ["points"] + ["mapX"] = -129535.43874155, + ["lineMode"] = "segments", + }, -- end of [1] + [2] = + { + ["visible"] = true, + ["mapY"] = 624626.04247551, + ["primitiveType"] = "Line", + ["layer"] = "Author", + ["closed"] = false, + ["thickness"] = 8, + ["lineMode"] = "segment", + ["style"] = "solid", + ["layerName"] = "Author", + ["name"] = "Red Line", + ["points"] = + { + [1] = + { + ["y"] = 624626.04247551, + ["x"] = -35304.367140331, + }, -- end of [1] + [2] = + { + ["y"] = 650887.1607906, + ["x"] = -87440.410854119, + }, -- end of [2] + }, -- end of ["points"] + ["mapX"] = -35304.367140331, + ["colorString"] = "0xff0000ff", + }, -- end of [2] + [3] = + { + ["visible"] = true, + ["mapY"] = 653204.31828899, + ["primitiveType"] = "Line", + ["layer"] = "Author", + ["closed"] = false, + ["thickness"] = 8, + ["lineMode"] = "segments", + ["style"] = "solid", + ["layerName"] = "Author", + ["name"] = "Blue Line", + ["points"] = + { + [1] = + { + ["y"] = 653204.31828899, + ["x"] = -91302.340018104, + }, -- end of [1] + [2] = + { + ["y"] = 723491.4290735, + ["x"] = -90143.761268909, + }, -- end of [2] + [3] = + { + ["y"] = 725036.2007391, + ["x"] = -129921.63165795, + }, -- end of [3] + [4] = + { + ["y"] = 669810.61369412, + ["x"] = -127604.47415956, + }, -- end of [4] + [5] = + { + ["y"] = 707271.32658477, + ["x"] = -161203.25788622, + }, -- end of [5] + }, -- end of ["points"] + ["mapX"] = -91302.340018104, + ["colorString"] = "0x0000ffff", + }, -- end of [3] + [4] = + { + ["visible"] = true, + ["points"] = + { + [1] = + { + ["y"] = 830250.78116076, + ["x"] = 11345.221862616, + }, -- end of [1] + [2] = + { + ["y"] = 830744.08029641, + ["x"] = 5911.6635979767, + }, -- end of [2] + [3] = + { + ["y"] = 829981.52257348, + ["x"] = -2199.1070035738, + }, -- end of [3] + [4] = + { + ["y"] = 828015.0750406, + ["x"] = -12434.354329222, + }, -- end of [4] + [5] = + { + ["y"] = 824978.74784743, + ["x"] = -24096.563188272, + }, -- end of [5] + [6] = + { + ["y"] = 821079.46167442, + ["x"] = -36390.973319689, + }, -- end of [6] + [7] = + { + ["y"] = 816582.94643038, + ["x"] = -48479.740990492, + }, -- end of [7] + [8] = + { + ["y"] = 811795.63219835, + ["x"] = -59539.036661549, + }, -- end of [8] + [9] = + { + ["y"] = 807043.76653182, + ["x"] = -68815.187609226, + }, -- end of [9] + [10] = + { + ["y"] = 802651.18122316, + ["x"] = -75676.039476005, + }, -- end of [10] + [11] = + { + ["y"] = 798917.22370205, + ["x"] = -79654.036545258, + }, -- end of [11] + [12] = + { + ["y"] = 796096.35700289, + ["x"] = -80478.084890666, + }, -- end of [12] + [13] = + { + ["y"] = 794380.81852954, + ["x"] = -78092.026979294, + }, -- end of [13] + [14] = + { + ["y"] = 793887.51939389, + ["x"] = -72658.468714655, + }, -- end of [14] + [15] = + { + ["y"] = 794650.07711682, + ["x"] = -64547.698113104, + }, -- end of [15] + [16] = + { + ["y"] = 796616.5246497, + ["x"] = -54312.450787456, + }, -- end of [16] + [17] = + { + ["y"] = 799652.85184287, + ["x"] = -42650.241928406, + }, -- end of [17] + [18] = + { + ["y"] = 803552.13801588, + ["x"] = -30355.831796989, + }, -- end of [18] + [19] = + { + ["y"] = 808048.65325992, + ["x"] = -18267.064126186, + }, -- end of [19] + [20] = + { + ["y"] = 812835.96749195, + ["x"] = -7207.7684551292, + }, -- end of [20] + [21] = + { + ["y"] = 817587.83315848, + ["x"] = 2068.3824925484, + }, -- end of [21] + [22] = + { + ["y"] = 821980.41846714, + ["x"] = 8929.234359327, + }, -- end of [22] + [23] = + { + ["y"] = 825714.37598825, + ["x"] = 12907.23142858, + }, -- end of [23] + [24] = + { + ["y"] = 828535.24268741, + ["x"] = 13731.279773988, + }, -- end of [24] + }, -- end of ["points"] + ["layer"] = "Author", + ["r1"] = 49818.886215397, + ["mapY"] = 812315.79984515, + ["layerName"] = "Author", + ["name"] = "ellipse", + ["fillColorString"] = "0xffffff80", + ["thickness"] = 8, + ["polygonMode"] = "oval", + ["style"] = "solid", + ["colorString"] = "0x008000ff", + ["mapX"] = -33373.402558339, + ["angle"] = 19, + ["r2"] = 9268.6299935624, + ["primitiveType"] = "Polygon", + }, -- end of [4] + [5] = + { + ["visible"] = true, + ["fontSize"] = 24, + ["mapY"] = 821584.42983871, + ["primitiveType"] = "TextBox", + ["layer"] = "Author", + ["font"] = "DejaVuLGCSansCondensed.ttf", + ["mapX"] = -217973.61659679, + ["colorString"] = "0x004040ff", + ["name"] = "Text Box 1", + ["angle"] = 0, + ["text"] = "Objective HERE", + ["fillColorString"] = "0x00000080", + ["borderThickness"] = 4, + ["layerName"] = "Author", + }, -- end of [5] +} -- end of drawingIndexed diff --git a/Example DBs/mist_DBs_dynGroupsAdded.lua b/Example DBs/mist_DBs_dynGroupsAdded.lua index 891d013..2652bdf 100644 --- a/Example DBs/mist_DBs_dynGroupsAdded.lua +++ b/Example DBs/mist_DBs_dynGroupsAdded.lua @@ -9,11 +9,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -23,8 +23,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -33,11 +33,11 @@ dynGroupsAdded = }, -- end of [1] [2] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -47,8 +47,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -57,11 +57,11 @@ dynGroupsAdded = }, -- end of [2] [3] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -71,8 +71,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -81,11 +81,11 @@ dynGroupsAdded = }, -- end of [3] [4] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -95,8 +95,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -105,11 +105,11 @@ dynGroupsAdded = }, -- end of [4] [5] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -119,8 +119,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -129,11 +129,11 @@ dynGroupsAdded = }, -- end of [5] [6] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -143,8 +143,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -153,11 +153,11 @@ dynGroupsAdded = }, -- end of [6] [7] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -167,8 +167,8 @@ dynGroupsAdded = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -197,8 +197,8 @@ dynGroupsAdded = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -209,12 +209,12 @@ dynGroupsAdded = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -237,26 +237,26 @@ dynGroupsAdded = { [1] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -278,11 +278,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -292,9 +292,9 @@ dynGroupsAdded = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -302,11 +302,11 @@ dynGroupsAdded = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -316,9 +316,9 @@ dynGroupsAdded = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -326,11 +326,11 @@ dynGroupsAdded = }, -- end of [2] [3] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -340,9 +340,9 @@ dynGroupsAdded = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -350,11 +350,11 @@ dynGroupsAdded = }, -- end of [3] [4] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -364,9 +364,9 @@ dynGroupsAdded = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -566,11 +566,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -581,8 +581,8 @@ dynGroupsAdded = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -609,11 +609,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -624,8 +624,8 @@ dynGroupsAdded = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -710,22 +710,22 @@ dynGroupsAdded = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -803,8 +803,8 @@ dynGroupsAdded = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -815,12 +815,12 @@ dynGroupsAdded = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -843,11 +843,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -857,9 +857,9 @@ dynGroupsAdded = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -867,11 +867,11 @@ dynGroupsAdded = }, -- end of [1] [2] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -881,9 +881,9 @@ dynGroupsAdded = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -891,11 +891,11 @@ dynGroupsAdded = }, -- end of [2] [3] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -905,9 +905,9 @@ dynGroupsAdded = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -915,11 +915,11 @@ dynGroupsAdded = }, -- end of [3] [4] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -929,9 +929,9 @@ dynGroupsAdded = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -1023,11 +1023,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1037,9 +1037,9 @@ dynGroupsAdded = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -1047,11 +1047,11 @@ dynGroupsAdded = }, -- end of [1] [2] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1061,9 +1061,9 @@ dynGroupsAdded = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -1071,11 +1071,11 @@ dynGroupsAdded = }, -- end of [2] [3] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1085,9 +1085,9 @@ dynGroupsAdded = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -1095,11 +1095,11 @@ dynGroupsAdded = }, -- end of [3] [4] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1109,9 +1109,9 @@ dynGroupsAdded = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -1257,11 +1257,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1272,8 +1272,8 @@ dynGroupsAdded = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -1354,26 +1354,26 @@ dynGroupsAdded = { [1] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1397,8 +1397,8 @@ dynGroupsAdded = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1409,12 +1409,12 @@ dynGroupsAdded = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -1557,11 +1557,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1571,9 +1571,9 @@ dynGroupsAdded = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -1581,23 +1581,23 @@ dynGroupsAdded = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -1605,23 +1605,23 @@ dynGroupsAdded = }, -- end of [2] [3] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -1629,23 +1629,23 @@ dynGroupsAdded = }, -- end of [3] [4] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -1727,8 +1727,8 @@ dynGroupsAdded = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1739,12 +1739,12 @@ dynGroupsAdded = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -1767,11 +1767,11 @@ dynGroupsAdded = { [1] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1782,8 +1782,8 @@ dynGroupsAdded = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -1810,26 +1810,26 @@ dynGroupsAdded = { [1] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, diff --git a/Example DBs/mist_DBs_groupsById.lua b/Example DBs/mist_DBs_groupsById.lua index 6bb2060..f9e473a 100644 --- a/Example DBs/mist_DBs_groupsById.lua +++ b/Example DBs/mist_DBs_groupsById.lua @@ -1414,25 +1414,25 @@ groupsById = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [1] }, -- end of ["units"] }, -- end of [31] @@ -1449,25 +1449,25 @@ groupsById = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [1] }, -- end of ["units"] }, -- end of [32] @@ -1592,11 +1592,11 @@ groupsById = { [1] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1606,8 +1606,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -1616,11 +1616,11 @@ groupsById = }, -- end of [1] [2] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1630,8 +1630,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -1640,11 +1640,11 @@ groupsById = }, -- end of [2] [3] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1654,8 +1654,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -1664,11 +1664,11 @@ groupsById = }, -- end of [3] [4] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1678,8 +1678,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -1688,11 +1688,11 @@ groupsById = }, -- end of [4] [5] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1702,8 +1702,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -1712,11 +1712,11 @@ groupsById = }, -- end of [5] [6] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1726,8 +1726,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -1736,11 +1736,11 @@ groupsById = }, -- end of [6] [7] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1750,8 +1750,8 @@ groupsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -1934,25 +1934,25 @@ groupsById = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [1] }, -- end of ["units"] }, -- end of [40] @@ -1968,25 +1968,25 @@ groupsById = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [1] }, -- end of ["units"] }, -- end of [41] @@ -2255,8 +2255,8 @@ groupsById = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2267,12 +2267,12 @@ groupsById = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -2295,11 +2295,11 @@ groupsById = { [1] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2309,9 +2309,9 @@ groupsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -2319,11 +2319,11 @@ groupsById = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2333,9 +2333,9 @@ groupsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -2343,11 +2343,11 @@ groupsById = }, -- end of [2] [3] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2357,9 +2357,9 @@ groupsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -2367,11 +2367,11 @@ groupsById = }, -- end of [3] [4] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2381,9 +2381,9 @@ groupsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -2517,11 +2517,11 @@ groupsById = { [1] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2532,8 +2532,8 @@ groupsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -2562,8 +2562,8 @@ groupsById = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2574,12 +2574,12 @@ groupsById = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -2668,11 +2668,11 @@ groupsById = { [1] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2683,8 +2683,8 @@ groupsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -2713,8 +2713,8 @@ groupsById = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2725,12 +2725,12 @@ groupsById = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -2819,11 +2819,11 @@ groupsById = { [1] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2833,9 +2833,9 @@ groupsById = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -2843,23 +2843,23 @@ groupsById = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2867,23 +2867,23 @@ groupsById = }, -- end of [2] [3] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2891,23 +2891,23 @@ groupsById = }, -- end of [3] [4] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -2989,8 +2989,8 @@ groupsById = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -3001,12 +3001,12 @@ groupsById = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -3095,11 +3095,11 @@ groupsById = { [1] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3109,9 +3109,9 @@ groupsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -3119,11 +3119,11 @@ groupsById = }, -- end of [1] [2] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3133,9 +3133,9 @@ groupsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -3143,11 +3143,11 @@ groupsById = }, -- end of [2] [3] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3157,9 +3157,9 @@ groupsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -3167,11 +3167,11 @@ groupsById = }, -- end of [3] [4] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3181,9 +3181,9 @@ groupsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -3317,26 +3317,26 @@ groupsById = { [1] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -3424,11 +3424,11 @@ groupsById = { [1] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3438,9 +3438,9 @@ groupsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -3448,11 +3448,11 @@ groupsById = }, -- end of [1] [2] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3462,9 +3462,9 @@ groupsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -3472,11 +3472,11 @@ groupsById = }, -- end of [2] [3] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3486,9 +3486,9 @@ groupsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -3496,11 +3496,11 @@ groupsById = }, -- end of [3] [4] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3510,9 +3510,9 @@ groupsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -3596,22 +3596,22 @@ groupsById = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -3687,11 +3687,11 @@ groupsById = { [1] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -3702,8 +3702,8 @@ groupsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, diff --git a/Example DBs/mist_DBs_groupsByName.lua b/Example DBs/mist_DBs_groupsByName.lua index a47f6ef..3d35283 100644 --- a/Example DBs/mist_DBs_groupsByName.lua +++ b/Example DBs/mist_DBs_groupsByName.lua @@ -10,11 +10,11 @@ groupsByName = { [1] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -25,8 +25,8 @@ groupsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -343,25 +343,25 @@ groupsByName = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [1] }, -- end of ["units"] }, -- end of ["cloneCargoBase"] @@ -929,25 +929,25 @@ groupsByName = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [1] }, -- end of ["units"] }, -- end of ["static_on_ship1"] @@ -1115,26 +1115,26 @@ groupsByName = { [1] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1216,22 +1216,22 @@ groupsByName = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1255,8 +1255,8 @@ groupsByName = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1267,12 +1267,12 @@ groupsByName = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -1297,8 +1297,8 @@ groupsByName = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1309,12 +1309,12 @@ groupsByName = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -1337,11 +1337,11 @@ groupsByName = { [1] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1352,8 +1352,8 @@ groupsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -1697,26 +1697,26 @@ groupsByName = { [1] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1741,25 +1741,25 @@ groupsByName = [1] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [1] }, -- end of ["units"] }, -- end of ["cargoBob"] @@ -1919,11 +1919,11 @@ groupsByName = { [1] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1933,9 +1933,9 @@ groupsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -1943,11 +1943,11 @@ groupsByName = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1957,9 +1957,9 @@ groupsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -1967,11 +1967,11 @@ groupsByName = }, -- end of [2] [3] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1981,9 +1981,9 @@ groupsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -1991,11 +1991,11 @@ groupsByName = }, -- end of [3] [4] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2005,9 +2005,9 @@ groupsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -2066,11 +2066,11 @@ groupsByName = { [1] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2080,8 +2080,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -2090,11 +2090,11 @@ groupsByName = }, -- end of [1] [2] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2104,8 +2104,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -2114,11 +2114,11 @@ groupsByName = }, -- end of [2] [3] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2128,8 +2128,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -2138,11 +2138,11 @@ groupsByName = }, -- end of [3] [4] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2152,8 +2152,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -2162,11 +2162,11 @@ groupsByName = }, -- end of [4] [5] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2176,8 +2176,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -2186,11 +2186,11 @@ groupsByName = }, -- end of [5] [6] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2200,8 +2200,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -2210,11 +2210,11 @@ groupsByName = }, -- end of [6] [7] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2224,8 +2224,8 @@ groupsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -2310,8 +2310,8 @@ groupsByName = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2322,12 +2322,12 @@ groupsByName = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -2457,11 +2457,11 @@ groupsByName = { [1] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2471,9 +2471,9 @@ groupsByName = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -2481,23 +2481,23 @@ groupsByName = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2505,23 +2505,23 @@ groupsByName = }, -- end of [2] [3] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2529,23 +2529,23 @@ groupsByName = }, -- end of [3] [4] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -2740,26 +2740,26 @@ groupsByName = { [1] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -2955,11 +2955,11 @@ groupsByName = { [1] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2969,9 +2969,9 @@ groupsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -2979,11 +2979,11 @@ groupsByName = }, -- end of [1] [2] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2993,9 +2993,9 @@ groupsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -3003,11 +3003,11 @@ groupsByName = }, -- end of [2] [3] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3017,9 +3017,9 @@ groupsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -3027,11 +3027,11 @@ groupsByName = }, -- end of [3] [4] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3041,9 +3041,9 @@ groupsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -3135,11 +3135,11 @@ groupsByName = { [1] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3149,9 +3149,9 @@ groupsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -3159,11 +3159,11 @@ groupsByName = }, -- end of [1] [2] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3173,9 +3173,9 @@ groupsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -3183,11 +3183,11 @@ groupsByName = }, -- end of [2] [3] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3197,9 +3197,9 @@ groupsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -3207,11 +3207,11 @@ groupsByName = }, -- end of [3] [4] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -3221,9 +3221,9 @@ groupsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -3484,8 +3484,8 @@ groupsByName = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -3496,12 +3496,12 @@ groupsByName = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -3526,25 +3526,25 @@ groupsByName = { [1] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [1] }, -- end of ["units"] }, -- end of ["static_on_ship1 #001"] @@ -3823,11 +3823,11 @@ groupsByName = { [1] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -3838,8 +3838,8 @@ groupsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -3866,11 +3866,11 @@ groupsByName = { [1] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -3881,8 +3881,8 @@ groupsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, diff --git a/Example DBs/mist_DBs_markList.lua b/Example DBs/mist_DBs_markList.lua index 25100f2..1c9641e 100644 --- a/Example DBs/mist_DBs_markList.lua +++ b/Example DBs/mist_DBs_markList.lua @@ -140,11 +140,11 @@ markList = ["pos"] = { ["y"] = 0, - ["x"] = -355263.93360573, + ["x"] = -355264.17692343, [1] = { ["y"] = 0, - ["x"] = -355263.93360573, + ["x"] = -355264.17692343, ["z"] = 443853.03125, }, -- end of [1] ["z"] = 443853.03125, @@ -293,11 +293,11 @@ markList = ["pos"] = { ["y"] = 0, - ["x"] = -356064.09419542, + ["x"] = -356063.91153006, [1] = { ["y"] = 0, - ["x"] = -356064.09419542, + ["x"] = -356063.91153006, ["z"] = 444653.03125, }, -- end of [1] ["z"] = 444653.03125, diff --git a/Example DBs/mist_DBs_missionData.lua b/Example DBs/mist_DBs_missionData.lua index 4aa2080..1623ebc 100644 --- a/Example DBs/mist_DBs_missionData.lua +++ b/Example DBs/mist_DBs_missionData.lua @@ -1,6 +1,6 @@ missionData = { - ["version"] = 19, + ["version"] = 20, ["files"] = { }, -- end of ["files"] diff --git a/Example DBs/mist_DBs_removedAliveUnits.lua b/Example DBs/mist_DBs_removedAliveUnits.lua index d5dce08..d36d74a 100644 --- a/Example DBs/mist_DBs_removedAliveUnits.lua +++ b/Example DBs/mist_DBs_removedAliveUnits.lua @@ -96,38 +96,38 @@ removedAliveUnits = ["z"] = 681535.125, }, -- end of ["pos"] }, -- end of [16790016] - [16790272] = + [16782592] = { ["point"] = { - ["y"] = 681535.14285714, - ["x"] = -287156.85714286, + ["y"] = 654545.71428571, + ["x"] = -292842.85714286, }, -- end of ["point"] ["skill"] = "Average", ["unit"] = { - ["id_"] = 16790272, + ["id_"] = 16782592, }, -- end of ["unit"] ["category"] = "vehicle", - ["unitName"] = "Unit #008", - ["heading"] = 0, - ["unitId"] = 58, - ["groupName"] = "teleGroup", - ["countryId"] = 2, - ["coalition"] = "blue", - ["x"] = -287156.85714286, - ["type"] = "Hawk cwar", - ["groupId"] = 35, - ["country"] = "usa", + ["unitName"] = "RuBTRs1", + ["heading"] = -1.7994767003775, + ["unitId"] = 27, + ["groupName"] = "RuBTRs", + ["countryId"] = 0, + ["coalition"] = "red", + ["x"] = -292842.85714286, + ["type"] = "BTR-80", + ["groupId"] = 13, + ["country"] = "russia", ["playerCanDrive"] = true, - ["y"] = 681535.14285714, + ["y"] = 654545.71428571, ["pos"] = { - ["y"] = 34.752384185791, - ["x"] = -287156.84375, - ["z"] = 681535.125, + ["y"] = 11.754341371009, + ["x"] = -292856.19491841, + ["z"] = 654542.5822736, }, -- end of ["pos"] - }, -- end of [16790272] + }, -- end of [16782592] [16782848] = { ["point"] = @@ -155,9 +155,9 @@ removedAliveUnits = ["y"] = 654585.71428571, ["pos"] = { - ["y"] = 11.896243705612, - ["x"] = -292885.8154643, - ["z"] = 654581.81480703, + ["y"] = 11.835539878247, + ["x"] = -292898.99755273, + ["z"] = 654582.04906262, }, -- end of ["pos"] }, -- end of [16782848] [16783104] = @@ -187,43 +187,43 @@ removedAliveUnits = ["y"] = 654625.71428571, ["pos"] = { - ["y"] = 11.927206059256, - ["x"] = -292936.5144784, - ["z"] = 654619.49063824, + ["y"] = 11.931074299111, + ["x"] = -292941.20047403, + ["z"] = 654623.11353253, }, -- end of ["pos"] }, -- end of [16783104] - [16783360] = + [16783616] = { ["point"] = { - ["y"] = 654665.71428571, - ["x"] = -292962.85714286, + ["y"] = 654705.71428571, + ["x"] = -293002.85714286, }, -- end of ["point"] ["skill"] = "Average", ["unit"] = { - ["id_"] = 16783360, + ["id_"] = 16783616, }, -- end of ["unit"] ["category"] = "vehicle", - ["unitName"] = "RuBTRs4", + ["unitName"] = "RuBTRs5", ["heading"] = -1.7994767003775, - ["unitId"] = 30, + ["unitId"] = 31, ["groupName"] = "RuBTRs", ["countryId"] = 0, ["coalition"] = "red", - ["x"] = -292962.85714286, + ["x"] = -293002.85714286, ["type"] = "BTR-80", ["groupId"] = 13, ["country"] = "russia", ["playerCanDrive"] = true, - ["y"] = 654665.71428571, + ["y"] = 654705.71428571, ["pos"] = { - ["y"] = 11.942705180761, - ["x"] = -292999.01167319, - ["z"] = 654661.6137778, + ["y"] = 12.057955079325, + ["x"] = -293012.83464525, + ["z"] = 654701.02104299, }, -- end of ["pos"] - }, -- end of [16783360] + }, -- end of [16783616] [16788736] = { ["point"] = @@ -320,36 +320,36 @@ removedAliveUnits = ["z"] = 681535.125, }, -- end of ["pos"] }, -- end of [16789248] - [16782592] = + [16790272] = { ["point"] = { - ["y"] = 654545.71428571, - ["x"] = -292842.85714286, + ["y"] = 681535.14285714, + ["x"] = -287156.85714286, }, -- end of ["point"] ["skill"] = "Average", ["unit"] = { - ["id_"] = 16782592, + ["id_"] = 16790272, }, -- end of ["unit"] ["category"] = "vehicle", - ["unitName"] = "RuBTRs1", - ["heading"] = -1.7994767003775, - ["unitId"] = 27, - ["groupName"] = "RuBTRs", - ["countryId"] = 0, - ["coalition"] = "red", - ["x"] = -292842.85714286, - ["type"] = "BTR-80", - ["groupId"] = 13, - ["country"] = "russia", + ["unitName"] = "Unit #008", + ["heading"] = 0, + ["unitId"] = 58, + ["groupName"] = "teleGroup", + ["countryId"] = 2, + ["coalition"] = "blue", + ["x"] = -287156.85714286, + ["type"] = "Hawk cwar", + ["groupId"] = 35, + ["country"] = "usa", ["playerCanDrive"] = true, - ["y"] = 654545.71428571, + ["y"] = 681535.14285714, ["pos"] = { - ["y"] = 11.750308354347, - ["x"] = -292852.11861931, - ["z"] = 654539.33966137, + ["y"] = 34.752384185791, + ["x"] = -287156.84375, + ["z"] = 681535.125, }, -- end of ["pos"] - }, -- end of [16782592] + }, -- end of [16790272] } -- end of removedAliveUnits diff --git a/Example DBs/mist_DBs_units.lua b/Example DBs/mist_DBs_units.lua index 770a0e8..cb722ce 100644 --- a/Example DBs/mist_DBs_units.lua +++ b/Example DBs/mist_DBs_units.lua @@ -55,8 +55,8 @@ units = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -67,12 +67,12 @@ units = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -97,8 +97,8 @@ units = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -109,12 +109,12 @@ units = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -139,8 +139,8 @@ units = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -151,12 +151,12 @@ units = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -181,8 +181,8 @@ units = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -193,12 +193,12 @@ units = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [1] }, -- end of ["units"] @@ -802,25 +802,25 @@ units = [1] = { ["shape_name"] = "ab-212_cargo", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["country"] = "usa", + ["groupId"] = 31, ["mass"] = 371, - ["categoryStatic"] = "Cargos", + ["heading"] = 0, ["groupName"] = "cargoBob", - ["type"] = "uh1h_cargo", - ["countryId"] = 2, + ["country"] = "usa", + ["y"] = 675199.99999999, ["x"] = -292007.14285714, - ["unitId"] = 45, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", - ["groupId"] = 31, + ["countryId"] = 2, + ["unitId"] = 45, ["coalition"] = "blue", - ["y"] = 675199.99999999, }, -- end of [1] }, -- end of ["units"] }, -- end of [4] @@ -837,25 +837,25 @@ units = [1] = { ["shape_name"] = "ab-212_cargo", - ["heading"] = 0, + ["type"] = "uh1h_cargo", ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["country"] = "usa", + ["groupId"] = 32, ["mass"] = 1337, - ["categoryStatic"] = "Cargos", + ["heading"] = 0, ["groupName"] = "cloneCargoBase", - ["type"] = "uh1h_cargo", - ["countryId"] = 2, + ["country"] = "usa", + ["y"] = 674842.85714285, ["x"] = -291678.57142856, - ["unitId"] = 46, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", - ["groupId"] = 32, + ["countryId"] = 2, + ["unitId"] = 46, ["coalition"] = "blue", - ["y"] = 674842.85714285, }, -- end of [1] }, -- end of ["units"] }, -- end of [5] @@ -872,24 +872,24 @@ units = [1] = { ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["country"] = "usa", - ["categoryStatic"] = "Helicopters", + ["unitId"] = 63, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["groupId"] = 40, - ["countryId"] = 2, + ["country"] = "usa", + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1", - ["unitId"] = 63, + ["groupId"] = 40, + ["countryId"] = 2, ["coalition"] = "blue", - ["y"] = 443856.28948724, }, -- end of [1] }, -- end of ["units"] }, -- end of [6] @@ -906,24 +906,24 @@ units = [1] = { ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["country"] = "usa", - ["categoryStatic"] = "Helicopters", + ["unitId"] = 64, ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["groupId"] = 41, - ["countryId"] = 2, + ["country"] = "usa", + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["type"] = "AH-1W", + ["categoryStatic"] = "Helicopters", ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["unitId"] = 64, + ["groupId"] = 41, + ["countryId"] = 2, ["coalition"] = "blue", - ["y"] = 443849.03844635, }, -- end of [1] }, -- end of ["units"] }, -- end of [7] @@ -937,26 +937,26 @@ units = { [1] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -978,11 +978,11 @@ units = { [1] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -993,8 +993,8 @@ units = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -1021,11 +1021,11 @@ units = { [1] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1036,8 +1036,8 @@ units = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -1068,22 +1068,22 @@ units = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1105,11 +1105,11 @@ units = { [1] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1120,8 +1120,8 @@ units = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -1148,26 +1148,26 @@ units = { [1] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1189,11 +1189,11 @@ units = { [1] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1204,8 +1204,8 @@ units = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -1232,26 +1232,26 @@ units = { [1] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [1] }, -- end of ["units"] ["countryId"] = 2, @@ -1540,11 +1540,11 @@ units = { [1] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1554,8 +1554,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -1564,11 +1564,11 @@ units = }, -- end of [1] [2] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1578,8 +1578,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -1588,11 +1588,11 @@ units = }, -- end of [2] [3] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1602,8 +1602,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -1612,11 +1612,11 @@ units = }, -- end of [3] [4] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1626,8 +1626,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -1636,11 +1636,11 @@ units = }, -- end of [4] [5] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1650,8 +1650,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -1660,11 +1660,11 @@ units = }, -- end of [5] [6] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1674,8 +1674,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -1684,11 +1684,11 @@ units = }, -- end of [6] [7] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1698,8 +1698,8 @@ units = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -1763,11 +1763,11 @@ units = { [1] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1777,9 +1777,9 @@ units = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -1787,11 +1787,11 @@ units = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1801,9 +1801,9 @@ units = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -1811,11 +1811,11 @@ units = }, -- end of [2] [3] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1825,9 +1825,9 @@ units = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -1835,11 +1835,11 @@ units = }, -- end of [3] [4] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1849,9 +1849,9 @@ units = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -1943,11 +1943,11 @@ units = { [1] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1957,9 +1957,9 @@ units = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -1967,11 +1967,11 @@ units = }, -- end of [1] [2] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1981,9 +1981,9 @@ units = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -1991,11 +1991,11 @@ units = }, -- end of [2] [3] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2005,9 +2005,9 @@ units = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -2015,11 +2015,11 @@ units = }, -- end of [3] [4] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2029,9 +2029,9 @@ units = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -2123,11 +2123,11 @@ units = { [1] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2137,9 +2137,9 @@ units = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -2147,11 +2147,11 @@ units = }, -- end of [1] [2] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2161,9 +2161,9 @@ units = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -2171,11 +2171,11 @@ units = }, -- end of [2] [3] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2185,9 +2185,9 @@ units = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -2195,11 +2195,11 @@ units = }, -- end of [3] [4] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2209,9 +2209,9 @@ units = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -2369,11 +2369,11 @@ units = { [1] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2383,9 +2383,9 @@ units = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -2393,23 +2393,23 @@ units = }, -- end of [1] [2] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2417,23 +2417,23 @@ units = }, -- end of [2] [3] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2441,23 +2441,23 @@ units = }, -- end of [3] [4] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, diff --git a/Example DBs/mist_DBs_unitsByCat.lua b/Example DBs/mist_DBs_unitsByCat.lua index fc11863..aff121c 100644 --- a/Example DBs/mist_DBs_unitsByCat.lua +++ b/Example DBs/mist_DBs_unitsByCat.lua @@ -389,8 +389,8 @@ unitsByCat = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -401,12 +401,12 @@ unitsByCat = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [8] [9] = @@ -414,8 +414,8 @@ unitsByCat = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -426,12 +426,12 @@ unitsByCat = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [9] [10] = @@ -439,8 +439,8 @@ unitsByCat = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -451,12 +451,12 @@ unitsByCat = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [10] [11] = @@ -464,8 +464,8 @@ unitsByCat = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -476,12 +476,12 @@ unitsByCat = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [11] }, -- end of ["ship"] @@ -577,92 +577,92 @@ unitsByCat = [5] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [5] [6] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [6] [7] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [7] [8] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [8] [9] = { @@ -795,34 +795,34 @@ unitsByCat = }, -- end of [14] [15] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [15] [16] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -833,8 +833,8 @@ unitsByCat = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -843,11 +843,11 @@ unitsByCat = }, -- end of [16] [17] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -858,8 +858,8 @@ unitsByCat = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -872,30 +872,30 @@ unitsByCat = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [18] [19] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -906,8 +906,8 @@ unitsByCat = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -916,34 +916,34 @@ unitsByCat = }, -- end of [19] [20] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [20] [21] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -954,8 +954,8 @@ unitsByCat = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -964,26 +964,26 @@ unitsByCat = }, -- end of [21] [22] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [22] }, -- end of ["static"] ["plane"] = @@ -1831,11 +1831,11 @@ unitsByCat = }, -- end of [11] [12] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1845,8 +1845,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -1855,11 +1855,11 @@ unitsByCat = }, -- end of [12] [13] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1869,8 +1869,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -1879,11 +1879,11 @@ unitsByCat = }, -- end of [13] [14] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1893,8 +1893,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -1903,11 +1903,11 @@ unitsByCat = }, -- end of [14] [15] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1917,8 +1917,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -1927,11 +1927,11 @@ unitsByCat = }, -- end of [15] [16] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1941,8 +1941,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -1951,11 +1951,11 @@ unitsByCat = }, -- end of [16] [17] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1965,8 +1965,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -1975,11 +1975,11 @@ unitsByCat = }, -- end of [17] [18] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1989,8 +1989,8 @@ unitsByCat = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -2241,11 +2241,11 @@ unitsByCat = }, -- end of [29] [30] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2255,9 +2255,9 @@ unitsByCat = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -2265,11 +2265,11 @@ unitsByCat = }, -- end of [30] [31] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2279,9 +2279,9 @@ unitsByCat = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -2289,11 +2289,11 @@ unitsByCat = }, -- end of [31] [32] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2303,9 +2303,9 @@ unitsByCat = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -2313,11 +2313,11 @@ unitsByCat = }, -- end of [32] [33] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2327,9 +2327,9 @@ unitsByCat = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -2385,11 +2385,11 @@ unitsByCat = }, -- end of [35] [36] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2399,9 +2399,9 @@ unitsByCat = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -2409,11 +2409,11 @@ unitsByCat = }, -- end of [36] [37] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2423,9 +2423,9 @@ unitsByCat = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -2433,11 +2433,11 @@ unitsByCat = }, -- end of [37] [38] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2447,9 +2447,9 @@ unitsByCat = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -2457,11 +2457,11 @@ unitsByCat = }, -- end of [38] [39] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2471,9 +2471,9 @@ unitsByCat = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -2529,11 +2529,11 @@ unitsByCat = }, -- end of [41] [42] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2543,9 +2543,9 @@ unitsByCat = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -2553,11 +2553,11 @@ unitsByCat = }, -- end of [42] [43] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2567,9 +2567,9 @@ unitsByCat = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -2577,11 +2577,11 @@ unitsByCat = }, -- end of [43] [44] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2591,9 +2591,9 @@ unitsByCat = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -2601,11 +2601,11 @@ unitsByCat = }, -- end of [44] [45] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2615,9 +2615,9 @@ unitsByCat = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -2721,11 +2721,11 @@ unitsByCat = }, -- end of [49] [50] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2735,9 +2735,9 @@ unitsByCat = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -2745,23 +2745,23 @@ unitsByCat = }, -- end of [50] [51] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2769,23 +2769,23 @@ unitsByCat = }, -- end of [51] [52] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2793,23 +2793,23 @@ unitsByCat = }, -- end of [52] [53] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, diff --git a/Example DBs/mist_DBs_unitsById.lua b/Example DBs/mist_DBs_unitsById.lua index b9a6ec7..b46d4f7 100644 --- a/Example DBs/mist_DBs_unitsById.lua +++ b/Example DBs/mist_DBs_unitsById.lua @@ -1022,48 +1022,48 @@ unitsById = [45] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [45] [46] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [46] [47] = { @@ -1201,11 +1201,11 @@ unitsById = }, -- end of [51] [52] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1215,8 +1215,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -1225,11 +1225,11 @@ unitsById = }, -- end of [52] [53] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1239,8 +1239,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -1249,11 +1249,11 @@ unitsById = }, -- end of [53] [54] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1263,8 +1263,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -1273,11 +1273,11 @@ unitsById = }, -- end of [54] [55] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1287,8 +1287,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -1297,11 +1297,11 @@ unitsById = }, -- end of [55] [56] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1311,8 +1311,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -1321,11 +1321,11 @@ unitsById = }, -- end of [56] [57] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1335,8 +1335,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -1345,11 +1345,11 @@ unitsById = }, -- end of [57] [58] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1359,8 +1359,8 @@ unitsById = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -1468,47 +1468,47 @@ unitsById = }, -- end of [62] [63] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [63] [64] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [64] [65] = { @@ -1695,11 +1695,11 @@ unitsById = }, -- end of [7030] [7015] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1709,9 +1709,9 @@ unitsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -1756,22 +1756,22 @@ unitsById = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [7016] [7032] = { @@ -1808,11 +1808,11 @@ unitsById = }, -- end of [7032] [7001] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1822,9 +1822,9 @@ unitsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -1832,11 +1832,11 @@ unitsById = }, -- end of [7001] [7017] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1847,8 +1847,8 @@ unitsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -1860,8 +1860,8 @@ unitsById = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1872,21 +1872,21 @@ unitsById = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [7033] [7002] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1896,9 +1896,9 @@ unitsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -1930,11 +1930,11 @@ unitsById = }, -- end of [7018] [7034] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1944,9 +1944,9 @@ unitsById = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -1954,11 +1954,11 @@ unitsById = }, -- end of [7034] [7003] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1968,9 +1968,9 @@ unitsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -2002,23 +2002,23 @@ unitsById = }, -- end of [7019] [7035] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2026,11 +2026,11 @@ unitsById = }, -- end of [7035] [7004] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2040,9 +2040,9 @@ unitsById = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -2083,23 +2083,23 @@ unitsById = }, -- end of [7020] [7036] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2107,26 +2107,26 @@ unitsById = }, -- end of [7036] [7005] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [7005] [7021] = { @@ -2163,23 +2163,23 @@ unitsById = }, -- end of [7021] [7037] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -2187,11 +2187,11 @@ unitsById = }, -- end of [7037] [7006] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2202,8 +2202,8 @@ unitsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -2215,8 +2215,8 @@ unitsById = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2227,36 +2227,36 @@ unitsById = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [7022] [7038] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [7038] [7007] = { @@ -2284,11 +2284,11 @@ unitsById = }, -- end of [7007] [7023] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2298,9 +2298,9 @@ unitsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -2308,11 +2308,11 @@ unitsById = }, -- end of [7023] [7039] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2323,8 +2323,8 @@ unitsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -2357,11 +2357,11 @@ unitsById = }, -- end of [7008] [7024] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2371,9 +2371,9 @@ unitsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -2438,11 +2438,11 @@ unitsById = }, -- end of [7009] [7025] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2452,9 +2452,9 @@ unitsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -2519,11 +2519,11 @@ unitsById = }, -- end of [7010] [7026] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2533,9 +2533,9 @@ unitsById = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -2579,8 +2579,8 @@ unitsById = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2591,36 +2591,36 @@ unitsById = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [7011] [7027] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [7027] [7043] = { @@ -2657,11 +2657,11 @@ unitsById = }, -- end of [7043] [7012] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2671,9 +2671,9 @@ unitsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -2681,11 +2681,11 @@ unitsById = }, -- end of [7012] [7028] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2696,8 +2696,8 @@ unitsById = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -2709,8 +2709,8 @@ unitsById = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2721,21 +2721,21 @@ unitsById = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [7044] [7013] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2745,9 +2745,9 @@ unitsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -2779,11 +2779,11 @@ unitsById = }, -- end of [7029] [7014] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2793,9 +2793,9 @@ unitsById = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, diff --git a/Example DBs/mist_DBs_unitsByName.lua b/Example DBs/mist_DBs_unitsByName.lua index 3a313c6..41d2f6e 100644 --- a/Example DBs/mist_DBs_unitsByName.lua +++ b/Example DBs/mist_DBs_unitsByName.lua @@ -101,11 +101,11 @@ unitsByName = }, -- end of ["AUSTRALIA air 8 unit1"] ["Unit #007"] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -115,8 +115,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -181,23 +181,23 @@ unitsByName = }, -- end of ["2ship2"] ["USA gnd 7 unit3"] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -268,11 +268,11 @@ unitsByName = }, -- end of ["1ship1"] ["Unit #005"] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -282,8 +282,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -314,11 +314,11 @@ unitsByName = }, -- end of ["RuBTRs2"] ["USA gnd 1 unit3"] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -328,9 +328,9 @@ unitsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -338,11 +338,11 @@ unitsByName = }, -- end of ["USA gnd 1 unit3"] ["Unit #004"] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -352,8 +352,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -453,25 +453,25 @@ unitsByName = ["cloneCargoBase"] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of ["cloneCargoBase"] ["USTanks2_1"] = { @@ -611,11 +611,11 @@ unitsByName = }, -- end of ["RuTent2"] ["Unit #006"] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -625,8 +625,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -679,11 +679,11 @@ unitsByName = }, -- end of ["tent"] ["USA gnd 1 unit1"] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -693,9 +693,9 @@ unitsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -753,26 +753,26 @@ unitsByName = }, -- end of ["Ka-50s_1_1"] ["USA static 7"] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of ["USA static 7"] ["Ground-1-1"] = { @@ -798,34 +798,34 @@ unitsByName = }, -- end of ["Ground-1-1"] ["USA static 1"] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of ["USA static 1"] ["AUSTRALIA shp 4 unit1"] = { ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -836,12 +836,12 @@ unitsByName = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of ["AUSTRALIA shp 4 unit1"] ["US Ship #1"] = @@ -927,8 +927,8 @@ unitsByName = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -939,12 +939,12 @@ unitsByName = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of ["AUSTRALIA shp 1 unit1"] ["RuBTRs3"] = @@ -1008,8 +1008,8 @@ unitsByName = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1020,12 +1020,12 @@ unitsByName = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of ["AUSTRALIA shp 2 unit1"] ["USA static 3"] = @@ -1034,42 +1034,42 @@ unitsByName = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of ["USA static 3"] ["USA gnd 7 unit2"] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -1142,11 +1142,11 @@ unitsByName = }, -- end of ["Su-33 Client #2Unit"] ["USA gnd 7 unit1"] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1156,9 +1156,9 @@ unitsByName = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -1166,23 +1166,23 @@ unitsByName = }, -- end of ["USA gnd 7 unit1"] ["USA gnd 7 unit4"] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -1293,8 +1293,8 @@ unitsByName = ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1305,12 +1305,12 @@ unitsByName = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of ["AUSTRALIA shp 3 unit1"] ["Unit #1"] = @@ -1337,26 +1337,26 @@ unitsByName = }, -- end of ["Unit #1"] ["USA static 5"] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of ["USA static 5"] ["RuTanks4"] = { @@ -1437,11 +1437,11 @@ unitsByName = }, -- end of ["AUSTRALIA air 6 unit1"] ["USA gnd 3 unit2"] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1451,9 +1451,9 @@ unitsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -1461,11 +1461,11 @@ unitsByName = }, -- end of ["USA gnd 3 unit2"] ["USA static 6"] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1476,8 +1476,8 @@ unitsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -1510,25 +1510,25 @@ unitsByName = }, -- end of ["USA gnd 6 unit2"] ["static_on_ship1"] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of ["static_on_ship1"] ["USA air 5 unit1"] = { @@ -1565,11 +1565,11 @@ unitsByName = }, -- end of ["USA air 5 unit1"] ["USA gnd 5 unit4"] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1579,9 +1579,9 @@ unitsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -1611,11 +1611,11 @@ unitsByName = }, -- end of ["RuBTRs5"] ["USA gnd 5 unit3"] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1625,9 +1625,9 @@ unitsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -1735,11 +1735,11 @@ unitsByName = }, -- end of ["static"] ["USA gnd 5 unit2"] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1749,9 +1749,9 @@ unitsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -1759,11 +1759,11 @@ unitsByName = }, -- end of ["USA gnd 5 unit2"] ["USA gnd 5 unit1"] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1773,9 +1773,9 @@ unitsByName = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -1882,11 +1882,11 @@ unitsByName = }, -- end of ["Pilot #001"] ["USA gnd 3 unit4"] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1896,9 +1896,9 @@ unitsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -1906,11 +1906,11 @@ unitsByName = }, -- end of ["USA gnd 3 unit4"] ["USA gnd 3 unit3"] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1920,9 +1920,9 @@ unitsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -1930,11 +1930,11 @@ unitsByName = }, -- end of ["USA gnd 3 unit3"] ["USA gnd 3 unit1"] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1944,9 +1944,9 @@ unitsByName = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -2008,11 +2008,11 @@ unitsByName = }, -- end of ["USA air 7 unit1"] ["USA static 4"] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2023,8 +2023,8 @@ unitsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -2076,11 +2076,11 @@ unitsByName = }, -- end of ["RU Farp"] ["Unit #002"] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2090,8 +2090,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -2125,25 +2125,25 @@ unitsByName = ["cargoBob"] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of ["cargoBob"] ["USA air 1 unit1"] = { @@ -2180,11 +2180,11 @@ unitsByName = }, -- end of ["USA air 1 unit1"] ["USA gnd 1 unit4"] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2194,9 +2194,9 @@ unitsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -2507,11 +2507,11 @@ unitsByName = }, -- end of ["Ground-2-1"] ["USA gnd 1 unit2"] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2521,9 +2521,9 @@ unitsByName = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -2555,11 +2555,11 @@ unitsByName = }, -- end of ["USA gnd 4 unit2"] ["Unit #008"] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2569,8 +2569,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -2651,11 +2651,11 @@ unitsByName = }, -- end of ["RuBTRs6"] ["Unit #003"] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2665,8 +2665,8 @@ unitsByName = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -2731,33 +2731,33 @@ unitsByName = }, -- end of ["RuBTRs4"] ["static_on_ship1 #001"] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of ["static_on_ship1 #001"] ["USA static 8"] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2768,8 +2768,8 @@ unitsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -2778,11 +2778,11 @@ unitsByName = }, -- end of ["USA static 8"] ["USA static 2"] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2793,8 +2793,8 @@ unitsByName = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, diff --git a/Example DBs/mist_DBs_unitsByNum.lua b/Example DBs/mist_DBs_unitsByNum.lua index 89e5948..11d7247 100644 --- a/Example DBs/mist_DBs_unitsByNum.lua +++ b/Example DBs/mist_DBs_unitsByNum.lua @@ -247,92 +247,92 @@ unitsByNum = [11] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 675199.99999999, ["x"] = -292007.14285714, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 675199.99999999, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cargoBob", - ["groupId"] = 31, - ["countryId"] = 2, - ["mass"] = 371, ["unitId"] = 45, + ["groupName"] = "cargoBob", + ["countryId"] = 2, + ["y"] = 675199.99999999, + ["mass"] = 371, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cargoBob", ["x"] = -292007.14285714, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 31, }, -- end of [11] [12] = { ["shape_name"] = "ab-212_cargo", - ["type"] = "uh1h_cargo", + ["heading"] = 0, ["point"] = { ["y"] = 674842.85714285, ["x"] = -291678.57142856, }, -- end of ["point"] - ["categoryStatic"] = "Cargos", - ["y"] = 674842.85714285, + ["country"] = "usa", ["coalition"] = "blue", - ["groupName"] = "cloneCargoBase", - ["groupId"] = 32, - ["countryId"] = 2, - ["mass"] = 1337, ["unitId"] = 46, + ["groupName"] = "cloneCargoBase", + ["countryId"] = 2, + ["y"] = 674842.85714285, + ["mass"] = 1337, + ["categoryStatic"] = "Cargos", ["category"] = "static", ["unitName"] = "cloneCargoBase", ["x"] = -291678.57142856, - ["heading"] = 0, - ["country"] = "usa", + ["type"] = "uh1h_cargo", + ["groupId"] = 32, }, -- end of [12] [13] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443856.28948724, ["x"] = -355322.45423175, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443856.28948724, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443856.28948724, ["x"] = -355322.45423175, - ["unitId"] = 63, + ["groupId"] = 40, ["category"] = "static", ["unitName"] = "static_on_ship1", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 40, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 63, }, -- end of [13] [14] = { - ["heading"] = 0, + ["type"] = "AH-1W", ["point"] = { ["y"] = 443849.03844635, ["x"] = -355322.27295572, }, -- end of ["point"] - ["categoryStatic"] = "Helicopters", - ["y"] = 443849.03844635, + ["country"] = "usa", + ["coalition"] = "blue", ["livery_id"] = "USA Marines", ["groupName"] = "static_on_ship1 #001", - ["coalition"] = "blue", ["countryId"] = 2, + ["y"] = 443849.03844635, ["x"] = -355322.27295572, - ["unitId"] = 64, + ["groupId"] = 41, ["category"] = "static", ["unitName"] = "static_on_ship1 #001", - ["type"] = "AH-1W", - ["country"] = "usa", - ["groupId"] = 41, + ["categoryStatic"] = "Helicopters", + ["heading"] = 0, + ["unitId"] = 64, }, -- end of [14] [15] = { @@ -556,11 +556,11 @@ unitsByNum = }, -- end of [24] [25] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689785, - ["x"] = -285145, + ["y"] = 694968, + ["x"] = -285046, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -570,8 +570,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285145, - ["y"] = 689785, + ["x"] = -285046, + ["y"] = 694968, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #002", @@ -580,11 +580,11 @@ unitsByNum = }, -- end of [25] [26] = { - ["alt"] = 61, + ["alt"] = 74, ["point"] = { - ["y"] = 689948, - ["x"] = -285166, + ["y"] = 695126, + ["x"] = -285098, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -594,8 +594,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285166, - ["y"] = 689948, + ["x"] = -285098, + ["y"] = 695126, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #003", @@ -604,11 +604,11 @@ unitsByNum = }, -- end of [26] [27] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689856, - ["x"] = -285298, + ["y"] = 694892, + ["x"] = -285039, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -618,8 +618,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285298, - ["y"] = 689856, + ["x"] = -285039, + ["y"] = 694892, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #004", @@ -628,11 +628,11 @@ unitsByNum = }, -- end of [27] [28] = { - ["alt"] = 61, + ["alt"] = 75, ["point"] = { - ["y"] = 689796, - ["x"] = -285058, + ["y"] = 695084, + ["x"] = -284914, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -642,8 +642,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285058, - ["y"] = 689796, + ["x"] = -284914, + ["y"] = 695084, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #005", @@ -652,11 +652,11 @@ unitsByNum = }, -- end of [28] [29] = { - ["alt"] = 61, + ["alt"] = 73, ["point"] = { - ["y"] = 689973, - ["x"] = -285191, + ["y"] = 694985, + ["x"] = -285104, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -666,8 +666,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285191, - ["y"] = 689973, + ["x"] = -285104, + ["y"] = 694985, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #006", @@ -676,11 +676,11 @@ unitsByNum = }, -- end of [29] [30] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689860, - ["x"] = -285149, + ["y"] = 694877, + ["x"] = -285009, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -690,8 +690,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285149, - ["y"] = 689860, + ["x"] = -285009, + ["y"] = 694877, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #007", @@ -700,11 +700,11 @@ unitsByNum = }, -- end of [30] [31] = { - ["alt"] = 60, + ["alt"] = 74, ["point"] = { - ["y"] = 689799, - ["x"] = -285216, + ["y"] = 694952, + ["x"] = -284964, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -714,8 +714,8 @@ unitsByNum = ["groupId"] = 35, ["groupName"] = "teleGroup", ["countryId"] = 2, - ["x"] = -285216, - ["y"] = 689799, + ["x"] = -284964, + ["y"] = 694952, ["heading"] = 0, ["country"] = "usa", ["unitName"] = "Unit #008", @@ -1674,8 +1674,8 @@ unitsByNum = ["alt"] = 0, ["point"] = { - ["y"] = 265153, - ["x"] = -163065, + ["y"] = 267081, + ["x"] = -164471, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -1686,44 +1686,44 @@ unitsByNum = ["unitId"] = 7011, ["groupName"] = "AUSTRALIA shp 1", ["countryId"] = 21, - ["x"] = -163065, + ["x"] = -164471, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7007, - ["y"] = 265153, + ["y"] = 267081, ["country"] = "australia", }, -- end of [68] [69] = { - ["alt"] = 65, + ["alt"] = 62, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693778, - ["x"] = -286660, + ["y"] = 693698, + ["x"] = -287512, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693778, - ["groupName"] = "USA static 1", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -286660, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 1", + ["unitId"] = 7005, + ["y"] = 693698, + ["x"] = -287512, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 1", - ["unitId"] = 7005, - ["heading"] = 0, ["groupId"] = 7005, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [69] [70] = { - ["alt"] = 72, + ["alt"] = 67, ["point"] = { - ["y"] = 693761, - ["x"] = -284648, + ["y"] = 692292, + ["x"] = -284982, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1733,9 +1733,9 @@ unitsByNum = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284648, - ["y"] = 693761, - ["heading"] = 1.4977557542423, + ["x"] = -284982, + ["y"] = 692292, + ["heading"] = 1.4977557593169, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit1", ["unitId"] = 7001, @@ -1743,11 +1743,11 @@ unitsByNum = }, -- end of [70] [71] = { - ["alt"] = 73, + ["alt"] = 67, ["point"] = { - ["y"] = 693771, - ["x"] = -284456, + ["y"] = 692208, + ["x"] = -284870, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1757,9 +1757,9 @@ unitsByNum = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284456, - ["y"] = 693771, - ["heading"] = 1.4977557542423, + ["x"] = -284870, + ["y"] = 692208, + ["heading"] = 1.4977557696476, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit2", ["unitId"] = 7002, @@ -1767,11 +1767,11 @@ unitsByNum = }, -- end of [71] [72] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693781, - ["x"] = -284639, + ["y"] = 692374, + ["x"] = -284971, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1781,9 +1781,9 @@ unitsByNum = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284639, - ["y"] = 693781, - ["heading"] = 1.4977557542423, + ["x"] = -284971, + ["y"] = 692374, + ["heading"] = 1.4977557676538, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit3", ["unitId"] = 7003, @@ -1791,11 +1791,11 @@ unitsByNum = }, -- end of [72] [73] = { - ["alt"] = 72, + ["alt"] = 68, ["point"] = { - ["y"] = 693653, - ["x"] = -284699, + ["y"] = 692388, + ["x"] = -284932, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -1805,9 +1805,9 @@ unitsByNum = ["groupId"] = 7001, ["groupName"] = "USA gnd 1", ["countryId"] = 2, - ["x"] = -284699, - ["y"] = 693653, - ["heading"] = 1.4977557629417, + ["x"] = -284932, + ["y"] = 692388, + ["heading"] = 1.4977557602231, ["country"] = "usa", ["unitName"] = "USA gnd 1 unit4", ["unitId"] = 7004, @@ -1929,11 +1929,11 @@ unitsByNum = }, -- end of [77] [78] = { - ["alt"] = 70, + ["alt"] = 57, ["point"] = { - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1944,8 +1944,8 @@ unitsByNum = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 2", - ["y"] = 691224, - ["x"] = -283405, + ["y"] = 691173, + ["x"] = -286924, ["coalition"] = "blue", ["unitId"] = 7006, ["heading"] = 0, @@ -1954,11 +1954,11 @@ unitsByNum = }, -- end of [78] [79] = { - ["alt"] = 65, + ["alt"] = 63, ["point"] = { - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -1969,8 +1969,8 @@ unitsByNum = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 4", - ["y"] = 693655, - ["x"] = -286667, + ["y"] = 694197, + ["x"] = -287544, ["coalition"] = "blue", ["unitId"] = 7017, ["heading"] = 0, @@ -2016,22 +2016,22 @@ unitsByNum = ["type"] = "Sandbox", ["point"] = { - ["y"] = 693960, - ["x"] = -287585, + ["y"] = 692858, + ["x"] = -286636, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693960, - ["groupName"] = "USA static 3", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287585, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 3", + ["unitId"] = 7016, + ["y"] = 692858, + ["x"] = -286636, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 3", - ["unitId"] = 7016, - ["heading"] = 0, ["groupId"] = 7016, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [81] [82] = { @@ -2071,8 +2071,8 @@ unitsByNum = ["alt"] = 0, ["point"] = { - ["y"] = 267048, - ["x"] = -161099, + ["y"] = 267810, + ["x"] = -162283, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2083,21 +2083,21 @@ unitsByNum = ["unitId"] = 7022, ["groupName"] = "AUSTRALIA shp 2", ["countryId"] = 21, - ["x"] = -161099, + ["x"] = -162283, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7014, - ["y"] = 267048, + ["y"] = 267810, ["country"] = "australia", }, -- end of [83] [84] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691761, - ["x"] = -284967, + ["y"] = 690419, + ["x"] = -284972, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2107,9 +2107,9 @@ unitsByNum = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284967, - ["y"] = 691761, - ["heading"] = 1.4977557594982, + ["x"] = -284972, + ["y"] = 690419, + ["heading"] = 1.4977557640291, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit1", ["unitId"] = 7012, @@ -2117,11 +2117,11 @@ unitsByNum = }, -- end of [84] [85] = { - ["alt"] = 66, + ["alt"] = 63, ["point"] = { - ["y"] = 691809, - ["x"] = -284861, + ["y"] = 690558, + ["x"] = -284846, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2131,9 +2131,9 @@ unitsByNum = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284861, - ["y"] = 691809, - ["heading"] = 1.4977557625792, + ["x"] = -284846, + ["y"] = 690558, + ["heading"] = 1.4977557580482, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit2", ["unitId"] = 7013, @@ -2141,11 +2141,11 @@ unitsByNum = }, -- end of [85] [86] = { - ["alt"] = 66, + ["alt"] = 62, ["point"] = { - ["y"] = 691744, - ["x"] = -284982, + ["y"] = 690360, + ["x"] = -285032, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2155,9 +2155,9 @@ unitsByNum = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -284982, - ["y"] = 691744, - ["heading"] = 1.4977557573233, + ["x"] = -285032, + ["y"] = 690360, + ["heading"] = 1.4977557565984, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit3", ["unitId"] = 7014, @@ -2165,11 +2165,11 @@ unitsByNum = }, -- end of [86] [87] = { - ["alt"] = 65, + ["alt"] = 62, ["point"] = { - ["y"] = 691757, - ["x"] = -285098, + ["y"] = 690314, + ["x"] = -284956, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2179,9 +2179,9 @@ unitsByNum = ["groupId"] = 7008, ["groupName"] = "USA gnd 3", ["countryId"] = 2, - ["x"] = -285098, - ["y"] = 691757, - ["heading"] = 1.4977557640291, + ["x"] = -284956, + ["y"] = 690314, + ["heading"] = 1.497755755511, ["country"] = "usa", ["unitName"] = "USA gnd 3 unit4", ["unitId"] = 7015, @@ -2237,11 +2237,11 @@ unitsByNum = }, -- end of [89] [90] = { - ["alt"] = 69, + ["alt"] = 73, ["point"] = { - ["y"] = 695073, - ["x"] = -287442, + ["y"] = 691751, + ["x"] = -283221, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2251,9 +2251,9 @@ unitsByNum = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287442, - ["y"] = 695073, - ["heading"] = 1.4977557701918, + ["x"] = -283221, + ["y"] = 691751, + ["heading"] = 1.4977557703725, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit1", ["unitId"] = 7023, @@ -2261,11 +2261,11 @@ unitsByNum = }, -- end of [90] [91] = { - ["alt"] = 68, + ["alt"] = 74, ["point"] = { - ["y"] = 695090, - ["x"] = -287590, + ["y"] = 691898, + ["x"] = -283194, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2275,9 +2275,9 @@ unitsByNum = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287590, - ["y"] = 695090, - ["heading"] = 1.4977557591357, + ["x"] = -283194, + ["y"] = 691898, + ["heading"] = 1.4977557634854, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit2", ["unitId"] = 7024, @@ -2285,11 +2285,11 @@ unitsByNum = }, -- end of [91] [92] = { - ["alt"] = 69, + ["alt"] = 72, ["point"] = { - ["y"] = 695151, - ["x"] = -287518, + ["y"] = 691826, + ["x"] = -283357, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2299,9 +2299,9 @@ unitsByNum = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287518, - ["y"] = 695151, - ["heading"] = 1.4977557660229, + ["x"] = -283357, + ["y"] = 691826, + ["heading"] = 1.4977557538798, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit3", ["unitId"] = 7025, @@ -2309,11 +2309,11 @@ unitsByNum = }, -- end of [92] [93] = { - ["alt"] = 68, + ["alt"] = 72, ["point"] = { - ["y"] = 694882, - ["x"] = -287479, + ["y"] = 691852, + ["x"] = -283362, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2323,9 +2323,9 @@ unitsByNum = ["groupId"] = 7015, ["groupName"] = "USA gnd 5", ["countryId"] = 2, - ["x"] = -287479, - ["y"] = 694882, - ["heading"] = 1.4977557575044, + ["x"] = -283362, + ["y"] = 691852, + ["heading"] = 1.4977557720036, ["country"] = "usa", ["unitName"] = "USA gnd 5 unit4", ["unitId"] = 7026, @@ -2414,11 +2414,11 @@ unitsByNum = }, -- end of [96] [97] = { - ["alt"] = 73, + ["alt"] = 62, ["point"] = { - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2429,8 +2429,8 @@ unitsByNum = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 6", - ["y"] = 695241, - ["x"] = -285338, + ["y"] = 691602, + ["x"] = -285948, ["coalition"] = "blue", ["unitId"] = 7028, ["heading"] = 0, @@ -2472,34 +2472,34 @@ unitsByNum = }, -- end of [98] [99] = { - ["alt"] = 68, + ["alt"] = 63, ["type"] = "Sandbox", ["point"] = { - ["y"] = 693480, - ["x"] = -285622, + ["y"] = 692897, + ["x"] = -286503, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 693480, - ["groupName"] = "USA static 5", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -285622, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 5", + ["unitId"] = 7027, + ["y"] = 692897, + ["x"] = -286503, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 5", - ["unitId"] = 7027, - ["heading"] = 0, ["groupId"] = 7027, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [99] [100] = { ["alt"] = 0, ["point"] = { - ["y"] = 268869, - ["x"] = -163156, + ["y"] = 268107, + ["x"] = -163693, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2510,12 +2510,12 @@ unitsByNum = ["unitId"] = 7033, ["groupName"] = "AUSTRALIA shp 3", ["countryId"] = 21, - ["x"] = -163156, + ["x"] = -163693, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7021, - ["y"] = 268869, + ["y"] = 268107, ["country"] = "australia", }, -- end of [100] [101] = @@ -2601,11 +2601,11 @@ unitsByNum = }, -- end of [103] [104] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693098, - ["x"] = -284021, + ["y"] = 692769, + ["x"] = -287355, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", @@ -2615,9 +2615,9 @@ unitsByNum = ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284021, - ["y"] = 693098, - ["heading"] = 1.4977557645728, + ["x"] = -287355, + ["y"] = 692769, + ["heading"] = 1.4977557591357, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit1", ["unitId"] = 7034, @@ -2625,23 +2625,23 @@ unitsByNum = }, -- end of [104] [105] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693012, - ["x"] = -284053, + ["y"] = 692754, + ["x"] = -287476, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 5.0056692998623e-05, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284053, - ["y"] = 693012, - ["heading"] = 1.4877557641795, + ["x"] = -287476, + ["y"] = 692754, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit2", ["unitId"] = 7035, @@ -2649,23 +2649,23 @@ unitsByNum = }, -- end of [105] [106] = { - ["alt"] = 74, + ["alt"] = 59, ["point"] = { - ["y"] = 693026, - ["x"] = -283898, + ["y"] = 692726, + ["x"] = -287538, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.00018869274936151, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -283898, - ["y"] = 693026, - ["heading"] = 1.5077557625432, + ["x"] = -287538, + ["y"] = 692726, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit3", ["unitId"] = 7036, @@ -2673,23 +2673,23 @@ unitsByNum = }, -- end of [106] [107] = { - ["alt"] = 73, + ["alt"] = 59, ["point"] = { - ["y"] = 693093, - ["x"] = -284127, + ["y"] = 692766, + ["x"] = -287511, }, -- end of ["point"] ["coalitionId"] = 2, ["skill"] = "Average", ["category"] = "vehicle", - ["speed"] = 0.0040063578450385, + ["speed"] = 0, ["type"] = "M-1 Abrams", ["groupId"] = 7022, ["groupName"] = "USA gnd 7", ["countryId"] = 2, - ["x"] = -284127, - ["y"] = 693093, - ["heading"] = 1.4877557641795, + ["x"] = -287511, + ["y"] = 692766, + ["heading"] = 1.4977557605856, ["country"] = "usa", ["unitName"] = "USA gnd 7 unit4", ["unitId"] = 7037, @@ -2733,8 +2733,8 @@ unitsByNum = ["alt"] = 0, ["point"] = { - ["y"] = 266075, - ["x"] = -162226, + ["y"] = 265427, + ["x"] = -164284, }, -- end of ["point"] ["coalitionId"] = 0, ["livery_id"] = "ReubenJames", @@ -2745,21 +2745,21 @@ unitsByNum = ["unitId"] = 7044, ["groupName"] = "AUSTRALIA shp 4", ["countryId"] = 21, - ["x"] = -162226, + ["x"] = -164284, ["speed"] = 0, ["coalition"] = "neutral", ["type"] = "PERRY", ["groupId"] = 7028, - ["y"] = 266075, + ["y"] = 265427, ["country"] = "australia", }, -- end of [109] [110] = { - ["alt"] = 55, + ["alt"] = 63, ["point"] = { - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, }, -- end of ["point"] ["categoryStatic"] = "Cargos", ["coalitionId"] = 2, @@ -2770,8 +2770,8 @@ unitsByNum = ["type"] = "uh1h_cargo", ["country"] = "usa", ["groupName"] = "USA static 8", - ["y"] = 689703, - ["x"] = -286460, + ["y"] = 693814, + ["x"] = -287262, ["coalition"] = "blue", ["unitId"] = 7039, ["heading"] = 0, @@ -2780,25 +2780,25 @@ unitsByNum = }, -- end of [110] [111] = { - ["alt"] = 70, + ["alt"] = 56, ["type"] = "Sandbox", ["point"] = { - ["y"] = 694696, - ["x"] = -287053, + ["y"] = 691971, + ["x"] = -288088, }, -- end of ["point"] - ["categoryStatic"] = "Fortifications", - ["coalitionId"] = 2, - ["y"] = 694696, - ["groupName"] = "USA static 7", ["country"] = "usa", - ["countryId"] = 2, - ["x"] = -287053, + ["coalitionId"] = 2, ["coalition"] = "blue", + ["groupName"] = "USA static 7", + ["unitId"] = 7038, + ["y"] = 691971, + ["x"] = -288088, + ["countryId"] = 2, ["category"] = "static", ["unitName"] = "USA static 7", - ["unitId"] = 7038, - ["heading"] = 0, ["groupId"] = 7038, + ["heading"] = 0, + ["categoryStatic"] = "Fortifications", }, -- end of [111] } -- end of unitsByNum diff --git a/Example DBs/mist_DBs_zonesByName.lua b/Example DBs/mist_DBs_zonesByName.lua index df6e698..9bd17e6 100644 --- a/Example DBs/mist_DBs_zonesByName.lua +++ b/Example DBs/mist_DBs_zonesByName.lua @@ -1,83 +1,5 @@ zonesByName = { - ["LZ zone"] = - { - ["radius"] = 3000, - ["zoneId"] = 2, - ["color"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - [4] = 0.14901960784314, - }, -- end of ["color"] - ["properties"] = - { - }, -- end of ["properties"] - ["hidden"] = false, - ["y"] = 614105.71428571, - ["x"] = -245328.57142857, - ["name"] = "LZ zone", - ["point"] = - { - ["y"] = 0, - ["x"] = -245328.57142857, - ["z"] = 614105.71428571, - }, -- end of ["point"] - ["type"] = 0, - }, -- end of ["LZ zone"] - ["explosion zone"] = - { - ["radius"] = 3000, - ["zoneId"] = 1, - ["color"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - [4] = 0.14901960784314, - }, -- end of ["color"] - ["properties"] = - { - }, -- end of ["properties"] - ["hidden"] = false, - ["y"] = 673819.99999999, - ["x"] = -271900, - ["name"] = "explosion zone", - ["point"] = - { - ["y"] = 0, - ["x"] = -271900, - ["z"] = 673819.99999999, - }, -- end of ["point"] - ["type"] = 0, - }, -- end of ["explosion zone"] - ["cloneZone"] = - { - ["radius"] = 3000, - ["zoneId"] = 3, - ["color"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - [4] = 0.14901960784314, - }, -- end of ["color"] - ["properties"] = - { - }, -- end of ["properties"] - ["hidden"] = false, - ["y"] = 692534.28571428, - ["x"] = -285971.42857143, - ["name"] = "cloneZone", - ["point"] = - { - ["y"] = 0, - ["x"] = -285971.42857143, - ["z"] = 692534.28571428, - }, -- end of ["point"] - ["type"] = 0, - }, -- end of ["cloneZone"] ["shipZone"] = { ["radius"] = 3000, @@ -104,4 +26,133 @@ zonesByName = }, -- end of ["point"] ["type"] = 0, }, -- end of ["shipZone"] + ["LZ zone"] = + { + ["radius"] = 3000, + ["zoneId"] = 2, + ["color"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 614105.71428571, + ["x"] = -245328.57142857, + ["name"] = "LZ zone", + ["point"] = + { + ["y"] = 0, + ["x"] = -245328.57142857, + ["z"] = 614105.71428571, + }, -- end of ["point"] + ["type"] = 0, + }, -- end of ["LZ zone"] + ["quad"] = + { + ["radius"] = 13592.958647037, + ["zoneId"] = 339, + ["color"] = + { + [1] = 1, + [2] = 0, + [3] = 0, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + ["Property Value "] = "Eyyyyyyyy", + ["Prop 2 is an"] = "empty string", + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 590545.61946051, + ["x"] = -151821.41786062, + ["name"] = "quad", + ["point"] = + { + ["y"] = 0, + ["x"] = -151821.41786062, + ["z"] = 590545.61946051, + }, -- end of ["point"] + ["type"] = 2, + ["verticies"] = + { + [1] = + { + ["y"] = 583845.85427019, + ["x"] = -156926.00086276, + }, -- end of [1] + [2] = + { + ["y"] = 594153.18533222, + ["x"] = -161637.92363397, + }, -- end of [2] + [3] = + { + ["y"] = 601908.22489317, + ["x"] = -144360.87347286, + }, -- end of [3] + [4] = + { + ["y"] = 582275.21334645, + ["x"] = -144360.87347286, + }, -- end of [4] + }, -- end of ["verticies"] + }, -- end of ["quad"] + ["cloneZone"] = + { + ["radius"] = 3000, + ["zoneId"] = 3, + ["color"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 692534.28571428, + ["x"] = -285971.42857143, + ["name"] = "cloneZone", + ["point"] = + { + ["y"] = 0, + ["x"] = -285971.42857143, + ["z"] = 692534.28571428, + }, -- end of ["point"] + ["type"] = 0, + }, -- end of ["cloneZone"] + ["explosion zone"] = + { + ["radius"] = 3000, + ["zoneId"] = 1, + ["color"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 673819.99999999, + ["x"] = -271900, + ["name"] = "explosion zone", + ["point"] = + { + ["y"] = 0, + ["x"] = -271900, + ["z"] = 673819.99999999, + }, -- end of ["point"] + ["type"] = 0, + }, -- end of ["explosion zone"] } -- end of zonesByName diff --git a/Example DBs/mist_DBs_zonesByNum.lua b/Example DBs/mist_DBs_zonesByNum.lua index 44cd7a3..f4a8699 100644 --- a/Example DBs/mist_DBs_zonesByNum.lua +++ b/Example DBs/mist_DBs_zonesByNum.lua @@ -1,32 +1,6 @@ zonesByNum = { [1] = - { - ["radius"] = 3000, - ["zoneId"] = 2, - ["color"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - [4] = 0.14901960784314, - }, -- end of ["color"] - ["properties"] = - { - }, -- end of ["properties"] - ["hidden"] = false, - ["y"] = 614105.71428571, - ["x"] = -245328.57142857, - ["name"] = "LZ zone", - ["type"] = 0, - ["point"] = - { - ["y"] = 0, - ["x"] = -245328.57142857, - ["z"] = 614105.71428571, - }, -- end of ["point"] - }, -- end of [1] - [2] = { ["radius"] = 3000, ["zoneId"] = 3, @@ -51,34 +25,8 @@ zonesByNum = ["x"] = -285971.42857143, ["z"] = 692534.28571428, }, -- end of ["point"] - }, -- end of [2] - [3] = - { - ["radius"] = 3000, - ["zoneId"] = 174, - ["color"] = - { - [1] = 1, - [2] = 1, - [3] = 1, - [4] = 0.15, - }, -- end of ["color"] - ["properties"] = - { - }, -- end of ["properties"] - ["hidden"] = false, - ["y"] = 267139.69375223, - ["x"] = -163182.90396786, - ["name"] = "shipZone", - ["type"] = 0, - ["point"] = - { - ["y"] = 0, - ["x"] = -163182.90396786, - ["z"] = 267139.69375223, - }, -- end of ["point"] - }, -- end of [3] - [4] = + }, -- end of [1] + [2] = { ["radius"] = 3000, ["zoneId"] = 1, @@ -103,5 +51,108 @@ zonesByNum = ["x"] = -271900, ["z"] = 673819.99999999, }, -- end of ["point"] + }, -- end of [2] + [3] = + { + ["radius"] = 3000, + ["zoneId"] = 2, + ["color"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 614105.71428571, + ["x"] = -245328.57142857, + ["name"] = "LZ zone", + ["type"] = 0, + ["point"] = + { + ["y"] = 0, + ["x"] = -245328.57142857, + ["z"] = 614105.71428571, + }, -- end of ["point"] + }, -- end of [3] + [4] = + { + ["radius"] = 3000, + ["zoneId"] = 174, + ["color"] = + { + [1] = 1, + [2] = 1, + [3] = 1, + [4] = 0.15, + }, -- end of ["color"] + ["properties"] = + { + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 267139.69375223, + ["x"] = -163182.90396786, + ["name"] = "shipZone", + ["type"] = 0, + ["point"] = + { + ["y"] = 0, + ["x"] = -163182.90396786, + ["z"] = 267139.69375223, + }, -- end of ["point"] }, -- end of [4] + [5] = + { + ["radius"] = 13592.958647037, + ["zoneId"] = 339, + ["color"] = + { + [1] = 1, + [2] = 0, + [3] = 0, + [4] = 0.14901960784314, + }, -- end of ["color"] + ["properties"] = + { + ["Property Value "] = "Eyyyyyyyy", + ["Prop 2 is an"] = "empty string", + }, -- end of ["properties"] + ["hidden"] = false, + ["y"] = 590545.61946051, + ["x"] = -151821.41786062, + ["name"] = "quad", + ["point"] = + { + ["y"] = 0, + ["x"] = -151821.41786062, + ["z"] = 590545.61946051, + }, -- end of ["point"] + ["type"] = 2, + ["verticies"] = + { + [1] = + { + ["y"] = 583845.85427019, + ["x"] = -156926.00086276, + }, -- end of [1] + [2] = + { + ["y"] = 594153.18533222, + ["x"] = -161637.92363397, + }, -- end of [2] + [3] = + { + ["y"] = 601908.22489317, + ["x"] = -144360.87347286, + }, -- end of [3] + [4] = + { + ["y"] = 582275.21334645, + ["x"] = -144360.87347286, + }, -- end of [4] + }, -- end of ["verticies"] + }, -- end of [5] } -- end of zonesByNum diff --git a/mist.lua b/mist.lua index 3302d7f..de1499c 100644 --- a/mist.lua +++ b/mist.lua @@ -35,7 +35,7 @@ mist = {} -- don't change these mist.majorVersion = 4 mist.minorVersion = 5 -mist.build = 104 +mist.build = 106 -- forward declaration of log shorthand local log @@ -115,6 +115,17 @@ do -- the main scope zone.properties[prop.key] = prop.value end end + end + if zone.verticies then -- trust but verify + local r = 0 + for i = 1, #zone.verticies do + local dist = mist.utils.get2DDist(zone.point, zone.verticies[i]) + if dist > r then + r = mist.utils.deepCopy(dist) + end + end + zone.radius = r + end mist.DBs.zonesByName[zone_data.name] = zone @@ -123,6 +134,85 @@ do -- the main scope end end end + + mist.DBs.drawingByName = {} + mist.DBs.drawingIndexed = {} + + if env.mission.drawings and env.mission.drawings.layers then + for i = 1, #env.mission.drawings.layers do + local l = env.mission.drawings.layers[i] + + for j = 1, #l.objects do + local copy = mist.utils.deepCopy(l.objects[j]) + --log:warn(copy) + local doOffset = false + copy.layer = l.name + + local theta = copy.angle or 0 + theta = math.rad(theta) + if copy.primitiveType == "Polygon" then + + if copy.polygonMode == 'rect' then + local h, w = copy.height, copy.width + copy.points = {} + copy.points[1] = {x = h/2, y = w/2} + copy.points[2] = {x = -h/2, y = w/2} + copy.points[3] = {x = -h/2, y = -w/2} + copy.points[4] = {x = h/2, y = -w/2} + doOffset = true + elseif copy.polygonMode == "circle" then + copy.points = {x = copy.mapX, y = copy.mapY} + elseif copy.polygonMode == 'oval' then + -- oval bugs. Scale and rotation are off. + copy.points = {} + local numPoints = 24 + local angleStep = (math.pi*2)/numPoints + doOffset = true + for v = 1, numPoints do + local pointAngle = v * angleStep + local x = copy.r1 * math.cos(pointAngle) + local y = copy.r2 * math.sin(pointAngle) + + table.insert(copy.points,{x=x,y=y}) + + end + elseif copy.polygonMode == "arrow" then + doOffset = true + end + + -- NOTE TO SELF. FIGURE OUT WHICH SHAPES NEED TO BE OFFSET. OVAL YES. + --log:warn('check offset') + if theta ~= 0 and copy.points and doOffset == true then + + --log:warn('offsetting Values') + for p = 1, #copy.points do + local offset = mist.vec.rotateVec2(copy.points[p], theta) + copy.points[p] = offset + end + --log:warn(copy.points[1]) + end + + end + if copy.points and #copy.points > 1 then + for u = 1, #copy.points do + copy.points[u].x = copy.points[u].x + copy.mapX + copy.points[u].y = copy.points[u].y + copy.mapY + end + + end + if mist.DBs.drawingByName[copy.name] then + log:warn("Drawing by the name of [ $1 ] already exists in DB. Failed to add to mist.DBs.drawingByName.", copy.name) + else + + mist.DBs.drawingByName[copy.name] = copy + end + table.insert(mist.DBs.drawingIndexed, copy) + end + + end + + end + mist.DBs.navPoints = {} mist.DBs.units = {} @@ -319,6 +409,11 @@ do -- the main scope ['Arco'] = 2, ['Shell'] = 3, }, + ['TRANSPORT'] = { + ['Heavy'] = 9, + ['Trash'] = 10, + ['Cargo'] = 11, + ['Ascot'] = 12, ['JTAC'] = { ['Axeman'] = 1, ['Darknight'] = 2, @@ -360,14 +455,105 @@ do -- the main scope ['rules'] = { ['canUseAircraft'] = true, ['appliesTo'] = { - 'A-10C', + 'A-10C_2', + 'A-10C', 'A-10A', }, }, - }, - }, - }, - } + }, + ['f16'] = { + Viper = 9, + Venom = 10, + Lobo = 11, + Cowboy = 12, + Python = 13, + Rattler =14, + Panther = 15, + Wolf = 16, + Weasel = 17, + Wild = 18, + Ninja = 19, + Jedi = 20, + rules = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'F-16C_50', + 'F-16C bl.52d', + 'F-16C bl.50', + 'F-16A MLU', + 'F-16A', + }, + }, + + }, + ['f18'] = { + ['Hornet'] = 9, + ['Squid'] = 10, + ['Ragin'] = 11, + ['Roman'] = 12, + Sting = 13, + Jury =14, + Jokey = 15, + Ram = 16, + Hawk = 17, + Devil = 18, + Check = 19, + Snake = 20, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + + "FA-18C_hornet", + 'F/A-18C', + }, + }, + }, + ['b1'] = { + ['Bone'] = 9, + ['Dark'] = 10, + ['Vader'] = 11, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'B-1B', + }, + }, + }, + ['b52'] = { + ['Buff'] = 9, + ['Dump'] = 10, + ['Kenworth'] = 11, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'B-52H', + }, + }, + }, + ['f15e'] = { + ['Dude'] = 9, + ['Thud'] = 10, + ['Gunny'] = 11, + ['Trek'] = 12, + Sniper = 13, + Sled =14, + Best = 15, + Jazz = 16, + Rage = 17, + Tahoe = 18, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'F-15E', + --'F-15ERAZBAM', + }, + }, + }, + + }, + }, + }, + } mist.DBs.const.shapeNames = { ["Landmine"] = "landmine", ["FARP CP Blindage"] = "kp_ug", @@ -554,8 +740,8 @@ do -- the main scope mist.DBs.MEgroupsById = mist.utils.deepCopy(mist.DBs.groupsById) mist.DBs.deadObjects = {} - - do + + do local mt = {} function mt.__newindex(t, key, val) @@ -875,6 +1061,7 @@ do -- the main scope --dbLog:info('iterate') for name, gData in pairs(tempSpawnedGroups) do --env.info(name) + --dbLog:info(gData) local updated = false local stillExists = false if not gData.checked then @@ -882,9 +1069,9 @@ do -- the main scope local _g = gData.gp or Group.getByName(name) if mist.DBs.groupsByName[name] then -- first check group level properties, groupId, countryId, coalition - -- dbLog:info('Found in DBs, check if updated') + --dbLog:info('Found in DBs, check if updated') local dbTable = mist.DBs.groupsByName[name] - -- dbLog:info(dbTable) + --dbLog:info(dbTable) if gData.type ~= 'static' then -- dbLog:info('Not static') @@ -905,11 +1092,11 @@ do -- the main scope end --dbLog:info('Updated: $1', updated) if updated == false and gData.type ~= 'static' then -- time to check units - --dbLog:info('No Group Mismatch, Check Units') + --dbLog:info('No Group Mismatch, Check Units') if _g and _g:isExist() == true then stillExists = true for index, uObject in pairs(_g:getUnits()) do - --dbLog:info(index) + --dbLog:info(index) if mist.DBs.unitsByName[uObject:getName()] then --dbLog:info('UnitByName table exists') local uTable = mist.DBs.unitsByName[uObject:getName()] @@ -931,14 +1118,13 @@ do -- the main scope if dbData and type(dbData) == 'table' then writeGroups[#writeGroups+1] = {data = dbData, isUpdated = updated} end - end -- Work done, so remove end tempSpawnedGroups[name] = nil tempSpawnGroupsCounter = tempSpawnGroupsCounter - 1 end - end + end end local function updateDBTables() @@ -1058,19 +1244,20 @@ do -- the main scope local function groupSpawned(event) -- dont need to add units spawned in at the start of the mission if mist is loaded in init line if event.id == world.event.S_EVENT_BIRTH and timer.getTime0() < timer.getAbsTime() then - --dbLog:info('unitSpawnEvent') - + --log:info('unitSpawnEvent') + --log:info(event) + --log:info(event.initiator:getTypeName()) --table.insert(tempSpawnedUnits,(event.initiator)) ------- -- New functionality below. ------- if Object.getCategory(event.initiator) == 1 and not Unit.getPlayerName(event.initiator) then -- simple player check, will need to later check to see if unit was spawned with a player in a flight - --dbLog:info('Object is a Unit') + --log:info('Object is a Unit') if Unit.getGroup(event.initiator) then - --dbLog:info(Unit.getGroup(event.initiator):getName()) + -- log:info(Unit.getGroup(event.initiator):getName()) local g = Unit.getGroup(event.initiator) if not tempSpawnedGroups[g:getName()] then - --dbLog:info('added') + --log:info('added') tempSpawnedGroups[g:getName()] = {type = 'group', gp = g} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end @@ -1078,7 +1265,7 @@ do -- the main scope log:error('Group not accessible by unit in event handler. This is a DCS bug') end elseif Object.getCategory(event.initiator) == 3 or Object.getCategory(event.initiator) == 6 then - --dbLog:info('Object is Static') + --log:info('Object is Static') tempSpawnedGroups[StaticObject.getName(event.initiator)] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end @@ -1236,8 +1423,8 @@ do -- the main scope tempSpawnedGroups[s:getName()] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end - end - end + end + end end end @@ -1519,7 +1706,11 @@ do -- the main scope end if newGroup.clone and mist.DBs.groupsByName[newGroup.name] or not newGroup.name then - newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName]) + --if newGroup.baseName then + -- idea of later. So custmozed naming can be created + -- else + newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName]) + --end end if not newGroup.hidden then @@ -1604,11 +1795,11 @@ do -- the main scope end end else -- if aircraft and no route assigned. make a quick and stupid route so AI doesnt RTB immediately - if newCat == 'AIRPLANE' or newCat == 'HELICOPTER' then + --if newCat == 'AIRPLANE' or newCat == 'HELICOPTER' then newGroup.route = {} newGroup.route.points = {} newGroup.route.points[1] = {} - end + --end end newGroup.country = newCountry @@ -1629,7 +1820,7 @@ do -- the main scope end end - --mist.debug.writeData(mist.utils.serialize,{'msg', newGroup}, 'newGroup.lua') + --mist.debug.writeData(mist.utils.serialize,{'msg', newGroup}, 'newGroupPushedToAddGroup.lua') --log:warn(newGroup) -- sanitize table newGroup.groupName = nil @@ -2898,6 +3089,52 @@ function mist.shape.polyInCircle(poly, circle, full) return false end +function mist.shape.getPointOnSegment(point, seg, isSeg) + local p = mist.utils.makeVec2(point) + local s1 = mist.utils.makeVec2(seg[1]) + local s2 = mist.utils.makeVec2(seg[2]) + + + local cx, cy = p.x - s1.x, p.y - s1.y + local dx, dy = s2.x - s1.x, s2.x - s1.y + local d = (dx*dx + dy*dy) + + if d == 0 then + return {x = s1.x, y = s1.y} + end + local u = (cx*dx + cy*dy)/d + if isSeg then + if u < 0 then + u = 0 + elseif u > 1 then + u = 1 + end + end + return {x = s1.x + u*dx, y = s1.y + u*dy} +end + + +function mist.shape.segmentIntersect(segA, segB) + local dx1, dy1 = segA[2].x - segA[1].x, segA[2] - segA[1].y + local dx2, dy2 = segB[2].x - segB[1].x, segB[2] - segB[1].y + local dx3, dy3 = segA[1].x - segB[1].x, segA[1].y - segB[1].y + local d = dx1*dy2 - dy1*dx2 + if d == 0 then + return false + end + local t1 = (dx2*dy3 - dy2*dx3)/d + if t1 < 0 or t1 > 1 then + return false + end + local t2 = (dx1*dy3 - dy1*dx3)/d + if t2 < 0 or t2 > 1 then + return false + end + -- point of intersection + return true, segA[1].x + t1*dx1, segA[1].y + t1*dy1 +end + + function mist.pointInPolygon(point, poly, maxalt) --raycasting point in polygon. Code from http://softsurfer.com/Archive/algorithm_0103/algorithm_0103.htm --[[local type_tbl = { point = {'table'}, @@ -2936,6 +3173,10 @@ function mist.pointInPolygon(point, poly, maxalt) --raycasting point in polygon. end end +function mist.mapValue(val, inMin, inMax, outMin, outMax) + return (val - inMin) * (outMax - outMin) / (inMax - inMin) + outMin +end + function mist.getUnitsInPolygon(unit_names, polyZone, max_alt) local units = {} @@ -2989,7 +3230,6 @@ function mist.getUnitsInZones(unit_names, zone_names, zone_type) end local in_zone_units = {} - for units_ind = 1, #units do local lUnit = units[units_ind] local unit_pos = lUnit:getPosition().p @@ -4449,6 +4689,25 @@ do -- mist.util scope function mist.utils.celsiusToFahrenheit(c) return c*(9/5)+32 end + + function mist.utils.hexToRGB(hex, l) -- because for some reason the draw tools use hex when everything is rgba 0 - 1 + local int = 255 + if l then + int = 1 + end + if hex and type(hex) == 'string' then + local val = {} + hex = string.gsub(hex, '0x', '') + if string.len(hex) == 8 then + val[1] = tonumber("0x"..hex:sub(1,2)) / int + val[2] = tonumber("0x"..hex:sub(3,4)) / int + val[3] = tonumber("0x"..hex:sub(5,6)) / int + val[4] = tonumber("0x"..hex:sub(7,8)) / int + + return val + end + end + end function mist.utils.converter(t1, t2, val) if type(t1) == 'string' then @@ -6108,6 +6367,8 @@ do -- mist.msg scope local caSlots = false local caMSGtoGroup = false + local anyUpdate = false + local lastMessageTime = nil if env.mission.groundControl then -- just to be sure? for index, value in pairs(env.mission.groundControl) do @@ -6127,130 +6388,127 @@ do -- mist.msg scope end end end ---[[ + local function mistdisplayV5() - --thoughts to improve upon - --event handler based activeClients table. - --display messages only when there is an update - --possibly co-routine it. - - - - local activeClients = {} - - for clientId, clientData in pairs(mist.DBs.humansById) do - if Unit.getByName(clientData.unitName) and Unit.getByName(clientData.unitName):isExist() == true then - activeClients[clientData.groupId] = clientData.groupName - end - end - - --[f caSlots == true and caMSGtoGroup == true then - - --end - + --log:warn("mistdisplayV5: $1", timer.getTime()) + local clearView = true if #messageList > 0 then - if displayActive == false then - displayActive = true - end - --mist.debug.writeData(mist.utils.serialize,{'msg', messageList}, 'messageList.lua') - local msgTableText = {} - local msgTableSound = {} + --log:warn('Updates: $1', anyUpdate) + if anyUpdate == true then + local activeClients = {} - for messageId, messageData in pairs(messageList) do - if messageData.displayedFor > messageData.displayTime then - messageData:remove() -- now using the remove/destroy function. - else - if messageData.displayedFor then - messageData.displayedFor = messageData.displayedFor + messageDisplayRate - end - local nextSound = 1000 - local soundIndex = 0 + for clientId, clientData in pairs(mist.DBs.humansById) do + if Unit.getByName(clientData.unitName) and Unit.getByName(clientData.unitName):isExist() == true then + activeClients[clientData.groupId] = clientData.groupName + end + end + anyUpdate = false + if displayActive == false then + displayActive = true + end + --mist.debug.writeData(mist.utils.serialize,{'msg', messageList}, 'messageList.lua') + local msgTableText = {} + local msgTableSound = {} - if messageData.multSound and #messageData.multSound > 0 then - for index, sData in pairs(messageData.multSound) do - if sData.time <= messageData.displayedFor and sData.played == false and sData.time < nextSound then -- find index of the next sound to be played - nextSound = sData.time - soundIndex = index - end - end - if soundIndex ~= 0 then - messageData.multSound[soundIndex].played = true - end - end + for mInd, messageData in pairs(messageList) do + if messageData.displayedFor > messageData.displayTime then + messageData:remove() -- now using the remove/destroy function. + else + if messageData.displayedFor then + messageData.displayedFor = messageData.displayedFor + messageDisplayRate + end + local nextSound = 1000 + local soundIndex = 0 - for recIndex, recData in pairs(messageData.msgFor) do -- iterate recipiants - if recData == 'RED' or recData == 'BLUE' or activeClients[recData] then -- rec exists - if messageData.text and messageData.update then -- text - if not msgTableText[recData] then -- create table entry for text - msgTableText[recData] = {} - msgTableText[recData].text = {} - if recData == 'RED' or recData == 'BLUE' then - msgTableText[recData].text[1] = '-------Combined Arms Message-------- \n' - end - msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text - msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor - else -- add to table entry and adjust display time if needed - if recData == 'RED' or recData == 'BLUE' then - msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- Combined Arms Message: \n' - else - msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- \n' - end - msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text - if msgTableText[recData].displayTime < messageData.displayTime - messageData.displayedFor then - msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor - else - msgTableText[recData].displayTime = 1 - end - end - end - if soundIndex ~= 0 then - msgTableSound[recData] = messageData.multSound[soundIndex].file - end - end - - end - messageData.update = nil + if messageData.multSound and #messageData.multSound > 0 then + for index, sData in pairs(messageData.multSound) do + if sData.time <= messageData.displayedFor and sData.played == false and sData.time < nextSound then -- find index of the next sound to be played + nextSound = sData.time + soundIndex = index + end + end + if soundIndex ~= 0 then + messageData.multSound[soundIndex].played = true + end + end - end - end - ------- new display + for recIndex, recData in pairs(messageData.msgFor) do -- iterate recipiants + if recData == 'RED' or recData == 'BLUE' or activeClients[recData] then -- rec exists + if messageData.text then -- text + if not msgTableText[recData] then -- create table entry for text + msgTableText[recData] = {} + msgTableText[recData].text = {} + if recData == 'RED' or recData == 'BLUE' then + msgTableText[recData].text[1] = '-------Combined Arms Message-------- \n' + end + msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text + msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor + else -- add to table entry and adjust display time if needed + if recData == 'RED' or recData == 'BLUE' then + msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- Combined Arms Message: \n' + else + msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- \n' + end + table.insert(msgTableText[recData].text, messageData.text) + if msgTableText[recData].displayTime < messageData.displayTime - messageData.displayedFor then + msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor + else + --msgTableText[recData].displayTime = 10 + end + end + end + if soundIndex ~= 0 then + msgTableSound[recData] = messageData.multSound[soundIndex].file + end + end + + end + messageData.update = nil - if caSlots == true and caMSGtoGroup == false then - if msgTableText.RED then - trigger.action.outTextForCoalition(coalition.side.RED, table.concat(msgTableText.RED.text), msgTableText.RED.displayTime, true) + end + + end + ------- new display - end - if msgTableText.BLUE then - trigger.action.outTextForCoalition(coalition.side.BLUE, table.concat(msgTableText.BLUE.text), msgTableText.BLUE.displayTime, true) - end - end + if caSlots == true and caMSGtoGroup == false then + if msgTableText.RED then + trigger.action.outTextForCoalition(coalition.side.RED, table.concat(msgTableText.RED.text), msgTableText.RED.displayTime, clearView) - for index, msgData in pairs(msgTableText) do - if type(index) == 'number' then -- its a groupNumber - trigger.action.outTextForGroup(index, table.concat(msgData.text), msgData.displayTime, true) - end - end - --- new audio - if msgTableSound.RED then - trigger.action.outSoundForCoalition(coalition.side.RED, msgTableSound.RED) - end - if msgTableSound.BLUE then - trigger.action.outSoundForCoalition(coalition.side.BLUE, msgTableSound.BLUE) - end + end + if msgTableText.BLUE then + trigger.action.outTextForCoalition(coalition.side.BLUE, table.concat(msgTableText.BLUE.text), msgTableText.BLUE.displayTime, clearView) + end + end + + for index, msgData in pairs(msgTableText) do + if type(index) == 'number' then -- its a groupNumber + trigger.action.outTextForGroup(index, table.concat(msgData.text), msgData.displayTime, clearView) + end + end + --- new audio + if msgTableSound.RED then + trigger.action.outSoundForCoalition(coalition.side.RED, msgTableSound.RED) + end + if msgTableSound.BLUE then + trigger.action.outSoundForCoalition(coalition.side.BLUE, msgTableSound.BLUE) + end - for index, file in pairs(msgTableSound) do - if type(index) == 'number' then -- its a groupNumber - trigger.action.outSoundForGroup(index, file) - end - end + for index, file in pairs(msgTableSound) do + if type(index) == 'number' then -- its a groupNumber + trigger.action.outSoundForGroup(index, file) + end + end + + end + else mist.removeFunction(displayFuncId) displayActive = false end end -]] + local function mistdisplayV4() local activeClients = {} @@ -6409,14 +6667,14 @@ end]] ]] - + local new = {} new.text = vars.text -- The actual message new.displayTime = vars.displayTime -- How long will the message appear for new.displayedFor = 0 -- how long the message has been displayed so far new.name = vars.name -- ID to overwrite the older message (if it exists) Basically it replaces a message that is displayed with new text. new.addedAt = timer.getTime() - new.update = true + --log:warn('New Message: $1', new.text) if vars.multSound and vars.multSound[1] then new.multSound = vars.multSound @@ -6507,13 +6765,14 @@ end]] messageList[i].text = new.text messageList[i].msgFor = new.msgFor messageList[i].multSound = new.multSound - messageList[i].update = true + anyUpdate = true + --log:warn('Message updated: $1', new.messageID) return messageList[i].messageID end end end end - + anyUpdate = true messageID = messageID + 1 new.messageID = messageID @@ -6527,7 +6786,7 @@ end]] if displayActive == false then displayActive = true - displayFuncId = mist.scheduleFunction(mistdisplayV4, {}, timer.getTime() + messageDisplayRate, messageDisplayRate) + displayFuncId = mist.scheduleFunction(mistdisplayV5, {}, timer.getTime() + messageDisplayRate, messageDisplayRate) end return messageID @@ -6538,6 +6797,7 @@ end]] for i, msgData in pairs(messageList) do if messageList[i] == self then table.remove(messageList, i) + anyUpdate = true return true --removal successful end end @@ -6548,6 +6808,7 @@ end]] for i, msgData in pairs(messageList) do if messageList[i].messageID == id then table.remove(messageList, i) + anyUpdate = true return true --removal successful end end @@ -6984,14 +7245,6 @@ do local usedMarks = {} - local typeBase = { - ['Mi-8MT'] = {'Mi-8MTV2', 'Mi-8MTV', 'Mi-8'}, - ['MiG-21Bis'] = {'Mig-21'}, - ['MiG-15bis'] = {'Mig-15'}, - ['FW-190D9'] = {'FW-190'}, - ['Bf-109K-4'] = {'Bf-109'}, - } - local mDefs = { coa = { ['red'] = {fillColor = {.8, 0 , 0, .5}, color = {.8, 0 , 0, .5}, lineType = 2, fontSize = 16}, @@ -7012,7 +7265,7 @@ do local altNames = {['poly'] = 7, ['lines'] = 1, ['polygon'] = 7 } local function draw(s) - --log:warn(s) + --log:warn(s) if type(s) == 'table' then local mType = s.markType if mType == 'panel' then @@ -7032,7 +7285,7 @@ do elseif mType == 'arrow' then trigger.action.arrowToAll(s.coa, s.markId, s.pos[1], s.pos[2], s.color, s.fillColor, s.lineType, s.readOnly, s.message) elseif mType == 'text' then - trigger.action.textToAll(s.coa, s.markId, s.pos[1], s.color, s.fillColor, fontSize, s.readOnly, s.text) + trigger.action.textToAll(s.coa, s.markId, s.pos[1], s.color, s.fillColor, s.fontSize, s.readOnly, s.text) elseif mType == 'quad' then trigger.action.quadToAll(s.coa, s.markId, s.pos[1], s.pos[2], s.pos[3], s.pos[4], s.color, s.fillColor, s.lineType, s.readOnly, s.message) end @@ -7078,6 +7331,9 @@ do val[i] = val[i]/255 -- convert RGB values from 0-255 to 0-1 equivilent. end end + elseif type(val) == 'string' then + val = mist.utils.hexToRGB(val) + end return val end @@ -7136,12 +7392,14 @@ do local removed = false if type(id) == 'table' then for ind, val in pairs(id) do - trigger.action.removeMark(val) - mist.DBs.markList[val] = nil - removed = true + if type(val) == 'number' then + trigger.action.removeMark(val) + mist.DBs.markList[val] = nil + removed = true + end end else - trigger.action.removeMark(id) + trigger.action.removeMark(id) mist.DBs.markList[id] = nil removed = true end @@ -7437,7 +7695,7 @@ do if mType == 5 then -- text to all if not fontSize then - fontSize = checkDefs('fondSize', coa) or 16 + fontSize = checkDefs('fontSize', coa) or 16 end fCal[#fCal+1] = fontSize else @@ -7450,8 +7708,12 @@ do readOnly = true end fCal[#fCal+1] = readOnly - fCal[#fCal+1] = message + if mType == 5 then + fCal[#fCal+1] = text + else + fCal[#fCal+1] = message + end local data = {coa = coa, markId = usedId, pos = pos, markFor = markFor, color = color, readOnly = readOnly, message = message, fillColor = fillColor, lineType = lineType, markType = tNames[mType], name = name, radius = radius, text = text, fontSize = fontSize, time = timer.getTime()} mist.DBs.markList[usedId] = data @@ -7531,6 +7793,75 @@ do end end + function mist.marker.drawShape(name, v) + if mist.DBs.drawingByName[name] then + + local d = v or {} + local o = mist.utils.deepCopy(mist.DBs.drawingByName[name]) + mist.marker.add({point = {x = o.mapX, z = o.mapY}, text = name}) + --log:warn(o) + d.points = o.points or {} + if o.primitiveType == "Polygon" then + d.mType = 7 + + if o.polygonMode == "rect" then + d.mType = 6 + elseif o.polygonMode == "circle" then + d.mType = 2 + d.points = {x = o.mapX, y = o.mapY} + d.radius = o.radius + end + elseif o.primitiveType == "TextBox" then + d.mType = 5 + d.points = {x = o.mapX, y = o.mapY} + d.text = o.text or d.text + d.fontSize = d.fontSize or o.fontSize + end + -- NOTE TO SELF. FIGURE OUT WHICH SHAPES NEED TO BE OFFSET. OVAL YES. + + if o.fillColorString and not d.fillColor then + d.fillColor = mist.utils.hexToRGB(o.fillColorString) + end + if o.colorString then + d.color = mist.utils.hexToRGB(o.colorString) + end + + + if o.thickness == 0 then + d.lineType = 0 + elseif o.style == 'solid' then + d.lineType = 1 + elseif o.style == 'dot' then + d.lineType = 2 + elseif o.style == 'dash' then + d.lineType = 3 + else + d.lineType = 1 + end + + + if o.primitiveType == "Line" and #d.points >= 2 then + d.mType = 1 + local rtn = {} + for i = 1, #d.points -1 do + local var = mist.utils.deepCopy(d) + var.points = {} + var.points[1] = d.points[i] + var.points[2] = d.points[i+1] + table.insert(rtn, mist.marker.add(var)) + end + return rtn + else + if d.mType then + --log:warn(d) + return mist.marker.add(d) + end + end + end + + + end + --[[ function mist.marker.circle(v) @@ -8224,6 +8555,19 @@ do -- group tasks scope end return newCoord end + + function mist.getWindBearingAndVel(p) + local point = mist.utils.makeVec3(o) + local gLevel = land.getHeight({x = point.x, y = point.z}) + if point.y <= gLevel then + point.y = gLevel + 10 + end + local t = atmosphere.getWind(point) + local bearing = math.tan(t.z/t.x) + local vel = math.sqrt(t.x^2 + t.z^2) + return bearing, vel + + end function mist.groupToRandomPoint(vars) local group = vars.group --Required diff --git a/mist_4_5_104.lua b/mist_4_5_106.lua similarity index 93% rename from mist_4_5_104.lua rename to mist_4_5_106.lua index 3302d7f..de1499c 100644 --- a/mist_4_5_104.lua +++ b/mist_4_5_106.lua @@ -35,7 +35,7 @@ mist = {} -- don't change these mist.majorVersion = 4 mist.minorVersion = 5 -mist.build = 104 +mist.build = 106 -- forward declaration of log shorthand local log @@ -115,6 +115,17 @@ do -- the main scope zone.properties[prop.key] = prop.value end end + end + if zone.verticies then -- trust but verify + local r = 0 + for i = 1, #zone.verticies do + local dist = mist.utils.get2DDist(zone.point, zone.verticies[i]) + if dist > r then + r = mist.utils.deepCopy(dist) + end + end + zone.radius = r + end mist.DBs.zonesByName[zone_data.name] = zone @@ -123,6 +134,85 @@ do -- the main scope end end end + + mist.DBs.drawingByName = {} + mist.DBs.drawingIndexed = {} + + if env.mission.drawings and env.mission.drawings.layers then + for i = 1, #env.mission.drawings.layers do + local l = env.mission.drawings.layers[i] + + for j = 1, #l.objects do + local copy = mist.utils.deepCopy(l.objects[j]) + --log:warn(copy) + local doOffset = false + copy.layer = l.name + + local theta = copy.angle or 0 + theta = math.rad(theta) + if copy.primitiveType == "Polygon" then + + if copy.polygonMode == 'rect' then + local h, w = copy.height, copy.width + copy.points = {} + copy.points[1] = {x = h/2, y = w/2} + copy.points[2] = {x = -h/2, y = w/2} + copy.points[3] = {x = -h/2, y = -w/2} + copy.points[4] = {x = h/2, y = -w/2} + doOffset = true + elseif copy.polygonMode == "circle" then + copy.points = {x = copy.mapX, y = copy.mapY} + elseif copy.polygonMode == 'oval' then + -- oval bugs. Scale and rotation are off. + copy.points = {} + local numPoints = 24 + local angleStep = (math.pi*2)/numPoints + doOffset = true + for v = 1, numPoints do + local pointAngle = v * angleStep + local x = copy.r1 * math.cos(pointAngle) + local y = copy.r2 * math.sin(pointAngle) + + table.insert(copy.points,{x=x,y=y}) + + end + elseif copy.polygonMode == "arrow" then + doOffset = true + end + + -- NOTE TO SELF. FIGURE OUT WHICH SHAPES NEED TO BE OFFSET. OVAL YES. + --log:warn('check offset') + if theta ~= 0 and copy.points and doOffset == true then + + --log:warn('offsetting Values') + for p = 1, #copy.points do + local offset = mist.vec.rotateVec2(copy.points[p], theta) + copy.points[p] = offset + end + --log:warn(copy.points[1]) + end + + end + if copy.points and #copy.points > 1 then + for u = 1, #copy.points do + copy.points[u].x = copy.points[u].x + copy.mapX + copy.points[u].y = copy.points[u].y + copy.mapY + end + + end + if mist.DBs.drawingByName[copy.name] then + log:warn("Drawing by the name of [ $1 ] already exists in DB. Failed to add to mist.DBs.drawingByName.", copy.name) + else + + mist.DBs.drawingByName[copy.name] = copy + end + table.insert(mist.DBs.drawingIndexed, copy) + end + + end + + end + mist.DBs.navPoints = {} mist.DBs.units = {} @@ -319,6 +409,11 @@ do -- the main scope ['Arco'] = 2, ['Shell'] = 3, }, + ['TRANSPORT'] = { + ['Heavy'] = 9, + ['Trash'] = 10, + ['Cargo'] = 11, + ['Ascot'] = 12, ['JTAC'] = { ['Axeman'] = 1, ['Darknight'] = 2, @@ -360,14 +455,105 @@ do -- the main scope ['rules'] = { ['canUseAircraft'] = true, ['appliesTo'] = { - 'A-10C', + 'A-10C_2', + 'A-10C', 'A-10A', }, }, - }, - }, - }, - } + }, + ['f16'] = { + Viper = 9, + Venom = 10, + Lobo = 11, + Cowboy = 12, + Python = 13, + Rattler =14, + Panther = 15, + Wolf = 16, + Weasel = 17, + Wild = 18, + Ninja = 19, + Jedi = 20, + rules = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'F-16C_50', + 'F-16C bl.52d', + 'F-16C bl.50', + 'F-16A MLU', + 'F-16A', + }, + }, + + }, + ['f18'] = { + ['Hornet'] = 9, + ['Squid'] = 10, + ['Ragin'] = 11, + ['Roman'] = 12, + Sting = 13, + Jury =14, + Jokey = 15, + Ram = 16, + Hawk = 17, + Devil = 18, + Check = 19, + Snake = 20, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + + "FA-18C_hornet", + 'F/A-18C', + }, + }, + }, + ['b1'] = { + ['Bone'] = 9, + ['Dark'] = 10, + ['Vader'] = 11, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'B-1B', + }, + }, + }, + ['b52'] = { + ['Buff'] = 9, + ['Dump'] = 10, + ['Kenworth'] = 11, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'B-52H', + }, + }, + }, + ['f15e'] = { + ['Dude'] = 9, + ['Thud'] = 10, + ['Gunny'] = 11, + ['Trek'] = 12, + Sniper = 13, + Sled =14, + Best = 15, + Jazz = 16, + Rage = 17, + Tahoe = 18, + ['rules'] = { + ['canUseAircraft'] = true, + ['appliesTo'] = { + 'F-15E', + --'F-15ERAZBAM', + }, + }, + }, + + }, + }, + }, + } mist.DBs.const.shapeNames = { ["Landmine"] = "landmine", ["FARP CP Blindage"] = "kp_ug", @@ -554,8 +740,8 @@ do -- the main scope mist.DBs.MEgroupsById = mist.utils.deepCopy(mist.DBs.groupsById) mist.DBs.deadObjects = {} - - do + + do local mt = {} function mt.__newindex(t, key, val) @@ -875,6 +1061,7 @@ do -- the main scope --dbLog:info('iterate') for name, gData in pairs(tempSpawnedGroups) do --env.info(name) + --dbLog:info(gData) local updated = false local stillExists = false if not gData.checked then @@ -882,9 +1069,9 @@ do -- the main scope local _g = gData.gp or Group.getByName(name) if mist.DBs.groupsByName[name] then -- first check group level properties, groupId, countryId, coalition - -- dbLog:info('Found in DBs, check if updated') + --dbLog:info('Found in DBs, check if updated') local dbTable = mist.DBs.groupsByName[name] - -- dbLog:info(dbTable) + --dbLog:info(dbTable) if gData.type ~= 'static' then -- dbLog:info('Not static') @@ -905,11 +1092,11 @@ do -- the main scope end --dbLog:info('Updated: $1', updated) if updated == false and gData.type ~= 'static' then -- time to check units - --dbLog:info('No Group Mismatch, Check Units') + --dbLog:info('No Group Mismatch, Check Units') if _g and _g:isExist() == true then stillExists = true for index, uObject in pairs(_g:getUnits()) do - --dbLog:info(index) + --dbLog:info(index) if mist.DBs.unitsByName[uObject:getName()] then --dbLog:info('UnitByName table exists') local uTable = mist.DBs.unitsByName[uObject:getName()] @@ -931,14 +1118,13 @@ do -- the main scope if dbData and type(dbData) == 'table' then writeGroups[#writeGroups+1] = {data = dbData, isUpdated = updated} end - end -- Work done, so remove end tempSpawnedGroups[name] = nil tempSpawnGroupsCounter = tempSpawnGroupsCounter - 1 end - end + end end local function updateDBTables() @@ -1058,19 +1244,20 @@ do -- the main scope local function groupSpawned(event) -- dont need to add units spawned in at the start of the mission if mist is loaded in init line if event.id == world.event.S_EVENT_BIRTH and timer.getTime0() < timer.getAbsTime() then - --dbLog:info('unitSpawnEvent') - + --log:info('unitSpawnEvent') + --log:info(event) + --log:info(event.initiator:getTypeName()) --table.insert(tempSpawnedUnits,(event.initiator)) ------- -- New functionality below. ------- if Object.getCategory(event.initiator) == 1 and not Unit.getPlayerName(event.initiator) then -- simple player check, will need to later check to see if unit was spawned with a player in a flight - --dbLog:info('Object is a Unit') + --log:info('Object is a Unit') if Unit.getGroup(event.initiator) then - --dbLog:info(Unit.getGroup(event.initiator):getName()) + -- log:info(Unit.getGroup(event.initiator):getName()) local g = Unit.getGroup(event.initiator) if not tempSpawnedGroups[g:getName()] then - --dbLog:info('added') + --log:info('added') tempSpawnedGroups[g:getName()] = {type = 'group', gp = g} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end @@ -1078,7 +1265,7 @@ do -- the main scope log:error('Group not accessible by unit in event handler. This is a DCS bug') end elseif Object.getCategory(event.initiator) == 3 or Object.getCategory(event.initiator) == 6 then - --dbLog:info('Object is Static') + --log:info('Object is Static') tempSpawnedGroups[StaticObject.getName(event.initiator)] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end @@ -1236,8 +1423,8 @@ do -- the main scope tempSpawnedGroups[s:getName()] = {type = 'static'} tempSpawnGroupsCounter = tempSpawnGroupsCounter + 1 end - end - end + end + end end end @@ -1519,7 +1706,11 @@ do -- the main scope end if newGroup.clone and mist.DBs.groupsByName[newGroup.name] or not newGroup.name then - newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName]) + --if newGroup.baseName then + -- idea of later. So custmozed naming can be created + -- else + newGroup.name = tostring(newCountry .. tostring(typeName) .. mistDynAddIndex[typeName]) + --end end if not newGroup.hidden then @@ -1604,11 +1795,11 @@ do -- the main scope end end else -- if aircraft and no route assigned. make a quick and stupid route so AI doesnt RTB immediately - if newCat == 'AIRPLANE' or newCat == 'HELICOPTER' then + --if newCat == 'AIRPLANE' or newCat == 'HELICOPTER' then newGroup.route = {} newGroup.route.points = {} newGroup.route.points[1] = {} - end + --end end newGroup.country = newCountry @@ -1629,7 +1820,7 @@ do -- the main scope end end - --mist.debug.writeData(mist.utils.serialize,{'msg', newGroup}, 'newGroup.lua') + --mist.debug.writeData(mist.utils.serialize,{'msg', newGroup}, 'newGroupPushedToAddGroup.lua') --log:warn(newGroup) -- sanitize table newGroup.groupName = nil @@ -2898,6 +3089,52 @@ function mist.shape.polyInCircle(poly, circle, full) return false end +function mist.shape.getPointOnSegment(point, seg, isSeg) + local p = mist.utils.makeVec2(point) + local s1 = mist.utils.makeVec2(seg[1]) + local s2 = mist.utils.makeVec2(seg[2]) + + + local cx, cy = p.x - s1.x, p.y - s1.y + local dx, dy = s2.x - s1.x, s2.x - s1.y + local d = (dx*dx + dy*dy) + + if d == 0 then + return {x = s1.x, y = s1.y} + end + local u = (cx*dx + cy*dy)/d + if isSeg then + if u < 0 then + u = 0 + elseif u > 1 then + u = 1 + end + end + return {x = s1.x + u*dx, y = s1.y + u*dy} +end + + +function mist.shape.segmentIntersect(segA, segB) + local dx1, dy1 = segA[2].x - segA[1].x, segA[2] - segA[1].y + local dx2, dy2 = segB[2].x - segB[1].x, segB[2] - segB[1].y + local dx3, dy3 = segA[1].x - segB[1].x, segA[1].y - segB[1].y + local d = dx1*dy2 - dy1*dx2 + if d == 0 then + return false + end + local t1 = (dx2*dy3 - dy2*dx3)/d + if t1 < 0 or t1 > 1 then + return false + end + local t2 = (dx1*dy3 - dy1*dx3)/d + if t2 < 0 or t2 > 1 then + return false + end + -- point of intersection + return true, segA[1].x + t1*dx1, segA[1].y + t1*dy1 +end + + function mist.pointInPolygon(point, poly, maxalt) --raycasting point in polygon. Code from http://softsurfer.com/Archive/algorithm_0103/algorithm_0103.htm --[[local type_tbl = { point = {'table'}, @@ -2936,6 +3173,10 @@ function mist.pointInPolygon(point, poly, maxalt) --raycasting point in polygon. end end +function mist.mapValue(val, inMin, inMax, outMin, outMax) + return (val - inMin) * (outMax - outMin) / (inMax - inMin) + outMin +end + function mist.getUnitsInPolygon(unit_names, polyZone, max_alt) local units = {} @@ -2989,7 +3230,6 @@ function mist.getUnitsInZones(unit_names, zone_names, zone_type) end local in_zone_units = {} - for units_ind = 1, #units do local lUnit = units[units_ind] local unit_pos = lUnit:getPosition().p @@ -4449,6 +4689,25 @@ do -- mist.util scope function mist.utils.celsiusToFahrenheit(c) return c*(9/5)+32 end + + function mist.utils.hexToRGB(hex, l) -- because for some reason the draw tools use hex when everything is rgba 0 - 1 + local int = 255 + if l then + int = 1 + end + if hex and type(hex) == 'string' then + local val = {} + hex = string.gsub(hex, '0x', '') + if string.len(hex) == 8 then + val[1] = tonumber("0x"..hex:sub(1,2)) / int + val[2] = tonumber("0x"..hex:sub(3,4)) / int + val[3] = tonumber("0x"..hex:sub(5,6)) / int + val[4] = tonumber("0x"..hex:sub(7,8)) / int + + return val + end + end + end function mist.utils.converter(t1, t2, val) if type(t1) == 'string' then @@ -6108,6 +6367,8 @@ do -- mist.msg scope local caSlots = false local caMSGtoGroup = false + local anyUpdate = false + local lastMessageTime = nil if env.mission.groundControl then -- just to be sure? for index, value in pairs(env.mission.groundControl) do @@ -6127,130 +6388,127 @@ do -- mist.msg scope end end end ---[[ + local function mistdisplayV5() - --thoughts to improve upon - --event handler based activeClients table. - --display messages only when there is an update - --possibly co-routine it. - - - - local activeClients = {} - - for clientId, clientData in pairs(mist.DBs.humansById) do - if Unit.getByName(clientData.unitName) and Unit.getByName(clientData.unitName):isExist() == true then - activeClients[clientData.groupId] = clientData.groupName - end - end - - --[f caSlots == true and caMSGtoGroup == true then - - --end - + --log:warn("mistdisplayV5: $1", timer.getTime()) + local clearView = true if #messageList > 0 then - if displayActive == false then - displayActive = true - end - --mist.debug.writeData(mist.utils.serialize,{'msg', messageList}, 'messageList.lua') - local msgTableText = {} - local msgTableSound = {} + --log:warn('Updates: $1', anyUpdate) + if anyUpdate == true then + local activeClients = {} - for messageId, messageData in pairs(messageList) do - if messageData.displayedFor > messageData.displayTime then - messageData:remove() -- now using the remove/destroy function. - else - if messageData.displayedFor then - messageData.displayedFor = messageData.displayedFor + messageDisplayRate - end - local nextSound = 1000 - local soundIndex = 0 + for clientId, clientData in pairs(mist.DBs.humansById) do + if Unit.getByName(clientData.unitName) and Unit.getByName(clientData.unitName):isExist() == true then + activeClients[clientData.groupId] = clientData.groupName + end + end + anyUpdate = false + if displayActive == false then + displayActive = true + end + --mist.debug.writeData(mist.utils.serialize,{'msg', messageList}, 'messageList.lua') + local msgTableText = {} + local msgTableSound = {} - if messageData.multSound and #messageData.multSound > 0 then - for index, sData in pairs(messageData.multSound) do - if sData.time <= messageData.displayedFor and sData.played == false and sData.time < nextSound then -- find index of the next sound to be played - nextSound = sData.time - soundIndex = index - end - end - if soundIndex ~= 0 then - messageData.multSound[soundIndex].played = true - end - end + for mInd, messageData in pairs(messageList) do + if messageData.displayedFor > messageData.displayTime then + messageData:remove() -- now using the remove/destroy function. + else + if messageData.displayedFor then + messageData.displayedFor = messageData.displayedFor + messageDisplayRate + end + local nextSound = 1000 + local soundIndex = 0 - for recIndex, recData in pairs(messageData.msgFor) do -- iterate recipiants - if recData == 'RED' or recData == 'BLUE' or activeClients[recData] then -- rec exists - if messageData.text and messageData.update then -- text - if not msgTableText[recData] then -- create table entry for text - msgTableText[recData] = {} - msgTableText[recData].text = {} - if recData == 'RED' or recData == 'BLUE' then - msgTableText[recData].text[1] = '-------Combined Arms Message-------- \n' - end - msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text - msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor - else -- add to table entry and adjust display time if needed - if recData == 'RED' or recData == 'BLUE' then - msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- Combined Arms Message: \n' - else - msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- \n' - end - msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text - if msgTableText[recData].displayTime < messageData.displayTime - messageData.displayedFor then - msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor - else - msgTableText[recData].displayTime = 1 - end - end - end - if soundIndex ~= 0 then - msgTableSound[recData] = messageData.multSound[soundIndex].file - end - end - - end - messageData.update = nil + if messageData.multSound and #messageData.multSound > 0 then + for index, sData in pairs(messageData.multSound) do + if sData.time <= messageData.displayedFor and sData.played == false and sData.time < nextSound then -- find index of the next sound to be played + nextSound = sData.time + soundIndex = index + end + end + if soundIndex ~= 0 then + messageData.multSound[soundIndex].played = true + end + end - end - end - ------- new display + for recIndex, recData in pairs(messageData.msgFor) do -- iterate recipiants + if recData == 'RED' or recData == 'BLUE' or activeClients[recData] then -- rec exists + if messageData.text then -- text + if not msgTableText[recData] then -- create table entry for text + msgTableText[recData] = {} + msgTableText[recData].text = {} + if recData == 'RED' or recData == 'BLUE' then + msgTableText[recData].text[1] = '-------Combined Arms Message-------- \n' + end + msgTableText[recData].text[#msgTableText[recData].text + 1] = messageData.text + msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor + else -- add to table entry and adjust display time if needed + if recData == 'RED' or recData == 'BLUE' then + msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- Combined Arms Message: \n' + else + msgTableText[recData].text[#msgTableText[recData].text + 1] = '\n ---------------- \n' + end + table.insert(msgTableText[recData].text, messageData.text) + if msgTableText[recData].displayTime < messageData.displayTime - messageData.displayedFor then + msgTableText[recData].displayTime = messageData.displayTime - messageData.displayedFor + else + --msgTableText[recData].displayTime = 10 + end + end + end + if soundIndex ~= 0 then + msgTableSound[recData] = messageData.multSound[soundIndex].file + end + end + + end + messageData.update = nil - if caSlots == true and caMSGtoGroup == false then - if msgTableText.RED then - trigger.action.outTextForCoalition(coalition.side.RED, table.concat(msgTableText.RED.text), msgTableText.RED.displayTime, true) + end + + end + ------- new display - end - if msgTableText.BLUE then - trigger.action.outTextForCoalition(coalition.side.BLUE, table.concat(msgTableText.BLUE.text), msgTableText.BLUE.displayTime, true) - end - end + if caSlots == true and caMSGtoGroup == false then + if msgTableText.RED then + trigger.action.outTextForCoalition(coalition.side.RED, table.concat(msgTableText.RED.text), msgTableText.RED.displayTime, clearView) - for index, msgData in pairs(msgTableText) do - if type(index) == 'number' then -- its a groupNumber - trigger.action.outTextForGroup(index, table.concat(msgData.text), msgData.displayTime, true) - end - end - --- new audio - if msgTableSound.RED then - trigger.action.outSoundForCoalition(coalition.side.RED, msgTableSound.RED) - end - if msgTableSound.BLUE then - trigger.action.outSoundForCoalition(coalition.side.BLUE, msgTableSound.BLUE) - end + end + if msgTableText.BLUE then + trigger.action.outTextForCoalition(coalition.side.BLUE, table.concat(msgTableText.BLUE.text), msgTableText.BLUE.displayTime, clearView) + end + end + + for index, msgData in pairs(msgTableText) do + if type(index) == 'number' then -- its a groupNumber + trigger.action.outTextForGroup(index, table.concat(msgData.text), msgData.displayTime, clearView) + end + end + --- new audio + if msgTableSound.RED then + trigger.action.outSoundForCoalition(coalition.side.RED, msgTableSound.RED) + end + if msgTableSound.BLUE then + trigger.action.outSoundForCoalition(coalition.side.BLUE, msgTableSound.BLUE) + end - for index, file in pairs(msgTableSound) do - if type(index) == 'number' then -- its a groupNumber - trigger.action.outSoundForGroup(index, file) - end - end + for index, file in pairs(msgTableSound) do + if type(index) == 'number' then -- its a groupNumber + trigger.action.outSoundForGroup(index, file) + end + end + + end + else mist.removeFunction(displayFuncId) displayActive = false end end -]] + local function mistdisplayV4() local activeClients = {} @@ -6409,14 +6667,14 @@ end]] ]] - + local new = {} new.text = vars.text -- The actual message new.displayTime = vars.displayTime -- How long will the message appear for new.displayedFor = 0 -- how long the message has been displayed so far new.name = vars.name -- ID to overwrite the older message (if it exists) Basically it replaces a message that is displayed with new text. new.addedAt = timer.getTime() - new.update = true + --log:warn('New Message: $1', new.text) if vars.multSound and vars.multSound[1] then new.multSound = vars.multSound @@ -6507,13 +6765,14 @@ end]] messageList[i].text = new.text messageList[i].msgFor = new.msgFor messageList[i].multSound = new.multSound - messageList[i].update = true + anyUpdate = true + --log:warn('Message updated: $1', new.messageID) return messageList[i].messageID end end end end - + anyUpdate = true messageID = messageID + 1 new.messageID = messageID @@ -6527,7 +6786,7 @@ end]] if displayActive == false then displayActive = true - displayFuncId = mist.scheduleFunction(mistdisplayV4, {}, timer.getTime() + messageDisplayRate, messageDisplayRate) + displayFuncId = mist.scheduleFunction(mistdisplayV5, {}, timer.getTime() + messageDisplayRate, messageDisplayRate) end return messageID @@ -6538,6 +6797,7 @@ end]] for i, msgData in pairs(messageList) do if messageList[i] == self then table.remove(messageList, i) + anyUpdate = true return true --removal successful end end @@ -6548,6 +6808,7 @@ end]] for i, msgData in pairs(messageList) do if messageList[i].messageID == id then table.remove(messageList, i) + anyUpdate = true return true --removal successful end end @@ -6984,14 +7245,6 @@ do local usedMarks = {} - local typeBase = { - ['Mi-8MT'] = {'Mi-8MTV2', 'Mi-8MTV', 'Mi-8'}, - ['MiG-21Bis'] = {'Mig-21'}, - ['MiG-15bis'] = {'Mig-15'}, - ['FW-190D9'] = {'FW-190'}, - ['Bf-109K-4'] = {'Bf-109'}, - } - local mDefs = { coa = { ['red'] = {fillColor = {.8, 0 , 0, .5}, color = {.8, 0 , 0, .5}, lineType = 2, fontSize = 16}, @@ -7012,7 +7265,7 @@ do local altNames = {['poly'] = 7, ['lines'] = 1, ['polygon'] = 7 } local function draw(s) - --log:warn(s) + --log:warn(s) if type(s) == 'table' then local mType = s.markType if mType == 'panel' then @@ -7032,7 +7285,7 @@ do elseif mType == 'arrow' then trigger.action.arrowToAll(s.coa, s.markId, s.pos[1], s.pos[2], s.color, s.fillColor, s.lineType, s.readOnly, s.message) elseif mType == 'text' then - trigger.action.textToAll(s.coa, s.markId, s.pos[1], s.color, s.fillColor, fontSize, s.readOnly, s.text) + trigger.action.textToAll(s.coa, s.markId, s.pos[1], s.color, s.fillColor, s.fontSize, s.readOnly, s.text) elseif mType == 'quad' then trigger.action.quadToAll(s.coa, s.markId, s.pos[1], s.pos[2], s.pos[3], s.pos[4], s.color, s.fillColor, s.lineType, s.readOnly, s.message) end @@ -7078,6 +7331,9 @@ do val[i] = val[i]/255 -- convert RGB values from 0-255 to 0-1 equivilent. end end + elseif type(val) == 'string' then + val = mist.utils.hexToRGB(val) + end return val end @@ -7136,12 +7392,14 @@ do local removed = false if type(id) == 'table' then for ind, val in pairs(id) do - trigger.action.removeMark(val) - mist.DBs.markList[val] = nil - removed = true + if type(val) == 'number' then + trigger.action.removeMark(val) + mist.DBs.markList[val] = nil + removed = true + end end else - trigger.action.removeMark(id) + trigger.action.removeMark(id) mist.DBs.markList[id] = nil removed = true end @@ -7437,7 +7695,7 @@ do if mType == 5 then -- text to all if not fontSize then - fontSize = checkDefs('fondSize', coa) or 16 + fontSize = checkDefs('fontSize', coa) or 16 end fCal[#fCal+1] = fontSize else @@ -7450,8 +7708,12 @@ do readOnly = true end fCal[#fCal+1] = readOnly - fCal[#fCal+1] = message + if mType == 5 then + fCal[#fCal+1] = text + else + fCal[#fCal+1] = message + end local data = {coa = coa, markId = usedId, pos = pos, markFor = markFor, color = color, readOnly = readOnly, message = message, fillColor = fillColor, lineType = lineType, markType = tNames[mType], name = name, radius = radius, text = text, fontSize = fontSize, time = timer.getTime()} mist.DBs.markList[usedId] = data @@ -7531,6 +7793,75 @@ do end end + function mist.marker.drawShape(name, v) + if mist.DBs.drawingByName[name] then + + local d = v or {} + local o = mist.utils.deepCopy(mist.DBs.drawingByName[name]) + mist.marker.add({point = {x = o.mapX, z = o.mapY}, text = name}) + --log:warn(o) + d.points = o.points or {} + if o.primitiveType == "Polygon" then + d.mType = 7 + + if o.polygonMode == "rect" then + d.mType = 6 + elseif o.polygonMode == "circle" then + d.mType = 2 + d.points = {x = o.mapX, y = o.mapY} + d.radius = o.radius + end + elseif o.primitiveType == "TextBox" then + d.mType = 5 + d.points = {x = o.mapX, y = o.mapY} + d.text = o.text or d.text + d.fontSize = d.fontSize or o.fontSize + end + -- NOTE TO SELF. FIGURE OUT WHICH SHAPES NEED TO BE OFFSET. OVAL YES. + + if o.fillColorString and not d.fillColor then + d.fillColor = mist.utils.hexToRGB(o.fillColorString) + end + if o.colorString then + d.color = mist.utils.hexToRGB(o.colorString) + end + + + if o.thickness == 0 then + d.lineType = 0 + elseif o.style == 'solid' then + d.lineType = 1 + elseif o.style == 'dot' then + d.lineType = 2 + elseif o.style == 'dash' then + d.lineType = 3 + else + d.lineType = 1 + end + + + if o.primitiveType == "Line" and #d.points >= 2 then + d.mType = 1 + local rtn = {} + for i = 1, #d.points -1 do + local var = mist.utils.deepCopy(d) + var.points = {} + var.points[1] = d.points[i] + var.points[2] = d.points[i+1] + table.insert(rtn, mist.marker.add(var)) + end + return rtn + else + if d.mType then + --log:warn(d) + return mist.marker.add(d) + end + end + end + + + end + --[[ function mist.marker.circle(v) @@ -8224,6 +8555,19 @@ do -- group tasks scope end return newCoord end + + function mist.getWindBearingAndVel(p) + local point = mist.utils.makeVec3(o) + local gLevel = land.getHeight({x = point.x, y = point.z}) + if point.y <= gLevel then + point.y = gLevel + 10 + end + local t = atmosphere.getWind(point) + local bearing = math.tan(t.z/t.x) + local vel = math.sqrt(t.x^2 + t.z^2) + return bearing, vel + + end function mist.groupToRandomPoint(vars) local group = vars.group --Required