Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Lectio

Изменение описания предмета в другом моде

Добрый день! Пытаюсь написать скрипт на изменение описания предмета в чужом моде. Но не могу подгрузить один файл, постоянно выдает ошибку. Подскажите в чем может быть причина?
config.cpp
 

class CfgPatches {
    class Mod_descriptions {
        units[] = {};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"DZ_Scripts","ModMod"}; 
    };
};

class CfgMods {
    class Mod_descriptions {
        type = "mod";
        author = "Lectio";
        dir = "Mod_descriptions"; 
        name = "Mod descriptions"; 
    };
};

class CfgDescriptions {
    #include "scripts/item_descriptions.c" 
};

item_descriptions.c
 

class CfgDescriptions {
    class Predmet1 {
        displayName = "Предмет 1";
        descriptionShort = "ОПИСАНИЕ";
        descriptionUse = "ОПИСАНИЕ";
        descriptionFull = "ОПИСАНИЕ";
    };

    class Predmet1 {
        displayName = "Предмет 2";
        descriptionShort = "ОПИСАНИЕ";
        descriptionUse = "ОПИСАНИЕ";
        descriptionFull = "ОПИСАНИЕ";
    };
};

Все файлы вроде разместил верно. config.cpp находится в директории мода,  item_descriptions.c находится в папке scripts
При запуске выдает такую ошибку:
1895650977_.PNG.c9e51e06708351e1af11194a73851258.PNG

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Судя из выше описанного скрипт не может найти файл item_description.c  

 

Если файл существует такой то проверь путь к нему и его написание.

Проверь имя файла.

Share this post


Link to post
Share on other sites



  • 0
7 часов назад, ArsNet сказал:

Судя из выше описанного скрипт не может найти файл item_description.c  

 

Если файл существует такой то проверь путь к нему и его написание.

Проверь имя файла.

Думаешь я этого не понимаю? Это самое элементарное, что можно сделать и проверить. Но тут всего 2 файла! Причем я уже пытался даже вместо #include прописывать абсолютный путь до файла. И он все равно не хочет его воспринимать.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.