Advertisement

Author Topic: plz help with my config.cpp  (Read 4515 times)

0 Members and 1 Guest are viewing this topic.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: plz help with my config.cpp
« Reply #15 on: 22 Feb 2008, 23:00:56 »
There are two options open to you to resolve this.

1./  Change the last line in your model.cfg to read:

    class BIHummer: hmmwv50{};  instead of  class LT_ISAF_Hmmwv: hmmwv50{};

or

2./  Change the name of the model file from BIHummer.p3d to LT_ISAF_Hmmwv.p3d.

The classes in the model.cfg must have the same name as the model being used.

If you choose to go with #2, don't forget to change the 'model = ' line in your config.cpp to reflect this change.


Whilst you are in there change the cfgPatches section as well:

units[] = {"BIHummer"};  to  units[] = {"LT_ISAF_Hmmwv"};

This should be the same as the classname in cfgVehicles.


Planck
I know a little about a lot, and a lot about a little.

Offline ofpartizan

  • Members
  • *
Re: plz help with my config.cpp
« Reply #16 on: 23 Feb 2008, 08:46:14 »
Txs Planc  :good: it was so easy and we noobs couldnt do it by ourselves.

Offline -YO-

  • Members
  • *
Re: plz help with my config.cpp
« Reply #17 on: 01 Jul 2008, 21:08:02 »
Hi there, it's first time I post in this forum as i'm starting to modify addons and writting configs and all this stuff...
I've tried to create a new soldier from BISoldier, just painting default textures and rename and rearm it. I've taken the config.cpp and the model.cfg posted here by Plank i think, as the last one I made didn't worked, but by now it's still have the same problem: it doesn't load rvmat wounds and the guy is so deformed (although, the textures are ok, it acts and reacts properly, VehicleClass ok, etc).

That's my config:
Code: [Select]
// some basic defines

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot    0// dummy weapons
#define WeaponSlotPrimary    1// primary weapons
#define WeaponSlotSecondary    16// secondary weapons
#define WeaponSlotItem    256// items
#define WeaponSlotBinocular    4096// binocular
#define WeaponHardMounted    65536


class CfgPatches
{
    class YO_SOL
    {
        units[]={"YO_SpecOp"};
        weapons[]={};
        requiredVersion = 1.000000;
        requiredAddons[]={};
    };
};

class CfgVehicleClasses
{
    class YO_Soldiers
    {
        displayName="YO Soldiers";
    };
};

class CfgVehicles
{
    class CAManBase;
    class SoldierWB: CAManBase {};

    class YO_SpecOp: SoldierWB
    {
        vehicleClass = "YO_Soldiers";
        displayName = "GIR SpecOp";
        model = "\YO_SOL\YOsoldier";
        scope = 2;
        nightVision = 1;
        camouflage = 0.600000;
        Icon = "\Ca\characters\data\map_ico\i_komandos_CA.paa";
        weapons[] = {"M16A4","NVGoggles","Binocular","Throw","Put"};
        magazines[] =
{"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenadeTimed","HandGrenadeTimed","SmokeShell"};
        respawnweapons[] = {"M16A4","NVGoggles","Binocular","Throw","Put"};
        respawnmagazines[] =
{"30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenadeTimed","HandGrenadeTimed","SmokeShell"};

    class Wounds
    {
        tex[] = {};
        mat[] = {"YO_SOL\data\us_hhl.rvmat","YO_SOL\data\us_hhl_wound1.rvmat","YO_SOL\data\us_hhl_wound2.rvmat","YO_SOL\data\us_soldier_body.rvmat","YO_SOL\data\us_soldier_body_wound1.rvmat","YO_SOL\data\us_soldier_body_wound2.rvmat"};
    };
};

and that's model.cfg:
Code: [Select]
class CfgSkeletons
{
    class Default
    {
        isDiscrete = 1;
        skeletonInherit = "";
        skeletonBones[] = {};
    };
    class Head
    {
        isDiscrete = 0;
        skeletonInherit = "";
        skeletonBones[] =
        {
            "neck","",
            "neck1","neck",
            "head","neck1",
            "lBrow","head",
            "mBrow","head",
            "rBrow","head",
            "lMouth","head",
            "mMouth","head",
            "rMouth","head",
            "Eyelids","head",
            "LLip","head"
        };
    };

    class OFP2_ManSkeleton
    {
        isDiscrete = 0;
        skeletonInherit = "Head";
        skeletonBones[] =
        {
            "weapon","",
            "launcher","",
            "Camera","",
            "Spine","",
            "Spine1","",
            "Spine2","",
            "Spine3","",
            "Pelvis","",

        //Left upper side
            "LeftShoulder","",
            "LeftArm","",
            "LeftArmRoll","",
            "LeftForeArm","",
            "LeftForeArmRoll","",
            "LeftHand","",
            "LeftHandRing","",
            "LeftHandRing1","",
            "LeftHandRing2","",
            "LeftHandRing3","",
            "LeftHandPinky1","",
            "LeftHandPinky2","",
            "LeftHandPinky3","",
            "LeftHandMiddle1","",
            "LeftHandMiddle2","",
            "LeftHandMiddle3","",
            "LeftHandIndex1","",
            "LeftHandIndex2","",
            "LeftHandIndex3","",
            "LeftHandThumb1","",
            "LeftHandThumb2","",
            "LeftHandThumb3","",

        //Right upper side
            "RightShoulder","",
            "RightArm","",
            "RightArmRoll","",
            "RightForeArm","",
            "RightForeArmRoll","",
            "RightHand","",
            "RightHandRing","",
            "RightHandRing1","",
            "RightHandRing2","",
            "RightHandRing3","",
            "RightHandPinky1","",
            "RightHandPinky2","",
            "RightHandPinky3","",
            "RightHandMiddle1","",
            "RightHandMiddle2","",
            "RightHandMiddle3","",
            "RightHandIndex1","",
            "RightHandIndex2","",
            "RightHandIndex3","",
            "RightHandThumb1","",
            "RightHandThumb2","",
            "RightHandThumb3","",

        //Left lower side
            "LeftUpLeg","",
            "LeftUpLegRoll","",
            "LeftLeg","",
            "LeftLegRoll","",
            "LeftFoot","",
            "LeftToeBase","",

        //Right lower side
            "RightUpLeg","",
            "RightUpLegRoll","",
            "RightLeg","",
            "RightLegRoll","",
            "RightFoot","",
            "RightToeBase",""
        };
    };

    class Flag: Default {};
};

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

    class Head: Default
    {
        sections[] =
        {
            "osobnost",
            "brejle"
        };
        skeletonName = "Head";
    };

    class Man: Default
    {
        sections[] =
        {
            "osobnost",
            "Head_Injury",
            "Body_Injury",
            "l_leg_injury",
            "l_arm_injury",
            "r_arm_injury",
            "l_leg_injury",
            "clan"
        };
        skeletonName = "OFP2_ManSkeleton";
    };

    class YOsoldier: Man {};

    class Flag: Default
    {
        sections[] = {"latka"};
    };
};

Hope some of u coud help me. Thx for all the great support u provide.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: plz help with my config.cpp
« Reply #18 on: 01 Jul 2008, 22:47:07 »
Only had a quick look so far at your config.cpp and I think you have a missing '};' at the end:

Code: [Select]
......
......
......
       class Wounds
        {
            tex[] = {};
            mat[] = {"YO_SOL\data\us_hhl.rvmat","YO_SOL\data\us_hhl_wound1.rvmat","YO_SOL\data\us_hhl_wound2.rvmat","YO_SOL\data\us_soldier_body.rvmat","YO_SOL\data\us_soldier_body_wound1.rvmat","YO_SOL\data\us_soldier_body_wound2.rvmat"};
        };
    };
};   <--------------add another one here



Planck
« Last Edit: 01 Jul 2008, 22:50:07 by Planck »
I know a little about a lot, and a lot about a little.

Offline ofpartizan

  • Members
  • *
Re: plz help with my config.cpp
« Reply #19 on: 13 Dec 2008, 19:47:55 »
Ok, I had some big changes in my life :) , but anyway, after all I decidet to finish my addon. I have 2 problems:
1. When I'm adding class CfgGroup in my cpp
Code: [Select]
class CfgGroups
{   
               class WEST
               {
               name="BLUFOR";
                       class LT_ISAF
                       {
                       name="LTU ISAF";

       class LT_ISAF
                       {
                       name="LTU ISAF Squad";
                               class Unit0 
                               {
                               name="1";
                               side="0";
                               vehicle="ISAF_Officer";
                               rank="Lieutnant";
                               position[]={0,5,0};
                               };
                               class Unit1
                               {
                               name="2";
                               side="0";
                               vehicle="ISAF_Grenadier";
                               rank="Sergeant";
                               position[]={-10,0,0};
                               };
                               class Unit2
                               {
                               name="3";
                               side="0";
                               vehicle="ISAF_SoldierMG";
                               rank="Sergeant";
                               position[]={10,0,0};
                               };
                               class Unit3
                               {
                               name="4";
                               side="0";
                               vehicle="ISAF_Rifleman";
                               rank="Corporal";
                               position[]={-15,0,0};
                               };
                               class Unit4
                               {
                               name="5";
                               side="0";
                               vehicle="ISAF_SoldierAT";
                               rank="Corporal";
                               position[]={15,0,0};
                               };
                               class Unit5
                               {
                               name="6";
                               side="0";
                               vehicle="ISAF_Medic";
                               rank="Corporal";
                               position[]={-20,0,0};
                               };
                               class Unit6
                               {
                               name="7";
                               side="0";
                               vehicle="ISAF_Marksman";
                               rank="Private";
                               position[]={20,0,0};
                               };
                               class Unit7
                               {
                               name="8";
                               side="0";
                               vehicle="ISAF_Rifleman";
                               rank="Private";
                               position[]={-25,0,0};
                               };
                               class Unit8
                               {
                               name="9";
                               side="0";
                               vehicle="ISAF_Rifleman";
                               rank="Private";
                               position[]={25,0,0};
                               };
class Unit9
                               {
                               name="9";
                               side="0";
                               vehicle="ISAF_Rifleman";
                               rank="Private";
                               position[]={0,10,0};
                                };
                  };

          }; 
};         
 };

Allways at the startup of the game (main screen) i get this error: No entry 'bin\config.bin/cfgVehicles/CfgGroups.scope'

...any ideas?

2. After my addon is binarized i get error that game cant load wound rwmat file, so no blood and wouns in the game. But without binarizing everything is ok...  :dunno:

And I want to ask someone to help me with my hummer. I just cant shoot throu that glass. I know its an old problem and there is a threed how to fix this, but believe me I could not make it, because i'm total noob in oxygen and just cant do it cos I cant understand a sh...

Afterall the bigest problem i want to deal is "cfggroups". I know that there is people who can help me.

Offline Wolfrug

  • Addons Depot
  • Administrator
  • *****
  • Official OFPEC Old Timer
Re: plz help with my config.cpp
« Reply #20 on: 14 Dec 2008, 11:29:13 »
Hey there!

As to the cfggroups entry: as far as I can tell it looks fine, the only two things I can imagine as 'wrong' would be that the two classnames LTU_ISAF for the master group and the undergroup are the same, and maybe that there's a }; or two too many at the end? But it looks like this could be at the very end of your config.cpp anyway, so it's probably just the end of it all.

Also, have you tried without binarizing it? Maybe something breaks when you binarize (e.g. you need to use different tools etc.), but the config itself is fine?

Sorry I can't help any more! I looked at the config for the RHS Marines/VDV to check out how the groups are supposed to look like, and yours are practically identical aside from the names of the units etc. of course.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

Offline ofpartizan

  • Members
  • *
Re: plz help with my config.cpp
« Reply #21 on: 14 Dec 2008, 15:46:45 »
Yeah i have tried it without binarizing. Same thing. But thx, i'll try to change names.