Jump to content

Re-Worked WAI 0.173 - Supported System


Recommended Posts

as a user of wicked AI i luv these changes the mission system is very fun on my test server i think ur doing a great job, the only reason i have not went live yet is the fact the AI are 1 shot kills unlike the sarge ai is there a way to change that?

Link to comment
Share on other sites

16:07:07 "WAI: Mission Config File Loaded"


16:07:07 "WAI: Starting AI Missions Moniter"
16:07:07 Warning Message: No entry 'bin\config.bin/CfgMagazines.Drake'.
16:07:07 Warning Message: No entry '.picture'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.scope'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: Error: creating magazine Drake with scope=private
16:07:07 Warning Message: No entry '.displayName'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.displayNameShort'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.nameSound'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.Library'.
16:07:07 Warning Message: No entry '.libTextDesc'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.type'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.count'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.maxLeadSpeed'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.initSpeed'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.reloadAction'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.modelSpecial'.
16:07:07 Warning Message: '/' is not a value
16:07:07 Warning Message: No entry '.ammo'.
16:07:07 Warning Message: '/' is not a value

 

Seem to be getting this error in my .RPT log. Anyone with an idea what it might be?

Link to comment
Share on other sites

adrianna beat me to it :D

 

 

also weapon cache mission has few typos. has wepaon instead of weapon in few places (cant remember where since i fixed them before. and mayor mansion

 

"The rouge mayor has been taken out, who will be the next Mayor of Cherno?", "PLAIN",10] call RE;

 

should be

 

"The rogue mayor has been taken out, who will be the next Mayor of Cherno?", "PLAIN",10] call RE;

 

typos can be found

 

smallgunbox: 8Rnd_B_Beneli_Pellet, ItemCompas, 30Rnd_545x35_AK, 20Rnd_556x45_Stannag

 

mediumgunbox: ItemCompas

 

largegunbox: Rocket

 

extralargegunbox: Drake, GPS

 

should be:

 

smallgunbox: 8Rnd_B_Beneli_Pellets, ItemCompass, 30Rnd_545x39_AK, 20Rnd_556x45_Stanag

 

mediumgunbox: ItemCompass

 

largegunbox: Skin_Rocker_DZ

 

extralargegunbox: Skin_Drake_Light_DZ, ItemGPS

 

THANK YOU - Update soon

Link to comment
Share on other sites

I get the following error in my RPT when starting up my server with the newest patch you have. (0.173) I changed nothing in the files, so it is default like the download.

 2:12:49 "WAI: AI Config File Loaded"
 2:12:49 "WAI: AI Monitor Started"
 2:12:49 Error in expression <9_AK, 5];
_box addMagazineCargoGlobal ["10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error position: <10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error Missing ]
 2:12:49 File z\addons\dayz_server\WAI\missions\compile\SmallGunBox.sqf, line 25
 2:12:49 Error in expression <9_AK, 5];
_box addMagazineCargoGlobal ["10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error position: <10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error Missing ]
 2:12:49 File z\addons\dayz_server\WAI\missions\compile\SmallGunBox.sqf, line 25
 2:12:49 "WAI: Mission Config File Loaded"
 2:12:49 "WAI: Starting AI Missions Moniter"

I found the issue.

 

In the SmallGunBox.sqf file you are missing a "

 

_box addMagazineCargoGlobal ["30Rnd_545x39_AK, 5];
 
should be
 
_box addMagazineCargoGlobal ["30Rnd_545x39_AK", 5];
Link to comment
Share on other sites

Another one with 
 
 7:03:40 "WAI: Starting Mission disabled_civchopper"
 7:03:40 "WAI: Mission Civilian Aircraft Started At [1788.5,7690.73]"
 7:03:40 Warning Message: No entry 'bin\config.bin/CfgWeapons.Ak_74_kobra'.
 7:03:40 Warning Message: No entry '.scope'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: Error: creating weapon Ak_74_kobra with scope=private
 7:03:40 Warning Message: No entry '.displayName'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.nameSound'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.type'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.picture'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.Library'.
 7:03:40 Warning Message: No entry '.libTextDesc'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.model'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.simulation'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightDuration'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightIntensity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockDelay'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockSystem'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.cmImmunity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.lockingTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.lockedTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.muzzles'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 "WAI: Mission Civilian Aircraft spawned a Mi-17 (Civilian)"
 
 
SmallGunBox.sqf
 
_box addWeaponCargoGlobal ["Ak_74_kobra", 1];
 
should be 
 
_box addWeaponCargoGlobal ["AKS_74_kobra", 1];
 
Link to comment
Share on other sites

 

I get the following error in my RPT when starting up my server with the newest patch you have. (0.173) I changed nothing in the files, so it is default like the download.

 2:12:49 "WAI: AI Config File Loaded"
 2:12:49 "WAI: AI Monitor Started"
 2:12:49 Error in expression <9_AK, 5];
_box addMagazineCargoGlobal ["10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error position: <10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error Missing ]
 2:12:49 File z\addons\dayz_server\WAI\missions\compile\SmallGunBox.sqf, line 25
 2:12:49 Error in expression <9_AK, 5];
_box addMagazineCargoGlobal ["10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error position: <10x_303", 5];
_box addMagazineCargoGloba>
 2:12:49   Error Missing ]
 2:12:49 File z\addons\dayz_server\WAI\missions\compile\SmallGunBox.sqf, line 25
 2:12:49 "WAI: Mission Config File Loaded"
 2:12:49 "WAI: Starting AI Missions Moniter"

I found the issue.

 

In the SmallGunBox.sqf file you are missing a "

 

_box addMagazineCargoGlobal ["30Rnd_545x39_AK, 5];
 
should be
 
_box addMagazineCargoGlobal ["30Rnd_545x39_AK", 5];

 

 

 

 

Another one with 
 
 7:03:40 "WAI: Starting Mission disabled_civchopper"
 7:03:40 "WAI: Mission Civilian Aircraft Started At [1788.5,7690.73]"
 7:03:40 Warning Message: No entry 'bin\config.bin/CfgWeapons.Ak_74_kobra'.
 7:03:40 Warning Message: No entry '.scope'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: Error: creating weapon Ak_74_kobra with scope=private
 7:03:40 Warning Message: No entry '.displayName'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.nameSound'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.type'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.picture'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.Library'.
 7:03:40 Warning Message: No entry '.libTextDesc'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.model'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.simulation'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightDuration'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightIntensity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockDelay'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockSystem'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.cmImmunity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.lockingTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.lockedTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.muzzles'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 "WAI: Mission Civilian Aircraft spawned a Mi-17 (Civilian)"
 
 
SmallGunBox.sqf
 
_box addWeaponCargoGlobal ["Ak_74_kobra", 1];
 
should be 
 
_box addWeaponCargoGlobal ["AKS_74_kobra", 1];
 

 

 

UPDATED AGAIN REDOWNLOAD FILES AGAIN PLEASE

 

All because of a simple " -.-

Link to comment
Share on other sites

 

 

 

This was the way mark originally developed it and tbh I like it this way. Don't have to worry about loosing it or such. You can wait till after restart to sell it. Your server won't over populate because it removes vehicles too if it is over your specified amount. 

 

Why have vehicles when they disappear in under 3 hours. May as well just be decoration.

Link to comment
Share on other sites

 

Another one with 
 
 7:03:40 "WAI: Starting Mission disabled_civchopper"
 7:03:40 "WAI: Mission Civilian Aircraft Started At [1788.5,7690.73]"
 7:03:40 Warning Message: No entry 'bin\config.bin/CfgWeapons.Ak_74_kobra'.
 7:03:40 Warning Message: No entry '.scope'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: Error: creating weapon Ak_74_kobra with scope=private
 7:03:40 Warning Message: No entry '.displayName'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.nameSound'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.type'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.picture'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.Library'.
 7:03:40 Warning Message: No entry '.libTextDesc'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.model'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.simulation'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightDuration'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.fireLightIntensity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockDelay'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.weaponLockSystem'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.cmImmunity'.
 7:03:40 Warning Message: '/' is not a value
 7:03:40 Warning Message: No entry '.lockingTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.lockedTargetSound'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 Warning Message: No entry '.muzzles'.
 7:03:40 Warning Message: Size: '/' not an array
 7:03:40 "WAI: Mission Civilian Aircraft spawned a Mi-17 (Civilian)"
 
 
SmallGunBox.sqf
 
_box addWeaponCargoGlobal ["Ak_74_kobra", 1];
 
should be 
 
_box addWeaponCargoGlobal ["AKS_74_kobra", 1];
 

 

 

This is still not fixed in your latest upload ^_^

Link to comment
Share on other sites

I've had like 6 typos in the files, heh, going one by one from my rpt log i've fixed them all i think. I can upload the file if the author agrees.

 

Edit:

Also, william, i'll quote my self:

 

 

the static missions that you have in your customspawns template. The groups are there BUT, there is no loot anywhere near them, and the rocket launcher guns are in mid air above the group in north :S:S:S

 

Any ideas?

 

Would love to hear from you about this!

Link to comment
Share on other sites

We are on the Lingor map so many times the buildings are in mid air and of course the ai do not walk correctly at that point but can sure enough shoot you or vehicles with ease..

 

Any way to make them self leveling??

 

BTW awsome job keeping this up to date 

Link to comment
Share on other sites

I've had like 6 typos in the files, heh, going one by one from my rpt log i've fixed them all i think. I can upload the file if the author agrees.

 

Edit:

Also, william, i'll quote my self:

 

 

Would love to hear from you about this!

 

This is mearly a template on how to go about placing them. Don't use the template just use it to better your understanding. 

 

As for the height adjustment. It is this factor. 

[[[448.887,329.356,0.001],[460.602,427.164,0.001]],"M2StaticMG",0.5,"Bandit2_DZ",1,2,"","Random"] call spawn_static;

This is the line to call a turret in static spawns. 

 

To edit HEIGHT:

 

Edit this value

 

448.887,329.356,0.001

 

 This will affect the height at which they are placed at. 

 

You need to change the original static spawn file to what you want. The reason they where floating is because on my server I had a AI base which they sat on buildings. 

Link to comment
Share on other sites

Definitely a YES ! 

 

Preview

//Weapon Cache ported from EMS 1st Testpreview

private ["_position","_box","_missiontimeout","_cleanmission","_playerPresent","_starttime","_currenttime","_cleanunits","_rndnum","_vehname","_veh","_position","_vehclass","_vehdir","_objPosition"];
_vehclass = "SUV_Camo";
_vehclass = "UAZ_Unarmed_UN_EP1";

_vehname	= getText (configFile >> "CfgVehicles" >> _vehclass >> "displayName");
_position = [getMarkerPos "center",0,5800,10,0,2200,0] call BIS_fnc_findSafePos;
diag_log format["WAI: Mission Weapon Cache Started At %1",_position];


_box = createVehicle ["US_VehicleBox",[(_position select 0),(_position select 1),0], [], 0, "CAN_COLLIDE"];
[_box] call Medium_Gun_Box;

//SUV_Camo/UAZ_Unarmed_UN_EP1
_veh = createVehicle [_vehclass,_position, [], 0, "CAN_COLLIDE"];
_vehdir = round(random 360);
_veh setDir _vehdir;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
_veh setVariable ["ObjectID","1",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_veh];
diag_log format["WAI: EMS ported Mission Weapon Cache spawned a %1",_vehname];

_objPosition = getPosATL _veh;
//[_veh,[_vehdir,_objPosition],_vehclass,true,"0"] call custom_publish;

//Troops
_rndnum = round (random 3) + 4;
[[_position select 0, _position select 1, 0],                  //position
_rndnum,						  //Number Of units
1,					      //Skill level 0-1. Has no effect if using custom skills
"Random",			      //Primary gun set number. "Random" for random weapon set.
6,						  //Number of magazines
"",						  //Backpack "" for random or classname here.
"Bandit2_DZ",			  //Skin "" for random or classname here.
"Random",				  //Gearset number. "Random" for random gear set.
true
] call spawn_group;

[[_position select 0, _position select 1, 0],                  //position
4,						  //Number Of units
1,					      //Skill level 0-1. Has no effect if using custom skills
"Random",			      //Primary gun set number. "Random" for random weapon set.
4,						  //Number of magazines
"",						  //Backpack "" for random or classname here.
"Bandit2_DZ",			  //Skin "" for random or classname here.
"Random",				  //Gearset number. "Random" for random gear set.
true
] call spawn_group;

[[[(_position select 0), (_position select 1) + 10, 0],[(_position select 0) + 10, (_position select 1), 0]], //position(s) (can be multiple).
"M2StaticMG",             //Classname of turret
0.8,					  //Skill level 0-1. Has no effect if using custom skills
"Bandit2_DZ",			  //Skin "" for random or classname here.
2,						  //Primary gun set number. "Random" for random weapon set. (not needed if ai_static_useweapon = False)
2,						  //Number of magazines. (not needed if ai_static_useweapon = False)
"",						  //Backpack "" for random or classname here. (not needed if ai_static_useweapon = False)
"Random",				  //Gearset number. "Random" for random gear set. (not needed if ai_static_useweapon = False)
true
] call spawn_static;


[_position,"Weapon cache"] execVM "\z\addons\dayz_server\WAI\missions\compile\markers.sqf";
[nil,nil,rTitleText,"Bandits have obtained a weapon crate! Check your map for the location!", "PLAIN",10] call RE;

_missiontimeout = true;
_cleanmission = false;
_playerPresent = false;
_starttime = floor(time);
while {_missiontimeout} do {
	sleep 5;
	_currenttime = floor(time);
	{if((isPlayer _x) AND (_x distance _position <= 150)) then {_playerPresent = true};}forEach playableUnits;
	if (_currenttime - _starttime >= wai_mission_timeout) then {_cleanmission = true;};
	if ((_playerPresent) OR (_cleanmission)) then {_missiontimeout = false;};
};
if (_playerPresent) then {
	waitUntil
	{
		sleep 5;
		_playerPresent = false;
		{if((isPlayer _x) AND (_x distance _position <= 30)) then {_playerPresent = true};}forEach playableUnits;
		(_playerPresent)
	};
	diag_log format["WAI: Mission Weapon cache Ended At %1",_position];
	[nil,nil,rTitleText,"Survivors have secured the Weapon Cache!", "PLAIN",10] call RE;
} else {
	clean_running_mission = True;
	deleteVehicle _box;
	{_cleanunits = _x getVariable "missionclean";
	if (!isNil "_cleanunits") then {
		switch (_cleanunits) do {
			case "ground" :  {ai_ground_units = (ai_ground_units -1);};
			case "air" :     {ai_air_units = (ai_air_units -1);};
			case "vehicle" : {ai_vehicle_units = (ai_vehicle_units -1);};
			case "static" :  {ai_emplacement_units = (ai_emplacement_units -1);};
		};
		deleteVehicle _x;
		sleep 0.05;
	};	
	} forEach allUnits;
	
	diag_log format["WAI: Mission Weapon cache timed out At %1",_position];
	[nil,nil,rTitleText,"Survivors did not secure the Weapon Cache in time!", "PLAIN",10] call RE;
};

missionrunning = false;

PREVIEW

Edited by Fuchs
Link to comment
Share on other sites

Anyone have a video or possibly an explanation how this differs from dzai? Because currently im not able to sell mission vehicles to traders in game after the patch update.

 

 

  • DAYZAI is an AI only package. It places AI units on your server but not missions. 
  • CMS/EMS are mission scripts that create specific missions and use AI either directly from Arma, Sarge or DAYZAI. 
  • WAI is a combined AI and mission system. So if you install WAI you don't need two systems. 

WAI will allow you to sell mision vehicles as it publishes them to the database. This also means if players do a mission, but leave the vehicles those vehicles persist after a server restart and will add to your object table, reduce dynamic spawning etc. 

 

I think the general idea now is Fuchs, William and myself will putting our efforts into one system for Epoch rather than 3 different packages. It should hopefully mean more missions and additions.  

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...