MartinCo Posted December 13, 2022 Posted December 13, 2022 Hey ED, Whilst this is somewhat Apache specific for the moment, I decided general as it's an API issue With the introduction of the Apache and mixed Launcher loadouts the getAmmo does not return the correct ammo quantity. Reproduction: Loaded: M261 - 19 x Hydra 70, Pod Zones: C - M274; D/E - M151 Unit:getAmmo() reports 19 x M151 - This should return 12 M274 and 7 M151 After firing 1 x M151 and 2 x M274, the EVENT_SHOT shows the correct missile launched, and as you can see in my WPN page we now have 10 M274 and 6 M151, while getAmmo() reports 16 M151 Hopefully this image has all the information required without a track as the track wouldn't show anything other than the loadout Thanks, Martin
MartinCo Posted April 3, 2023 Author Posted April 3, 2023 @Flappiesorry for the ping (but you're mostly active on scripting items), probably should have created this in the ME forum - wasn't sure which is the best place for scripting issue visibility
Flappie Posted April 22, 2023 Posted April 22, 2023 Hi @MartinCo. I may be active on the scripting bug report front, but my Lua skills are still weak. Could you please attach an example mission including the script you're using? ---
MartinCo Posted April 24, 2023 Author Posted April 24, 2023 Sorry for the delay, I only just saw this, Please find attached a self contained setup. * F10 menu just to print the results of getAmmo showing 38 x M151 * WPN page shows 32 M151, and 6 M257 illumination * Upon firing, pop up message shows that i'm firing M257 Illumination * F10 getAmmo now reports 32 M151. Thank you! getAmmo.trk
MartinCo Posted August 23, 2023 Author Posted August 23, 2023 (edited) Hey @Flappie, Since the recent introduction of the mixed hellfire pylons on the Apache in the last couple of OB releases (1K + 3L, 2K + 2L etc) we have seen an expansion of this issue. Taking a mixed pylon of 1K+3L getAmmo reports as a 4 Kilos We thought about using the newly available warehouse API to manage what munitions are available, and unfortunately this case persists as the warehouse reduces by K only. Please see attached trackgetAmmo_114K.trk - Batumi has 8K in stock (no other weapons) - I load two pylons of 1K + 3L, we can see that the L-only pylons are unavailable - I run getAmmo() and it reports 8K taken - WPN page shows 1K + 3L on each pylon - I head back to rearm/refuel to show the warehouse reports no stock available (I.e. considers it all K) Thanks! Martin Edited August 24, 2023 by MartinCo 1
Flappie Posted August 23, 2023 Posted August 23, 2023 Hi @MartinCo. I realize I missed your previous post. Sorry about that. I'll check your track when I get home. 1 ---
Flappie Posted August 28, 2023 Posted August 28, 2023 (edited) I had reported this issue earlier but could not remember it. I've updated the internal report with your latest track. Edited August 28, 2023 by Flappie 2 ---
Recommended Posts