[SOLVED] Can't change logistics vehicles

  1. 5 years ago

    So I've made a custom faction with ORBAT and I'm trying to change the transport vehicles to appropriate ones, instead of CSAT vehicles. I've followed the steps on the wiki, but I'm still getting CSAT vehicles no matter what.

    This is what's in my Init.sqf

    call compile preprocessFile "staticData.sqf";

    And here's what's in my staticData.sqf

    if (!isServer) exitWith {};
     
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
     
    /*
     * Mil logistics convoy transport vehicles per faction
     */
     
    [ALIVE_factionDefaultTransport, "CF_O_Russia_Forest", ["CF_O_Russia_Ural_4320_Forest_01","CF_O_Russia_KamAZ_5350_Forest_01","CF_O_Russia_KamAZ_5350_Open_Flatbed_Forest_01"]] call ALIVE_fnc_hashSet;
    
    /*
     * Mil logistics air transport vehicles per faction
     */
     
    [ALIVE_factionDefaultAirTransport, "CF_O_Russia_Forest", ["CF_O_Russia_Mi_8MT_Forest_01"]] call ALIVE_fnc_hashSet;

    Is there anything I've done wrong or is missing? Despite what's in the sqf files, I just keep getting CSAT vehicles.

  2. Edited 5 years ago by DrDetroit

    Just about 7-8 posts below yours you will find this:

    http://alivemod.com/forum/4282-military-logistics-question

    Check the 2nd post.

    Good luck!

  3. Just tried it, still doesn't work unfortunately :(

  4. My pc's torn down for cleaning at the moment, once it's back up I'll post what I have. Its worked for me using description.ext defined factions so presumably it will work for you. :)

  5. Double check the casing for the faction name is correct.

  6. Deleted 5 years ago by BvB
  7. Deleted 5 years ago by Guitar18
  8. After experimenting, I managed to find a fix. The corrected script:

    if (!isServer) exitWith {};
     
    waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
     
    ALIVE_factionDefaultTransport = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultTransport, "CF_O_Russia_Forest", ["CF_O_Russia_Ural_4320_Forest_01","CF_O_Russia_KamAZ_5350_Forest_01","CF_O_Russia_KamAZ_5350_Open_Flatbed_Forest_01"]] call ALIVE_fnc_hashSet;
    
    ALIVE_factionDefaultAirTransport = [] call ALIVE_fnc_hashCreate;
    [ALIVE_factionDefaultAirTransport, "CF_O_Russia_Forest", ["CF_O_Russia_Mi_8MT_Forest_01"]] call ALIVE_fnc_hashSet;
 

or Sign Up to reply!