Jump to content

[CONTINUED] blckeagls' AI Mission Version 7.06 Build 239


Ghostrider-GRG

Recommended Posts

On 3/10/2018 at 5:19 PM, natoed said:

custom_server\Configs\blck_configs_epoch.sqf

line 52


blck_AIPatrolVehicles = ["I_G_Offroad_01_armed_F","I_mas_cars_UAZ_M2","I_mas_cars_LR_soft_M2","B_LSV_01_armed_F"]; // Type of vehicle spawned to defend AI bases

heli

custom_server\Configs\blck_configs.sqf

from line 136


	///////////////////////////////
	//  Heli Patrol Heli Types	
	// Armed Helis
	//////////////////////////////
	_blck_littleBirds = ["B_Heli_Light_01_armed_F"];  //  AH-9 Pawnee  (WEST)
	_blck_armed_hellcats = ["I_Heli_light_03_F"];
	_blck_armed_orcas = ["O_Heli_Light_02_F","O_Heli_Light_02_v2_F"];
	_blck_armed_ghosthawks = ["B_mas_UH60M","B_mas_CH_47F","I_mas_MI8","B_mas_UH1Y_UNA_F"];
	//_blck_armed_ghosthawks = ["B_Heli_Transport_01_F","B_Heli_Transport_01_camo_F"];
	_blck_armed_hurons = ["B_Heli_Transport_03_F","B_Heli_Transport_03_black_F"];
	_blck_armed_attackHelis = ["B_Heli_Attack_01_F"];
	_blck_armed_heavyAttackHelis = ["O_Heli_Attack_02_F","O_Heli_Attack_02_black_F"];
		_blck_fighters = [
		"O_Plane_CAS_02_F",  // /ti-199 Neophron (CAS)
		"I_Plane_Fighter_03_AA_F",  //  A-143 Buzzard (AA)
		"I_Plane_Fighter_04_F",  //   	A-149 Gryphon
		"B_Plane_CAS_01_F",  // 	A-164 Wipeout (CAS)
		"B_Plane_Fighter_01_F"  //	F/A-181 Black Wasp II
		];
	blck_blacklisted_heli_ammo = ["24Rnd_missiles","24Rnd_PG_missiles","12Rnd_PG_missiles","2Rnd_LG_scalpel","6Rnd_LG_scalpel","8Rnd_LG_scalpel","M_Scalpel_AT ","14Rnd_80mm_rockets","38Rnd_80mm_rockets"];
	blck_blacklisted_heli_weapons = ["missiles_SCALPEL","missiles_titan","rockets_Skyfire","missiles_DAGR","missiles_DAR"];

and

from line 159


	///////////////////////////////
	//  Heli Patrol Settings
	///////////////////////////////

	blck_chanceHeliPatrolBlue = 0;  //[0 - 1]  Set to 0 to deactivate and 1 to always have a heli spawn over the mission center and patrol the mission area. 
									//  The chance of paratroops dropping from the heli is defined by blck_chancePara(Blue|Red|Green|Orange) above.
									// Recommend setting the change = 1 if you wish to spawn multiple helis at a mission.
	blck_patrolHelisBlue = _blck_armed_ghosthawks;
	blck_noPatrolHelisBlue = 0;
	
	blck_chanceHeliPatrolRed = 0.1; // 0.4;
	blck_patrolHelisRed = _blck_armed_ghosthawks;
	blck_noPatrolHelisRed = 1;
	
	blck_chanceHeliPatrolGreen = 0.2;
	blck_patrolHelisGreen = _blck_armed_ghosthawks;
	blck_noPatrolHelisGreen = 1;
	
	blck_chanceHeliPatrolOrange = 0.3;
	blck_patrolHelisOrange = _blck_armed_ghosthawks;
	blck_noPatrolHelisOrange = 1;

static Weapons

custom_server\Configs\blck_configs.sqf

from line 228


	blck_useStatic = true;  // When true, AI will man static weapons spawned 20-30 meters from the mission center. These are very effective against most vehicles
	blck_killEmptyStaticWeapons = true;  // When true, static weapons will have damage set to 1 when the AI manning them is killed.
	blck_staticWeapons = ["B_HMG_01_high_F","I_mas_DSHKM_AAF","I_mas_KORD_high_AAF","I_mas_M2StaticMG_AAF","I_static_AT_F"/*,"O_static_AT_F"*/];  // [0.50 cal, grenade launcher, AT Launcher]

	////////////////////
	// Mission Static Weapon Settings
	////////////////////
	
	// Defines how many static weapons to spawn. Set this to -1 to disable spawning 
	blck_SpawnEmplaced_Orange = [2,4]; // Number of static weapons at Orange Missions
	blck_SpawnEmplaced_Green = [1,3]; // Number of static weapons at Green Missions
	blck_SpawnEmplaced_Blue = 0;  // Number of static weapons at Blue Missions
	blck_SpawnEmplaced_Red = [1,2];;  // Number of static weapons at Red Missions

hope it helps

natoed

 

 

i lose my way around in the custom_server.pbo from time to time lol

from build 118 on check in the mod-specific config for the definition for vehicles for each level of mission. These are listed right at the top of that config file.

Link to comment
Share on other sites

  • 3 weeks later...

Apologies if this has already been asked but i'm just trying to find where it chooses the config to call from for sls. Ive configured the loot but it fills the crate with a crazy amount of stuff. Im guessing theirs a line somewhere that designates this. Again apologies is this has already been answered or is in an obvious spot, sometimes a cant see for looking, Thanks in Advance.

Link to comment
Share on other sites

32 minutes ago, webbie said:

Apologies if this has already been asked but i'm just trying to find where it chooses the config to call from for sls. Ive configured the loot but it fills the crate with a crazy amount of stuff. Im guessing theirs a line somewhere that designates this. Again apologies is this has already been answered or is in an obvious spot, sometimes a cant see for looking, Thanks in Advance.

Nevermind Ive found what Im looking for it was calling the right file but I was editing sls not the actual loot amount in crates.

Link to comment
Share on other sites

Hi all.  I have been using this on epoch and its been fine, so I thought I would try it on exile, all seems ok but the AI are losing their uniforms and weapons on death, even if they are not killed by a vehicle.  Is anybody else using this on exile?

 

thanks

Link to comment
Share on other sites

3 hours ago, Razor1977 said:

Hi all.  I have been using this on epoch and its been fine, so I thought I would try it on exile, all seems ok but the AI are losing their uniforms and weapons on death, even if they are not killed by a vehicle.  Is anybody else using this on exile?

 

thanks

It works fine on exile servers for me - did you add uniforms from a mod?

Link to comment
Share on other sites

First off, Fantastic Mod! Adds so much to the game and makes just leaving the house a bit frightening, lol.

Couple of easy ones.

1. How do I know what version I am running?

2. Am I able to change the marker size via GMS_fnc_spawnMarker.sqf

???
 

Spoiler

////////////////////////////////////////////
// Create Mission Markers 
// by Ghostrider-GRG-
//////////////////////////////////////////
// spawn a round marker of a size and color specified in passed parameters

private["_blck_fn_configureRoundMarker"];

private["_blck_fn_configureRoundMarker"];
_blck_fn_configureRoundMarker = {
    private["_name","_pos","_color","_size","_MainMarker","_arrowMarker","_labelMarker","_labelType"];
    //diag_log format["_blck_fn_configureRoundMarker: -: _this = %1", _this];
    params["_name","_pos","_color","_text","_size","_labelType"];

    //diag_log format["_blck_fn_configureRoundMarker: _pos = %1, _color = %2, _size = %3, _name = %4, label %5",_pos, _color, _size, _name, _text];
    // Do not show the marker if it is in the left upper corner
    if ((_pos distance [0,0,0]) < 10) exitWith {};
    
    _MainMarker = createMarker [_name, _pos];
    _MainMarker setMarkerColor _color;
    _MainMarker setMarkerShape "ELLIPSE";
    _MainMarker setMarkerBrush "Grid";
    _MainMarker setMarkerSize _size; //
    //diag_log format["_blck_fn_configureRoundMarker: -: _labelType = %1", _labelType];
    if (count toArray(_text) > 0) then
    {
        switch (_labelType) do {
            case "arrow":
            {
                //diag_log "++++++++++++++--- marker label arrow detected";
                _name = "label" + _name;
                _textPos = [(_pos select 0) + (count toArray (_text) * 12), (_pos select 1) - (_size select 0), 0];
                _arrowMarker = createMarker [_name, _textPos];
                _arrowMarker setMarkerShape "Icon";
                _arrowMarker setMarkerType "HD_Arrow";
                _arrowMarker setMarkerColor "ColorBlack";
                _arrowMarker setMarkerText _text;
                //_MainMarker setMarkerDir 37;
                };
            case "center": 
            {
                //diag_log "++++++++++++++--- marker label dot detected";
                _name = "label" + _name;
                _labelMarker = createMarker [_name, _pos];
                _labelMarker setMarkerShape "Icon";
                _labelMarker setMarkerType "mil_dot";
                _labelMarker setMarkerColor "ColorBlack";
                _labelMarker setMarkerText _text;
                };
            };
    };
    if (isNil "_labelMarker") then {_labelMarker = ""};
    _labelMarker
};

_blck_fn_configureIconMarker = {
    private["_MainMarker"];
    params["_name","_pos",["_color","ColorBlack"],["_text",""],["_icon","mil_triangle"]];
    //diag_log format["_blck_fn_configureIconMarker: _name=%1;  _pos=%2;  _color=%3;  _text=%4",_name,_pos,_color,_text];
    
    _name = "label" + _name;
    _MainMarker = createMarker [_name, _pos];
    _MainMarker setMarkerShape "Icon";
    _MainMarker setMarkerType _icon;
    _MainMarker setMarkerColor _color;
    _MainMarker setMarkerText _text;    
    _MainMarker
};

//diag_log format["spawnMarker::  --  >> _this = %1",_this];
//  _this = [[""BlueMarker"",[12524.1,18204.7,0],""Bandit Patrol"",""center"",""ColorBlue"",[""ELIPSE"",[175,175]]],""ColorBlue"",""BlueMarker""]"
params["_mArray"];
private["_marker"];
_mArray params["_missionType","_markerPos","_markerLabel","_markerLabelType","_markerColor","_markerType"];
_markerType params["_mShape","_mSize","_mBrush"];
//diag_log format["spawnMarker.sqf::  --  >> _missionType %1 | _markerPos %2 | _markerLabel %3 | _markerLabelType %4 | _markerColor %5 | _markerType %6",_missionType,_markerPos,_markerLabel,_markerLabelType,_markerColor,_markerType];

if ((_markerType select 0) in ["ELIPSE","RECTANGLE"]) then // not an Icon .... 
{        
    switch (_missionType) do {
        // params["_missionType","_pos","_text","_labelType","_color","_type","_size","_brush"];
        // Type                    Size                Brush
        default {_marker = [_missionType,_markerPos,_markerColor,_markerLabel, _mSize,_markerLabelType,_mShape,_mBrush] call _blck_fn_configureRoundMarker;};
    };
};
if !((_markerType select 0) in ["ELIPSE","RECTANGLE"]) then 
{  //  Deal with case of an icon
    //  params["_name","_pos",["_color","ColorBlack"],["_text",""],["_icon","mil_triangle"]];
    _marker = [_missionType,_markerPos, _markerColor,_markerLabel,_markerType select 0] call _blck_fn_configureIconMarker;
};
//diag_log format["spawnMarker complete script with _marker = %1",_marker];
if (isNil "_marker") then {_marker = ""};
_marker
 

THANKS!

Link to comment
Share on other sites

There might be a quicker way to do it but on each mission sqf the is this line

_markerType = ["ELIPSE",[175,175],"GRID"]; 

changing the 175 may change it.

But I think altering a line in GMS_fnc_spawnMarker.sqf would be quicker I'm guessing this one

_MainMarker setMarkerSize _size; //

to

_MainMarker setMarkerSize [150,150];

I could be wrong as I'm still learning :biggrin:

Link to comment
Share on other sites

6 hours ago, webbie said:

First off, Fantastic Mod! Adds so much to the game and makes just leaving the house a bit frightening, lol.

Couple of easy ones.

1. How do I know what version I am running?

2. Am I able to change the marker size via GMS_fnc_spawnMarker.sqf

???
 

  Reveal hidden contents

////////////////////////////////////////////
// Create Mission Markers 
// by Ghostrider-GRG-
//////////////////////////////////////////
// spawn a round marker of a size and color specified in passed parameters

private["_blck_fn_configureRoundMarker"];

private["_blck_fn_configureRoundMarker"];
_blck_fn_configureRoundMarker = {
    private["_name","_pos","_color","_size","_MainMarker","_arrowMarker","_labelMarker","_labelType"];
    //diag_log format["_blck_fn_configureRoundMarker: -: _this = %1", _this];
    params["_name","_pos","_color","_text","_size","_labelType"];

    //diag_log format["_blck_fn_configureRoundMarker: _pos = %1, _color = %2, _size = %3, _name = %4, label %5",_pos, _color, _size, _name, _text];
    // Do not show the marker if it is in the left upper corner
    if ((_pos distance [0,0,0]) < 10) exitWith {};
    
    _MainMarker = createMarker [_name, _pos];
    _MainMarker setMarkerColor _color;
    _MainMarker setMarkerShape "ELLIPSE";
    _MainMarker setMarkerBrush "Grid";
    _MainMarker setMarkerSize _size; //
    //diag_log format["_blck_fn_configureRoundMarker: -: _labelType = %1", _labelType];
    if (count toArray(_text) > 0) then
    {
        switch (_labelType) do {
            case "arrow":
            {
                //diag_log "++++++++++++++--- marker label arrow detected";
                _name = "label" + _name;
                _textPos = [(_pos select 0) + (count toArray (_text) * 12), (_pos select 1) - (_size select 0), 0];
                _arrowMarker = createMarker [_name, _textPos];
                _arrowMarker setMarkerShape "Icon";
                _arrowMarker setMarkerType "HD_Arrow";
                _arrowMarker setMarkerColor "ColorBlack";
                _arrowMarker setMarkerText _text;
                //_MainMarker setMarkerDir 37;
                };
            case "center": 
            {
                //diag_log "++++++++++++++--- marker label dot detected";
                _name = "label" + _name;
                _labelMarker = createMarker [_name, _pos];
                _labelMarker setMarkerShape "Icon";
                _labelMarker setMarkerType "mil_dot";
                _labelMarker setMarkerColor "ColorBlack";
                _labelMarker setMarkerText _text;
                };
            };
    };
    if (isNil "_labelMarker") then {_labelMarker = ""};
    _labelMarker
};

_blck_fn_configureIconMarker = {
    private["_MainMarker"];
    params["_name","_pos",["_color","ColorBlack"],["_text",""],["_icon","mil_triangle"]];
    //diag_log format["_blck_fn_configureIconMarker: _name=%1;  _pos=%2;  _color=%3;  _text=%4",_name,_pos,_color,_text];
    
    _name = "label" + _name;
    _MainMarker = createMarker [_name, _pos];
    _MainMarker setMarkerShape "Icon";
    _MainMarker setMarkerType _icon;
    _MainMarker setMarkerColor _color;
    _MainMarker setMarkerText _text;    
    _MainMarker
};

//diag_log format["spawnMarker::  --  >> _this = %1",_this];
//  _this = [[""BlueMarker"",[12524.1,18204.7,0],""Bandit Patrol"",""center"",""ColorBlue"",[""ELIPSE"",[175,175]]],""ColorBlue"",""BlueMarker""]"
params["_mArray"];
private["_marker"];
_mArray params["_missionType","_markerPos","_markerLabel","_markerLabelType","_markerColor","_markerType"];
_markerType params["_mShape","_mSize","_mBrush"];
//diag_log format["spawnMarker.sqf::  --  >> _missionType %1 | _markerPos %2 | _markerLabel %3 | _markerLabelType %4 | _markerColor %5 | _markerType %6",_missionType,_markerPos,_markerLabel,_markerLabelType,_markerColor,_markerType];

if ((_markerType select 0) in ["ELIPSE","RECTANGLE"]) then // not an Icon .... 
{        
    switch (_missionType) do {
        // params["_missionType","_pos","_text","_labelType","_color","_type","_size","_brush"];
        // Type                    Size                Brush
        default {_marker = [_missionType,_markerPos,_markerColor,_markerLabel, _mSize,_markerLabelType,_mShape,_mBrush] call _blck_fn_configureRoundMarker;};
    };
};
if !((_markerType select 0) in ["ELIPSE","RECTANGLE"]) then 
{  //  Deal with case of an icon
    //  params["_name","_pos",["_color","ColorBlack"],["_text",""],["_icon","mil_triangle"]];
    _marker = [_missionType,_markerPos, _markerColor,_markerLabel,_markerType select 0] call _blck_fn_configureIconMarker;
};
//diag_log format["spawnMarker complete script with _marker = %1",_marker];
if (isNil "_marker") then {_marker = ""};
_marker
 

THANKS!

To change the marker size just change the values where they are defined in each file describing missions. Alternatively, ifyou want all markers the same size you can set the size in GMS_fnc_spawnMarker.

The version / build are logged in your server.rpt. The location of the file depends a bit on how your server is set up. On Epoch servers it is usually stored in the SC folder. A new file is generated after each restart (thank goodness for that - thank you Bohemia).

You can also directly check the build in the custom_folder\init folder - just look for a file called build.sqf.

 

Link to comment
Share on other sites

  • 1 month later...

Hi.

After recent update the ai and mission crates and objects are cleaned up in seconds ignoring what's on the config and also patrol vehicle's at the mission are ignoring what's set in the config.  Getting 4 vehicle's but set to 1. 

Thanks in advance, Razor 

Ps this is on exile server, not checked it on my epoch server yet.

Link to comment
Share on other sites

9 hours ago, Razor1977 said:

Hi.

After recent update the ai and mission crates and objects are cleaned up in seconds ignoring what's on the config and also patrol vehicle's at the mission are ignoring what's set in the config.  Getting 4 vehicle's but set to 1. 

Thanks in advance, Razor 

Ps this is on exile server, not checked it on my epoch server yet.

Open custom_server\compiles\blck_variables.sqf.

Check that blck_debugON = false;

That usually solves these sorts of issues.

Link to comment
Share on other sites

  • 2 weeks later...

Tested 1.81 Experimental..

For players it seems to work fine.

In RTP it shows:

 

	"[blckeagls] Loading Map-specific settings with worldName = altis"
"[blckeagls] Altis-specific settings for Epoch loaded"
"[blckeagls] Loading Mission Lists"
Error in expression <
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error position: <};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error Missing {
File q\addons\custom_server\Configs\blck_custom_config.sqf, line 220
Error in expression <
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error position: <};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error Missing {
File q\addons\custom_server\Configs\blck_custom_config.sqf, line 220
"[blckeagls] version 5-28-18  4:00 PM Build 6.81 Build 130 Loaded in 1.072 seconds"

and later:
"_fnc_passToHCs:: blck_connectedHCs = [] | count _HCs = 0 | server FPS = 49.2308"
"[blckeagls] missionSpawner (17):: Initializing mission: _cords [13579.3,19558.8,0] : _markerClass RedMarker1 :  _aiDifficultyLevel red _markerMissionName Bandit Camp"
Error in expression <useMines = blck_useMines;


_uniforms = blck_RHS_UniformsGREF;  
_headgear = blc>
  Error position: <blck_RHS_UniformsGREF;  
_headgear = blc>
	

 

I don't use any of those in blck_custom_config defined mods

Link to comment
Share on other sites

11 hours ago, Tarabas said:

Tested 1.81 Experimental..

For players it seems to work fine.

In RTP it shows:

  Reveal hidden contents


	"[blckeagls] Loading Map-specific settings with worldName = altis"
"[blckeagls] Altis-specific settings for Epoch loaded"
"[blckeagls] Loading Mission Lists"
Error in expression <
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error position: <};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error Missing {
File q\addons\custom_server\Configs\blck_custom_config.sqf, line 220
Error in expression <
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error position: <};
*/
	 
	
blck_CUPWeapons = [
"CUP_lmg_L>
  Error Missing {
File q\addons\custom_server\Configs\blck_custom_config.sqf, line 220
"[blckeagls] version 5-28-18  4:00 PM Build 6.81 Build 130 Loaded in 1.072 seconds"

and later:
"_fnc_passToHCs:: blck_connectedHCs = [] | count _HCs = 0 | server FPS = 49.2308"
"[blckeagls] missionSpawner (17):: Initializing mission: _cords [13579.3,19558.8,0] : _markerClass RedMarker1 :  _aiDifficultyLevel red _markerMissionName Bandit Camp"
Error in expression <useMines = blck_useMines;


_uniforms = blck_RHS_UniformsGREF;  
_headgear = blc>
  Error position: <blck_RHS_UniformsGREF;  
_headgear = blc>
	

 

I don't use any of those in blck_custom_config defined mods

Thanks - I saw the same error last evening. I uploaded a corrected custom_server\configs\blck_custom_config.sqf to the experimental branch last evening that should fix this. Thank you for testing and for the feedback.  Once I have whatever I broke in the hostage and capture missions working I will merge the experimental and main branches.

Link to comment
Share on other sites

Thank you.. Now that error in rtp is gone. Last I found is:

	"[blckeagls] missionSpawner (17):: Initializing mission: _cords [23694,19248.1,0] : _markerClass RedMarker2 :  _aiDifficultyLevel red _markerMissionName Bandit Camp"
Error in expression <useMines = blck_useMines;
	
_uniforms = blck_RHS_UniformsGREF;  
_headgear = blc>
  Error position: <blck_RHS_UniformsGREF;  
_headgear = blc>
  Error Undefined variable in expression: blck_rhs_uniformsgref
File q\addons\custom_server\Missions\Red\redCamp.sqf, line 73

Link to comment
Share on other sites

Did you

15 hours ago, Tarabas said:

Thank you.. Now that error in rtp is gone. Last I found is:

  Hide contents

 



	"[blckeagls] missionSpawner (17):: Initializing mission: _cords [23694,19248.1,0] : _markerClass RedMarker2 :  _aiDifficultyLevel red _markerMissionName Bandit Camp"
Error in expression <useMines = blck_useMines;
	
_uniforms = blck_RHS_UniformsGREF;  
_headgear = blc>
  Error position: <blck_RHS_UniformsGREF;  
_headgear = blc>
  Error Undefined variable in expression: blck_rhs_uniformsgref
File q\addons\custom_server\Missions\Red\redCamp.sqf, line 73

 

 

I think I know why - did you run it with the Mil Server configs ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...