Jump to content
Sign in to follow this  
das attorney

Staticweapon config trouble (Dimensions in class <className> should be an array of size 2)

Recommended Posts

I'm doing a fairly simple config adjustment to add a different gun and ammo to the Opfor HMG.

 

Every time I load a mission with this in it, I get an error:

 

Dimensions in class ncb_static_hmg_high should be an array of size 2

 

And if I shoot at the turret gunner, I can only hit him from the waist down.  Plus it seems just by accessing the O_HMG_01_high_F class in my config, that class then has the same error and problems when used.

 

Have I done something wrong in the config?

 

Also, I did note there's a ticket up for this on tracker, but no mention of gunners having no hit detection above the waist.

https://feedback.bistudio.com/T119371

 

Here is my config:

 

class HMG_01_high_base_F;
class O_HMG_01_high_F : HMG_01_high_base_F {
    class Turrets;
    class MainTurret;
    class AnimationSources;
};
class ncb_static_hmg_high : O_HMG_01_high_F {
    author = "Das Attorney";
    crew = "Horde_gunmanUnit";
    displayName = "Mk29 HMG 12.7x99mm (High)";
    faction = "ncb_antagonists";
    class AnimationSources : AnimationSources {
        class autonomous_unhide {
            animPeriod = 1e-006;
            initPhase = 0;
            source = "user";
        };
        class muzzle_source {
            source = "reload";
            weapon = "Horde_HMG_01";
        };
        class muzzle_source_rot {
            source = "ammorandom";
            weapon = "Horde_HMG_01";
        };
        class ReloadAnim {
            source = "reload";
            weapon = "Horde_HMG_01";
        };
        class ReloadMagazine {
            source = "reloadmagazine";
            weapon = "Horde_HMG_01";
        };
        class Revolving {
            source = "revolving";
            weapon = "Horde_HMG_01";
        };
    };
    class AssembleInfo {
        assembleTo = "";
        base = "";
        displayName = "";
        dissasembleTo[] = {};
        primary = 0;
    };
    class Turrets : Turrets {
        class MainTurret : MainTurret {
            magazines[] = {"100Rnd_127x99_mag"};
            weapons[] = {"Horde_HMG_01"};
        };
    };
};

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Only a quick thought, may be nothing or unrelated, but check your inheritance defines on the Turrets

class Turrets : Turrets {
	class MainTurret : MainTurret {
		...
	};
};

 

Share this post


Link to post
Share on other sites

Thanks for checking it out - it turned out to be an outdated animation pbo that I forgot was in my modfolder (my bad basically).

Share this post


Link to post
Share on other sites

ignore it - just some useless rpt spam from BI

  • Thanks 1

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
Sign in to follow this  

×