Pomi Git 256 Posted August 15, 2013 (edited) I've been trying to add an ammo crate as part of my PMC mod containing uniforms, vests and headgear but I'm getting strange results. I'm using exactly the same config setup as BI have done for their default ammo crates. The crate shows up in the editor and I can place it on the ground etc. However when you go up to the ammo crate and open up via inventory it immediately throws a missing icon texture error. This is where it gets strange. For example if I create an ammo crate containing just one of my custom vests lets say "V_PlateCarrier1_PMC_rgr". When you open the ammo crate it will pop up with an error saying the icon texture "icon_V_PlateCarrier1_PMC_x_rgr" is missing. Note the 'x' in the texture name. This icon texture name with the x does not exist and is not referenced anywhere in my mod :391: Despite the error, the item is listed in the ammo crate but without an icon. Plus when you go to select it, it wont let you wear it. If I try dropping the vest on the ground it doesn't seem to do anything but when you step away from the crate you can see a default textured vest on the ground which you cannot pick up :j: I found if I add default A3 uniforms and vests to my custom ammo crate they work fine and I can equip etc without error. I'm not convinced my custom items are the problem because if you do this via a script within a mission it works fine. So this is only a problem when configuring a pre-defined ammo crate. Before I reported this on the feedback tracker I wanted to check whether anyone else had experienced this or if im supposed to do something different for custom content. Edited August 15, 2013 by pomigit Share this post Link to post Share on other sites
lifted86 10 Posted August 15, 2013 This is a custom ammo box config i know works, maybe compare this to yours. class CfgVehicles { class NATO_Box_Base; class Custom_Ammo_Box: NATO_Box_Base { scope = 2; vehicleClass = "Ammo"; displayName = "Custom Ammo Box"; model = "\A3\weapons_F\AmmoBoxes\WpnsBox_F"; icon = "iconCrateWpns"; transportMaxWeapons = 25; transportMaxMagazines = 250; class TransportWeapons { class _xx_hgun_Rook40_F { weapon = "hgun_Rook40_F"; count = 10; }; }; class TransportMagazines { class _xx_16Rnd_9x21_Mag { magazine = "16Rnd_9x21_Mag"; count = 40; }; }; class TransportItems { }; }; }; Share this post Link to post Share on other sites
Pomi Git 256 Posted August 15, 2013 This is a custom ammo box config i know works, maybe compare this to yours. I haven't restated everything as you have but its essentially the same. Here is my script //ndefs=13 enum { destructengine = 2, destructdefault = 6, destructwreck = 7, destructtree = 3, destructtent = 4, stabilizedinaxisx = 1, stabilizedinaxesxyz = 4, stabilizedinaxisy = 2, stabilizedinaxesboth = 3, destructno = 0, stabilizedinaxesnone = 0, destructman = 5, destructbuilding = 1 }; class CfgPatches { class POMI_PMC_Ammoboxes { units[] = {"Box_POMI_PMC_Wps_F","POMI_PMC_supplyCrate_F"}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {"A3_Weapons_F"}; }; }; class CfgVehicles { class NATO_Box_Base; class B_supplyCrate_F; class POMI_PMC_supplyCrate_F: B_supplyCrate_F { scope = 2; displayName = "Supply Box [PG Services]"; class TransportMagazines{}; class TransportItems{}; class TransportWeapons { class V_PlateCarrier1_PMC_rgr { weapon = "V_PlateCarrier1_PMC_rgr"; picture = "\pomi_pmc\icons\icon_V_PlateCarrier1_PMC_rgr.paa"; count = 5; }; }; }; }; And here are some screenshots showing the issue the error the inventory the default textured vest on the floor Share this post Link to post Share on other sites
surpher 1 Posted August 15, 2013 Classes in ammoboxes have the _xx_ prefix before them, is class V_PlateCarrier1_PMC_rgr conlicting with your actual vest class? And do you need to add too requiredAddons[]? Share this post Link to post Share on other sites
Pomi Git 256 Posted August 15, 2013 (edited) Classes in ammoboxes have the _xx_ prefix before them, is class V_PlateCarrier1_PMC_rgr conlicting with your actual vest class? Sorry I should have fixed that up before posting. I removed the "_xx_" when testing for a fix but I have them in there normally and it makes no difference. What do you mean by do you need to add too requiredAddons[]? If you are referring to the units. I have another crate configd which i removed from the above posting Edited August 15, 2013 by pomigit Share this post Link to post Share on other sites
lifted86 10 Posted August 16, 2013 Have you tried removing this line? picture = "\pomi_pmc\icons\icon_V_PlateCarrier1_PMC_rgr.paa"; Havent seen that one before. The icon should be in the the vest config. Share this post Link to post Share on other sites
Pomi Git 256 Posted August 16, 2013 Have you tried removing this line?picture = "\pomi_pmc\icons\icon_V_PlateCarrier1_PMC_rgr.paa"; Havent seen that one before. The icon should be in the the vest config. Yeah I tried that it didnt work. I think its a bug so ive raised an issue http://feedback.arma3.com/view.php?id=12855 Share this post Link to post Share on other sites
surpher 1 Posted August 16, 2013 Have you tried putting your vest in TransportItems instead of TransportWeapons. Share this post Link to post Share on other sites
Pomi Git 256 Posted August 17, 2013 Have you tried putting your vest in TransportItems instead of TransportWeapons. No I haven't but vests and uniforms are treat as weapons, plus as I mentioned default arma 3 gear works fine if I put them in the crate. Anyway not to worry, looks like the devs are looking into it Share this post Link to post Share on other sites
surpher 1 Posted August 17, 2013 Been playing around with ui vest icon filenames, this is what I found. icon_v_plate_carrier_1_ca is the icon for V_PlateCarrier1_rgr icon_v_plate_carrier_1_ca - Error (Original filename) icon_v_platecarrier_1_ca - Error icon_v_plate_carrier1_ca - Shows icon and count icon_v_plate_carrier_11_ca - Error icon_v_plate_carrier_111_ca - Error icon_v_plate_carrier_1111_ca - Shows icon and count I also used letters in place of the numbers and got the same results. Share this post Link to post Share on other sites
Pomi Git 256 Posted August 19, 2013 Been playing around with ui vest icon filenames, this is what I found.icon_v_plate_carrier_1_ca is the icon for V_PlateCarrier1_rgr icon_v_plate_carrier_1_ca - Error (Original filename) icon_v_platecarrier_1_ca - Error icon_v_plate_carrier1_ca - Shows icon and count icon_v_plate_carrier_11_ca - Error icon_v_plate_carrier_111_ca - Error icon_v_plate_carrier_1111_ca - Shows icon and count I also used letters in place of the numbers and got the same results. :j: It just gets stranger. Hopefully the dev's see your test results Share this post Link to post Share on other sites
Chairborne 2594 Posted August 26, 2013 Hi did you manage to find any fix for this? I'm trying to create a backpack with custom contents but i have the same problem you described. Items either don't appear or if they do they can't be put into proper inventory slots, happens with both uniforms and vests. Share this post Link to post Share on other sites
Pomi Git 256 Posted August 27, 2013 No, its raised as a bug and with bi to fix now. If you follow the issue on the feedback tracker you will be notified once it is fixed. Share this post Link to post Share on other sites
Chairborne 2594 Posted August 27, 2013 Thank you for the headsup. By the way i solved this for now by adding an eventhandler that adds the items i need. Share this post Link to post Share on other sites