OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Pathy on 15 May 2004, 19:35:27
-
Ok, im trying to get some Colombian Soldiers ingame and working, BUT, i've written the config (and rewritten it), i'm pretty experienced at configs, and theres no errors that occur, so i dont THINK its a config problem, BUT...when i go into the game, try to place a unit, the unit does not appear in the list in the editor ???
There must be a specific problem that causes this error, but i dont know what it is......
Any help much appreciated.
The configs not a work of art, but its designed just to get the units ingame and see how they look.
// 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
#define private 0
#define protected 1
#define public 2
#define WeaponNoSlot 0
#define WeaponSlotPrimary 1
#define WeaponSlotSecondary 16
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
#define WeaponHardMounted 65536
class CfgPatches
{
class DRG_ColumbianSoldiers
{
units[]={DRG_COLSOL,DRG_COLSOLban,DRG_COLSOLboon,DRG_COLSOLcap,DRG_COLSOLhelmG,DRG_COLSOLhelmC};
weapons[]={};
requiredVersion = 1.92;
};
};
class CfgModels
{
class Default
{
sections[]={};
sectionsInherit="";
};
class Head: Default
{
sections[]={"osobnost","brejle"};
};
class Man: Default
{
sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh"};
sectionsInherit="Head";
};
class DRG_COLSOLBASE : Man
{
};
class DRG_COLSOLbandana : Man
{
};
class DRG_COLSOLbooni : Man
{
};
class DRG_COLSOLcap : Man
{
};
class DRG_COLSOLhelmG : Man
{
};
class DRG_COLSOLhelmC : Man
{
};
};
lass CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class DRG_COLSOL: SoldierWB
{
displayName="Colombian Soldier (No Headgear)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLBASE.p3d";
wounds[]={""};
class Reflectors
{
class Reflector
{
color[]={1.00000,0.900000,0.900000,1.000000};
ambient[]={1.000000,0.9000000,0.9000000,1.000000};
position="svetlo";
direction="konec svetla";
hitpoint="svetlo";
selection="svetlo";
size=0.700000;
brightness=0.001000;
};
};
};
class DRG_COLSOLban: SoldierWB
{
displayName="Colombian Soldier (Bandana)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLbandana.p3d";
wounds[]={""};
class Reflectors
{
class Reflector
{
color[]={1.00000,0.900000,0.900000,1.000000};
ambient[]={1.000000,0.9000000,0.9000000,1.000000};
position="svetlo";
direction="konec svetla";
hitpoint="svetlo";
selection="svetlo";
size=0.700000;
brightness=0.001000;
};
};
};
class DRG_COLSOLcap: SoldierWB
{
displayName="Colombian Soldier (Cap)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLcap.p3d";
wounds[]={""};
class Reflectors
{
class Reflector
{
color[]={1.00000,0.900000,0.900000,1.000000};
ambient[]={1.000000,0.9000000,0.9000000,1.000000};
position="svetlo";
direction="konec svetla";
hitpoint="svetlo";
selection="svetlo";
size=0.700000;
brightness=0.001000;
};
};
};
class DRG_COLSOLhelmG: SoldierWB
{
displayName="Colombian Soldier (Helmet)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLhelmG.p3d";
wounds[]={""};
class Reflectors
{
class Reflector
{
color[]={1.00000,0.900000,0.900000,1.000000};
ambient[]={1.000000,0.9000000,0.9000000,1.000000};
position="svetlo";
direction="konec svetla";
hitpoint="svetlo";
selection="svetlo";
size=0.700000;
brightness=0.001000;
};
};
};
class DRG_COLSOLhelmC: SoldierWB
{
displayName="Colombian Soldier (Helmet Camo'd)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLhelmC.p3d";
wounds[]={""};
class Reflectors
{
class Reflector
{
color[]={1.00000,0.900000,0.900000,1.000000};
ambient[]={1.000000,0.9000000,0.9000000,1.000000};
position="svetlo";
direction="konec svetla";
hitpoint="svetlo";
selection="svetlo";
size=0.700000;
brightness=0.001000;
};
};
};
};
-
Add "access=2" into the config of each unit.
-
Ahhh that would make sense, i will try that. Thank you! (even if it doesn't work)
-
Afraid that doesnt work......thanks anyway. :(
-
Latest attempt, still not working
// 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 DRG_COLSOL
{
units[]={DRG_COLSOL,DRG_COLSOLban,DRG_COLSOLboon,DRG_COLSOLcap,DRG_COLSOLhelmG,DRG_COLSOLhelmC};
weapons[]={};
requiredVersion = 1.92;
};
};
class CfgModels
{
class Default
{
sections[]={};
sectionsInherit="";
};
class Head: Default
{
sections[]={"osobnost","brejle"};
};
class Man: Default
{
sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh"};
sectionsInherit="Head";
};
class DRG_COLSOLBASE : Man
{
};
class DRG_COLSOLBandana : Man
{
};
class DRG_COLSOLboonie : Man
{
};
class DRG_COLSOLcap : Man
{
};
class DRG_COLSOLhelmG : Man
{
};
class DRG_COLSOLhelmC : Man
{
};
};
lass CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierWB:Soldier{};
class DRG_COLSOL: SoldierWB
{
displayName="Colombian Soldier (No Headgear)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLBASE.p3d";
wounds[]={""};
vehicleClass="Men";
scope=2;
side=1;
access=2;
};
class DRG_COLSOLban: SoldierWB
{
displayName="Colombian Soldier (Bandana)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLbandana.p3d";
wounds[]={""};
vehicleClass="Men";
scope=2;
side=1;
access=2;
};
class DRG_COLSOLcap: SoldierWB
{
displayName="Colombian Soldier (Cap)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLcap.p3d";
wounds[]={""};
vehicleClass="Men";
scope=2;
side=1;
access=2;
};
class DRG_COLSOLhelmG: SoldierWB
{
displayName="Colombian Soldier (Helmet)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLhelmG.p3d";
wounds[]={""};
vehicleClass="Men";
scope=2;
side=1;
access=2;
};
class DRG_COLSOLhelmC: SoldierWB
{
displayName="Colombian Soldier (Helmet Camo'd)";
weapons[]={"Throw","Put","M4"};
magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
model="\DRG_COLSOL\DRG_COLSOLhelmC.p3d";
wounds[]={""};
vehicleClass="Men";
scope=2;
access=2;
};
};
-
lass CfgVehicles
:o
Missing a "c"?
-
Well spotted! You must have eagle eyes lol, i cant find errors unless i get a message telling me roughtly where it is!
OK annoyingly enough it makes no difference. When i have more time tonight i will muck around, but.....
-
You changed this:
class CfgPatches
{
class DRG_ColumbianSoldiers
{
to this:
class CfgPatches
{
class DRG_COLSOL
{
I'd go back to the first one again. Anything else you might need to get soldiers in-game is out of my skills ???
-
Ok when i get home i will use the 1st one again and fix the errors pointed out. Thanks for your help Leone. :)