Jump to content
eggbeast

Picture not found - really odd issue - any ideas?

Recommended Posts

i'm having a problem - any working picture i add to a new m60 for its menu icon - even ones that are for other m60 versions in our mod with all pictures completely working - pops up

picture "\uns_weap_w\m60\ico\w_x_box.paa" not found

if i change it to uns_weap_w\m60\ico\w_box2.paa, it says the same message, always removing the word m60 and replacing it with x

 

i made the new m60 inherit picture = from a base class uns_m60_base which has this
 

picture = "\uns_weap_w\m60\ico\w_m60_box.paa";

and other children of the same parent show the image fine but this gun throws a popup error

unpacking the pbo, the image is in the correct place, which is obvious as it appears for the other guns that use it...

 

wtf is going on?

 

wtf1_zpsrn8ma8kt.jpg

config:

	class uns_m60_base: Uns_HMG
	{
		scope = 2; scopearsenal =2;
		displayName = "M-60 MG";
		model = "\uns_weap_w\m60\uns_m60_box";
		picture = "\uns_weap_w\m60\ico\w_m60_box.paa";
		UiPicture = "\uns_men_c\icon\UStroops\i_mg_CA.paa";
		handAnim[] = {"OFP2_ManSkeleton","\uns_weap_a\bis\M60E4.rtm"};
        magazineReloadSwitchPhase = 0.5;
//etc...

child 1 - with the problem

    class uns_m60: uns_m60_base
    {
        scope = 2; scopeArsenal = 2;
        author = "Twinke Masta, Millenia, Toadie";
        displayName = "M-60 MG";
//        model = "\uns_weap_w\m60\uns_m60_box";
        model = "\uns_weap_t\m60\uns_m60_new";
        handanim[] = {"OFP2_ManSkeleton", "\uns_weap_t\m60\gesture\m60e4.rtm"};
        cameradir = "aim_point";
        discreteDistanceCameraPoint[]={"eye3","eye4","eye5","eye6","eye7","eye8","eye9","eye10","eye11"};
        discretedistance[] = {300,400,500,600,700,800,900,1000,1100};
        discretedistanceinitindex = 0;
        distanceZoomMin = 100;
        distanceZoomMax = 1100;
        opticsZoomMin = 0.25;
        opticsZoomMax = 1.25;
        opticsZoomInit = 0.75;
        class GunParticles : GunParticles
        {
            class SecondEffect
            {
                positionName = "Nabojnicestart";
                directionName = "Nabojniceend";
                effectName = "CaselessAmmoCloud";
            };
            class AmmoBeltEject
            {
                directionName = "linkeject_end";
                effectName = "MachineGunEject2";
                positionName = "linkeject_start";
            };
        };
        class WeaponSlotsInfo: WeaponSlotsInfo
        {
            mass = 200;
            class MuzzleSlot{};
            class CowsSlot{};
            class PointerSlot{};
            class UnderBarrelSlot{};
        };
        hasBipod = 1;
        deployedpivot = "deploypivot";
        soundBipodDown[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_down", db - 3, 1, 20 };
        soundBipodUp[] = { "A3\Sounds_F_Mark\arsenal\sfx\bipods\Bipod_AAF_up", db - 3, 1, 20 };
/*
        class LinkedItems
        {
            class LinkedItemsAcc
            {
                slot = "UnderBarrelSlot";
                item = "uns_bp_M60";
            };
        };
*/
//mods
        AGM_Overheating_Dispersion[] = {0,-0.001,0.001,0.003};
        AGM_Overheating_SlowdownFactor[] = {1,1,1,0.9};
        AGM_Overheating_JamChance[] = {0,0.0003,0.0015,0.0075};
        agm_bipod = 1;
        AGM_Overheating_allowSwapBarrel = 1;
        AB_barrelTwist=12;
        AB_barrelLength=22;
        ACE_barrelTwist = 304.8;
        ACE_barrelLength = 558.8;
        tmr_autorest_deployable = 1;
        bg_bipod = 1;
        cse_bipod = 1;
    };

child 2 and 3 - show image fine

	class uns_M60old: uns_m60_base
	{
		scope = 2; scopeArsenal = 2;
		displayName = "M60 (old)";
		model = "\uns_weap_w\m60\uns_m60_old";
//		picture = "\uns_weap_w\m60\ico\w_m60_box.paa";
		class LinkedItems
		{
			class LinkedItemsAcc
			{
				slot = "UnderBarrelSlot";
				item = "uns_bp_M60";
			};
		};
	};
	class uns_m60support: uns_M60old
	{
		displayName = "M-60 (MG Support)";
		handAnim[] = {"OFP2_ManSkeleton","\uns_weap_a\m60\mg_butt.rtm"};
		magazines[] = {"uns_m60mag_200","uns_m60mag"};
		descriptionShort = "M-60 GPMG with operator hand on butt-stock";
		class FullAuto: FullAuto
		{
			dispersion = 0.0025;
		};
	};

Share this post


Link to post
Share on other sites

i am thinking it must be something to do with attachment pictures...the ones that fill in the white boxes etc.

Share this post


Link to post
Share on other sites

holy shit now i know it's my birthday - cheers!

Share this post


Link to post
Share on other sites

If you read some of the other topics in this forum, you will notice others including myself are having trouble with certain *.paa files showing up in game.

 

It could be a PBO compiler issue or it could be an engine issue.  I've created a ticket on feedback tracker, so at least BIS will take a look at the issue.

 

If you are using the latest version of ARMA 3 Tools off of Steam I would suggest you try PBO Manager  http://www.armaholic.com/page.php?id=16369 and see if you get the same error.  If you don't get the same error please open a ticket on Feedback Tracker https://feedback.bistudio.com/project/view/1/

Share this post


Link to post
Share on other sites

ok thanks i will give that a try. as you can clearly see above, the image does show up in game for one gun but not for the other and it generates a missing image popup and does not show up FOR THAT GUN ONLY in the SAME BUILD, with the definition of the picture being inherited by both the gun that shows up and the one that does not work. so the image works fine for some guns - w . t . f.

Share this post


Link to post
Share on other sites

i have also remadethe picture, by opening a BI image, and pasting my image and alpha across to the BI image. still fails for one gun only, but works for the rest...

makes me think there is something specific about the gun (it has hasbipod =1 - a built in bipod vs a separate bipod on the other guns) that causes this. so if you have hasbipod =1, it seems to be looking for another picture to place the bipod in the picture or something...

 

thing is, i have other weapons with hasbipod =1, and they don't have the same problem.

Share this post


Link to post
Share on other sites

SOLVED - i just made a duplicate of the file and named it w_x_box.paa like the popup was asking for. and hey presto! it shows up. so wtf is that about eh?

Share this post


Link to post
Share on other sites

it was caused by old inventory system method - if weapon was matching picture name then it was looking for specific variants (like with bipod, muzzle slot, etc - pre 1.40 you had to create ~6 pictures to cover all those variants)

https://community.bistudio.com/wiki/Arma_3_Weapon_Config_Guidelines#Inventory_icons_overlay_methodadapting this method should fix the issue too

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×