Jump to content
Sign in to follow this  
Ranwer135

unit config - need help!

Recommended Posts

Hi,

I'm designing my own character without making any models (just reskinning already made model within the game)

My problem is that the factions I made for the unit is not appearing?

Here is my config:

class CfgPatches{
class China_Rising
{
	author = "Rawner135";
	units[] = {"Rnw_Chn_Soldier"};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F","A3_Characters_F_BLUFOR","A3_Characters_F_INDEP"};
	version = "1.01";
};
};


class cfgVehicles
{
class I_soldier_F;
class Rnw_Chn_Soldier: I_soldier_F
{
    side = 1;
    faction = "CHN_FCT";
    vehicleClass = "CHN_Units";
    identityTypes[] = {"LanguageGRE_F","Head_Greek","G_HAF_default"};
    faceType="Man_A3";
    genericNames = "GreekMen";
    displayName="Chinese Soldier";
    icon = "iconMan";
    author="Rawner135";
    uniformClass="chn_soldier_clothing";
    weapons[]=
    {
     "arifle_Katiba_C_ACO_pointer_F"
    };
    respawnweapons[]=
    {
     "arifle_Katiba_C_ACO_pointer_F"
    };
    respawnmagazines[]=
    {
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green"
    };
    magazines[]=
    {
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green",
     "30Rnd_65x39_caseless_green"
    };
    linkeditems[]=
    {
     "Rnw_Chn_Helmet",
     "Rnw_chn_vest",
     "ItemMap",
     "ItemWatch",
     "ItemRadio"
    };
    respawnLinkedItems[]=
    {
     "Rnw_Chn_Helmet",
     "Rnw_chn_vest",
     "ItemMap",
     "ItemWatch",
     "ItemRadio"
    };
 };
};


class CfgVehicleClasses
{
class CHN_Units
       {
	displayName = "Men";
};
};


class CfgFactionClasses
{
class CHN_FCT
       {
	displayName = "CHN";
	priority = 2;
	side = 1;
               icon = "units/ui/china_faction_ca.paa";
};
};

thanks,

Ranwer135

NOTE: You may see the MaxJoiner mod destination there, I am using his config as a guide for starters!

Edited by Ranwer
Updated Config

Share this post


Link to post
Share on other sites

In short, the actual problem is that the faction in "IND" and my unit in it doesnt appear in the editor? How do I fix this? :(

Share this post


Link to post
Share on other sites
class CfgFactionClasses

{

class china_faction

{

icon="max_police_mod\data\max_robbers_faction_ca.paa";

displayName="CHN";

priority=2;

side=0;

};

};

side = 2; //for independent

also check units for this :D

Share this post


Link to post
Share on other sites

Thank u so much, sir! Will test out your new changes to the config sometime after Christmas! :D

Merry Christmas,

Rawner135

Share this post


Link to post
Share on other sites

hmmm...I tried what you said, replace 0 with 2 in the sides,

But the faction in Independent with the unit itself still hasn't appeared? :confused: (I also set the chinese unit into AAF and still didn't appear)

Also, the config above has been updated too so you might be able to find the problem.

Thanks,

Rawner135

Edited by Ranwer

Share this post


Link to post
Share on other sites

Add something like this:

class cfgVehicles
{
class I_soldier_F;
class Rnw_Chn_Soldier: I_soldier_F
{
    ....
    ....
[color="#0000FF"]     side = 2;
    faction = "Your_Faction";
    vehicleClass = "Your_Class";[/color]
    ...
    ...
};
};



[color="#0000FF"]class CfgVehicleClasses
{
class Your_Class
       {
	displayName = "Your Class Name";
};
};[/color]

[color="#0000FF"]class CfgFactionClasses
{
class Your_Faction
       {
	displayName = "Your Faction Name";
	priority = 2;
	side = 2;
               icon = "path to your faction icon";
};
};[/color]

Share this post


Link to post
Share on other sites

class CfgPatches
{
class ...._mod
{
	author = ".......";
	units[] = {"......"};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F","A3_Characters_F_BLUFOR","A3_Characters_F_INDEP"};
	version = "1.01";
};
};

class CfgFactionClasses
{
class .......
{
	displayName = "......"; //Faction Name under ind
	author = ".....";
	icon = "..........";
	priority = 2;
	side = 2; //ind
};
};

class CfgVehicleClasses
{
class ........
{
	displayName = ".........";
};
};

class cfgVehicles
{
class B_Soldier_base_F;
class ..........: B_Soldier_base_F
{
	_generalMacro = "B_Soldier_F";
               scope = 2;
	displayName = ".....";
	faction = "....."; // Puts unit under new faction
	side = 2; //ind

this is how i do it

Share this post


Link to post
Share on other sites

tried all methods, guys, it's still not working :(

- Updated Config -

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  

×