Buzzer1977 Posted January 25 Posted January 25 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
Flappie Posted January 25 Posted January 25 Do you mind sharing your script so I can quickly reproduce the issue? ---
Buzzer1977 Posted January 26 Author Posted January 26 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 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
mousepilot Posted February 20 Posted February 20 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
Flappie Posted February 20 Posted February 20 It was reported earlier. https://forum.dcs.world/topic/368255-static-pad-single-gives-wrong-external-category-ship/ 1 ---
mousepilot Posted February 21 Posted February 21 Oops, my bad, I searched but couldn't find that post. Thanks again for your help. Cheers.
Flappie Posted February 21 Posted February 21 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. ---
ED Team BIGNEWY Posted February 21 ED Team Posted February 21 threads merged Forum rules - DCS Crashing? Try this first - Cleanup and Repair - Discord BIGNEWY#8703 - Youtube - Patch Status Windows 11, NVIDIA MSI RTX 3090, Intel® i9-10900K 3.70GHz, 5.30GHz Turbo, Corsair Hydro Series H150i Pro, 64GB DDR @3200, ASUS ROG Strix Z490-F Gaming, PIMAX Crystal
Flappie Posted March 19 Posted March 19 @Buzzer1977 @mousepilot Issue fixed with today's update. 1 ---
mousepilot Posted March 20 Posted March 20 @Flappie Happy to confirm that in patch 2.9.14.8222 this issue is resolved. Thank you for your help and everyone at ED. 1
Recommended Posts