Jump to content

JasonTM

Member
  • Posts

    489
  • Joined

  • Last visited

  • Days Won

    42

Reputation Activity

  1. Like
    JasonTM got a reaction from Schalldampfer in [RELEASE] WAI 2.2.6   
    Update
    This mod has been made compatible with the community stringtable. The instructions have been updated.
    File remote_messages.sqf has been updated by @BigEgg to detect if _STR is in the mission announcement and localize the message.
    Step 6 in the mission instructions:
    This mod is dependent on the Epoch community stringtable. Download the stringtable here and place file stringTable.xml in the root of your mission folder. Repack your mission PBO. The mission announcements are translated into German and Russian based on the local settings of the client machine. If someone has the skill to add other languages, this is encouraged.
    Technically, the mod is not dependent on the stringtable, but all of the mission files are using the localization format for the mission announcements Example...
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/bandit/cannibal_cave.sqf#L69-L71
    The community stringtable is available here:
    https://github.com/oiad/communityLocalizations/
    The WickedAI entries start here:
    https://github.com/oiad/communityLocalizations/blob/master/stringTable.xml#L1219
     
    A slight update to custom_publish_vehicle has been made so that BIS_fnc_findSafePos  does not choose the default (center of the map) for the spawn location. These are the lines that have been changed:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L9
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L24-L25
     
    Credit to...
    @BigEgg for the localization solution in remote_messages.sqf
    @RedLink Russian translations
    @DAmNRelentless German translations and cleaning up the mission strings
    @Schalldampfer testing and detecting the mission vehicle spawning issue
    @Grahame Help with vehicle spawning problem
  2. Thanks
    JasonTM got a reaction from Tricks in [RELEASE] WAI 2.2.6   
    A server owner was having trouble with para dropped AI ending up in the water on his custom Skalisty Island mission, so I made the paradrops more configurable.
    Affected Files
    WAI\compile\heli_para.sqf
    WAI\static\default.sqf
    WAI\static\chernarus.sqf
    WAI\missions\bandit\hero_base.sqf
    WAI\missions\bandit\ikea_convoy.sqf
    WAI\missions\bandit\presidents_mansion.sqf
    WAI\missions\bandit\crop_raider.sqf
    WAI\missions\hero\bandit_base.sqf
    WAI\missions\hero\mayors_mansion.sqf
    WAI\missions\hero\ikea_convoy.sqf
    WAI\missions\hero\crop_raider.sqf
    I have already adjusted for the new formats in all of these files.
    Since the hero side did not have an "extreme" mission, I converted the Mayor's Mansion.
    For ease of update, just download the new files from github and swap the above files out.
    The new format for the paradrops in missions is like this:
    [position of mission, player check radius, heli classname, direction of approach, distance from mission for heli spawn, fly in height, time between each para drop, distance from mission to start drop,number of paratroopers, mission type, AI skill, weapon selection, number of magazines, skin type, AI gear, AI type, patrol or not, optional mission variable] spawn heli_para; //Example [[(_position select 0), (_position select 1), 0],200,"UH1H_DZ","North",[3000,4000],150,1.0,200,10,"Hard","Random",4,"Random","Bandit","Random","Bandit",true,_mission] spawn heli_para; This is the new format in default.sqf and chernarus.sqf
    /* Paradropped unit custom spawn Eg. [ [911.21545,4532.7612,2.6292224], // Position that units will be dropped by 400, // Radius from drop position a player has to be to spawn chopper "UH1H_DZ", // Classname of chopper (Make sure it has 2 gunner seats!) "North", // Direction of approach for the helicopter. Options: "North","South","East","West" [3000,4000], // Random distance from the mission the helicopter should start. [min distance, max distance]. 150, // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground 1.0, // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly. 200, // Distance from the mission the helicopter should start dropping paratroopers 5, // Number of units to be para dropped "Random", // Skill level of units (easy, medium, hard, extreme, Random) "Random", or ["Random","at"], // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher 4, // Number of magazines "Random", // Backpack classname, use "Random" or classname here "Bandit2_DZ", // Skin classname, use "Random" or classname here "Random", // Gearset number. "Random" for random gear set. "Bandit", // AI Type, "Hero" or "Bandit". true // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. ] spawn heli_para; Place your paradrop spawns under this line */  
  3. Thanks
    JasonTM got a reaction from Vladick in [RELEASE] WAI 2.2.6   
    Does your heli_para.sqf have this line?
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/heli_para.sqf
    It needs to be _this select 13
    Also, did you swap out the mission files I had listed above?
    They also need to use the new format.
  4. Like
    JasonTM got a reaction from Schalldampfer in [RELEASE] WAI 2.2.6   
    @SchalldampferI appreciate you reporting these issues. I added the solution for paratrooper groups to have rocket launchers and fixed weapons. The file heli_para.sqf should be replaced. There were several changes.
    This is the line I used to test the President's mission:
    [[(_position select 0),(_position select 1),0],400,"UH60M_EP1_DZE","East",[3000,4000],150,1.0,200,10,"Random",["AKS_GOLD","AT"],4,"Random","Hero","Random","Hero",false,_mission] spawn heli_para;  
    I also added a solution so you can have the objects at your road block mission deleted when the mission is cleared.
    In config.sqf add this line:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L95
    Any mission name can be added to this array to override the mission cleanup time.
    In missionwinorfail.sqf replace your line with this one:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L321
    Killzone Kid's in string function is used to check the mission names for a match to override the mission clean time.
    Add your objects array to the passed variable array like this one:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/hero/abandoned_trader.sqf#L67
    I also noticed there is a missing semicolon on this line, but it doesn't seem to affect anything. I'll change it later.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/spawn_group.sqf#L81
     
     
     
  5. Thanks
    JasonTM got a reaction from Vladick in [RELEASE] WAI 2.2.6   
    @SchalldampferI appreciate you reporting these issues. I added the solution for paratrooper groups to have rocket launchers and fixed weapons. The file heli_para.sqf should be replaced. There were several changes.
    This is the line I used to test the President's mission:
    [[(_position select 0),(_position select 1),0],400,"UH60M_EP1_DZE","East",[3000,4000],150,1.0,200,10,"Random",["AKS_GOLD","AT"],4,"Random","Hero","Random","Hero",false,_mission] spawn heli_para;  
    I also added a solution so you can have the objects at your road block mission deleted when the mission is cleared.
    In config.sqf add this line:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L95
    Any mission name can be added to this array to override the mission cleanup time.
    In missionwinorfail.sqf replace your line with this one:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L321
    Killzone Kid's in string function is used to check the mission names for a match to override the mission clean time.
    Add your objects array to the passed variable array like this one:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/hero/abandoned_trader.sqf#L67
    I also noticed there is a missing semicolon on this line, but it doesn't seem to affect anything. I'll change it later.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/spawn_group.sqf#L81
     
     
     
  6. Thanks
    JasonTM got a reaction from salival in [RELEASE] WAI 2.2.6   
    A server owner was having trouble with para dropped AI ending up in the water on his custom Skalisty Island mission, so I made the paradrops more configurable.
    Affected Files
    WAI\compile\heli_para.sqf
    WAI\static\default.sqf
    WAI\static\chernarus.sqf
    WAI\missions\bandit\hero_base.sqf
    WAI\missions\bandit\ikea_convoy.sqf
    WAI\missions\bandit\presidents_mansion.sqf
    WAI\missions\bandit\crop_raider.sqf
    WAI\missions\hero\bandit_base.sqf
    WAI\missions\hero\mayors_mansion.sqf
    WAI\missions\hero\ikea_convoy.sqf
    WAI\missions\hero\crop_raider.sqf
    I have already adjusted for the new formats in all of these files.
    Since the hero side did not have an "extreme" mission, I converted the Mayor's Mansion.
    For ease of update, just download the new files from github and swap the above files out.
    The new format for the paradrops in missions is like this:
    [position of mission, player check radius, heli classname, direction of approach, distance from mission for heli spawn, fly in height, time between each para drop, distance from mission to start drop,number of paratroopers, mission type, AI skill, weapon selection, number of magazines, skin type, AI gear, AI type, patrol or not, optional mission variable] spawn heli_para; //Example [[(_position select 0), (_position select 1), 0],200,"UH1H_DZ","North",[3000,4000],150,1.0,200,10,"Hard","Random",4,"Random","Bandit","Random","Bandit",true,_mission] spawn heli_para; This is the new format in default.sqf and chernarus.sqf
    /* Paradropped unit custom spawn Eg. [ [911.21545,4532.7612,2.6292224], // Position that units will be dropped by 400, // Radius from drop position a player has to be to spawn chopper "UH1H_DZ", // Classname of chopper (Make sure it has 2 gunner seats!) "North", // Direction of approach for the helicopter. Options: "North","South","East","West" [3000,4000], // Random distance from the mission the helicopter should start. [min distance, max distance]. 150, // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground 1.0, // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly. 200, // Distance from the mission the helicopter should start dropping paratroopers 5, // Number of units to be para dropped "Random", // Skill level of units (easy, medium, hard, extreme, Random) "Random", or ["Random","at"], // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher 4, // Number of magazines "Random", // Backpack classname, use "Random" or classname here "Bandit2_DZ", // Skin classname, use "Random" or classname here "Random", // Gearset number. "Random" for random gear set. "Bandit", // AI Type, "Hero" or "Bandit". true // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. ] spawn heli_para; Place your paradrop spawns under this line */  
  7. Thanks
    JasonTM got a reaction from Voltan in [RELEASE] WAI 2.2.6   
    A server owner was having trouble with para dropped AI ending up in the water on his custom Skalisty Island mission, so I made the paradrops more configurable.
    Affected Files
    WAI\compile\heli_para.sqf
    WAI\static\default.sqf
    WAI\static\chernarus.sqf
    WAI\missions\bandit\hero_base.sqf
    WAI\missions\bandit\ikea_convoy.sqf
    WAI\missions\bandit\presidents_mansion.sqf
    WAI\missions\bandit\crop_raider.sqf
    WAI\missions\hero\bandit_base.sqf
    WAI\missions\hero\mayors_mansion.sqf
    WAI\missions\hero\ikea_convoy.sqf
    WAI\missions\hero\crop_raider.sqf
    I have already adjusted for the new formats in all of these files.
    Since the hero side did not have an "extreme" mission, I converted the Mayor's Mansion.
    For ease of update, just download the new files from github and swap the above files out.
    The new format for the paradrops in missions is like this:
    [position of mission, player check radius, heli classname, direction of approach, distance from mission for heli spawn, fly in height, time between each para drop, distance from mission to start drop,number of paratroopers, mission type, AI skill, weapon selection, number of magazines, skin type, AI gear, AI type, patrol or not, optional mission variable] spawn heli_para; //Example [[(_position select 0), (_position select 1), 0],200,"UH1H_DZ","North",[3000,4000],150,1.0,200,10,"Hard","Random",4,"Random","Bandit","Random","Bandit",true,_mission] spawn heli_para; This is the new format in default.sqf and chernarus.sqf
    /* Paradropped unit custom spawn Eg. [ [911.21545,4532.7612,2.6292224], // Position that units will be dropped by 400, // Radius from drop position a player has to be to spawn chopper "UH1H_DZ", // Classname of chopper (Make sure it has 2 gunner seats!) "North", // Direction of approach for the helicopter. Options: "North","South","East","West" [3000,4000], // Random distance from the mission the helicopter should start. [min distance, max distance]. 150, // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground 1.0, // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly. 200, // Distance from the mission the helicopter should start dropping paratroopers 5, // Number of units to be para dropped "Random", // Skill level of units (easy, medium, hard, extreme, Random) "Random", or ["Random","at"], // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher 4, // Number of magazines "Random", // Backpack classname, use "Random" or classname here "Bandit2_DZ", // Skin classname, use "Random" or classname here "Random", // Gearset number. "Random" for random gear set. "Bandit", // AI Type, "Hero" or "Bandit". true // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. ] spawn heli_para; Place your paradrop spawns under this line */  
  8. Confused
    JasonTM got a reaction from Schalldampfer in [RELEASE] WAI 2.2.6   
    A server owner was having trouble with para dropped AI ending up in the water on his custom Skalisty Island mission, so I made the paradrops more configurable.
    Affected Files
    WAI\compile\heli_para.sqf
    WAI\static\default.sqf
    WAI\static\chernarus.sqf
    WAI\missions\bandit\hero_base.sqf
    WAI\missions\bandit\ikea_convoy.sqf
    WAI\missions\bandit\presidents_mansion.sqf
    WAI\missions\bandit\crop_raider.sqf
    WAI\missions\hero\bandit_base.sqf
    WAI\missions\hero\mayors_mansion.sqf
    WAI\missions\hero\ikea_convoy.sqf
    WAI\missions\hero\crop_raider.sqf
    I have already adjusted for the new formats in all of these files.
    Since the hero side did not have an "extreme" mission, I converted the Mayor's Mansion.
    For ease of update, just download the new files from github and swap the above files out.
    The new format for the paradrops in missions is like this:
    [position of mission, player check radius, heli classname, direction of approach, distance from mission for heli spawn, fly in height, time between each para drop, distance from mission to start drop,number of paratroopers, mission type, AI skill, weapon selection, number of magazines, skin type, AI gear, AI type, patrol or not, optional mission variable] spawn heli_para; //Example [[(_position select 0), (_position select 1), 0],200,"UH1H_DZ","North",[3000,4000],150,1.0,200,10,"Hard","Random",4,"Random","Bandit","Random","Bandit",true,_mission] spawn heli_para; This is the new format in default.sqf and chernarus.sqf
    /* Paradropped unit custom spawn Eg. [ [911.21545,4532.7612,2.6292224], // Position that units will be dropped by 400, // Radius from drop position a player has to be to spawn chopper "UH1H_DZ", // Classname of chopper (Make sure it has 2 gunner seats!) "North", // Direction of approach for the helicopter. Options: "North","South","East","West" [3000,4000], // Random distance from the mission the helicopter should start. [min distance, max distance]. 150, // Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground 1.0, // Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly. 200, // Distance from the mission the helicopter should start dropping paratroopers 5, // Number of units to be para dropped "Random", // Skill level of units (easy, medium, hard, extreme, Random) "Random", or ["Random","at"], // Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher 4, // Number of magazines "Random", // Backpack classname, use "Random" or classname here "Bandit2_DZ", // Skin classname, use "Random" or classname here "Random", // Gearset number. "Random" for random gear set. "Bandit", // AI Type, "Hero" or "Bandit". true // true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. ] spawn heli_para; Place your paradrop spawns under this line */  
  9. Like
    JasonTM reacted to Schalldampfer in SQF Maze Generator   
    the second sqf (mission) updated for new WAI:
     
     
  10. Thanks
    JasonTM reacted to JakeQue in [RELEASE] WAI 2.2.6   
    Hi mate, one more error we have noticed, I have turned off autoclaim but when you get into a mission vehicle, It's alerting all players that the player has claimed that vehicle? 
  11. Thanks
    JasonTM reacted to Schalldampfer in [RELEASE] WAI 2.2.6   
    heli_patrol forgot [7] argument
    (please left _mission argument, I use it in mission)tiny issue : mission_winorfail forgot declaration of private variable
  12. Thanks
    JasonTM got a reaction from Gromillla in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  13. Like
    JasonTM got a reaction from Schalldampfer in [RELEASE] WAI 2.2.6   
    @Vladickand anyone else using autoclaim. I forgot a player distance check on line 175 in file missionwinorfail.sqf. I have corrected this in github. Line 175 should look like this:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L175
  14. Like
    JasonTM got a reaction from DIO in DayZ Mission System (DZMS) for Overpoch 1.0.6.2   
    @VoltanI posted the new update to my github. I ended up adding a couple of new options: mission vehicle keys and remove damage handlers on mission vehicles until the mission is complete and players enter them.
    https://github.com/worldwidesorrow/DZMS-DayZMissionSystem-Overpoch/blob/master/DZMS/DZMSConfig.sqf#L69-L73
    This update works on both Overpoch and Epoch without doing anything. The mods are detected and DZMS adjusts itself.
     
    I will probably work on this some more later and get with Vampire about pushing some updates to his repo if he wants them.
  15. Thanks
    JasonTM got a reaction from Voltan in DayZ Mission System (DZMS) for Overpoch 1.0.6.2   
    I haven't taken the time to update this in a long time. The only thing that really needs adjusting is the weapon selection. I'll be back later today with an update.
  16. Like
    JasonTM got a reaction from Ghostrider-GRG in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  17. Thanks
    JasonTM got a reaction from JakeQue in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  18. Thanks
    JasonTM got a reaction from Voltan in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  19. Like
    JasonTM got a reaction from Oryahn in infiSTAR building controls   
    The loadouts only affect new characters (new players, respawns from death).
    If you want to give a single player a custom loadout then use: if (getPlayerUID player == "12345678901234567890") then { rest of code };
  20. Like
    JasonTM got a reaction from Vladick in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  21. Like
    JasonTM got a reaction from WLF in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  22. Like
    JasonTM got a reaction from Helion4 in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  23. Like
    JasonTM got a reaction from SmokeyBR in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  24. Like
    JasonTM got a reaction from totis in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
  25. Thanks
    JasonTM got a reaction from Airwaves Man in [RELEASE] WAI 2.2.6   
    Wicked AI 2.2.6
    This release is for DayZ Epoch/Overpoch 1.0.6.2.
    <<<Download Here>>>
    Due to reports of poor performance on high population servers. I have rewritten this mod so it runs more efficiently.
    Most of the work is code optimization and bug fixes, but I did add some new features.
    Review of changes
    Each mission only spawns one thread with one loop unless it has a para-drop, then it spawns two. The patrol missions also spawn two threads for now. The mission files no longer suspend, waiting for the mission to complete to spawn the crate loot and remove the mission data. The minefield feature no longer spawns an individual thread for each mine. It uses a player check radius. Players in vehicles receive a bold red warning when they are 200 meters from the edge of a mine field. Optional mission vehicle entry messages. Improved mission clean up. All mission objects and data are deleted including unclaimed vehicles and AI unit groups. The AI monitor loop has been replaced by a modified version of the server scheduled function sched_corpses. AI vehicles no longer spawn their own vehicle monitoring threads. It is all handled in the mission thread in a queue. The invisible static gun glitch has been fixed. The static spawns have a dedicated monitoring loop much like the mission system. One loop manages all vehicles and deletes AI unit groups. Where possible, I moved commonly used code blocks to compiled functions. I made a few new missions - hero outpost, bandit outpost, and farmer. Captured MV-22, medical camp, and weapon cache missions have been reworked for improved aesthetics and/or functionality. Rewritten auto claim feature that is fully integrated. Boat patrols - examples in the static mission files. Redundant and\or unnecessary code has been removed from some of the files. I cleaned up and standardized the formatting in the mission files and elsewhere. Helicopters for AI drops and patrols start at a random distance of 3k to 4k away from the mission instead of way down by debug island. Added a new check for mission locations. As they are used, positions get added to an array and checked in find_position.sqf, so missions will not spawn in the same spot twice. Optional indestructible mission vehicles. The AI and mission clean up times and spawn schedule in config.sqf have been converted to minutes for easier reading. Fixed an issue with the spawn time delays in the mission init file. Adjusted the distance the vehicles spawn from the crate so there is no trouble with accessing gear when near a locked vehicle. You can disable static gun placements, vehicle patrols, and paratrooper drops on missions with variables in config.sqf AI numbers have been standardized on all missions. You can adjust the numbers. Easy = 5-10, Medium = 10-15, Hard = 15-20, Extreme = 20-25. I removed the cache units feature because it spawns a thread with a monitoring loop for each unit group and it only works on ground troops. I moved the Dynamic Text mission announcements up the screen and made the text a little smaller so it is not so overwhelming. Added a second dynamic text option for the minefield warnings. Fixed the "auto-repair" glitch on mission vehicles. This also fixes the inability to repair mission vehicles due to the hitpoint variables not being set. Notes
    The AK_74 and RPK_74 variants have been disabled in config.sqf until the 1.0.6.3 patch because the 45rnd 5.45mm magazine was removed in the A2 OA 1.64 corepatch and they post errors to the logs. The format of the missions has changed, so if you have your own custom missions they will have to be adjusted. I have updated the mission example file and created a new mission example file for a single spawn point mission. They are heavy on comments to help server owners create their own missions. I have left extensive comments throughout the updated files if you want to understand more about how the updated code and functions work. Since this is a major coding overhaul, this release will not be merged into the main github repository until all potential bugs, errors, and incompatibilities have been corrected. Please report errors, discrepancies, and general weirdness in this topic.
    Also, most of the files have been altered, so please use this version as a base and merge your custom files into it, paying attention to the changes.
     
     
    Optional Mission Vehicle Entry Messages
    If you turn this option on players will get a message that says either "You have claimed this vehicle! It is now saved to the database." or "WARNING: This vehicle will be deleted at restart!" depending on if you have vehicle hive saving turned on or not. This feature can be toggled with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L101
    Indestructible Mission Vehicles
    This option will disable the damage handlers on mission vehicles until a player enters them. It can be toggled on and off with this variable:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L99
    Avoid Same Spot
    This option will prevent a mission spawning in the same spot twice by adding the position to an array. The find position function will check that a new position will not be selected that is within 200 meters of one that was previously used.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L80
    Enable/Disable Static Gun Placements, Vehicle Patrols, and Paradrops
    I added this feature for scalability and because someone asked for it. These are the variables to set true or false.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L115-L117
    Auto-Claim
    The original author of the auto-claim feature is no longer a part of this community. I wrote my own version of it which is fully integrated. I never really used this mod myself in the past, so please let me know if I need to add features that were there previously.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L222-L229
    Boat Patrols
    There is really no difference between a boat patrol and a land vehicle patrol other than the classname of the vehicle the fact that they spawn offshore. I have placed examples in the static mission files and I left my Skalisty Island test boat patrols commented in the chernarus.sqf file. To activate them, enable the static_per_world feature in config.sqf and remove the comments from this section:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L114-L147
    When creating boat patrols you should make sure that the distance you place them offshore is at least the distance of the radius used for waypoints, otherwise the waypoints will be on land and the AI might not handle the boat correctly.
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/static/Chernarus.sqf#L140
    Mission Cleanup
    All mission data and mission objects will be removed from the map after mission completion or mission timeout, including the ai unit groups and unclaimed mission vehicles. You can remove the crates from cleanup if  you want them to remain on the map for looting by toggling this variable to false:
    https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L94
    If a player is within 75 meters of the crate, it will not be deleted as it is assumed that it is still being looted.
    To "claim" a mission vehicle, a player simply has to get into it and it will not be deleted.
    Invisible Static Gun Glitch
    Credit to salival for discovering that this was a JIP issue and the fix is to have the AI get out and back into the static gun at regular intervals. During testing, I could not even see this happening unless I added a sleep, so players shouldn't notice.
    Static Spawn Manager
    Instead of having each static spawned group and vehicle spawn its own monitoring thread, the data is added to a multi-dimensional array and monitored in one loop. The monitor is spawned from the static init.sqf file and will shut down when all null AI groups have been removed from the array.
     
    The Overwatch configs have been moved to its own file in the configs folder. The file is not loaded unless the Overwatch mod is detected.
    According to KillZone Kid and other Arma super nerds, when selecting random things from arrays, it is faster to use a statement like this: selection = array select (floor (random (count array))); instead of calling BIS_fnc_selectRandom. I replaced several instances in files where it is called repeatedly like dynamic crate and group spawning. This might save a millisecond or two :).
    That is all of the updates I can think of right now. If I can remember more, I will add them.
     
     
    Thanks to @MerlijnD and @LadyVal for testing my initial files.
    Credit to @salivalfor the invisible static gun glitch fix.
    Credit to @ibenfor the original IWAC.
    Credit to @BigEgg for the localization solution
    Credit to @Schalldampfer for testing and finding bugs
    Credit to @Grahame for assistance in discord with mission vehicle spawning issue
     
     
×
×
  • Create New...