Jump to content

Wicked AI/Mission system


Markk311

Recommended Posts

I just looked at my log and it seems the crash_spawner mission has an issue:

11:51:20 "WAI: Starting Mission crash_spawner"
11:51:20 "WAI: Mission Crash_Spawner Started At [9951.39,7881.53]"
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
11:51:20   Error position: <select _index;
[_itemType select 0, _ite>
11:51:20   Error Zero divisor
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <
_itemType = _itemTypes select _index;
[_itemType select 0, _itemType select 1, >
11:51:20   Error position: <_itemType select 0, _itemType select 1, >
11:51:20   Error Undefined variable in expression: _itemtype
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 74
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
11:51:20   Error position: <select _index;
[_itemType select 0, _ite>
11:51:20   Error Zero divisor
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
11:51:20   Error position: <select _index;
[_itemType select 0, _ite>
11:51:20   Error Zero divisor
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
11:51:20   Error position: <select _index;
[_itemType select 0, _ite>
11:51:20   Error Zero divisor
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
11:51:20 Error in expression <t 2;
_radius = _this select 3;
 
switch (_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error position: <_iClass) do
{
default
{
 
_item = createV>
11:51:20   Error Undefined variable in expression: _iclass
11:51:20 File z\addons\dayz_code\compile\spawn_loot.sqf, line 9
11:51:20 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
11:51:20   Error position: <select _index;
[_itemType select 0, _ite>
11:51:20   Error Zero divisor
11:51:20 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
The offending lines where the error apparently originates from:
_itemType = _itemTypes select _index;

[_itemType select 0, _itemType select 1, _position, 5] call spawn_loot;

 

 

I guess I'm going to need to remove this mission? 

Link to comment
Share on other sites

Hey guys,

first i still want to know if this is an error:

 

///Use the built in mission system (config file for mission system in mission folder)
ai_mission_sysyem = True;
 
 
And my other question is, is the Z koordinate necessary for the custom spawns ? or can i let it on "0" ?
 
 
 
 
EDIT:
Question above have been solved.
 
the customspawns defined at the customspawn.sqf will spawn at a server restart when ai_mission_sysyem is true ? 
 
Cause i did that and nothing happens:
 
 
 
/*
Custom Chopper Patrol spawn Eg.
[[7100.0,6960.0,0]],    //Position to patrol
[[6500.0,7360.0,0]],             // Position to spawn chopper at
700, //Radius of patrol
10,                     //Number of waypoints to give
"UH1H_DZ",        //Classname of vehicle (make sure it has driver and two gunners)
1 //Skill level of units 
] spawn heli_patrol;
 
Place your heli patrols below
*/
 
 
 
great wishes
flo
Link to comment
Share on other sites

So now i know how to start chopper patrol! :-) But still dont know how is the chopper patrol working. The UH-1H is not firing on me in Armored SUV, i shot and nothing. My mate is flying with black hawk around him, and no fire... is something wrong by me?

 

And NPCs are atacking vodnik. M2 is nice shoting on vodnik.... :-)

Link to comment
Share on other sites

hi getting this error in RPT everything still works just spams SO hard :)

 

_unit = _unitGroup createUnit [_aiskin, [(_position select >
22:31:57   Error position: <createUnit [_aiskin, [(_position select >
22:31:57   Error Type Any, expected Number
22:31:57 File z\addons\dayz_server\WAI\compile\SpawnGroup.sqf, line 53
22:31:57 Error in expression <{
_aiskin = _skin
};

 

anyone know what that is?

 

Thanks

Link to comment
Share on other sites

If anyone has a fully working CustomSpawns.cfg i.e. everything is spawning can they post it please. Think my syntax is out somewhere

 

 

Cheers

 

@BetterDead

 

line 17 crash_spawner.cfg

 

_crashName = getText (configFile >> "CfgVehicles" >> _crashModel >> "displayName"); 

 

is what you should have? and not

 

_crashName = getText (missionconfigFile >> "CfgVehicles" >> _crashModel >> "displayName");

Link to comment
Share on other sites

So now i know how to start chopper patrol! :-) But still dont know how is the chopper patrol working. The UH-1H is not firing on me in Armored SUV, i shot and nothing. My mate is flying with black hawk around him, and no fire... is something wrong by me?

 

And NPCs are atacking vodnik. M2 is nice shoting on vodnik.... :-)

 

Which vodnik? Medical or armed vodnik? 

Link to comment
Share on other sites

So now i know how to start chopper patrol! :-) But still dont know how is the chopper patrol working. The UH-1H is not firing on me in Armored SUV, i shot and nothing. My mate is flying with black hawk around him, and no fire... is something wrong by me?

 

And NPCs are atacking vodnik. M2 is nice shoting on vodnik.... :-)

 

Then tell us pls how u start the Chopper patrol? :)

Link to comment
Share on other sites

Current Version 0.16

  • Adds more options to ammo boxes
  • tweaks to missions
  • Added timeouts to missions
  • Fix ammobox despawn in 1.0.3

 

Wicked AI feature list

 

  • Customizable loadouts for groups.
  • Customizable Static weapon units
  • Customizable Heli patrols
  • Customizable vehicle patrols
  • Customizable helicopter group paradrop
  • Ability to setup custom skill settings
  • Can spawn units in any script in the dayz_server.pbo
  • AI share your info making them more difficult

 

Wicked Mission System  Features (WIP)

 

  • Customizable random vehicles for missions
  • Vehicles save to database only when player gets close
  • Loads easily from AI system. No need for extra install
  • Map markers refresh so JIP players will have them on map
  • Uses wasteland like missions
  • Customizable ammo boxes
  • Missions can timeout if no player is in the area

Setup

ONLY WORKS FOR DAYZ EPOCH CURRENTLY

Download Here (version 0.16)

Setup is easy Put the WAI folder in your main dayz_server directory

 Add above allowConnection = true; in server_monitor.sqf

    [] ExecVM "\z\addons\dayz_server\WAI\init.sqf";
    allowConnection = true;

No need for the killing a hacker fix.

Config files are located in the main WAI folder and main Missions folder.

Setup your custom spawns in Customspawns.sqf

 

This is still a WIP. So try it out and give some feedback on it to help improve the system. The mission system is lacking numbers, but the randomness of vehicles chosen makes up for it. I have had this on my server for a few weeks and everything seems to be running fine even with over 50 AI spawned in with the mission system running. I will post a more detailed setup later as I have no time now. This is running on my clans Epoch server if you want to get a taste before you try it. 69.64.52.14:2312.

 

 

Known issues.

Vehicle drivers are idiots

Not a lot of debugging

 

What is being worked on...

More config options for missions.

Changing format for AI weapon sets to not require mags in array.

 

Early version of paradrop script.

http://www.youtube.com/watch?v=opIUs4AgWXs

 

Info Sharing Test

http://youtu.be/a5G5NTmeWZQ

  •  how to turn on?
  • Heli patrols
  • vehicle patrols
Link to comment
Share on other sites

I addet a costum paraspawn... but when i start the server nothing happens.

When i look into the RPT there are many of following errors...

Any Ideas? :(

 

 

  • 0:05:00 Error in expression <sent = false;
  • {if((isPlayer _x) AND (_x distance [(_position select 0),(_positio>
  •  0:05:00   Error position: <distance [(_position select 0),(_positio>
  •  0:05:00   Error Typ Array, erwartet Zahl
  •  0:05:00 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 33
  •  0:05:10 Error in expression <sent = false;
  • {if((isPlayer _x) AND (_x distance [(_position select 0),(_positio>
  •  0:05:10   Error position: <distance [(_position select 0),(_positio>
  •  0:05:10   Error Typ Array, erwartet Zahl
  •  0:05:10 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 33
Link to comment
Share on other sites

There were quite a few spelling errors in this, so until there is a working version, Ive gone back to sarge ai.

System runs, but nothing spawns. I spent two hours last night just setting up the custom spawns with various coordinates, but nothing ever spawned.

Link to comment
Share on other sites

There were quite a few spelling errors in this, so until there is a working version, Ive gone back to sarge ai.

System runs, but nothing spawns. I spent two hours last night just setting up the custom spawns with various coordinates, but nothing ever spawned.

I also tried

does not generate))

Link to comment
Share on other sites

Hello

I have put this on my server but i dont seem to be able to find any AI.

I run DayZ Chernarus mission system too, is this compatible?

If this compatible, is there any setting i need to change for it to work.

i have them both running and working fine. Only problem is. if the missons are close. the ai will fight. I can't get my spawns to load up. other then that. good to go

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