Jump to content
cosmic10r

Config Inheritance problem

Recommended Posts

Hey all,

 

Im having an issue with inheritances in a config I have for the Rusty weapons for the ravage mod

 

This inheritance works no problem.

 

    class LMG_Zafir_F;
    class Rusty_LMG_Zafir_F: LMG_Zafir_F
    {
        author = "CosmiC10R";

        More code = the rest of the config;
     };

 

but with Lmgs I found I had this which was not required for the rifle class to show up.

 

baseWeapon = "Rusty_LMG_Zafir_F";

 

 

 

Now I am finding that this wont work for the LIM 85 from Apex, The rifle will show up but it doesn't apply the textures.

 

        class LMG_03_F;
        class rusty_LMG_03_F: LMG_03_F
        {
        author = "CosmiC10R";
        scope = 2;
        displayName = "LIM 85 5.56mm (Rusty)";
        baseWeapon = "rusty_LMG_03_F";

        picture = "\rvg_weapons\weapons\textures\Lim\rusty_icon_LMG_03_F_X_CA.paa";
        hiddenSelections[] = {"camo1","camo2","camo3"};
        hiddenSelectionsTextures[] = {"\rvg_weapons\weapons\textures\Lim\rusty_lmg_03_f_body_co.paa","\rvg_weapons\weapons\textures\Lim\rusty_lmg_03_f_acc_co.paa","\rvg_weapons\weapons\textures\Lim\rusty_grip_co.paa"};      

       };

 

I am also finding the  same issue for a pistol retexture, Is there a step or line I am missing in here that anyone can obviously see... the weird thing is the inheritances work fine for the rpg and rifles or I would likely have more success narrowing it down...

 

class CfgWeapons
{

    class Pistol_Base_F;    
    class rusty_hgun_Pistol_01_F: Pistol_Base_F
    {
        author = "CosmiC10R";
        scope = 2;
        displayName = "Pmm 09(Rusty)";
        hiddenSelections[] = {"camo1"};
        hiddenSelectionsTextures[] = {"\rvg_weapons\weapons\textures\pmm\rusty_pmm_co.paa"};
    };
        class arifle_SPAR_01_base_F;    
        class muddy_arifle_SPAR_02_base_F: arifle_SPAR_01_base_F
    {
        author = "CosmiC10R";
        scope = 2;
        displayName = "Spar 5.56mm (Muddy)";
        hiddenSelections[] = {"camo1","camo2"};
        hiddenSelectionsTextures[] = {"\rvg_weapons\weapons\textures\spar\muddy_arifle_SPAR_01_khk_F_01_co.paa","\rvg_weapons\weapons\textures\spar\muddy_arifle_SPAR_01_khk_F_02_co.paa"};
       // hiddenSelectionsMaterials[] = {"\rvg_weapons\weapons\textures\spar\rusty_SPAR_01_blk_F_01.rvmat","\rvg_weapons\weapons\textures\spar\rusty_SPAR_01_blk_F_02.rvmat"};
    };

};

 

The pistol one above doesnt show up but the rifle does and applies the textures... been fiddling and repacking for hours and can't get it to work like the others...

 

 

Share this post


Link to post
Share on other sites

@reyhard

 

Sorry to ping you but you may know what is going on here...

 

Congrats by the way... I see you are on with BI... cool stuff...

Share this post


Link to post
Share on other sites
Just now, reyhard said:

missing baseWeapon parameter most likely

 

 

Thanks for the tip... Ill keep digging.. weird thing is it only happens with certain guns... Ill give it a go 

 

Cheers

Share this post


Link to post
Share on other sites

pretty odd

 

when i add the right baseweapon the LIM shows up... if I have the wrong one you can't see it in editor

Even when it shows up it will not apply the textures on the gun... 

Odd thing is that the same method that always works worked for the Spar drum mag version... but with the pistols and the LIM mmg it isnt working ,,, very odd

Share this post


Link to post
Share on other sites
30 minutes ago, cosmic10r said:

pretty odd

 

when i add the right baseweapon the LIM shows up... if I have the wrong one you can't see it in editor

Even when it shows up it will not apply the textures on the gun... 

Odd thing is that the same method that always works worked for the Spar drum mag version... but with the pistols and the LIM mmg it isnt working ,,, very odd

you are using wrong hiddenSelections names, check config again ;)

  • Haha 1

Share this post


Link to post
Share on other sites
11 minutes ago, reyhard said:

you are using wrong hiddenSelections names, check config again ;)

 

 

you sir are my hero for the day...

there it is... i must be doing something wrong with the other ones too so i will back track through all the configs 

 

my respect to the config people out there... it is some tedious stuff :)

Share this post


Link to post
Share on other sites
10 hours ago, reyhard said:

you are using wrong hiddenSelections names, check config again ;)

 

I figured out the other ones thanks to your tip..

 

Really appreciate it!

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

×