Jump to content
Sign in to follow this  
Powell

[Addon] Adding a faction

Recommended Posts

Hello,

I tried to add my units in a new faction.

I search in some pbos and find CfgFactionClasses in Ca.pbo.

So I created a separate pbo for my mod, like a misc.pbo. I just putted this config.cpp inside:

#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 true	1
#define false	0

#define private		0
#define protected		1
#define public		2

class CfgFactionClasses {
class FR {
	displayName = "France";
	priority = 10;
	side = TGuerilla;
};
};

And then I write for my units:

faction = FR;

but the game tell me

Warning Message: No entry 'bin\config.bin/CfgFactionClasses.FR'.

Warning Message: No entry '.displayName'.

Warning Message: '/' is not a value

any idea ?

Share this post


Link to post
Share on other sites

There has already been some discussion on this.

FACTIONS THREAD

Hope that helps.

Share this post


Link to post
Share on other sites

Thanks for your reply, but it doesn't help me :( I've already found that config part, but when I add a faction class, it doesn't work :(

Share this post


Link to post
Share on other sites

try this:

faction = "FR";

For you to compare, this config works for me:

class CfgFactionClasses {
class USAF {
	displayName = "US Air Force";
	priority = 8;
	side = 1;
};
};

And in the cfgVehicles:

class CfgVehicles {
class AV8B2;
class GLT_Falcon_MR : AV8B2 {
	vtol = 0;
	faction = "USAF";
...
...

Share this post


Link to post
Share on other sites

It worked when I putted the CfgConfigClasses in one of my addons cpp... not in my lonely pbo... strange ^^

thanks anyway

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  

×