Jump to content

Wicked AI/Mission system


Markk311

Recommended Posts

Anyone having issues since the newest version of epoch? Sometimes it will randomly stop working, then next restart all is fine. no idea why

 

 

check your rpt when that happened on my server it was to do with the helecrash mission i took and it and it all works fine now

Link to comment
Share on other sites

Just looked at mine today, no AI showing up. Got multiple entries of

 7:54:49 "TIME SYNC: Local Time set to [2013,8,3,20,54]"
 7:58:37 "0 Active ground units"
 7:58:37 "0 Active emplacement units"
 7:58:37 "0 Active chopper patrol units (Crew)"
 7:58:37 "0 Active vehicle patrol units (Crew)"

but no errors. There haven't been any changes to the configs since I moved to 1.63.0.125548 and it was working on this version. Kind of at a loss for how to try and fix this.

 

Never mind, seems I had cleared the custom spawns while troubleshooting something else. Added them back and all seems to be working.

Link to comment
Share on other sites

My rpt log can be viewed here

http://pastebin.com/AK4U4sP8

 

 

Can anyone assist with this line 17 error, I believe its stopping my WAi from spawning - my static mission is fine but the random missions are no longer available.

My Server is on 1.0.5.1 - 1.63/125548

 

Im guessing that is the likey cause ( the update ) ... if anyone hasa  work around that would be cool

 

Thanks

Nige

Link to comment
Share on other sites

I recieve this errors relating to spawns in my server files, anyone know a fix for some of them?

20:37:19 Error in expression <Magazine _magazine;};
_para addBackpack _aipack;
{_para addMagazine _x} forEach >
20:37:19 Error position: <_aipack;
{_para addMagazine _x} forEach >
20:37:19 Error Undefined variable in expression: _aipack
20:37:19 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 137
20:37:21 Error in expression <Magazine _magazine;};
_para addBackpack _aipack;
{_para addMagazine _x} forEach >
20:37:21 Error position: <_aipack;
{_para addMagazine _x} forEach >
20:37:21 Error Undefined variable in expression: _aipack
20:37:21 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 137
20:37:23 Error in expression <Magazine _magazine;};
_para addBackpack _aipack;
{_para addMagazine _x} forEach >
20:37:23 Error position: <_aipack;
{_para addMagazine _x} forEach >
20:37:23 Error Undefined variable in expression: _aipack
20:37:23 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 137
20:37:23 "PDEATH: Player Died 76561198115990538"
20:37:24 Error in expression <Magazine _magazine;};
_para addBackpack _aipack;
{_para addMagazine _x} forEach >
20:37:24 Error position: <_aipack;
{_para addMagazine _x} forEach >
20:37:24 Error Undefined variable in expression: _aipack
20:37:24 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 137
Link to comment
Share on other sites

i have heli patrols and para bandits over my airfields and they are all working fine still no problems i added some extra bandit spawns on skalisty island and smaller heli patrols around the map and they all worked fine yesterday. today i updated to steam and now just the heli patrols and paras work and all my other custom spawns wont work i tried everything reloading a fresh pbo file and loading bit by bit but nothing works anyone having this issue ??

Link to comment
Share on other sites

Has anyone worked out how to make it so you can define areas that the missions shouldn't spawn at? Like near trader cities and stuff.

 

Also I've replaced the crashed C-130 mission with a crashed blackhawk if anyone wants a copy of it, not too complex, just PM me and I'll put it up on Google drive for you. Had so many issues with players getting stuck on that stupid wreck.

Link to comment
Share on other sites

Has anyone worked out how to make it so you can define areas that the missions shouldn't spawn at? Like near trader cities and stuff.

 

Also I've replaced the crashed C-130 mission with a crashed blackhawk if anyone wants a copy of it, not too complex, just PM me and I'll put it up on Google drive for you. Had so many issues with players getting stuck on that stupid wreck.

it is possible for me?

Link to comment
Share on other sites

So using the Wicked AI system script(s) that I have installed inside of my server files i'm trying to create a custom weapon Cache that spawns in my own predifined items. I'm succuesfull in getting the weapon caches to spawn, and by default gear spawns in them because they are using the "ExtraLargeGunBox.sqf" to fill loot inside of them everytime one of them is created. I have modied the script where the gun boxes are created so instead of the code calling "ExtraLargeGunBox.sqf" each time one is created, I call a custom created sqf file by me that fills each box with unique gear to that box. Here is "StaticAmmoBoxes.sqf" where I am creating the boxes at their locations and calloing seperate scripts for each to fill them with gear;

/* Add ammmo boxes to static locations on map and fills it with loot from missionCfg.sqf

creates a ammo box at [0,0,0] then fills it

_box = createVehicle ["BAF_VehicleBox",[0,0,0], [], 0, "CAN_COLLIDE"];
[_box] call spawn_ammo_box;

creates a 2nd ammo box at [1,1,1] then fills it

_box2 = createVehicle ["BAF_VehicleBox",[1,1,1], [], 0, "CAN_COLLIDE"];
[_box2] call spawn_ammo_box;

add custom ammo boxes below this line
*/

/* SECTOR B CUSTOM BOXES */
_box = createVehicle ["BAF_VehicleBox",[6643.02,14211.9,0.00164795], [], 0, "CAN_COLLIDE"]; /*SECTOR B WEAPON SUPPLY BOX*/
[_box] call Sector_B_Weapons;
As you can see I call Sector_B_Weapons, inside of that script i have;
//Extra Large Gun Box

_box = _this select 0;
_box setVariable ["ObjectID","1",true];
_box setVariable ["permaLoot",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_box];

clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;

// GUNS
_box addWeaponCargoGlobal ["M4A1_AIM_camo", 1];
_box addWeaponCargoGlobal ["Pecheneg", 2];
_box addWeaponCargoGlobal ["MG36", 2];
_box addWeaponCargoGlobal ["RPG7V", 1];
_box addWeaponCargoGlobal ["Mk_48_DES_EP1", 1];
_box addWeaponCargoGlobal ["DMR", 3];
_box addWeaponCargoGlobal ["M249_DZ", 2];
_box addWeaponCargoGlobal ["RH_m14", 1];
_box addWeaponCargoGlobal ["RH_m1stsp", 2];
_box addWeaponCargoGlobal ["BAF_AS50_scoped", 1];
_box addWeaponCargoGlobal ["M60A4_EP1", 1];
_box addWeaponCargoGlobal ["BAF_AS50_TWS", 1];
_box addWeaponCargoGlobal ["Mk48_DES_EP1", 1];
_box addWeaponCargoGlobal ["M249_TWS_EP1", 1];
_box addWeaponCargoGlobal ["M110_TWS_EP1", 1];
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1];
_box addWeaponCargoGlobal ["USSR_cheytacM200_sd", 1];

// AMMO
_box addWeaponCargoGlobal ["30Rnd_556x45_Stanag", 40];
_box addWeaponCargoGlobal ["100Rnd_762x54_PK", 6];
_box addWeaponCargoGlobal ["100Rnd_556x45_BetaCMag", 6];
_box addWeaponCargoGlobal ["PG7V", 2];
_box addWeaponCargoGlobal ["20Rnd_762x51_DMR", 16];
_box addWeaponCargoGlobal ["200Rnd_556x45_M249", 16];
_box addWeaponCargoGlobal ["5Rnd_127x99_AS50", 14];
_box addWeaponCargoGlobal ["100Rnd_762x51_M240", 10];
_box addWeaponCargoGlobal ["20Rnd_762x51_B_SCAR", 8];
_box addWeaponCargoGlobal ["USSR_5Rnd_408", 8];

//BACKPACKS
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 3];

But for some reason when I go in-game the box instead spawns 50x M240 Rnds and 50x M249 Rnds. In matter of fact these same two items spawn in every custom box that I create and fill with custom loot on the map, is there a reason for this and could anyone have any idea as of what I am doing wrong here?

 

Thanks.

Link to comment
Share on other sites

I can't get the custom spawns to work properly. I input position and everything as shown by some of you guys. It still fails to work I checked RPT but I could not find error relating to it. 

 

 

//Custom Spawns file//
/*
Custom group spawns Eg.
 
[[953.237,4486.48,0.001], //position
4,  //Number Of units
1,      //Skill level 0-1 or skill array number if using custom skills "Random" for random Skill array.
"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.
] call spawn_group;
 
Place your custom group spawns below
/*
 
[[13671.355, 2892.8167, -1.5258789e-005],
4,
2,
"Random",
4,
"",
"Bandit2_DZ",
"Random"
] call spawn_group; //ground troops
Link to comment
Share on other sites

 

So using the Wicked AI system script(s) that I have installed inside of my server files i'm trying to create a custom weapon Cache that spawns in my own predifined items. I'm succuesfull in getting the weapon caches to spawn, and by default gear spawns in them because they are using the "ExtraLargeGunBox.sqf" to fill loot inside of them everytime one of them is created. I have modied the script where the gun boxes are created so instead of the code calling "ExtraLargeGunBox.sqf" each time one is created, I call a custom created sqf file by me that fills each box with unique gear to that box. Here is "StaticAmmoBoxes.sqf" where I am creating the boxes at their locations and calloing seperate scripts for each to fill them with gear;

/* Add ammmo boxes to static locations on map and fills it with loot from missionCfg.sqf

creates a ammo box at [0,0,0] then fills it

_box = createVehicle ["BAF_VehicleBox",[0,0,0], [], 0, "CAN_COLLIDE"];
[_box] call spawn_ammo_box;

creates a 2nd ammo box at [1,1,1] then fills it

_box2 = createVehicle ["BAF_VehicleBox",[1,1,1], [], 0, "CAN_COLLIDE"];
[_box2] call spawn_ammo_box;

add custom ammo boxes below this line
*/

/* SECTOR B CUSTOM BOXES */
_box = createVehicle ["BAF_VehicleBox",[6643.02,14211.9,0.00164795], [], 0, "CAN_COLLIDE"]; /*SECTOR B WEAPON SUPPLY BOX*/
[_box] call Sector_B_Weapons;
As you can see I call Sector_B_Weapons, inside of that script i have;
//Extra Large Gun Box

_box = _this select 0;
_box setVariable ["ObjectID","1",true];
_box setVariable ["permaLoot",true];
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_box];

clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;

// GUNS
_box addWeaponCargoGlobal ["M4A1_AIM_camo", 1];
_box addWeaponCargoGlobal ["Pecheneg", 2];
_box addWeaponCargoGlobal ["MG36", 2];
_box addWeaponCargoGlobal ["RPG7V", 1];
_box addWeaponCargoGlobal ["Mk_48_DES_EP1", 1];
_box addWeaponCargoGlobal ["DMR", 3];
_box addWeaponCargoGlobal ["M249_DZ", 2];
_box addWeaponCargoGlobal ["RH_m14", 1];
_box addWeaponCargoGlobal ["RH_m1stsp", 2];
_box addWeaponCargoGlobal ["BAF_AS50_scoped", 1];
_box addWeaponCargoGlobal ["M60A4_EP1", 1];
_box addWeaponCargoGlobal ["BAF_AS50_TWS", 1];
_box addWeaponCargoGlobal ["Mk48_DES_EP1", 1];
_box addWeaponCargoGlobal ["M249_TWS_EP1", 1];
_box addWeaponCargoGlobal ["M110_TWS_EP1", 1];
_box addWeaponCargoGlobal ["M110_NVG_EP1", 1];
_box addWeaponCargoGlobal ["USSR_cheytacM200_sd", 1];

// AMMO
_box addWeaponCargoGlobal ["30Rnd_556x45_Stanag", 40];
_box addWeaponCargoGlobal ["100Rnd_762x54_PK", 6];
_box addWeaponCargoGlobal ["100Rnd_556x45_BetaCMag", 6];
_box addWeaponCargoGlobal ["PG7V", 2];
_box addWeaponCargoGlobal ["20Rnd_762x51_DMR", 16];
_box addWeaponCargoGlobal ["200Rnd_556x45_M249", 16];
_box addWeaponCargoGlobal ["5Rnd_127x99_AS50", 14];
_box addWeaponCargoGlobal ["100Rnd_762x51_M240", 10];
_box addWeaponCargoGlobal ["20Rnd_762x51_B_SCAR", 8];
_box addWeaponCargoGlobal ["USSR_5Rnd_408", 8];

//BACKPACKS
_box addBackpackCargoGlobal ["DZ_LargeGunBag_EP1", 3];

But for some reason when I go in-game the box instead spawns 50x M240 Rnds and 50x M249 Rnds. In matter of fact these same two items spawn in every custom box that I create and fill with custom loot on the map, is there a reason for this and could anyone have any idea as of what I am doing wrong here?

 

Thanks.

 

 

hi have you added the box to your;

C:\Users\Home 2\Desktop\dayz_epoch 1051\WAI\missions\missionIni.sqf ?

 

if not that maybe why because it isnt calling your custom crate add this in under the other crates

Sector_B_Weapons= compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\missions\compile\YOURCRATENAME.sqf";

 

replace yourcratename with the name of your sqf file and make sure the sqf in in the right folder

Link to comment
Share on other sites

ekroemer, on 14 Jul 2014 - 7:11 PM, said:

Sorry, I haven't read any WAI specifics about this.

 

DZAI has this feature and looking at DZAI\compile\ai_death.sqf and DZAI\compile\ai_setup_loadout.sqf I assume it should not be complicated. I'd simply try to

  • add _unit addweapon "NVGoggles"; below _unit addweapon _weapon; in compile/SpawnGroup.sqf,
  • add _unit removeWeapon "NVGoggles"; to compile/ai_killed.sqf

and hope they'll be using them.

 

Let us know how this works out.

thank you works well the ai are alot better at night now

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