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
Stavor97

Не могу найти ошибку в кфг

Прописываю прокси, прописал колеса, и водительскую дверь, пакую и все работает, добавляю капот, выбивает ошибку Undefined base class

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Там же ясно написано..он не видит этот класс..
либо зависимости сверху добавь


 

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};

 

Edited by thessend (see edit history)

Share this post


Link to post
Share on other sites



  • 0
58 минут назад, thessend сказал:

Там же ясно написано..он не видит этот класс..
либо зависимости сверху добавь


 

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};

 

У меня прописано это

class CfgNonAIVehicles {
    class ProxyAttachment;    // External class reference
    
    class ProxyVehiclePart : ProxyAttachment {
        scope = public;
        simulation = "ProxyInventory";
        autocenter = false;
        animated = false;
        shadow = true;
        reversed = false;
    };
    
    class ProxyOldCarWheel : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\oldwheel.p3d";
        inventorySlot[] = {"OldCarWheel_1_1", "OldCarWheel_1_2", "OldCarWheel_2_1", "OldCarWheel_2_2", "OldCarWheel_Spare_1","NivaWheel_1_1", "NivaWheel_1_2", "NivaWheel_2_1", "NivaWheel_2_2", "NivaWheel_Spare_1"};
    };
    
    class ProxyOldCarDoors_Driver : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\olddoor_driver.p3d";
        inventorySlot = {"NivaDriverDoors", "OldCarDriverDoors"};
    };
    
    class ProxyOldCarHood : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\doors_hood.p3d";
        inventorySlot = {"NivaDriverDoors", "OldCarHood1"};
    };
};


Когда я прописываю ProxyOldCarHood, пишет что не найден класс ProxyVehiclePart, когда я убираю этот прокси, все пакуется 

 

Edited by Stavor97 (see edit history)

Share this post


Link to post
Share on other sites
  • 0
52 минуты назад, Stavor97 сказал:

У меня прописано это

class CfgNonAIVehicles {     class ProxyAttachment;    // External class reference          class ProxyVehiclePart : ProxyAttachment {         scope = public;         simulation = "ProxyInventory";         autocenter = false;         animated = false;         shadow = true;         reversed = false;     };          class ProxyOldCarWheel : ProxyVehiclePart {         model = "LC_Vehicle\proxy\oldwheel.p3d";         inventorySlot[] = {"OldCarWheel_1_1", "OldCarWheel_1_2", "OldCarWheel_2_1", "OldCarWheel_2_2", "OldCarWheel_Spare_1","NivaWheel_1_1", "NivaWheel_1_2", "NivaWheel_2_1", "NivaWheel_2_2", "NivaWheel_Spare_1"};     };          class ProxyOldCarDoors_Driver : ProxyVehiclePart {         model = "LC_Vehicle\proxy\olddoor_driver.p3d";         inventorySlot = {"NivaDriverDoors", "OldCarDriverDoors"};     };          class ProxyOldCarHood : ProxyVehiclePart {         model = "LC_Vehicle\proxy\doors_hood.p3d";         inventorySlot = {"NivaDriverDoors", "OldCarHood1"};     }; };


class CfgNonAIVehicles {
    class ProxyAttachment;    // External class reference
    
    class ProxyVehiclePart : ProxyAttachment {
        scope = public;
        simulation = "ProxyInventory";
        autocenter = false;
        animated = false;
        shadow = true;
        reversed = false;
    };
    
    class ProxyOldCarWheel : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\oldwheel.p3d";
        inventorySlot[] = {"OldCarWheel_1_1", "OldCarWheel_1_2", "OldCarWheel_2_1", "OldCarWheel_2_2", "OldCarWheel_Spare_1","NivaWheel_1_1", "NivaWheel_1_2", "NivaWheel_2_1", "NivaWheel_2_2", "NivaWheel_Spare_1"};
    };
    
    class ProxyOldCarDoors_Driver : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\olddoor_driver.p3d";
        inventorySlot = {"NivaDriverDoors", "OldCarDriverDoors"};
    };
    
    class ProxyOldCarHood : ProxyVehiclePart {
        model = "LC_Vehicle\proxy\doors_hood.p3d";
        inventorySlot = {"NivaDriverDoors", "OldCarHood1"};
    };
};


Когда я прописываю ProxyOldCarHood, пишет что не найден класс ProxyVehiclePart, когда я убираю этот прокси, все пакуется 

 

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


в CfgPatches точно прописаны ? )

Edited by Tokar (see edit history)

Share this post


Link to post
Share on other sites
  • 0
1 час назад, Tokar сказал:

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


в CfgPatches точно прописаны ? )

class CfgPatches {
	class LC_Vehicle {
		units[] = {"OldCarWheel_1_1", "OldCarWheel_1_2", "OldCarWheel_2_1", "OldCarWheel_2_2", "OldCarDriverDoors", "OldCarCoDriverDoors", "OldSportCar", "OldCarHood"};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"DZ_Vehicles_Wheeled", "DZ_Vehicles_Parts", "DZ_Sounds_Effects", "DZ_Data"};
	};
};

вот

Share this post


Link to post
Share on other sites
  • 0
1 час назад, Tokar сказал:

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


в CfgPatches точно прописаны ? )

Если я уберу прокси hood, все работает, если я сделаю две одинаковых прокси например дверей, то тоже не запустится

Share this post


Link to post
Share on other sites
  • 0
23 часа назад, thessend сказал:

Там же ясно написано..он не видит этот класс..
либо зависимости сверху добавь


 

requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};


requiredAddons[] = {"DZ_Vehicles_Wheeled","DZ_Vehicles_Parts","DZ_Sounds_Effects","DZ_Data"};

 

зависимости есть, я не знаю почему оно не видит капот, если видит дверь и колесо

Share this post


Link to post
Share on other sites
  • 0

А можно весь конфиг от автомобиля приложить в виде файла если не трудно

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.