AA Unit Blacklist

  1. 9 years ago
    Edited 9 years ago by BigBird

    I'm having trouble getting rid of all of the units with AA launchers in my mission. I'm using the example in the wiki from the AS Alamo mission. I also wanted to remove APCs and Tanks and I seem to have been successful in that, so I don't know what I'm missing for these AA infantry.

    Here is my blacklist code. Is there anything obvious that I'm missing? I tried to bold the relevant ones, but that didn't work - so they have a [b] around them.

    /*
     * CQB unit blacklist
     */
     
    ALiVE_MIL_CQB_UNITBLACKLIST = 
    [
    	//A3
    	"B_Helipilot_F",
    	"B_diver_F",
    	"B_diver_TL_F",
    	"B_diver_exp_F",
    	"B_RangeMaster_F",
    	"B_crew_F",
    	"B_Pilot_F",
    	"B_helicrew_F",
     
    	"O_helipilot_F",
    	"O_diver_F",
    	"O_diver_TL_F",
    	"O_diver_exp_F",
    	"O_crew_F",
    	"O_Pilot_F",
    	"O_helicrew_F",
    	"O_UAV_AI",
    [b]	"O_static_AA_F",
    	"O_Soldier_AA_F",
    	"O_soldierU_AA_F",[/b]
    	
    	"I_crew_F",
    	"I_helipilot_F",
    	"I_helicrew_F",
    	"I_diver_F",
    	"I_diver_exp_F",
    	"I_diver_TL_F",
    	"I_pilot_F",
    	"I_Story_Colonel_F",
     
    	"B_Soldier_VR_F",
        "O_Soldier_VR_F",
        "I_Soldier_VR_F",
        "C_Soldier_VR_F",
        "B_Protagonist_VR_F",
        "O_Protagonist_VR_F",
        "I_Protagonist_VR_F",
     
        "C_Driver_1_black_F",
    	"C_Driver_1_blue_F",
    	"C_Driver_1_F",
    	"C_Driver_1_green_F",
    	"C_Driver_1_orange_F",
    	"C_Driver_1_random_base_F",
    	"C_Driver_1_red_F",
    	"C_Driver_1_white_F",
    	"C_Driver_1_yellow_F",
    	"C_Driver_2_F",
    	"C_Driver_3_F",
    	"C_Driver_4_F"
    ];
     
     
    /*
     * Mil placement / Ambient civilians / Mil logistics vehicle blacklist
     */
     
    ALiVE_PLACEMENT_UNITBLACKLIST = 
    [
    	"O_UAV_AI",
    	"B_UAV_AI",
    	"C_Driver_1_black_F",
    	"C_Driver_1_blue_F",
    	"C_Driver_1_F",
    	"C_Driver_1_green_F",
    	"C_Driver_1_orange_F",
    	"C_Driver_1_random_base_F",
    	"C_Driver_1_red_F",
    	"C_Driver_1_white_F",
    	"C_Driver_1_yellow_F",
    	"C_Driver_2_F",
    	"C_Driver_3_F",
    	"C_Driver_4_F",
    	"B_Soldier_VR_F",
        "O_Soldier_VR_F",
        "I_Soldier_VR_F",
        "C_Soldier_VR_F",
        "B_Protagonist_VR_F",
        "O_Protagonist_VR_F",
        "I_Protagonist_VR_F",
        "C_Marshal_F",
        "C_man_pilot_F",
    	[b]"O_Soldier_AA_F",
    	"O_soldierU_AA_F",
        "O_static_AA_F",[/b]
    	"B_soldier_AA_F",
    	"B_static_AA_F", 	
    	"O_soldier_UAV_F"
    	
    ];
     
    /*
     * Mil placement / Ambient civilians / Mil logistics vehicle blacklist
     */
     
    ALiVE_PLACEMENT_VEHICLEBLACKLIST = 
    [
    	"O_UAV_02_F",
    	"O_UAV_02_CAS_F",
    	"O_UAV_01_F",
    	"O_UGV_01_F",
    	"O_UGV_01_rcws_F",
    	"B_UAV_01_F",
    	"B_UAV_02_F",
    	"B_UAV_02_CAS_F",
    	"B_UGV_01_F",
    	"B_UGV_01_rcws_F",
    	"B_Parachute_02_F",
    	"I_Parachute_02_F",
    	"O_Parachute_02_F",
    	"Parachute",
    	"Parachute_02_base_F",
    	"ParachuteBase",
    	"ParachuteEast",
    	"ParachuteG",
    	"ParachuteWest",
    	"C_Kart_01_Blu_F",
    	"C_Kart_01_F",
    	"C_Kart_01_F_Base",
    	"C_Kart_01_Fuel_F",
    	"C_Kart_01_Red_F",
    	"C_Kart_01_Vrana_F",
    	"O_APC_Tracked_02_AA_F",
    	"O_MBT_02_cannon_F",
    	"O_MBT_02_arty_F",
    	"O_APC_Tracked_02_cannon_F",
    	"O_Heli_Attack_02_black_F",
    	"O_Heli_Attack_02_F",
    	"O_Plane_CAS_02_F",
    	"O_static_AA_F",
    	"O_APC_Wheeled_02_rcws_F",
    	"B_Heli_Attack_01_F",
    	"B_Plane_CAS_01_F",
    	"B_APC_Tracked_01_rcws_F",
    	"B_APC_Tracked_01_CRV_F",
    	"B_APC_Tracked_01_AA_F",
    	"B_MBT_01_cannon_F",
    	"B_MBT_01_arty_F",
    	"B_MBT_01_mlrs_F",
    	"B_static_AA_F",
    	"B_MBT_01_arty_base_F",
    	"B_MBT_01_base_F",
    	"B_MBT_01_mlrs_base_F",
    	"B_MBT_01_TUSK_F",
    	"O_AA_01_Weapon_F",
    	"O_APC_Tracked_02_base_F",
    	"O_APC_Wheeled_02_base_F",
    	"O_MBT_02_base_F",
    	"O_MBT_02_cannon_F",
    	"O_MBT_02_arty_base_F",
    	"B_APC_Tracked_01_base_F",
    	"B_APC_Wheeled_01_base_F",
    	"B_APC_Wheeled_01_cannon_F",
    	"B_AA_01_weapon_F",
    	"O_static_AA_F"
    	
    ];
     
    /*
     * Mil placement group blacklist
     */
     
    ALiVE_PLACEMENT_GROUPBLACKLIST = 
    [
    	"HAF_AttackTeam_UAV",
    	"HAF_ReconTeam_UAV",
    	"HAF_AttackTeam_UGV",
    	"HAF_ReconTeam_UGV",
    	"HAF_SmallTeam_UAV",
    	"HAF_DiverTeam",
    	"HAF_DiverTeam_Boat",
    	"HAF_DiverTeam_SDV",
    	"BUS_AttackTeam_UAV",
    	"BUS_ReconTeam_UAV",
    	"BUS_AttackTeam_UGV",
    	"BUS_ReconTeam_UGV",
    	"BUS_SmallTeam_UAV",
    	"BUS_DiverTeam",
    	"BUS_DiverTeam_Boat",
    	"BUS_DiverTeam_SDV",
    	"OI_AttackTeam_UAV",
    	"OI_ReconTeam_UAV",
    	"OI_AttackTeam_UGV",
    	"OI_ReconTeam_UGV",
    	"OI_SmallTeam_UAV",
    	"OI_diverTeam",
    	"OI_diverTeam_Boat",
    	"OI_diverTeam_SDV",
    	"BUS_TankPlatoon_AA",
    	"BUS_MechInf_AA",
    	"BUS_SPGPlatoon_Scorcher",
    	"BUS_SPGSection_MLRS",
    	"BUS_SPGSection_Scorcher",
    	"BUS_TankPlatoon",
    	"BUS_TankSection",
    	"OIA_SPGPlatoon_Scorcher",
    	"OIA_SPGSection_Scorcher",
    	"OIA_TankPlatoon",
    	"OIA_TankPlatoon_AA",
    	"OIA_TankSection",
    	"OIA_MechInf_AA",
    	[b]"OIA_InfTeam_AA",
    	"OIA_MotInf_AA",
    	"BUS_MechInf_AA",
    	"ORG_InfTeam_AA"[/b]
    	
    ];
    
  2. I can't see anything obvious in your lists... any chance you can post your server RPT to pastebin and link back here?

  3. Thank you for taking the time to look, I really appreciate it. My whole rpt was too long so I just did the alive part. If you need the first part I can do another pastebin.

    http://pastebin.com/GgbmYvWT

  4. Hmmm... nothing obvious in the RPT either. You mentioned removing APCs and tanks with success... is the OPFOR AA unit the only one that seems to still spawn? ie: you don't see kart drivers or heli pilots?

  5. Edited 9 years ago by BigBird

    Not that I have seen but I don't have a ton of time spent on the map and each time it was from the air in a helicopter, so kind of tough to see the exact unit type. Basically each time I got shot down by an AA I'd log off, scour the config viewer/a3 asset listing on the wiki. I did think about blacklisting everything except one unit type to see if I could be successful in that, but that's a bit more of an undertaking. I also didn't see what type of AA unit killed me each time that I was shot down, but I for sure saw it coming from infantry at least once - even after adding it to the blacklist.

    I also noticed some messages relating to O_Soldier_AA_F in the .RPT.

    : 19:49:24 soldier[O_Soldier_AA_F]:Some of magazines weren't stored in soldier Vest or Uniform?

    Would that be expected even for a blacklisted unit?

    Also, does blacklisting a unit also remove it from a group? I thought that I had APCs blacklisted because normally when I'd start the game there would be lots of tanks and APCs leaving from my base. After blacklisting I was only seeing infantry running out from my base. Just now I saw an AMV-7 Marshall on my side which I have blacklisted (B_APC_Wheeled_cannon_F) as a vehicle. Is it because I missed a group that spawns an AMV-7?

  6. Good question actually.. I'll see if I can point a dev to this thread for an answer.

  7. 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.

  8. 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"];

  9. 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.

  10. Great thanks for reporting back

  11. Friznit

    16 Apr 2015 Administrator

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

  12. 8 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.

  13. 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

  14. 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.

  15. 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

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

    Thanks again.

  17. 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

  18. 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"];
  19. Thanks for sharing the solution :)

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

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

  21. Newer ›
 

or Sign Up to reply!