Jump to content
Sign in to follow this  
Dannyllnl69

Replacing Some Names and Sides

Recommended Posts

they are for my own use unless someone likes them or so, all i change were the names,weapons,class name.

can some one check if i have it right help.gif

mmm and what is the next step when i finish creating the config

and again they are not for public release ! banghead.gif

i get this error messege---

citizen police force\config.cpp/cfgPatches/:'P'encountered instead of '{'

#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

#define WeaponSlotPrimary 1

#define WeaponSlotSecondary 16

#define WeaponSlotItem 256

#define WeaponSlotBinocular 4096

#define WeaponHardMounted 65536

#define CanSeeRadar 1

#define CanSeeEye 2

#define CanSeeOptics 4

#define CanSeeEar 8

#define CanSeeCompass 16

#define CanSeeRadarC CanSeeRadar+CanSeeCompass

#define CanSeeAll 31

class CfgPatches

{

class Citizen Police Corps

{

units[] = {

dmx_mcpolicie1,

dmx_mcpolicie2,

dmx_mcpolicie3,

dmx_mcpolicie4,

dmx_mcpolicie5,

dmx_mcpolicie6,

};

weapons[] = {"M16","AK74","XMS"};

requiredVersion = 1.90;

requiredAddons[] = {"dmx_policie","BIS_Resistance",};

};

};

class CfgModels

{

class default {};

class Man: Default {};

class dmx_mcpolicie1: Man

{

sections[] = {"dmx_dop1","dmx_dop2","dmx_glasses","dmx_mask1",&

quot;dmx_mask2","dmx_nbcp","dmx_strap off","dmx_strap on","mask_switch","head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava"};

};

class dmx_mcpolicie2: Man

{

sections[] = {"dmx cap","head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava"};

class ECP_EventHandlers {};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Land: AllVehicles {};

class Man: Land {};

class Civilian: Man {};

class Civilian11: Civilian {};

class dmx_mcpolicie1: Civilian11

{

Vehicleclass = "Citizen Police Corps";

displayname = "Tatical Security Police";

model = "\dmx_policie\dmx_mcpolicie1";

side = 1;

weaponSlots="1 + 16 + 8* 256 + 2* 4096 + 2 + 4* 32";

weapons[] = {"M16","dmx_Throw","Put"};

magazines[] = {"M16","M16","M16","M16","M16"};

hiddenselections[]= {"dmx_dop1","dmx_dop2","dmx_glasses","dmx_mask1",&

quot;dmx_mask2","dmx_nbcp","dmx_strap off","dmx_strap on"};

armorHead = 0.8;

armorBody = 5.0;

wounds[] = {"\dmx_policie\mc\povest_top.pac","\dmx_policie\mc\povest_top_d.pac","\o\char\fizl_gate.pac","\o\char\fizl_gate_i.pac","\o\char\fizl_top.pac","\o\char\fizl_top_i.pac","\o\char\fizl_rukav.pac","\o\char\fizl_rukav_i.pac","xicht_a.paa","xicht_a_zranen","xicht_b

.paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen",&

quot;xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zr

anen","xicht_f.paa","xicht_a_zranen","xicht_g.paa",&quo

t;xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.pa

a","xicht_a_zranen","xicht_j.paa","xicht_a_zranen",&quo

t;xicht_k.paa","xicht_a_zranen","xicht_l.paa","xicht_a_zrane

n","xicht_m.paa","xicht_a_zranen","xicht_n.paa","x

icht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa&q

uot;,"xicht_a_zranen","xicht_q.paa","xicht_a_zranen","x

icht_r.paa","xicht_a_zranen","xicht_s.paa","xicht_a_zranen&q

uot;,"xicht_t.paa","xicht_a_zranen","xicht_u.paa","xich

t_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa&quot

;,"xicht_w_zranen","xicht_x.paa","xicht_a_zranen","xich

t_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen&quot

;,"xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht

_w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa&quo

t;,"xicht_v_zranen","xicht_2e.paa","xicht_a_zranen","xi

cht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen&

quot;,"xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","x

icht_a_zranen","xicht_2j.paa","xicht_a_zranen","xicht_2k.paa

","xicht_a_zranen","xicht_2l.paa","xicht_a_zranen",&quo

t;xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zra

nen","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa",&qu

ot;xicht_2p_zranen","xicht_2q.paa","xicht_a_zranen","xicht_2

r.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen"

,"xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_

a_zranen","xicht_2v.paa","xicht_a_zranen","xicht_2w.paa&quot

;,"xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xic

ht_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen&q

uot;};

class Animations

{

class mask_switch

{

type = "rotation";

animPeriod = 0.1;

selection = "mask_switch";

axis = "axis_switch";

angle0 = 0.1;

angle1 = 0;

};

};

class UserActions

{

class maskOn

{

displayName="Put on Gasmask";

position="pilot";

radius=1;

condition="(getdammage this < 0.95) && (this animationphase {mask_switch} < 1)";

statement="this exec {\dmx_policie\maskon.sqs}; this animate [{mask_switch}, 1]";

};

class maskOff

{

displayName="Take off Gasmask";

position="pilot";

radius=1;

condition="(getdammage this < 0.95) && (this animationphase {mask_switch} > 0)";

statement="this exec {\dmx_policie\maskoff.sqs}; this animate [{mask_switch}, 0]";

};

};

class EventHandlers : ECP_EventHandlers

{

init = "[_this select 0] exec {\dmx_policie\initgasmask.sqs}";

};

};

class dmx_mcpolicie2: Civilian11

{

Vehicleclass = "Citizen Police Corps";

displayname = "Police Agent(FireArms Bureau)";

model = "\dmx_policie\dmx_mcpolicie2";

side = 1;

weapons[]={"AK74","binocular","dmx_Throw","Put"};

magazines[]={"AK74","AK74","AK74","AK74","AK74",&quo

t;AK74"};

hiddenselections[]= {"dmx cap"};

wounds[] = {"\o\char\fizl_top.pac","\o\char\fizl_top_i.pac","\o\char\fizl_rukav.pac","\o\char\fizl_rukav_i.pac","\o\char\fizl_gate.pac","\o\char\fizl_gate_i.pac","xicht_a.paa","xicht_a_zranen","xicht_b.

paa","xicht_a_zranen","xicht_c.paa","xicht_a_zranen",&q

uot;xicht_d.paa","xicht_a_zranen","xicht_e.paa","xicht_e_zra

nen","xicht_f.paa","xicht_a_zranen","xicht_g.paa",&quot

;xicht_a_zranen","xicht_h.paa","xicht_a_zranen","xicht_i.paa

","xicht_a_zranen","xicht_j.paa","xicht_a_zranen",&quot

;xicht_k.paa","xicht_a_zranen","xicht_l.paa","xicht_a_zranen

","xicht_m.paa","xicht_a_zranen","xicht_n.paa","xi

cht_a_zranen","xicht_o.paa","xicht_o_zranen","xicht_p.paa&qu

ot;,"xicht_a_zranen","xicht_q.paa","xicht_a_zranen","xi

cht_r.paa","xicht_a_zranen","xicht_s.paa","xicht_a_zranen&qu

ot;,"xicht_t.paa","xicht_a_zranen","xicht_u.paa","xicht

_a_zranen","xicht_v.paa","xicht_v_zranen","xicht_w.paa"

,"xicht_w_zranen","xicht_x.paa","xicht_a_zranen","xicht

_y.paa","xicht_a_zranen","xicht_z.paa","xicht_a_zranen"

,"xicht_2a.paa","xicht_a_zranen","xicht_2b.paa","xicht_

w_zranen","xicht_2c.paa","xicht_a_zranen","xicht_2d.paa&quot

;,"xicht_v_zranen","xicht_2e.paa","xicht_a_zranen","xic

ht_2f.paa","xicht_a_zranen","xicht_2g.paa","xicht_w_zranen&q

uot;,"xicht_2h.paa","xicht_a_zranen","xicht_2i.paa","xi

cht_a_zranen","xicht_2j.paa","xicht_a_zranen","xicht_2k.paa&

quot;,"xicht_a_zranen","xicht_2l.paa","xicht_a_zranen",&quot

;xicht_2m.paa","xicht_a_zranen","xicht_2n.paa","xicht_a_zran

en","xicht_2o.paa","xicht_a_zranen","xicht_2p.paa",&quo

t;xicht_2p_zranen","xicht_2q.paa","xicht_a_zranen","xicht_2r

.paa","xicht_e_zranen","xicht_2s.paa","xicht_a_zranen",

"xicht_2t.paa","xicht_a_zranen","xicht_2u.paa","xicht_a

_zranen","xicht_2v.paa","xicht_a_zranen","xicht_2w.paa"

,"xicht_w_zranen","xicht_2x.paa","xicht_a_zranen","xich

t_2y.paa","xicht_a_zranen","xicht_2z.paa","xicht_a_zranen&qu

ot;};

class EventHandlers

{

init = "[_this select 0] exec {\dmx_policie\initcap.sqs}";

};

};

class Civilian6: Civilian {};

class dmx_mcpolicie3: Civilian6

{

Vehicleclass = "Citizen Police Corps";

displayname = "Police Agent2(FireArms Bureau)";

side = 1;

weapons[] = {"M16","dmx_Throw","Put"};

magazines[] = {"M16","M16","M16","M16","M16","M16

"};

};

};

class dmx_mcpolicie4: Civilian6

{

Vehicleclass = "Citizen Police Corps";

displayname = "Rural Police Force";

side = 1;

weapons[] = {"XMS","dmx_Throw","Put"};

magazines[] = {"M4","M4","M4","M4","M4","M4"

};

};

};

class dmx_mcpolicie5: Civilian11

{

Vehicleclass = "Citizen Police Corps";

displayname = "Town Police";

side = 1;

weapons[] = {"AK74","dmx_Throw","Put"};

magazines[] = {"AK74","AK74","AK74","AK74","AK74",&quo

t;AK74"};

};

};

class dmx_mcpolicie6: Civilian11

{

Vehicleclass = "Citizen Police Corps";

displayname = "Special Assingment Group";

side = 1;

weapons[]={"M16","binocular","dmx_Throw","Put"};

magazines[]={"M16","M16","M16","M16","M16","M16

"};

Share this post


Link to post
Share on other sites
Quote[/b] ]};

weapons[] = {"M16","AK74","XMS"};

requiredVersion = 1.90;

requiredAddons[] = {"dmx_policie","BIS_Resistance",};

You have an exta comma at the end of BIS_Resistance. Not sure if that's it. There are 2 good utilities to scan configs for syntax and starting and ending brackets.

1.OFPaddonHelper

2.OFPLint

You might look for these to download.

Share this post


Link to post
Share on other sites
i get this error messege---

citizen police force\config.cpp/cfgPatches/:'P'encountered instead of '{'

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class Citizen Police Corps

{

Should read something like:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class CitizenPoliceCorps

{

Or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class Citizen_Police_Corps

{

There could ofcourse be other errors in there, but I really dont feel like poking through my old configs tounge2.gif

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  

×