Jump to content
Pasta Frolla

"Include file x\\addons\main\script_mod.hpp not found"

Recommended Posts

So i have started working on a new faction some days ago.

I made some new textures for the vehicles im going to use and created the config.hpp file using the ALiVE ORBAT CREATOR.

 

When i try to pack all the files (Cfgvehicles.hpp, CfgGroups.hpp, CfgPatches.hpp, CfgFactionClasses.hpp, config.hpp, script_component.hpp) into a PBO 

it gives me the following error

 

Spoiler

Build failed. result code=1
CfgConvert task failed
Include file x\\addons\main\script_mod.hpp not found.
Error reading config file C:\Users\Pastah\Desktop\@ModAutogen\@testmod\addons\test\config.cpp

 

The only file i edited was CfgVehicles.hpp

 

I would be very happy if someone could help me :)

I also apologize for any error i made or if i created this thread in the wrong section.

 

This is the complete log of CfgVehicles.hpp:

//////////////////////////////////////////////////////////////////////////////////
// Config Automatically Generated by ALiVE ORBAT Creator
// Generated with Arma 3 version 182.144710 on Stable branch
// Generated with ALiVE version 1.6.1.1804271
//////////////////////////////////////////////////////////////////////////////////


class CBA_Extended_EventHandlers_base;

class CfgVehicles {

    class B_Soldier_F;
    class B_Soldier_F_OCimport_01 : B_Soldier_F { scope = 0; class EventHandlers; };
    class B_Soldier_F_OCimport_02 : B_Soldier_F_OCimport_01 { class EventHandlers; };

    class I_Truck_02_transport_F;
    class I_Truck_02_transport_F_OCimport_01 : I_Truck_02_transport_F { scope = 0; class EventHandlers; class Turrets; };
    class I_Truck_02_transport_F_OCimport_02 : I_Truck_02_transport_F_OCimport_01 { 
        class EventHandlers; 
        class Turrets : Turrets {
            class CargoTurret_01;
            class CargoTurret_02;
        };
    };

    class I_Truck_02_covered_F;
    class I_Truck_02_covered_F_OCimport_01 : I_Truck_02_covered_F { scope = 0; class EventHandlers; class Turrets; };
    class I_Truck_02_covered_F_OCimport_02 : I_Truck_02_covered_F_OCimport_01 { 
        class EventHandlers; 
        class Turrets : Turrets {
            class CargoTurret_01;
            class CargoTurret_02;
        };
    };


    class B_UN_Rifleman01 : B_Soldier_F_OCimport_02 {
        author = "Pastah";
        scope = 2;
        scopeCurator = 2;
        displayName = "Rifleman";
        side = 1;
        faction = "B_UnitedNations";

        identityTypes[] = {"Head_NATO","LanguageENG_F","G_NATO_default"};

        uniformClass = "U_B_CombatUniform_mcam";

        linkedItems[] = {"V_PlateCarrier1_rgr","H_HelmetB","ItemMap","ItemRadio","ItemCompass","ItemWatch","NVGoggles"};
        respawnlinkedItems[] = {"V_PlateCarrier1_rgr","H_HelmetB","ItemMap","ItemRadio","ItemCompass","ItemWatch","NVGoggles"};

        weapons[] = {"arifle_MX_ACO_pointer_F","hgun_P07_F"};
        respawnWeapons[] = {"arifle_MX_ACO_pointer_F","hgun_P07_F"};

        magazines[] = {"30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag","30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag"};
        respawnMagazines[] = {"30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag","30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag"};

        ALiVE_orbatCreator_loadout[] = {{"arifle_MX_ACO_pointer_F","","acc_pointer_IR","optic_Aco",{"30Rnd_65x39_caseless_mag",30},{},""},{},{"hgun_P07_F","","","",{"16Rnd_9x21_Mag",16},{},""},{"U_B_CombatUniform_mcam",{{"FirstAidKit",1},{"30Rnd_65x39_caseless_mag",2,30},{"Chemlight_green",1,1}}},{"V_PlateCarrier1_rgr",{{"30Rnd_65x39_caseless_mag",7,30},{"16Rnd_9x21_Mag",2,16},{"SmokeShell",1,1},{"SmokeShellGreen",1,1},{"Chemlight_green",1,1},{"HandGrenade",2,1}}},{},"H_HelmetB","",{},{"ItemMap","","ItemRadio","ItemCompass","ItemWatch","NVGoggles"}};


        class EventHandlers : EventHandlers {
            class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};

            class ALiVE_orbatCreator {
                init = "if (local (_this select 0)) then {_onSpawn = {_this = _this select 0;sleep 0.2; _backpack = gettext(configfile >> 'cfgvehicles' >> (typeof _this) >> 'backpack'); waituntil {sleep 0.2; backpack _this == _backpack};if !(_this getVariable ['ALiVE_OverrideLoadout',false]) then {_loadout = getArray(configFile >> 'CfgVehicles' >> (typeOf _this) >> 'ALiVE_orbatCreator_loadout'); _this setunitloadout _loadout;reload _this};};_this spawn _onSpawn;(_this select 0) addMPEventHandler ['MPRespawn', _onSpawn];};";
            };

        };

        // custom attributes (do not delete)
        ALiVE_orbatCreator_owned = 1;

    };

    class Zamak_UN : I_Truck_02_transport_F_OCimport_02 {
        author = "Pastah";
        scope = 2;
        scopeCurator = 2;
        displayName = "Zamak Transport";
        side = 1;
        faction = "B_UnitedNations";
        crew = "B_UN_Rifleman01";
        hiddenSelections[] = {"Zamak_UN"},{"Zamak_Covered_UN"};
        HiddenSelectionsTextures[] = {0,"x\data\Zamak_UN.paa"},{1,"x\data\Zamak_Covered_UN.paa"};
       
	   class Turrets : Turrets {
            class CargoTurret_01 : CargoTurret_01 { gunnerType = ""; };
            class CargoTurret_02 : CargoTurret_02 { gunnerType = ""; };
        };
		
        class EventHandlers : EventHandlers {
            class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};
            class ALiVE_orbatCreator {init = "if (local (_this select 0)) then {_onSpawn = {sleep 0.3; _unit = _this select 0;};_this spawn _onSpawn;(_this select 0) addMPEventHandler ['MPRespawn', _onSpawn];};";
            };

        };

        // custom attributes (do not delete)
        ALiVE_orbatCreator_owned = 1;

    };

    class Zamak_Covered_UN : I_Truck_02_covered_F_OCimport_02 {
        author = "Pastah";
        scope = 2;
        scopeCurator = 2;
        displayName = "Zamak Transport (Covered)";
        side = 1;
        faction = "B_UnitedNations";
        crew = "B_UN_Rifleman01";
        hiddenSelections[] = {"Zamak_UN"},{"Zamak_Covered_UN"};
        HiddenSelectionsTextures[] = {0,"x\data\Zamak_UN.paa"},{1,"x\data\Zamak_Covered_UN.paa"};
        
		class Turrets : Turrets {
            class CargoTurret_01 : CargoTurret_01 { gunnerType = ""; };
            class CargoTurret_02 : CargoTurret_02 { gunnerType = ""; };
        };



        class EventHandlers : EventHandlers {
            class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};

            class ALiVE_orbatCreator {
                init = "if (local (_this select 0)) then {_onSpawn = {sleep 0.3; _unit = _this select 0;};_this spawn _onSpawn;(_this select 0) addMPEventHandler ['MPRespawn', _onSpawn];};";
            };

        };

 

Share this post


Link to post
Share on other sites

Can you upload the entire folder as a zip so I can take a proper look?

 

EDIT: Actually, I've seen this before. You should be able to remove 

#include "script_component.hpp"

from your config.cpp and it'll work fine. If I recall correctly anyway.

 

Are you using a 32-bit OS and/or 32-bit Arma? The 64-bit DLL has been updated before 1.6.1 which contains the fix for this I believe. The 32-bit DLL was skipped for whatever reason.

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

×