Jump to content
Beans135

Error with config.ccp

Recommended Posts

During initializing addons part of lunching Arma I get this error: File\@Piev3\config.ccp, line 2: '.': '{' encountered instead of '='. Here is my config.

Spoiler

class CfgPatches;
=
    class TIOW_Tau_Headgear
    {
        weapons [] = {Pie_helmet};
        requiredVersion = 0.1;
        requiredAddons [] = {"A3_characters_F};
    };
};


class cfgWeapons
{
    class ItemCore;
    
    class H_HelmetB: ItemCore
    {
        classItemInfo;
    };

    
class Pie_helmet: H_HelmetB
{
    author = "Jay"
    displayName = "Pie Helmet 1";
    picture = "\@Piev3\Addons\Pie_icon.paa";
    model = "\@Piev3\Addons\Pie.p3d";
    class ItemInfo: ItemInfo
    {
        mass = 2;
        uniformModel = "\@Piev3\Addons\Pie.p3d";
    };
  };
};

If it helps my mod folder is structured as @Piev3\Addons(I have my model.cfg and my config.ccp files here.)\@Piev3.pbo. On a side note when I piggyback off someone else's mod the helmet just floats in the air. I do have a head selection set in object builder. 

Thanks

Share this post


Link to post
Share on other sites

 class CfgPatches


{
    class TIOW_Tau_Headgear
    {
        weapons [] = {Pie_helmet};
        requiredVersion = 0.1;
        requiredAddons [] = {"A3_characters_F};
    };
};

Share this post


Link to post
Share on other sites

Here is my updated ccp. My new error is:

Untitled-1-copy.jpg

Spoiler

class CfgPatches


{
    class TIOW_Tau_Headgear
    {
        weapons [] = {Pie_helmet};
        requiredVersio n = 0.1;
        requiredAddons [] = {"A3_characters_F};
    };
};


class cfgWeapons
{
    class ItemCore;
    
    class H_HelmetB: ItemCore
    {
        classItemInfo;
    };

    
class Pie_helmet: H_HelmetB
{
    author = "Jay"
    displayName = "Pie Helmet 1";
    picture = "\@Piev3\AddonsPie_icon.paa";
    model = "\@Piev3\Addons\Pie.p3d";
    class ItemInfo: ItemInfo
    {
        mass = 2;
        uniformModel = "\@Piev3\Addons\Pie.p3d";
    };
  };
};

 

  • Like 1

Share this post


Link to post
Share on other sites

When copying/pasting from this forum some invisible characters are sometimes created. Just rewrite the code by hand.

  • Like 1

Share this post


Link to post
Share on other sites
15 minutes ago, Mr H. said:

copying/pasting from this forum some invisible characters

 

This can be detected most of the times by adding the certain code , in a new post , with the code <> window used and the "Javascript" selected and it will be as a red dot between words or most of the times after a ";"

 

 

Share this post


Link to post
Share on other sites

@GEORGE FLOROS GR for the record these are also visible if you paste in visual studio code and seem most common when code is posted from a phone.

@Beans135 btw pie_helmet in your weapons array should be between ""

  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, GEORGE FLOROS GR said:

as said many times can a moderator take a look about it ?


We are aware of the issue, however we Moderators nor BI can directly do something about it.

Invision Community has to fix it, even though they are probably not causing it. I will see if we can push this issue forward.

 

As far as I can tell it’s caused by certain software / OS when certain text formatting is used.

 

its a BOM char „zero width no-break space“ char 

https://www.fileformat.info/info/unicode/char/feff/index.htm

unicode: 

Oct 0177377

Dec 65279

Hex 0xFEFF 

HTML &#65279

 

This should allow you to just search and replace it (in any decent editor).

An online tool like this: https://pteo.paranoiaworks.mobi/diacriticsremover/ can also be used to remove them.

  • Thanks 1

Share this post


Link to post
Share on other sites
6 hours ago, Yoshi_E said:

We are aware of the issue,

 

Thank you very much @Yoshi_E for trying !

 

I have post about this issue several times , but there was not an answer , so thanks for replying !

Share this post


Link to post
Share on other sites

I'm not getting anymore errors! But the item does not show up in the arsenal or anywhere else.

Share this post


Link to post
Share on other sites
Spoiler

calss CfgPatches

{
      calss TIOW_Tau_Headgear
      {
         weapons [] = {"Pie_helmet"}
         requiredVersion = 0.1;
         requiredAddons [] = {"A3_characters_F"}
       };
};


class cfgWeapons
{
      calss ItemCore;
      
      calss H_HelmetB: ItemCore;
      {
      calssItemInfo;
      };


calss Pie_helmet: H_HelmetB
{
        auther = "Jay"
        displayName = "Pie Helmet 1";
        scope = 2;
        picture = "\@Piev3\Addons\Pie_icon.paa";
        model = "\@Piev3\Addons\Pie.p3d";
        calss ItemInfo: ItemInfo
        {
        mass = 2;
        uniformModel = "\@Piev3\Addons\Pie.p3d
        };
    };
};

  Thank you all for help, I don't know why but it is still not appearing in game. I posted both my model.cfg and my ccp. If you want I can post the model I'm using too.

Spoiler

class CfgSkeletons
{
    class Default
    {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };
    class OFP2_ManSkeleton
    {
        isDiscrete = 0;
        skeletonInherit = "";
        skeletonBones[] =
        {
            "Pelvis","",
            "Spine","Pelvis",
            "Spine1","Spine",
            "Spine2","Spine1",
            "Spine3","Spine2",
            "Camera","Pelvis",
            "weapon","Spine1",
            "launcher","Spine1",
            
            // Head skeleton in hierarchy
            "neck","Spine3",
            "neck1","neck",
            "head","neck1",
            
            // New facial features
            "Face_Hub","head",
            "Face_Jawbone","Face_Hub",
            "Face_Jowl","Face_Jawbone",
            "Face_chopRight","Face_Jawbone",
            "Face_chopLeft","Face_Jawbone",
            "Face_LipLowerMiddle","Face_Jawbone",
            "Face_LipLowerLeft","Face_Jawbone",
            "Face_LipLowerRight","Face_Jawbone",
            "Face_Chin","Face_Jawbone",
            "Face_Tongue","Face_Jawbone",
            "Face_CornerRight","Face_Hub",
            "Face_CheekSideRight","Face_CornerRight",
            "Face_CornerLeft","Face_Hub",
            "Face_CheekSideLeft","Face_CornerLeft",
            "Face_CheekFrontRight","Face_Hub",
            "Face_CheekFrontLeft","Face_Hub",
            "Face_CheekUpperRight","Face_Hub",
            "Face_CheekUpperLeft","Face_Hub",
            "Face_LipUpperMiddle","Face_Hub",
            "Face_LipUpperRight","Face_Hub",
            "Face_LipUpperLeft","Face_Hub",
            "Face_NostrilRight","Face_Hub",
            "Face_NostrilLeft","Face_Hub",
            "Face_Forehead","Face_Hub",
            "Face_BrowFrontRight","Face_Forehead",
            "Face_BrowFrontLeft","Face_Forehead",
            "Face_BrowMiddle","Face_Forehead",
            "Face_BrowSideRight","Face_Forehead",
            "Face_BrowSideLeft","Face_Forehead",
            "Face_Eyelids","Face_Hub",
            "Face_EyelidUpperRight","Face_Hub",
            "Face_EyelidUpperLeft","Face_Hub",
            "Face_EyelidLowerRight","Face_Hub",
            "Face_EyelidLowerLeft","Face_Hub",
            "EyeLeft","Face_Hub",
            "EyeRight","Face_Hub",            
            
            // Left upper side
            "LeftShoulder","Spine3",
            "LeftArm","LeftShoulder",
            "LeftArmRoll","LeftArm",
            "LeftForeArm","LeftArmRoll",
            "LeftForeArmRoll","LeftForeArm",
            "LeftHand","LeftForeArmRoll",
            "LeftHandRing","LeftHand",
            "LeftHandRing1","LeftHandRing",
            "LeftHandRing2","LeftHandRing1",
            "LeftHandRing3","LeftHandRing2",
            "LeftHandPinky1","LeftHandRing",
            "LeftHandPinky2","LeftHandPinky1",
            "LeftHandPinky3","LeftHandPinky2",
            "LeftHandMiddle1","LeftHand",
            "LeftHandMiddle2","LeftHandMiddle1",
            "LeftHandMiddle3","LeftHandMiddle2",
            "LeftHandIndex1","LeftHand",
            "LeftHandIndex2","LeftHandIndex1",
            "LeftHandIndex3","LeftHandIndex2",
            "LeftHandThumb1","LeftHand",
            "LeftHandThumb2","LeftHandThumb1",
            "LeftHandThumb3","LeftHandThumb2",
            
            // Right upper side
            "RightShoulder","Spine3",
            "RightArm","RightShoulder",
            "RightArmRoll","RightArm",
            "RightForeArm","RightArmRoll",
            "RightForeArmRoll","RightForeArm",
            "RightHand","RightForeArmRoll",
            "RightHandRing","RightHand",
            "RightHandRing1","RightHandRing",
            "RightHandRing2","RightHandRing1",
            "RightHandRing3","RightHandRing2",
            "RightHandPinky1","RightHandRing",
            "RightHandPinky2","RightHandPinky1",
            "RightHandPinky3","RightHandPinky2",
            "RightHandMiddle1","RightHand",
            "RightHandMiddle2","RightHandMiddle1",
            "RightHandMiddle3","RightHandMiddle2",
            "RightHandIndex1","RightHand",
            "RightHandIndex2","RightHandIndex1",
            "RightHandIndex3","RightHandIndex2",
            "RightHandThumb1","RightHand",
            "RightHandThumb2","RightHandThumb1",
            "RightHandThumb3","RightHandThumb2",
            
            // Left lower side
            "LeftUpLeg","Pelvis",
            "LeftUpLegRoll","LeftUpLeg",
            "LeftLeg","LeftUpLegRoll",
            "LeftLegRoll","LeftLeg",
            "LeftFoot","LeftLegRoll",
            "LeftToeBase","LeftFoot",
            
            // Right lower side
            "RightUpLeg","Pelvis",
            "RightUpLegRoll","RightUpLeg",
            "RightLeg","RightUpLegRoll",
            "RightLegRoll","RightLeg",
            "RightFoot","RightLegRoll",
            "RightToeBase","RightFoot"
        };
        // location of pivot points (local axes) for hierarchical animation
        pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d";
    };
};

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

    class ArmaMan: Default
    {
        htMin = 60;          // Minimum half-cooling time (in seconds)
        htMax = 1800;        // Maximum half-cooling time (in seconds)
        afMax = 30;          // Maximum temperature in case the model is alive (in celsius)
        mfMax = 0;           // Maximum temperature when the model is moving (in celsius)
        mFact = 1;           // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)).
        tBody = 37;  // Metabolism temperature of the model (in celsius)

        sections[] =
        {
            "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury", "injury_body", "injury_legs", "injury_hands",
            "clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head", "insignia", "ghillie_hide"
        };
        skeletonName = "OFP2_ManSkeleton";
    };

    class Pie: ArmaMan{};
    
};

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

×