AA Unit Blacklist

  1. ‹ Older
  2. 9 years ago
    Edited 9 years ago by agard

    I have the same problem, both on the previous and the current version (0.9.7.1504081) of alive.

    I've been able to run the scenario, fly around in a helicopter until I get shot at, visually check where the rocket was coming from, enable teleporting, teleport right next to where the rocket came from and verify it was an infantry "missile specialist (AA)".

    I have used both the initialization field in the editor and the suggested staticData.sqf file given as an example on the wiki edited to include AA units. Unlike BigBird, I only excluded AA infantry (which is why I confirmed the rocket launch was from infantry).

    The line from the init field is as follows:

    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_Soldier_AA_F", "O_soldierU_AA_F"];

    This is copied and pasted into ALIVE_civ_placement, ALIVE_mil_placement, and ALIVE_mil_cqb.

    My init.sqf and staticData.sqf, which I added when the init lines on those modules didn't seem to cut it, are copy and pasted from the alive wiki, with the addition of the following lines under ALiVE_MIL_CQB_UNITBLACKLIST and ALiVE_PLACEMENT_UNITBLACKLIST

    "O_Soldier_AA_F",
    "O_SoldierU_AA_F",
    "B_soldier_AA_F",
    "I_soldier_AA_F",

    I notice the following line in the rpt, which is repeated many times for a small handful of types:

    15:30:22 soldier[O_Soldier_AA_F]:Some of magazines weren't stored in soldier Vest or Uniform?

    so I assume that's implying that it is indeed spawning O_Soldier_AA_F despite it being on the blacklist.

  3. highhead

    13 Apr 2015 Administrator

    Hi!

    The info on the Wiki is a bit outdated! I am sorry for that!
    Please use those blacklist variables. Put the ones you need in the init field of the "ALiVE require"-modules init field (or any modules init field, i prefer this to have it in this):

    Define your custom strategic house classes for CQB (rest will be regular houses): ALiVE_MIL_CQB_CUSTOM_STRATEGICHOUSES (edited)

    Exclude custom unit classes from CQB:
    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST

    Exclude custom unit classes from beeing spawned in CIV/MP Modules:
    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST (edited)

    Avoid some vehicle classes to beeing spawned by CIV/MP Modules:
    ALiVE_PLACEMENT_CUSTOM_VEHICLEBLACKLIST (edited)

    Avoid certain group classes of beeing created by CIV/MIL MP modules:
    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST

    Example (don't use the classes below, should only be an example):
    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"]; ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"];

  4. Thanks for the help, that seems to work. Excited to get going with a bit more survivability in the air.

    For anyone else browsing this thread, this is the line I ultimately used in ALiVE(Required) init:

    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["O_Soldier_AA_F", "O_soldierU_AA_F"]; ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_Soldier_AA_F", "O_soldierU_AA_F"]; ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = ["ORG_InfTeam_AA"];

    I can confirm that just the first two statements aren't enough, and blacklisted individuals will still be spawned as part of groups that include them unless you blacklist the group too. I was able to get a listing of the group names from grp_a3.pbo in the @alive\addons directory.

  5. Great thanks for reporting back

  6. Friznit

    16 Apr 2015 Administrator

    I'll update the wiki. Thanks for the feedback!

  7. 7 years ago

    Desired Outcome:
    I am trying to prevent any CUP Takistan Army and Militia AA Units from being spawned in my current mission.

    Methods I've Attempted:
    Most recently I have used the above mentioned method - ie. pasting the following into the init field of the ALiVE Required module;

    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["CUP_O_TK_Soldier_AA","CUP_O_TK_INS_Soldier_AA"];
    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["CUP_O_TK_Soldier_AA","CUP_O_TK_INS_Soldier_AA"];
    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = ["CUP_O_TK_InfantrySectionAA","CUP_O_TK_MILITIA_AATeam"];

    I have also attempted to use the script method - ie. calling from the init.sqf;

    //--- ALiVE Unit/Group Blacklist
    spawn compile preprocessFile "scripts\staticData.sqf";

    Which then calls the following script, "staticData.sqf"

    //--- ALiVE Custom Blacklist
    //--- Source: http://alivemod.com/wiki/index.php/Custom_Blacklists
    
    waitUntil {!isnil "ALiVE_STATIC_DATA_LOADED"}:
      
    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = 
    [
    "CUP_O_TK_Soldier_AA",
    "CUP_O_TK_INS_Soldier_AA"
    ];
     
    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = 
    [
    "CUP_O_TK_Soldier_AA",
    "CUP_O_TK_INS_Soldier_AA"
    ];
    
    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = 
    [
    "CUP_O_TK_InfantrySectionAA",
    "CUP_O_TK_MILITIA_AATeam"
    ];

    Result:
    The number of AA spawned is greatly diminished - ie. ghosting about and teleporting from unit to unit does not show any AA units. However, as soon as a take off and fly about, Igla AA missiles start flying in.

    The only factions that are in the mission are the CUP Takistani Army and MIlitia units - neither of those factions use vehicles with AA missiles. AA guns like the Ural and Static ZSU-23 are fine, I'm just trying to remove guided AA missiles.

    Any thoughts? Anything I am obviously overlooking?

    Thanks in advance.

  8. That seems odd.. if you are teleporting around and not seeing AA guys I don't see how flying around would be any different...

    It's possible vehicle guys are spawning with Iglas... ie: if there is a motorized group it might contain AA guys... try limiting the spawns to infantry only and see if that gets rid of it

  9. It's possible vehicle guys are spawning with Iglas... ie: if there is a motorized group it might contain AA guys

    I thought of that as well ... plunked down all of the groups (motorized / mechanized) in the editor last night and had a look ... not one Igla in the mix.

    A thought I just had ... do I also need to specify what groups not to spawn in the CQB module? In my above example I only specify groups in the GROUPBLACKLIST.

    Is it possible that GROUPBLACKLIST only applies to military and military / civilian placement modules but not the CQB ones?

    Other thought ... I have two CBQ modules in my mission - one specifying civilian placements and the other specific to strategic locations. Is it possible that that is causing an issue?

    Sorry to throw all these questions at once, I've been trying to resolve this for more than a week now.

    Thanks.

  10. highhead

    3 May 2016 Administrator

    Can you please upload a mission somewhere with only ALiVE, CUP and CBA which demonstrates the issue (somewhat) and I will take a look at it!

    Thanks Comrade

  11. I will do that tonight and get back to you when that's done.

    Thanks again.

  12. A thought I just had ... do I also need to specify what groups not to spawn in the CQB module? In my above example I only specify groups in the GROUPBLACKLIST.

    If you are running CQB then yes

  13. If you are running CQB then yes

    Many thanks that was the fix ... I needed to add the two group names to the ALIVE_MIL_CQB_CUSTOM_UNITBLACK entry as well. Now there are no AA Missile units on the map - it makes flying much easier.

    Thanks so much for your help.

    My final code block that I put in the init field of the ALiVE Required module looks like this;

    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["CUP_O_TK_Soldier_AA","CUP_O_TK_INS_Soldier_AA","CUP_O_TK_InfantrySectionAA","CUP_O_TK_MILITIA_AATeam"]; 
    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["CUP_O_TK_Soldier_AA","CUP_O_TK_INS_Soldier_AA"]; 
    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = ["CUP_O_TK_InfantrySectionAA","CUP_O_TK_MILITIA_AATeam"];
  14. Thanks for sharing the solution :)

  15. Thanks added that snippet to the wiki - it's a fairly common question

    http://alivemod.com/wiki/index.php/Custom_Blacklists

  16. highhead

    4 May 2016 Administrator

    Thanks for catching that! I got the feeling it is actually something different, as CQB doesnt use cfgGroups, I need to take a look at that still!

  17. highhead

    4 May 2016 Administrator

    So I put those in required ALiVE module and I didnt get a single AA guy created (tested with blu vs. red).

    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = ["OIA_InfTeam_AA","OIA_MotInf_AA","OIA_MechInf_AA","OIA_TankPlatoon_AA","ORG_InfTeam_AA"];

    ALiVE_PLACEMENT_CUSTOM_VEHICLEBLACKLIST = ["I_Plane_Fighter_03_AA_F","B_APC_Tracked_01_AA_F","O_APC_Tracked_02_AA_F","AA_01_base_F","B_static_
    AA_F","O_static_AA_F","I_static_AA_F","B_AA_01_weapon_F","O_AA_01_weapon_F","I_AA_01_weapon_F"];

    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["B_soldier_AA_F","B_soldier_AAA_F","I_Soldier_AA_F","I_Soldier_AAA_F","O_Soldier_AA_F","O_Soldier_AAA_F","O_soldierU_AA_F","O_soldierU_AAA_F"];

    ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["B_soldier_AA_F","B_soldier_AAA_F","I_Soldier_AA_F","I_Soldier_AAA_F","O_Soldier_AA_F","O_Soldier_AAA_F","O_soldierU_AA_F","O_soldierU_AAA_F"];

    vanilla ofc.

  18. highhead

    4 May 2016 Administrator

    incl. CUP and Massi, was to lazy to clean it up by hand. could be tweaked.

    ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST = ["BUS_mas_med_InfTeam_AA_b_hd","BUS_mas_medinshd_InfTeam_AA_b","OIA_InfTeam_AA","OIA_MotInf_AA","OIA_MechInf_AA","OIA_TankPlatoon_AA","ORG_InfTeam_AA","CUP_O_RU_InfSection_AA","CUP_O_RU_InfSection_AA_EMR","CUP_O_RU_InfSection_AA_VDV","CUP_O_RU_InfSection_AA_VDV_EMR","CUP_O_ChDKZ_InfSection_AA","CUP_O_TK_InfantrySectionAA","CUP_O_TK_MILITIA_AATeam","CUP_O_SLA_InfantrySectionAA","OPF_mas_med_InfTeam_AA_o","OPF_mas_medins_InfTeam_AA_o","OPF_mas_ira_InfTeam_AA_o","OPF_mas_med_InfTeam_AA_o_hd","OPF_mas_medinshd_InfTeam_AA_o","OPF_mas_irahd_InfTeam_AA_o_hd","IND_mas_med_InfTeam_AA_i_hd","IND_mas_medinshd_InfTeam_AA_i"];

    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["I_Soldier_AA_F","I_Soldier_AAA_F","O_Soldier_AA_F","O_Soldier_AAA_F","O_soldierU_AA_F","O_soldierU_AAA_F","CUP_O_RU_Soldier_AA_EMR","CUP_O_RU_Soldier_AA_VDV","CUP_O_RU_Soldier_AA_VDV_EMR","O_mas_med_Army_AA_F","I_mas_med_Army_AA_F","B_mas_med_Army_AA_F","O_mas_ira_Army_AA_F","O_mas_med_Insu_AA_F","I_mas_med_Insu_AA_F","O_mas_med_Armyhd_AA_F","I_mas_med_Armyhd_AA_F","B_mas_med_Armyhd_AA_F","O_mas_irahd_Army_AA_F","O_mas_med_Insuhd_AA_F","I_mas_med_Insuhd_AA_F"];

    ALiVE_PLACEMENT_CUSTOM_VEHICLEBLACKLIST = ["O_static_AA_F","I_static_AA_F","O_AA_01_weapon_F","I_AA_01_weapon_F","CUP_KA50_AA_Base","CUP_O_Ka50_AA_SLA","CUP_O_Ka50_AA_RU","CUP_Igla_AA_pod_Base","CUP_I_Igla_AA_pod_AAF","CUP_I_RBS70_AA_pod_AAF","I_mas_Igla_AA_pod_Base","I_mas_Igla_AA_pod_AAF","O_mas_Igla_AA_pod_AAF","I_mas_Stinger_AA_pod_Base","I_mas_Stinger_AA_pod_AAF","B_mas_Stinger_AA_pod_AAF","I_mas_med_static_AA_F","O_mas_med_static_AA_F","O_mas_ira_static_AA_F","CUP_O_Igla_AA_pod_RU","CUP_O_Igla_AA_pod_TK"];

    ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["I_Soldier_AA_F","I_Soldier_AAA_F","O_Soldier_AA_F","O_Soldier_AAA_F","O_soldierU_AA_F","O_soldierU_AAA_F","CUP_O_RU_Soldier_AA_EMR","CUP_O_RU_Soldier_AA_VDV","CUP_O_RU_Soldier_AA_VDV_EMR","O_mas_med_Army_AA_F","I_mas_med_Army_AA_F","B_mas_med_Army_AA_F","O_mas_ira_Army_AA_F","O_mas_med_Insu_AA_F","I_mas_med_Insu_AA_F","O_mas_med_Armyhd_AA_F","I_mas_med_Armyhd_AA_F","B_mas_med_Armyhd_AA_F","O_mas_irahd_Army_AA_F","O_mas_med_Insuhd_AA_F","I_mas_med_Insuhd_AA_F"];

  19. highhead

    4 May 2016 Administrator

    Also I added 2 new functions to help you find units/vehicles/groups more easily.

    _groupTypes = ["AA_" (string to searchfor), INDEPENDENT (side or faction)] call ALiVE_fnc_groupFinder;
    _objectTypes = [configFile >> "cfgVehicles" (config path), "_AA" (string to searchfor)] call ALiVE_fnc_configFindEntries;

    those arrays can basically be easily read and copypasted to whatever blacklist you like.

  20. Thanks HH added that shit to wiki yo

    http://alivemod.com/wiki/index.php/Custom_Blacklists

  21. Ace thanks for doing the leg work @highhead

  22. Newer ›
 

or Sign Up to reply!