Jump to content

Recommended Posts

Posted

airbase:getCategoryEx() for Static PAD Single returns 2, should return 1, because it's not a ship.

2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ----------------------------Static PAD Single-1----------------------------
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 2 - Desc: {
  "life": 10000000,
  "attributes": {
    "Buildings": true
  },
  "_origin": "",
  "category": 2,
  "displayName": "",
  "typeName": "FARP",
  "box": {
    "min": {
      "y": -15.403341293335,
      "x": -37.33903503418,
      "z": -36.837474822998
    },
    "max": {
      "y": 1.2944123744965,
      "x": 37.339050292969,
      "z": 36.837471008301
    }
  }
}
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ----------------------------Static FARP-1----------------------------
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 1 - Desc: {
  "life": 10000000,
  "attributes": {
    "Helipad": true
  },
  "_origin": "",
  "category": 1,
  "displayName": "FARP",
  "typeName": "FARP",
  "box": {
    "min": {
      "y": -19.947093963623,
      "x": -129.53994750977,
      "z": -129.53994750977
    },
    "max": {
      "y": 19.947093963623,
      "x": 129.53994750977,
      "z": 129.53994750977
    }
  }
}
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.980 INFO    SCRIPTING (Main): ----------------------------Static Helipad Single-1-1----------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 1 - Desc: {
  "life": 10000000,
  "attributes": {
    "Helipad": true
  },
  "_origin": "",
  "category": 1,
  "displayName": "SINGLE_HELIPAD",
  "typeName": "SINGLE_HELIPAD",
  "box": {
    "min": {
      "y": -19.947093963623,
      "x": -129.53994750977,
      "z": -129.53994750977
    },
    "max": {
      "y": 19.947093963623,
      "x": 129.53994750977,
      "z": 129.53994750977
    }
  }
}
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ----------------------------Static Invisible FARP-1-1----------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 1 - Desc: {
  "life": 10000000,
  "attributes": {
    "Helipad": true
  },
  "_origin": "",
  "category": 1,
  "displayName": "Invisible FARP",
  "typeName": "Invisible FARP",
  "box": {
    "min": {
      "y": -19.947093963623,
      "x": -129.53994750977,
      "z": -129.53994750977
    },
    "max": {
      "y": 19.947093963623,
      "x": 129.53994750977,
      "z": 129.53994750977
    }
  }
}
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ----------------------------Naval-1-1----------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 2 - Desc: {
  "massEmpty": 25000000,
  "RCS": 7222.6440429688,
  "box": {
    "min": {
      "y": -6.9292697906494,
      "x": -90.033866882324,
      "z": -14.135508537292
    },
    "max": {
      "y": 38.787422180176,
      "x": 119.5740737915,
      "z": 14.126998901367
    }
  },
  "speedMax": 12.777700424194,
  "life": 7300,
  "attributes": {
    "Aircraft Carriers": true,
    "AircraftCarrier With Tramplin": true,
    "AircraftCarrier": true,
    "Ships": true,
    "RADAR_BAND1_FOR_ARM": true,
    "NO_SAM": true,
    "RADAR_BAND2_FOR_ARM": true,
    "DetectionByAWACS": true,
    "Heavy armed ships": true,
    "Straight_in_approach_type": true,
    "Armed Air Defence": true,
    "HelicopterCarrier": true,
    "Armed Ship": true,
    "HeavyArmoredUnits": true,
    "All": true,
    "Naval": true,
    "Armed ships": true
  },
  "category": 2,
  "Kmax": 0.050000000745058,
  "_origin": "China Asset Pack by Deka Ironwork Simulations and Eagle Dynamics",
  "typeName": "Type_071",
  "displayName": "Type 071 Amphibious Transport Dock"
}
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ------------------------------------------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): ----------------------------BLU-CG-1-2----------------------------
2025-01-25 10:23:28.981 INFO    SCRIPTING (Main): - CAT: 4 - exCAT: 2 - Desc: {
  "massEmpty": 72916000,
  "RCS": 20059.416015625,
  "box": {
    "min": {
      "y": -12.130121231079,
      "x": -171.06927490234,
      "z": -46.412311553955
    },
    "max": {
      "y": 65.324577331543,
      "x": 169.96752929688,
      "z": 41.562206268311
    }
  },
  "speedMax": 15.433300018311,
  "life": 7300,
  "attributes": {
    "Aircraft Carriers": true,
    "AircraftCarrier": true,
    "ACLS": true,
    "RADAR_BAND1_FOR_ARM": true,
    "RADAR_BAND2_FOR_ARM": true,
    "AircraftCarrier With Arresting Gear": true,
    "Link4": true,
    "Heavy armed ships": true,
    "AircraftCarrier With Catapult": true,
    "Naval": true,
    "Armed Air Defence": true,
    "Armed ships": true,
    "Ships": true,
    "Arresting Gear": true,
    "Armed Ship": true,
    "HeavyArmoredUnits": true,
    "All": true,
    "catapult": true,
    "Datalink": true
  },
  "category": 2,
  "Kmax": 0.050000000745058,
  "_origin": "USS_Nimitz",
  "typeName": "CVN_73",
  "displayName": "CVN-73 George Washington"
}

AMD Ryzen 9 5950x, MSI MEG x570 Unify, G.Skill 128GB DDR4-3200, MSI RTX3090 Ventus 3x 24GB, Samsung PCIe 4.0 M.2 1TB 980 Pro, Seagate PCIe 4.0 M.2 2TB FireCuda 520, Quest 3

Posted

    env.info("--airbases----------------------------------------------------------")
    for k, airbase in pairs(world.getAirbases()) do
        env.info("----------------------------" .. airbase:getName() .. "----------------------------")
        env.info("- CAT: " .. tostring(airbase:getCategory()) .. " - exCAT: " .. tostring(airbase:getCategoryEx()) .. " - Desc: " .. tostring(airbase:getDesc()))
        env.info("------------------------------------------------------------")
    end

I've added a sample mission and the dcs.log of the sample mission

 

 

SinglePadBug.miz dcs.log

  • Thanks 1

AMD Ryzen 9 5950x, MSI MEG x570 Unify, G.Skill 128GB DDR4-3200, MSI RTX3090 Ventus 3x 24GB, Samsung PCIe 4.0 M.2 1TB 980 Pro, Seagate PCIe 4.0 M.2 2TB FireCuda 520, Quest 3

  • 4 weeks later...
Posted

Hi everyone,

When I was using the PAD Single object and retrieving its Airbase.getCategoryEx, I expected it to return Helipad. But currently, it returns Ship.

You can reproduce the issue using the attached .miz.

When you launch the mission, it will display the names, types, and type codes of all airbases in the mission.

The code running in the .miz is shown in mission.lua.

Please let me know if you need more details.

 

FARP Category Test.miz mission.lua

Posted

The search engine is broken in this part of the forum. At the root of "Bugs and problems", it only returns "Game performance bugs" threads. I reported this issue but it did not help. I'll bump my report.

---

  • 4 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...