Jump to content
Sign in to follow this  
Pvt.Kiwi

Config

Recommended Posts

hi i keep getting this error "Head:undifined base class 'head'" so could someone please tell me what the head base class is.

Thanks in advance

Share this post


Link to post
Share on other sites

I think it's parent is Class Default.

I'm really not sure though I've not made anything for ArmA sorry.

Share this post


Link to post
Share on other sites

Whst you'll have is something like:

class cfgSomething
{
class mySomething : Head
{
	....

What you need is

class cfgSomething
{
class Head;
class mySomething : Head
{
	....

But thats just an assumption. We'd need to see your actual config to make an informed/helpful post.

Share this post


Link to post
Share on other sites

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

#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 private 0

#define protected 1

#define public 2

#define true 1

#define false 0

class CfgFactionClasses {

access = ReadAndCreate;

class men {

displayName = Combat Engineer;

priority = 10000;

side = TWest;

};

};

class CfgPatches {

class NIXsoldier {

units[] = {"SF.p3d"};

weapons[] = {};

requiredVersion = 1.0;

requiredAddons[] = {};

};

};

class CfgModels

{

class Default

{

sections[] = {};

sectionsInherit="";

};

class flag_vojak : Default

{

sections[] = {"latka"};

};}

class Head: Head

{

sections[] =

{

"osobnost",

"brejle"

};

skeletonName = "Head";

};

class ArmaMan : Default

{

sections[] =

{

"osobnost","Head_Injury",

"Body_Injury","l_leg_injury",

"l_arm_injury","r_arm_injury",

"r_leg_injury","clan"

};

skeletonName = "OFP2_ManSkeleton";

};

class SF.p3d:ArmaMan{};

};

class CfgVehicleClasses {

class men {

displayName = "Combat engineer";

};

};

class CfgVehicles {

class Man; // External class reference

class CAManBase : Man {

class TalkTopics; // External class reference

class HitPoints {

class HitHead; // External class reference

class HitBody; // External class reference

};

};

class SoldierEB : CAManBase {

class TalkTopics : TalkTopics {};

};

class SoldierWB : CAManBase {

class TalkTopics : TalkTopics {};

};

class SoldierGB : CAManBase {

class TalkTopics : TalkTopics {};

};

class Civilian; // External class reference

class FR_R; // External class reference

class SF.p3d : FR_R {

faction = Combat engineer;

scope = public;

model = "\combat_engieer\SF.p3d";

weapons[] = {"***WEAPON WHEN RESPAWNING***", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};

magazines[] = {"30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell"};

respawnweapons[] = {"***WEAPON WHEN RESPAWNING***", "NVGoggles", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};

respawnmagazines[] = {"30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "30Rnd_556x45_stanag", "HandGrenade_West", "HandGrenade_West", "SmokeShell"};

vehicleClass = ***YOURCLASSNAME***;

class Wounds {

tex[] = {};

mat[] = {"ca\characters2\Rus\DATA\soldier_flora_vsr_vest.RVmat", "ca\characters2\Rus\DATA\soldier_flora_vsr_vest_w1.RVmat", "ca\characters2\Rus\DATA\soldier_flora_vsr_vest_w2.RVmat", "ca\characters2\Rus\DATA\soldier_co_flora_vsr_vest.RVmat", "ca\characters2\Rus\DATA\soldier_co_flora_vsr_vest_w1.RVmat", "ca\characters2\Rus\DATA\soldier_co_flora_vsr_vest_w2.RVmat", "ca\characters2\Rus\DATA\soldier_mg_flora_vsr_vest.RVmat", "ca\characters2\Rus\DATA\soldier_mg_flora_vsr_vest_w1.RVmat", "ca\characters2\Rus\DATA\soldier_mg_flora_vsr_vest_w2.RVmat", "ca\characters2\Rus\DATA\soldier_at_flora_VSR_vest.RVmat", "ca\characters2\Rus\DATA\soldier_at_flora_VSR_vest_w1.RVmat", "ca\characters2\Rus\DATA\soldier_at_flora_VSR_vest_w2.RVmat", "ca\characters2\Rus\DATA\soldier_pilot_flora_vsr.RVmat", "ca\characters2\Rus\DATA\soldier_pilot_flora_vsr_w1.RVmat", "ca\characters2\Rus\DATA\soldier_pilot_flora_vsr_w2.RVmat", "ca\characters2\Rus\DATA\soldier_crew_flora_vsr.RVmat", "ca\characters2\Rus\DATA\soldier_crew_flora_vsr_w1.RVmat", "ca\characters2\Rus\DATA\soldier_crew_flora_vsr_w2.RVmat", "ca\characters2\Rus\DATA\Commander.rvmat", "ca\characters2\Rus\DATA\W1_Commander.rvmat", "ca\characters2\Rus\DATA\W2_Commander.rvmat"};

};

displayName = "Sapper";

identityTypes[] = {"LHD_glasses", "Head_USMC_Camo", "Head_USMC", "FR_Glasses", "USMC_Glasses"};

portrait = "\Ca\characters\data\portraits\comBarHead_usmc_soldier_ca";

picture = "\Ca\characters\data\Ico\i_null_CA.paa";

icon = "\Ca\characters2\data\icon\i_soldier_CA.paa";

};

};

Share this post


Link to post
Share on other sites

Ok, I can see your problem pretty easily.

1. You really shouldnt have modelcfg in the main config.cpp (if I ever find out who was responsible for suggesting that I might actually have to go and give them a slap)

2. Your problem is easliy solveable:

Where you have

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

class flag_vojak : Default
{
sections[] = {"latka"};
};}
class Head: Head
{
sections[] =
{
"osobnost",
"brejle"
};
skeletonName = "Head";
};
class ArmaMan : Default
{
sections[] =
{
"osobnost","Head_Injury",
"Body_Injury","l_leg_injury",
"l_arm_injury","r_arm_injury",
"r_leg_injury","clan"
};
skeletonName = "OFP2_ManSkeleton";
};

class SF.p3d:ArmaMan{};

All you really need is:

class CfgModels
{
class ArmaMan;
class SF : ArmaMan{};
};

But it should really be in a seperate model.cfg.

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  

×