DJK Posted April 29, 2024 Posted April 29, 2024 Hello. Using getInventory() function to get all items in a warehouse, but some are missing, even though they are set in mission editor and are showing on the in-game resource window. Things like the PK-3 pods for the L-39ZA, gunners for Mi8 and some others. What gives? Is this a bug or is there a way to get those items as well? I've attached a simple mission which illustrates what i'm talking about. Batumi warehouse set with 4 items in stock (BetAB 500, Fuel Tank 150L, ALQ-184 and PK-3) and a small script that iterates through the warehouse items 5 seconds in, but only 3 are found. Thanks! getInventoryTsT.miz
Solution Grimes Posted April 29, 2024 Solution Posted April 29, 2024 Known bug with gun pods and maybe a few other weird object types. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Chesster Posted August 27, 2024 Posted August 27, 2024 @Grimes There are many items missing when i run it on a full warehouse inventory. If it was only some weird type of inventory missing I wouldn't care much, but it's also missing items for core modules like F-16CM center tank. Here is a list of all items missing that I found: A2G Missiles: Kh-23L (as-7) BOMBS: LGB-50LGB MPS-410 Kopyo Several !!!!! FUEL TANKS: ptb-3000 fuel tank 1000 gal fuel_tank_370gal fuel_tank_300gal fuel tank 330 gal fuel tank 800 l fuel tank mig-25 fuel tank 1150 l fuel tank 1500 l 275 Gal Fuel Tank fuel tank 1500 kg fuel tank 1000 kg fuel tank f-4 (wing) fuel tank f-4 (fuselage) PTB-2000 fuel tank 800 l wing S-3-PTB fuel tank 370 gal PTB-1150-29 Fuel tank FT600 PTB-150 Drop tank 75gal MISC: sppu-22 UPK-23-250 R-73U (RED) R-73U (GREEN) R-73U (BLUE) R-73U (WHITE) R-73U (YELLOW) R-73U (ORANGE) AIM-9S (GREEN) AIM-9S (BLUE) AIM-9S (WHITE) AIM-9S (YELLOW) AIM-9S (ORANGE) MXU-648 OH-58D_BROWNING AB-212_m134_l AB-212_m134_r GUV_YakB GUV_VOG HWAR smote generator ab-212_m134gunner_l ab-212_m134gunner_r ab-212_m60gunner_l ab-212_m60gunner_r mi-8_gunner mi-8_gunner_b AKANM55 GAU_12_Equalizer DEFA-553 AN-M3 ADEN_GUNPOD PK-3 GAU_12_Equalizer_AP GAU_12_Equalizer_HE M134MiniGunner_R_SA342 MI24Gunner MB339-DEFA553_L MB339-DEFA553_R MB339_cal50_L MB339_cal50_R GIAT_M261_APHE GIAT_M261_HEAP GIAT_M261_HE GIAT_M261_SAPHEI GIAT_M261_AP HMP400 HMP400200 HMP400100 AKANM55_NO_TRC DEFA-553 SUU-23 CH47_PORT_M60D CH47_STBD_M60D CH47_AFT_M60D CH47_PORT_M240H CH47_STBD_M240H CH47_AFT_M240H CH47_PORT_M134D CH47_STBD_M134D CH47_AFT_M3M M3P500 M3P400 M3P300 M3P200 M3P100 MK4 HEIPEG Hercules_105mm_Howitzer Hercules_GAU_23A_Chain_Gun Hercules_M61_Vulcan_Rotary_Chain_Gun 1
INFAMOUS Posted January 16 Posted January 16 (edited) Did they change the name of the file for the 370 gallon tanks on the F-16 again? my tank diff is named "fuel_tank_370gal_diff" and they do not show up again. The flight suit and helmet do not show up anymore either. Edited January 16 by INFAMOUS
tae. Posted October 12 Posted October 12 I was about to report this as a bug after running into it with my own mission, but then saw this thread. @Grimes is this actually reported as a bug to ED? It would be nice to have the rest of the items added to getInventory() in advance of modules like the C-130J being added, and logistics becoming more fleshed out in DCS. Seems this has sat idle for some time now. If anyone knows of any other workaround that would also be appreciated. 1
IndyNavy Posted October 16 Posted October 16 This issue persists now with UH-60L/DAP...Any fixes on the horizon? https://www.twitch.tv/indynavy
tae. Posted October 24 Posted October 24 (edited) On 10/16/2025 at 10:59 PM, IndyNavy said: This issue persists now with UH-60L/DAP...Any fixes on the horizon? I had this mod too, removed it and all other mods to double check. The issue is not caused by UH-60L or any other mods. Warehouse items that are in the base game are still missing (eg. 300 and 370 gal. fuel tanks for the F-16C, among others posted in the list above by Chesster). Although I realise you might mean that mod items are also not returned. Edited October 24 by tae. 1
IndyNavy Posted October 29 Posted October 29 On 10/24/2025 at 3:02 PM, tae. said: I had this mod too, removed it and all other mods to double check. The issue is not caused by UH-60L or any other mods. Warehouse items that are in the base game are still missing (eg. 300 and 370 gal. fuel tanks for the F-16C, among others posted in the list above by Chesster). Although I realise you might mean that mod items are also not returned. Using wsType for weapons doesn't work well because it varies per client and is the only way to pull them from the .miz file. With some hackery, we were able to log all real weapon IDs. Got 1,173 weapons (including UH60 payloads) vs MOOSE's ~600. https://github.com/FlightControl-Master/MOOSE/pull/2412 https://www.twitch.tv/indynavy
tae. Posted Wednesday at 04:14 PM Posted Wednesday at 04:14 PM (edited) 13 hours ago, IndyNavy said: Using wsType for weapons doesn't work well because it varies per client and is the only way to pull them from the .miz file. With some hackery, we were able to log all real weapon IDs. Got 1,173 weapons (including UH60 payloads) vs MOOSE's ~600. https://github.com/FlightControl-Master/MOOSE/pull/2412 Not sure I fully understand, the issue is not just missing weapons/types (although that's part of it), it's that we are unable to fetch a full list of warehouse contents via. getInventory() on the built-in scripting API - certain items are missing. As such, it's impossible to know the quantity of certain items there are remaining in the warehouse. For example, as "fuel_tank_300gal" is never returned by getInventory(), you can never know how many of that item are left at a specific airbase, FARP, etc. In my particular use-case this means that all affected items cannot be kept track of with persistence scripts like SWS. Unless you are suggesting that your pull / MOOSE can now somehow see those warehouse contents and quantities, in which case I'd be interested in how that works, it was always my understanding that things like MIST and MOOSE build on top of what is already there / available in DCS, so I'm not sure how it can do this while the functionality is broken/missing in the core. Edited Wednesday at 04:14 PM by tae. 2
Heart8reaker Posted Sunday at 06:45 AM Posted Sunday at 06:45 AM On 10/29/2025 at 6:14 PM, tae. said: Not sure I fully understand, the issue is not just missing weapons/types (although that's part of it), it's that we are unable to fetch a full list of warehouse contents via. getInventory() on the built-in scripting API - certain items are missing. As such, it's impossible to know the quantity of certain items there are remaining in the warehouse. For example, as "fuel_tank_300gal" is never returned by getInventory(), you can never know how many of that item are left at a specific airbase, FARP, etc. In my particular use-case this means that all affected items cannot be kept track of with persistence scripts like SWS. Unless you are suggesting that your pull / MOOSE can now somehow see those warehouse contents and quantities, in which case I'd be interested in how that works, it was always my understanding that things like MIST and MOOSE build on top of what is already there / available in DCS, so I'm not sure how it can do this while the functionality is broken/missing in the core. We do not use getInventory() anymore, it has always been an issue in DCS, especially when it comes to mods. After we obtained the full list of warehouse equipments we simply set the values for each according to our mission persistence and keep track from there. And since we have the full list of names, we fetch each one individually using the item name (not wsType) with `warehouse:getItemCount()`. I only had the UH-60L mod installed when I pulled the list so it pulled its unique equipment as well, gunner seat for UH-60L for example is called 'weapons.gunmounts.{UH60L_M60_GUNNER}'. warehouse_weapons.lua
Recommended Posts