Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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

×