Jump to content
Sign in to follow this  
road runner

Need some help with config.cpp

Recommended Posts

I have been trying to make my own addon, based loosely on Binks soldier addon, and Lingor Jungle SF, the model works fine when saved and packed up as soldier.pbo, looks fine in game, but when I save the very same figure into my own addon, it crashes the game.

The Config.CPP seems okay, but I'm guessing it's the link to the model that's crashing, as all the other stuff, like Unit, Faction, Class etc all show up in the mission editor, my plan is to add more models, once I get the first one working!!

Here is my config.cpp.. can anyone spot what might be an obvious mistake?? Thanks

class CfgPatches

{

class nsw_devgru

{

units[] = {"nsw_devgru_tl"};

weapons[] = {"CAWeapons","CACharacters"};

requiredVersion = 1.0;

};

};

class CfgVehicleClasses

{

class nsw_devgru_Men

{

displayName = "DEVGRU (AOR1)";

};

};

class CfgFactionClasses

{

class DEVGRU

{

displayName = "DEVGRU";

priority = 5;

side = "TWest";

};

};

class CfgVehicles

{

class USMC_Soldier_Base;

class USMC_Soldier_Medic;

class USMC_Soldier_AR;

class USMC_Soldier_MG;

class FR_TL;

class FR_R;

class FR_Corpsman;

class FR_AR;

class FR_GL;

class FR_Marksman;

class nsw_devgru_tl: FR_TL

{

vehicleClass = "nsw_devgru_Men";

faction = "DEVGRU";

displayName = "Team Leader";

model = "\nsw_devgru\nsw_devgru_tl";

identityTypes[] = {"Tier1op"};

scope = 2;

nightVision = 1;

canCarryBackpack = 1;

canHideBodies = 1;

canDeactivateMines = "true";

accuracy = 2;

sensitivity = 2;

camouflage = 0.4;

weapons[] = {"RH_hk416seotech","ACE_P226","NVGoggles","Binocular","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio"};

magazines[] = {"ACE_30Rnd_556x45_T_Stanag","ACE_30Rnd_556x45_T_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","ACE_15Rnd_9x19_P226","ACE_15Rnd_9x19_P226"," ACE_15Rnd_9x19_P226","ACE_15Rnd_9x19_P226"," HandGrenade_West","HandGrenade_West","HandGrenade_West","HandGrenade_West"};

respawnweapons[] = {"RH_hk416seotech","NVGoggles","Binocular","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","30Rnd_556x45_Stanag","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9","15Rnd_9x19_M9"};

class Wounds {

tex[] = {};

mat[] = {"ca\characters\heads\male\defaulthead\data\hhl.rvmat","ca\characters\heads\male\defaulthead\data\hhl_wounds.rvmat","ca\characters\heads\male\defaulthead\data\hhl_wounds2.rvmat","nsw_devgru\data\us_soldier_body_wound1.rvmat","nsw_devgru\data\us_soldier_body_wound2.rvmat"};

};

};

};

Share this post


Link to post
Share on other sites

Sorted this, thanks to another thread

http://forums.bistudio.com/showthread.php?105235-Can-I-use-the-ArmA-2-soldier-model-to-make-units-for-OA&highlight=unsupported+sets

I realised I had not changed the CFG file that came with binks soldier, and didn't have the model I made added to the class at the foot of the cfg file!!

I'm happy now after days of crashes and frustration!! :D

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  

×