Override ALIVE_factionDefaultAirTransport not working

  1. 2 weeks ago

    I have an issue, since a last update from arma or ALiVE ( or BWMod )
    I have override the Chopper for my Faction "BWA3_Faction_Fleck". If i test it locally it working fine. The CH53 fly in with the units and so on. But if i put the mission on my dedicated server it fall back to BLU_F Standard Chopper. I´ve tried to override the Side Fallback Air Transport but nothing seems to work.

    I´ve tried it to change isServer to isDedicated in staticData and Modul call. The same issue.
    Can someone help me with this issue?

    staticData.sqf

    if (!isServer) exitWith {};
     
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
    // --------------------------------------------------------------------------------------------------------------------- 
    /*
     * Mil logistics convoy transport vehicles per faction
     */
    ALIVE_factionDefaultTransport = [] call ALIVE_fnc_hashCreate; 
    [ALIVE_factionDefaultTransport, "OPF_F", ["O_Truck_02_transport_F","O_Truck_02_covered_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "OPF_G_F", ["O_G_Van_01_transport_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "IND_F", ["I_Truck_02_covered_F","I_Truck_02_transport_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "BLU_F", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "BLU_G_F", ["B_G_Van_01_transport_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "CIV_F", ["C_Van_01_transport_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "BWA3_Faction_Fleck", ["BW_LKW_Transport_Fleck"]] call ALIVE_fnc_hashSet;
    // --------------------------------------------------------------------------------------------------------------------- 
    /*
     * Mil logistics air transport vehicles per faction
     */
    ALIVE_factionDefaultAirTransport = [] call ALIVE_fnc_hashCreate; 
    [ALIVE_factionDefaultAirTransport, "OPF_F", ["O_Heli_Attack_02_F","O_Heli_Light_02_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "OPF_G_F", ["I_Heli_light_03_unarmed_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "rhs_faction_vdv", ["RHS_Mi8mt_vdv","RHS_Mi8MTV3_vdv","RHS_Mi8MTV3_heavy_vdv","RHS_Mi24V_vdv"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "IND_F", ["I_Heli_light_03_unarmed_F","I_Heli_Transport_02_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "BLU_F", ["B_Heli_Transport_01_camo_F","B_Heli_Transport_01_camo_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "BWA3_Faction_Fleck", ["CUP_B_C130J_USMC","BW_NH90","CUP_B_CH53E_GER"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "BLU_G_F", ["I_Heli_light_03_unarmed_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultAirTransport, "CIV_F", []] call ALIVE_fnc_hashSet;
    // --------------------------------------------------------------------------------------------------------------------- 
    /*
     * Mil logistics air transport vehicles fallback for sides
     */  
    ALIVE_sideDefaultAirTransport = [] call ALIVE_fnc_hashCreate;
    [ALIVE_sideDefaultAirTransport, "EAST", ["CUP_O_Mi8_RU","CUP_O_MI6T_RU","CUP_O_Mi8_medevac_RU","CUP_O_MI24_V_Dynamic_RU","CUP_O_MI24_P_Dynamic_RU"]] call ALIVE_fnc_hashSet;
    [ALIVE_sideDefaultAirTransport, "WEST", ["CUP_B_CH53E_GER"]] call ALIVE_fnc_hashSet;
    [ALIVE_sideDefaultAirTransport, "GUER", ["I_Heli_light_03_unarmed_F","I_Heli_Transport_02_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_sideDefaultAirTransport, "CIV", []] call ALIVE_fnc_hashSet; 
    // ---------------------------------------------------------------------------------------------------------------------
    /* 
     * BWMod Faction Configuration
     */
    BWA3_Faction_Fleck_typeMappings = [] call ALiVE_fnc_hashCreate;
    BWA3_Faction_Fleck_factionCustomGroups = [] call ALiVE_fnc_hashCreate;
    [BWA3_Faction_Fleck_factionCustomGroups,"Infantry", ["BWA3_InfSquad","BWA3_InfTeam","BWA3_InfTeam_AT","BWA3_InfTeam_AA","BWA3_InfSentry","BWA3_ReconTeam","BWA3_ReconPatrol","BWA3_ReconSentry","BWA3_SniperTeam"]] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"SpecOps", []] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Motorized", ["BWA3_MotInf_Team","BWA3_MotInf_AT","BWA3_MotInf_AA","BWA3_MotInf_Team_Fuchs"]] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Motorized_MTP", ["BWA3_MotEmpty_Eagle","BWA3_MotEmpty_Dingo","BWA3_MotEmpty_Fuchs","BWA3_MotEmpty_Wiesel","BWA3_MotEmpty_Marder"]] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Mechanized", ["BWA3_MechInfSquad","BWA3_MechInf_AT","BWA3_MechInf_AA"]] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Armored", ["BWA3_TankPlatoon","BWA3_TankSection"]] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Artillery", []] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Naval", []] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Air", []] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_factionCustomGroups,"Support", ["BWA3_Support_CLS","BWA3_Support_ENG","BWA3_Recon_CLS","BWA3_Recon_ENG"]] call ALiVE_fnc_hashSet;
    
    BWA3_Faction_Fleck_mappings = [] call ALiVE_fnc_hashCreate;
    [BWA3_Faction_Fleck_mappings,"Side", "WEST"] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_mappings,"GroupSideName", "WEST"] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_mappings,"FactionName", "BWA3_Faction_Fleck"] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_mappings,"GroupFactionName", ""] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_mappings,"GroupFactionTypes", BWA3_Faction_Fleck_typeMappings] call ALiVE_fnc_hashSet;
    [BWA3_Faction_Fleck_mappings,"Groups", BWA3_Faction_Fleck_factionCustomGroups] call ALiVE_fnc_hashSet;
    //[ALiVE_factionCustomMappings,"BWA3_Faction_Fleck", BWA3_Faction_Fleck_mappings] call ALiVE_fnc_hashSet;
    // ---------------------------------------------------------------------------------------------------------------------
    /*
     * Change Compositions
     */
    /*
    ALIVE_compositions = [] call ALIVE_fnc_hashCreate;
    [ALIVE_compositions, "HQ", ["smallHQOutpost1","largeMedicalHQ1"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "camps", ["smallConvoyCamp1","smallMilitaryCamp1","smallMortarCamp1","mediumAACamp1","mediumMilitaryCamp1","mediumMGCamp1","mediumMGCamp2","mediumMGCamp3"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "communications", ["communicationCamp1"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "fuel", ["smallFuelStation1","mediumFuelSilo1"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "constructionSupplies", ["bagFenceKit1","hbarrierKit1","hbarrierKit2","hbarrierWallKit1","hbarrierWallKit2"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "crashsites", ["smallOspreyCrashsite1","smallAH99Crashsite1","mediumc192Crash1"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "objectives", ["largeMilitaryOutpost1","mediumMilitaryOutpost1","hugeSupplyOutpost1","hugeMilitaryOutpost1"]] call ALIVE_fnc_hashSet;
    [ALIVE_compositions, "other", ["smallATNest1","smallMGNest1","smallCheckpoint1","smallRoadblock1","mediumCheckpoint1","largeGarbageCamp1"]] call ALIVE_fnc_hashSet;
    */
    // ---------------------------------------------------------------------------------------------------------------------
    /*
     * Mil placement random supply boxes per faction
     */
    /* 
    ALIVE_factionDefaultSupplies = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultSupplies, "OPF_F", ["Box_East_Ammo_F","Box_East_AmmoOrd_F","Box_East_Grenades_F","Box_East_Support_F","Box_East_Wps_F","Box_East_WpsLaunch_F","Box_East_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "OPF_G_F", ["Box_East_Ammo_F","Box_East_AmmoOrd_F","Box_East_Grenades_F","Box_East_Support_F","Box_East_Wps_F","Box_East_WpsLaunch_F","Box_East_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "IND_F", ["Box_IND_Ammo_F","Box_IND_AmmoOrd_F","Box_IND_Grenades_F","Box_IND_Support_F","Box_IND_Wps_F","Box_IND_WpsLaunch_F","Box_IND_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "BLU_F", ["Box_NATO_Ammo_F","Box_NATO_AmmoOrd_F","Box_NATO_Grenades_F","Box_NATO_Support_F","Box_NATO_Wps_F","Box_NATO_WpsLaunch_F","Box_NATO_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "BLU_G_F", ["Box_IND_Ammo_F","Box_IND_AmmoOrd_F","Box_IND_Grenades_F","Box_IND_Support_F","Box_IND_Wps_F","Box_IND_WpsLaunch_F","Box_IND_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    */
    // ---------------------------------------------------------------------------------------------------------------------
    /*
     * Mil placement random supply boxes for sides
     */
    /* 
    ALIVE_sideDefaultSupplies = [] call ALIVE_fnc_hashCreate;
    [ALIVE_sideDefaultSupplies, "EAST", ["Box_East_Ammo_F","Box_East_AmmoOrd_F","Box_East_Grenades_F","Box_East_Support_F","Box_East_Wps_F","Box_East_WpsLaunch_F","Box_East_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_sideDefaultSupplies, "WEST", ["Box_NATO_Ammo_F","Box_NATO_AmmoOrd_F","Box_NATO_Grenades_F","Box_NATO_Support_F","Box_NATO_Wps_F","Box_NATO_WpsLaunch_F","Box_NATO_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    [ALIVE_sideDefaultSupplies, "GUER", ["Box_IND_Ammo_F","Box_IND_AmmoOrd_F","Box_IND_Grenades_F","Box_IND_Support_F","Box_IND_Wps_F","Box_IND_WpsLaunch_F","Box_IND_WpsSpecial_F"]] call ALIVE_fnc_hashSet;
    */
    // ---------------------------------------------------------------------------------------------------------------------

    ALiVE Required Modul

    0 = [] spawn { 
        if (isServer) then { 
            waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"}; 
            call compile (preprocessFileLineNumbers "staticData.sqf"); 
        }; 
    };

    Thanks in advanced
    Baker

  2. Edited 2 weeks ago by HeroesandvillainsOS

    Hi! I don’t code, so I just want to ask you a question. Instead of initiating the script from the ALiVE Required module, does your staticData file work if you initiate it from an init.sqf file using call compile preprocessFile "staticData.sqf";

    ?

  3. It is not working with module call and with initiating in init.sqf.

    The faction configuration seems to work, because the custom defined in the description.ext are available in the mission. It must be a problem with the overriding for Transports.

 

or Sign Up to reply!