Jump to content

Recommended Posts

Posted

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
 

niZ7mxl.png

 

Thanks,
Martin

  • 3 months later...
Posted

@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 

  • 3 weeks later...
Posted

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

  • 3 months later...
Posted (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 by MartinCo
  • Thanks 1
Posted (edited)

I had reported this issue earlier but could not remember it. I've updated the internal report with your latest track.

Edited by Flappie
  • Like 2

---

  • Recently Browsing   0 members

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