Jump to content
Lucy Healy

config.cpp error

Recommended Posts

When trying to launch the offline server to test my mod I keep getting this error in the config;

"line 16: /CfgVehicles/: 'c' encountered instead of '{' "

class CfgPatches
{
    class TT_Tops
    {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = 
        {
            "DZ_Data"
        };
    };
};
class CfgVehicles
{
    class QuiltedJacket_ColorBase;                       < line 16
    class DemZ_QuiltedJacket_Black: QuiltedJacket_ColorBase
    {
        scope=2;
        hiddenSelectionsTextures[]=
        {
            "DemzTextures\Clothing\Tops\demz_quiltedjacket_black_co.paa",
            "DemzTextures\Clothing\Tops\demz_quiltedjacket_black_co.paa",
            "DemzTextures\Clothing\Tops\demz_quiltedjacket_black_co.paa"
        };
    };
};

Share this post


Link to post
Share on other sites

I guess that you may has problem with class reference.

You're using: class Quilted...;

But did you set module reference?

You have only "DZ_Data" as reference and nothing else but you're using class reference and how the game shall find where is that class?

You shall add reference to addon class in section requiredAddons[]; that might gelp you to solve the situation because in other case case you have fine configuration but also i shall warning you I don't know were are you from from example if use UTF-8 code page English "C" has a code: U+0063, and Russian letter "С" has a code: U+0441, both letters has same glyphs, but codes are different and I guess that your config may has the same problem.

If check the error logs the compiler told you that cymbol "c" is unknown and compiler has no idea how it shall be interpritated.

I suggect you remove "c" letter from your config and set it again (be sure that you are using En layout) and I think you might solve you problem.

 

Good luck!

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

×