Jump to content

blckeagls' AI Mission - Version 2.0.2 Release (1/2/2015)


blckeagls

Recommended Posts

Thanks for these missions, they are working great, the one question I have is that, can we also spawn other vehicles like helis? and is there a way to make them stay after restart? Thanks again

 

I've had players report that vehicles are "staying" after they Lock/Unlock the vehicles from the missions on my server.

Link to comment
Share on other sites

That stumps me..  I checked the vanilla files where this is called in AI1.sqf and it matches exactly what I have running on my server without any errors...  

Is anyone else getting this?

Can you provide the changes you put in the init.sqf?

==========

Can you also do this:

in the ai1.sqf file

change:
//Prevents players from having AI God Mode
while {true} do {
	_players = [];
	_nearEntities = count (_ai1 nearEntities [["MAN"],1000]);
	//diag_log format["_nearEntities: %1",_nearEntities];  //Used for testing
	{
		if (isPlayer _x) then {
		 _players = _players + [_x];
		};
	} foreach (_ai1 nearEntities [["MAN"],1000]);
	//diag_log format["Nearplayers: %1",_players]; //Used for testing
	if ((count _players) > 0) then {
		_owner = _players call BIS_fnc_selectRandom;
		_ai1 setOwner (owner _owner);
	};
	//diag_log format["_ai1 %2 Owner: %1",owner _ai1, _ai1]; //Used for testing
	waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};

to:


//Prevents players from having AI God Mode
while {true} do {
	_players = [];
	_nearEntities = count (_ai1 nearEntities [["MAN"],1000]);
	//diag_log format["_nearEntities: %1",_nearEntities];  //Used for testing
	{
		if (isPlayer _x) then {
		 _players = _players + [_x];
		};
	} foreach _nearEntities;
	//diag_log format["Nearplayers: %1",_players]; //Used for testing
	if ((count _players) > 0) then {
		_owner = _players call BIS_fnc_selectRandom;
		_ai1 setOwner (owner _owner);
	};
	//diag_log format["_ai1 %2 Owner: %1",owner _ai1, _ai1]; //Used for testing
	waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};

 

The RPT says the error is in these two spaces:

while {true} do {
	_players = [];
	_nearEntities = count (_ai1 nearEntities [["MAN"],1000]);  //HERE -- IS ERROR
	{
		if (isPlayer _x) then {
		 _players = _players + [_x];
		};
	} foreach (_ai1 nearEntities [["MAN"],1000]);
	if ((count _players) > 0) then {
		_owner = _players call BIS_fnc_selectRandom;
		_ai1 setOwner (owner _owner);
	};
	waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};  //HERE -- IS ERROR
};

Are you running any Anti-Hack that isnt allowing the nearEntities command?

I made the changes you suggested blckeagls , and it seemed to resolve the .rpt spamming. I do have the problem of not taking damage now though. When I first installed I was taking damage no problem, now nothing.

Link to comment
Share on other sites

How can i add weapons to the crate 


	//This Defines what goes into the box;
		blck_FillBoxes_Major = {
			private["_crate","_Weapons","_mags","_cfgweapons","_weapon","_plx","_mag","_mags","_allweap","_box"];
			_crate = _this select 0;
			clearWeaponCargoGlobal _crate;
			clearMagazineCargoGlobal _crate;
			_crate addMagazineCargoGlobal ["CinderBlocks",40];
			_crate addMagazineCargoGlobal ["jerrycan_epoch",10];
			_crate addMagazineCargoGlobal ["lighter_epoch",2];
			_crate addMagazineCargoGlobal ["CircuitParts",10];
			_crate addMagazineCargoGlobal ["WoodLog_EPOCH",50];
			_crate addMagazineCargoGlobal ["ItemCorrugatedLg",20];
			_crate addMagazineCargoGlobal ["ItemCorrugated",20];
			_crate addMagazineCargoGlobal ["ItemMixOil",3];
			_crate addMagazineCargoGlobal ["MortarBucket",20];
			_crate addMagazineCargoGlobal ["PartPlankPack",20];
			_crate addMagazineCargoGlobal ["ItemLockbox",2];
			_crate addMagazineCargoGlobal ["MultiGun",2];
			_crate addMagazineCargoGlobal ["Heal_EPOCH",2];
			_crate addMagazineCargoGlobal ["Defib_EPOCH",1];
			_crate addMagazineCargoGlobal ["Repair_EPOCH",2];
			_crate addMagazineCargoGlobal ["EnergyPack",5];
			_crate addMagazineCargoGlobal ["EnergyPackLg",2];
			_crate addMagazineCargoGlobal ["WhiskeyNoodle",5];
			_crate addMagazineCargoGlobal ["water_epoch",5];
			_crate addMagazineCargoGlobal ["arifle_mas_hk417c_sd",1];
			
		};

is this right?

Link to comment
Share on other sites

is it just me or the befilters not updated in his zip file? or this is configured with another antihack program not to be mentioned with?

 

can anyone with running vanilla share their filters with us or give to blckeagls and he can pack it with his zip file? 

 

 

 

thanks

Link to comment
Share on other sites

I made the changes you suggested blckeagls , and it seemed to resolve the .rpt spamming. I do have the problem of not taking damage now though. When I first installed I was taking damage no problem, now nothing.

 

Got the same problem and made the changes on v2.0.1, Also no longer taking damage when i'm freshspawned but got a lot less errors in .rpt files. 

 

Seems like this happens if you get to close to me mission. If i stay away and snipe all ai's the problem does not occure. If i however go in to the area to the box and starts shooting ai's the error messages occures in the log. 

 

Now the error has moved to line 84
 
if ((count _play>
22:42:57   Error position: <foreach _nearEntities;
 
if ((count _play>
22:42:57   Error foreach: Type Number, expected Array
22:42:57 File q\addons\custom_server\AIMission\AI1.sqf, line 84
22:42:57 Error in expression <then {
_players = _players + [_x];
};
Link to comment
Share on other sites

Still getting spammed in the RPT, this time it was 2 green missions in a row, 1st 200m away no issue in RPT then 2nd was 400m started right after that.

 

21:08:48 Bad conversion: array


21:08:48 Error in expression <
waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};>
21:08:48 Error position: };>
21:08:48 Error 0 elements provided, 3 expected
21:08:48 File q\addons\custom_server\AIMission\AI1.sqf, line 91
21:08:48 Bad conversion: array
21:08:48 Bad conversion: array
21:08:48 Bad conversion: array
21:08:48 Error in expression <
waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};>
21:08:48 Error position: };>
21:08:48 Error 0 elements provided, 3 expected
21:08:48 File q\addons\custom_server\AIMission\AI1.sqf, line 91
21:08:48 Error in expression _nearEntities = count (_ai1 nearEntities [["MAN"],1000]);

{
if (isP>
21:08:48 Error position:
{
if (isP>
21:08:48 Error 0 elements provided, 3 expected
21:08:48 File q\addons\custom_server\AIMission\AI1.sqf, line 78
21:08:48 Bad conversion: array
21:08:48 Error in expression <
waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};>
21:08:48 Error position: };>
21:08:48 Error 0 elements provided, 3 expected
21:08:48 File q\addons\custom_server\AIMission\AI1.sqf, line 91
21:08:48 Bad conversion: array
21:08:48 Error in expression <
waitUntil{_nearEntities != count (_ai1 nearEntities [["MAN"],1000])};
};>

Link to comment
Share on other sites

I must be missing something because I cannot get any AI missions to spawn. I have followed the directions in the original post. I am unclear about step 6 since the most recent download doesn't have a 'mission.zip' file. 

 

My 'mpmissions' directory looks like this:

  • Altis.Epoch folder
    • debug folder
    • init.sqf
  • epoch.Altus.pbo
  • epoch.Chernarus.pbo
  • epoch.Stratis.pbo

I did not edit any pbos and this is vanilla epoch .2.5.2

 

Epoch runs fine, I am not seeing any type of error, just no AI mission spawning. How often/soon does the AI missions spawn after a server restart?

Link to comment
Share on other sites

I must be missing something because I cannot get any AI missions to spawn. I have followed the directions in the original post. I am unclear about step 6 since the most recent download doesn't have a 'mission.zip' file. 

 

My 'mpmissions' directory looks like this:

  • Altis.Epoch folder
    • debug folder
    • init.sqf
  • epoch.Altus.pbo
  • epoch.Chernarus.pbo
  • epoch.Stratis.pbo

I did not edit any pbos and this is vanilla epoch .2.5.2

 

Epoch runs fine, I am not seeing any type of error, just no AI mission spawning. How often/soon does the AI missions spawn after a server restart?

5 Minutes... but you have to add the custom_server.pbo to your @EpochHive/Addons (server folder) folder

Link to comment
Share on other sites

5 Minutes... but you have to add the custom_server.pbo to your @EpochHive/Addons (server folder) folder

 

Yep, I just checked again, 'custom_server.pbo' is in the @epochhive/addons folder.

 

I don't think it matters, but I am just running this on my desktop pc, so client and server on same computer. Epoch server works fine, I can enter Altis, see loot spawns, traders, etc. 

Link to comment
Share on other sites

The Mission works on my server perfectly but for some reason, all of the admins (including me) get a publicvariable restriction #0 when ever we try to spawn something in using the spawn menu. this didn't happen before i installed this mod. if anyone has an answer to this please help. I will try anything.

Also this is the publicvariable.log 

03.01.2015 07:34:36: Mayhemflee (216.49.51.35:2304) f43b4837e5fab11e7ab6167e4c0ae915 - #0 "cwhelzvg" = [106,true,<NULL-object>,"amtotbhgv"]
I have no idea how to fix this. I never got this error before.
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
  • Advertisement
×
×
  • Create New...