Jump to content
thoops99

Model.cfg "sectionsInherit" issue

Recommended Posts

I've just made a gate and have i setup to animate and everything and when i get in game and place the object i get this error

23:39:45 Warning Message: No entry 'model.cfg/CfgModels/Toxic_WovenGate.sectionsInherit'.
23:39:45 Warning Message: '/' is not a value

this is my model.cfg

class CfgSkeletons
{
	class Default;
	class Toxic_WovenGate: Default
	{
		skeletonInherit="";
		isDiscrete=1;
		skeletonBones[]=
		{
			"door1",
			"",
			"GateRightAxis",
			"",
			"door2",
			"",
			"GateLeftAxis",
			""
		};
	};
};
class CfgModels
{
	class Default;
	class Toxic_WovenGate: Default
	{
		skeletonName="Toxic_WovenGate";
		sections[]=
		{};
		
		class Animations
		{
			class Door_1
			{
				type="rotationY";
				source="Zeroanimation";
				memory=1;
				selection="door1";
				axis="GateRightAxis";
				animPeriod=5;
				minPhase=0;
				maxPhase=1;
				minValue="0.0";
				maxValue="1.0";
				angle0="0";
				angle1="-1.6";
			};
			class Door_2
			{
				type="rotationY";
				source="Zeroanimation";
				memory=1;
				selection="door2";
				axis="GateLeftAxis";
				animPeriod=5;
				minPhase=0;
				maxPhase=1;
				minValue="0.0";
				maxValue="1.0";
				angle0="0";
				angle1="1.6";
			};
		};
	};
};

 

 

 

 

This is a picture of the model. I have the right side setup as a door and the left side setup as a door so they are two different objects

TyUmt75.png

 

Could Anyone Help?

Share this post


Link to post
Share on other sites

You'll need to define the Default{} classes as model.cfg doesn't externally inherit.

 

class cfgSkeletons {
    class Default {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };

 

class CfgModels {
    class Default {
        sections[] = {};
        sectionsInherit = "";
        skeletonName = "";
    };

  • Like 1

Share this post


Link to post
Share on other sites
15 hours ago, UK_Apollo said:

You'll need to define the Default{} classes as model.cfg doesn't externally inherit.

 

class cfgSkeletons {
    class Default {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };

 

class CfgModels {
    class Default {
        sections[] = {};
        sectionsInherit = "";
        skeletonName = "";
    };

hmmmmm. ok ill try that in a bit. i dont have to do that with my other models

Share this post


Link to post
Share on other sites

no need to define default do it like this, this is a copy of my model.cfg which is set to animate 2 different gates, 1 gate has 1 moving gate and the 2nd gate has 2 gates

 

class CfgSkeletons
{
   
   class prisongate_skeleton
    
    {
        skeletonInherit="";
        isDiscrete=1;
        skeletonBones[]=
        {        
            
            "Gate","",
            "door_open",""
            
            
        };
   };
   
  
  class frontgate_skeleton
    
    {
        skeletonInherit="";
        isDiscrete=1;
        skeletonBones[]=
        {        
            
            "leftgate","",
            "rightgate",""
                    
        };
   }; 
  
 
};

class CfgModels
{
    
        
    class prisongate
    {
        sectionsInherit="";
        sections[]={};
        skeletonName="prisongate_skeleton";
        
        class Animations
        {
            class Gate
            {
                type="translation";
                selection="Gate";
                axis="door_Axis";
                memory=1;
                minValue = 0;
                maxValue = 1;
                offset0=0;
                offset1=-1;
            };
        };
        
    };
    
    
    class frontgate
    {
    sectionsInherit="";
    sections[]={};
    skeletonName="frontgate_skeleton";
    
    class Animations
    
    {
    
        class leftgate
            {
                type="rotation";
                selection="leftgate";
                axis="leftgateaxis";
                memory=1;
                minValue=0.000000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=1.7;    
            };
        
        class rightgate
            {
                type="rotation";
                selection="rightgate";
                axis="rightgateaxis";
                memory=1;
                minValue=0.000000;
                maxValue=1.000000;
                angle0=0.000000;
                angle1=-1.7;    
            };
    };
    
};
};

  • Like 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

×