Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Sakai

Multiple weapons 1 Model.cfg - Encountered Problem

Recommended Posts

Heyoh there lads! I'm having a problem with creating a model.cfg which hosts multiple guns ((or will)) however I have encountered a problem when trying to start a mission with the model classname which crashes then to desktop here is the error:

---------------------------
ArmA 2 OA
---------------------------
File kdf_weapons2\hkg33\model.cfg, line 74: /CfgModels.sak_hkg33n: Undefined base class 'sak_hkg33n_eot'
---------------------------
OK   
---------------------------

Here is the model.cfg:

class CfgSkeletons
{
class Default
{
	isDiscrete=1;
	skeletonInherit="";
	skeletonBones[]={};
};
class sak_hkg33n: Default
{
	skeletonBones[]=
	{
		"magazine",
		"",
		"zamek",
		"",
	};
};

};
class CfgModels
{
class Default
{
	sectionsInherit="";
	sections[]={};
	skeletonName="";
};
class sak_hkg33n: Default
{
	sections[]=
	{
		"zasleh","magazine","zamek"
	};
	skeletonName="sak_hkg33n";
	class Animations
	{
		class reload_magazine_hide
		{
			type="hide";
			source="reloadMagazine";
			selection="magazine";
			minValue=-0.40000001;
			maxValue=0.40000001;
			minPhase=-0.40000001;
			maxPhase=0.40000001;
			hideValue=0.75;
			sourceAddress="mirror";
		};
		class zamek
		{
			type="translation";
			source="reload";
			selection="zamek";
			axis="bolt_axis";
			memory = 1;
			minValue=0;
			maxValue="1";
			offset0="0";
			offset1="1";
		};
		class bolt_empty
		{
			type="translationX";
			source="isempty";
			selection="zamek";
			axis="";
			memory="false";
			animPeriod=0;
			minValue=0;
			maxValue=0.08;
		};
	};
};
class sak_hkg33n : sak_hkg33n_eot {};
{
	class Aniations: Animations
	{
	};
};
};

Could anyone point me to the problem and how to fix it?

EDIT: Problem fixed!

Edited by Sakai

Share this post


Link to post
Share on other sites

Try this.....

class CfgSkeletons{    class Default    {        isDiscrete=1;        skeletonInherit="";        skeletonBones[]={};    };    class sak_hkg33n_bones: Default    {        skeletonBones[]=        {            "magazine",            "",            "zamek",            "",        };    };
};class CfgModels{    class Default    {        sectionsInherit="";        sections[]={};        skeletonName="";    };    class sak_hkg33n: Default    {        sections[]=        {            "zasleh","magazine","zamek"        };        skeletonName="sak_hkg33n_bones";        class Animations        {            class reload_magazine_hide            {                type="hide";                source="reloadMagazine";                selection="magazine";                minValue=-0.40000001;                maxValue=0.40000001;                minPhase=-0.40000001;                maxPhase=0.40000001;                hideValue=0.75;                sourceAddress="mirror";            };            class zamek            {                type="translation";                source="reload";                selection="zamek";                axis="bolt_axis";                memory = 1;                minValue=0;                maxValue="1";                offset0="0";                offset1="1";            };            class bolt_empty            {                type="translationX";                source="isempty";                selection="zamek";                axis="";                memory="false";                animPeriod=0;                minValue=0;                maxValue=0.08;            };        };    };    class sak_hkg33n_eot : sak_hkg33n  {};};  

I just changed the inheritance at the bottom from this........

class sak_hkg33n : sak_hkg33n_eot

to this......

class sak_hkg33n_eot : sak_hkg33n

You want your new class to inherit from your old class, not vice-versa.

Cheers,

EDIT: Did not see your note about it being fixed, oh well, at least someone having the same problem will know what the fix was.

Edited by ADuke823

Share this post


Link to post
Share on other sites
Sign in to follow this  

×