Jump to content
Sign in to follow this  
NisuMies

Config problem

Recommended Posts

I made config for my first addon but when i try to start flashpoint it gives me this error:

Config testisol\config.cpp:some input after EndOfFile.

So whats the problem?

Here is the config:

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

/* */

/* Russian Guard config

/* */

/************************************/

// 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 Groups

   {

       units[] = {};

weapons[] = {};

requiredVersion = 1.75;

   };

class nisu_rus_guard

{

units[] = {nisu_rus_guard};

weapons[] = {};

requiredVersion = 1.01;

};

};

class CfgModels

{

class Default

{

sections[] = {};

sectionsInherit="";

};

class Head : Default

{

sections[] = {"osobnost"};

};

class Man:Default {};

       class nisu_rus_guard:Man {};

};

class CfgVehicles

{

class All{};

class AllVehicles : All{};

class Land : AllVehicles{};

class Man : Land{};

class Soldier : Man{};

class SoldierEB : Soldier{};

class nisu_rus_guard  : SoldierEB

   {

displayName="Russian guard";

       model="\testisol\nisu_rus_vartija";

weapons[]={"ak74","Throw","Put"};

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

};

};

};

};

};

};

};

Share this post


Link to post
Share on other sites

I don't actually know, but you might have repeated "};" too many times.

Share this post


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

/* */

/* Russian Guard config

/* */

/************************************/

// 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 Groups

    {

         units[] = {};

         weapons[] = {};

         requiredVersion = 1.75;

    };

    class nisu_rus_guard

    {

         units[] = {nisu_rus_guard};

         weapons[] = {};

         requiredVersion = 1.01;

    };

};

class CfgModels

{

    class Default

    {

         sections[] = {};

         sectionsInherit="";

    };

    class Head : Default

    {

         sections[] = {"osobnost"};

    };

    class Man:Default {};

    class nisu_rus_guard:Man {};

};

class CfgVehicles

{

    class All{};

    class AllVehicles : All{};

    class Land : AllVehicles{};

    class Man : Land{};

    class Soldier : Man{};

    class SoldierEB : Soldier{};

    class nisu_rus_guard  : SoldierEB

    {

         displayName="Russian guard";

         model="\testisol\nisu_rus_vartija";

         weapons[]={"ak74","Throw","Put"};

         magazines[]=

{"ak74Mag","ak74Mag","ak74Mag","ak74Mag","ak7

4Mag","ak74Mag"};

    };

};

Try that to start with

for every { there should be a }; no more

Also try this type of setout to help you keep track

Share this post


Link to post
Share on other sites

And for the love of icecream, remove the "class Groups" declaration from CfgPatches immediately. Its not needed and it will cause problems. For some reason, way back, someone put that in and it can still be found in many old, broken addons. To this day it pops up in new addons.

Ever had a mission load and tell you "Cannot load mission, missing addons groups"? Yep, that's where it comes from.

The addon will be fine without class Groups in CfgPatches. No ifs, not buts about it. Remove it.

EDIT: What I'm saying is this:

Quote[/b] ]

...

class CfgPatches

{

class nisu_rus_guard

{

units[] = {nisu_rus_guard};

weapons[] = {};

requiredVersion = 1.75;

};

};

...

Other than that, the one Scud posted looks fine.

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  

×