Jump to content

[Release] Wicked AI 2.2.0


f3cuk

Recommended Posts

Getting this error with the latest version

13:36:49 Error in expression <kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error position: <"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error Missing ]
13:36:49 File z\addons\dayz_server\WAI\config.sqf, line 157
13:36:49 Error in expression <kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error position: <"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error Missing ]
13:36:49 File z\addons\dayz_server\WAI\config.sqf, line 157

My Config - Around the error

// Vehicle arrays
		armed_vehicle 				= ["Pickup_PK_TK_GUE_EP1","Pickup_PK_GUE_DZE","ArmoredSUV_PMC_DZE","BRDM2_HQ_TK_GUE_EP1","BTR40_MG_TK_gue_EP1","BTR40_MG_TK_INS_EP1","BAF_Jackal2_L2A1_w","Vodnik_DZ","LandRover_MG_TK_EP1_DZE","LandRover_Special_CZ_EP1_DZE","HMMWV_Armored","HMMWV_M1151_M2_CZ_DES_EP1_DZE","HMMWV_M998A2_SOV_DES_EP1_DZE"];
		armed_chopper 				= ["UH1Y_DZE","UH1H_DZE","UH1H_TK_EP1","UH1H_TK_GUE_EP1","Mi17_UN_CDF_EP1","Mi17_DZE","Mi17_CDF","Mi17_Ins","Mi17_TK_EP1","MH60S_DZE","UH60M_EP1_DZE","CH_47F_EP1_DZE"];
		civil_chopper 				= ["AH6X_DZ","BAF_Merlin_DZE","MH6J_DZ","Mi17_Civilian_DZ"];
		military_unarmed 			= ["GAZ_Vodnik_MedEvac","HMMWV_Ambulance","HMMWV_Ambulance_CZ_DES_EP1","HMMWV_DES_EP1","HMMWV_DZ","HMMWV_M1035_DES_EP1","LandRover_CZ_EP1","LandRover_TK_CIV_EP1","UAZ_CDF","UAZ_INS","UAZ_RU","UAZ_Unarmed_TK_CIV_EP1","UAZ_Unarmed_TK_EP1","UAZ_Unarmed_UN_EP1"];
		cargo_trucks 				= ["MTVR","MtvrRefuel","MtvrReammo","MtvrRepair","Uralopen_CDF","Ural_CDF","UralRepair_CDF","UralRefuel_CDF","UralSupply_TK_EP1","UralReammo_CDF","UralSalvage_TK_EP1","Kamaz","KamazOpen","KamazReammo","KamazRepair","KamazRefuel","V3S_Gue","V3S_Open_TK_EP1","V3S_Refuel_TK_GUE_EP1_DZ","Ikarus_TK_CIV_EP1","TowingTractor"];
		refuel_trucks				= ["MTVR","MtvrRefuel","MtvrReammo","MtvrRepair","Uralopen_CDF","Ural_CDF","UralRepair_CDF","UralRefuel_CDF","UralSupply_TK_EP1","UralReammo_CDF","UralSalvage_TK_EP1","Kamaz","KamazOpen","KamazReammo","KamazRepair","KamazRefuel","V3S_Gue","V3S_Open_TK_EP1","V3S_Refuel_TK_GUE_EP1_DZ","Ikarus_TK_CIV_EP1","TowingTractor"];
		civil_vehicles 				= ["hilux1_civil_1_open","hilux1_civil_2_covered","hilux1_civil_3_open_EP1","SUV_Blue","SUV_Camo","SUV_Charcoal","SUV_Green","SUV_Orange","SUV_Pink","SUV_Red","SUV_Silver","SUV_TK_CIV_EP1","SUV_White","SUV_Yellow"];

		// Dynamic box array
		crates_large				= ["USVehicleBox","RUVehicleBox","TKVehicleBox_EP1"];
		crates_medium				= ["USBasicWeaponsBox","RUBasicWeaponsBox","USSpecialWeaponsBox","USSpecialWeapons_EP1","RUSpecialWeaponsBox","SpecialWeaponsBox","TKSpecialWeapons_EP1","CZBasicWeapons_EP1","UNBasicWeapons_EP1"];
		crates_small				= ["GuerillaCacheBox","RULaunchersBox","RUBasicAmmunitionBox","RUOrdnanceBox","USBasicAmmunitionBox","USLaunchersBox","USOrdnanceBox","USOrdnanceBox_EP1","USLaunchers_EP1","USBasicWeapons_EP1","USBasicAmmunitionBox_EP1","UNBasicAmmunitionBox_EP1","TKOrdnanceBox_EP1","TKLaunchers_EP1","TKBasicAmmunitionBox_EP1"," GuerillaCacheBox_EP1","GERBasicWeapons_EP1"];

		crate_weapons_buildables	= [["ChainSaw","ItemJerryMixed"],["ChainSawB","ItemJerryMixed"],["ChainSawG","ItemJerryMixed"],["ChainSawP","ItemJerryMixed"],["ChainSawR","ItemJerryMixed"]];
		
		crate_tools					= ["ItemKeyKit","Binocular","Binocular_Vector","ItemCompass","ItemCrowbar","ItemEtool","ItemFishingPole","ItemFlashlightRed","ItemGPS","ItemHatchet_DZE","ItemKnife","ItemMachete","ItemMatchbox_DZE","ItemToolbox","NVGoggles"];
		crate_tools_buildable		= ["ItemToolbox","ItemEtool","ItemCrowbar","ItemKnife"];
		crate_tools_sniper			= ["ItemCompass","Binocular","Binocular_Vector","NVGoggles","ItemGPS"];

		crate_items					= ["FoodCanFrankBeans","FoodCanPasta","FoodCanSardines","FoodchickenCooked","FoodmuttonCooked","FoodrabbitCooked","ItemTroutCooked","ItemTunaCooked","ItemSeaBassCooked","ItemAntibiotic","ItemBloodbag","ItemEpinephrine","ItemHeatPack","ItemMorphine","CinderBlocks","ItemCanvas","ItemComboLock","ItemLightBulb","ItemLockbox","ItemSandbag"];
		crate_items_high_value		= ["ItemVault","30m_plot_kit","ItemHotwireKit"];
		crate_items_food			= ["ItemWaterbottle","FoodNutmix","FoodPistachio","FoodMRE","ItemSodaOrangeSherbet","ItemSodaRbull","ItemSodaR4z0r","ItemSodaMdew","ItemSodaPepsi","ItemSodaCoke","FoodbaconCooked","FoodCanBakedBeans","FoodCanFrankBeans","FoodCanPasta","FoodCanSardines","FoodchickenCooked","FoodmuttonCooked","FoodrabbitCooked","ItemTroutCooked","ItemTunaCooked","ItemSeaBassCooked"];
		crate_items_buildables		= ["forest_large_net_kit","cinder_garage_kit","ItemSandbagExLarge5X","park_bench_kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSandbag",10],["MortarBucket",10],"Cinder_wall_kit"];
		
		crate_items_vehicle_repair	= ["PartEngine","PartFueltank","PartGeneric","PartGlass","PartVRotor","PartWheel"];
		crate_items_medical			= ["ItemWaterbottle","ItemAntibiotic","ItemBloodbag","ItemEpinephrine","ItemHeatPack","ItemMorphine","ItemBandage","FoodCanFrankBeans","FoodCanPasta"];
		crate_items_chainbullets	= ["2000Rnd_762x51_M134","200Rnd_762x51_M240","100Rnd_127x99_M2","150Rnd_127x107_DSHKM"];
		crate_items_sniper			= [["ItemPainkiller",5],"Skin_Sniper1_DZ","Skin_CZ_Soldier_Sniper_EP1_DZ","Skin_GUE_Soldier_Sniper_DZ"];
		crate_items_president		= ["ItemDocument","ItemBriefcase100oz"];

		crate_backpacks_all			= ["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_Czech_Vest_Puch","DZ_TerminalPack_EP1","DZ_ALICE_Pack_EP1","DZ_TK_Assault_Pack_EP1","DZ_CompactPack_EP1","DZ_British_ACU","DZ_GunBag_EP1","DZ_CivilBackpack_EP1","DZ_Backpack_EP1","DZ_LargeGunBag_EP1"];
		crate_backpacks_large		= ["DZ_GunBag_EP1","DZ_Backpack_EP1","DZ_LargeGunBag_EP1","DZ_CivilBackpack_EP1"];

		crate_random				= [crate_items,crate_items_food,crate_items_buildables,crate_items_vehicle_repair,crate_items_medical,crate_items_chainbullets];

};  

Link to comment
Share on other sites

Getting this error with the latest version

13:36:49 Error in expression <kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error position: <"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error Missing ]
13:36:49 File z\addons\dayz_server\WAI\config.sqf, line 157
13:36:49 Error in expression <kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error position: <"ItemComboLock","ItemLockbox",["ItemSand>
13:36:49   Error Missing ]
13:36:49 File z\addons\dayz_server\WAI\config.sqf, line 157

My Config - Around the error

// Vehicle arrays
		armed_vehicle 				= ["Pickup_PK_TK_GUE_EP1","Pickup_PK_GUE_DZE","ArmoredSUV_PMC_DZE","BRDM2_HQ_TK_GUE_EP1","BTR40_MG_TK_gue_EP1","BTR40_MG_TK_INS_EP1","BAF_Jackal2_L2A1_w","Vodnik_DZ","LandRover_MG_TK_EP1_DZE","LandRover_Special_CZ_EP1_DZE","HMMWV_Armored","HMMWV_M1151_M2_CZ_DES_EP1_DZE","HMMWV_M998A2_SOV_DES_EP1_DZE"];
		armed_chopper 				= ["UH1Y_DZE","UH1H_DZE","UH1H_TK_EP1","UH1H_TK_GUE_EP1","Mi17_UN_CDF_EP1","Mi17_DZE","Mi17_CDF","Mi17_Ins","Mi17_TK_EP1","MH60S_DZE","UH60M_EP1_DZE","CH_47F_EP1_DZE"];
		civil_chopper 				= ["AH6X_DZ","BAF_Merlin_DZE","MH6J_DZ","Mi17_Civilian_DZ"];
		military_unarmed 			= ["GAZ_Vodnik_MedEvac","HMMWV_Ambulance","HMMWV_Ambulance_CZ_DES_EP1","HMMWV_DES_EP1","HMMWV_DZ","HMMWV_M1035_DES_EP1","LandRover_CZ_EP1","LandRover_TK_CIV_EP1","UAZ_CDF","UAZ_INS","UAZ_RU","UAZ_Unarmed_TK_CIV_EP1","UAZ_Unarmed_TK_EP1","UAZ_Unarmed_UN_EP1"];
		cargo_trucks 				= ["MTVR","MtvrRefuel","MtvrReammo","MtvrRepair","Uralopen_CDF","Ural_CDF","UralRepair_CDF","UralRefuel_CDF","UralSupply_TK_EP1","UralReammo_CDF","UralSalvage_TK_EP1","Kamaz","KamazOpen","KamazReammo","KamazRepair","KamazRefuel","V3S_Gue","V3S_Open_TK_EP1","V3S_Refuel_TK_GUE_EP1_DZ","Ikarus_TK_CIV_EP1","TowingTractor"];
		refuel_trucks				= ["MTVR","MtvrRefuel","MtvrReammo","MtvrRepair","Uralopen_CDF","Ural_CDF","UralRepair_CDF","UralRefuel_CDF","UralSupply_TK_EP1","UralReammo_CDF","UralSalvage_TK_EP1","Kamaz","KamazOpen","KamazReammo","KamazRepair","KamazRefuel","V3S_Gue","V3S_Open_TK_EP1","V3S_Refuel_TK_GUE_EP1_DZ","Ikarus_TK_CIV_EP1","TowingTractor"];
		civil_vehicles 				= ["hilux1_civil_1_open","hilux1_civil_2_covered","hilux1_civil_3_open_EP1","SUV_Blue","SUV_Camo","SUV_Charcoal","SUV_Green","SUV_Orange","SUV_Pink","SUV_Red","SUV_Silver","SUV_TK_CIV_EP1","SUV_White","SUV_Yellow"];

		// Dynamic box array
		crates_large				= ["USVehicleBox","RUVehicleBox","TKVehicleBox_EP1"];
		crates_medium				= ["USBasicWeaponsBox","RUBasicWeaponsBox","USSpecialWeaponsBox","USSpecialWeapons_EP1","RUSpecialWeaponsBox","SpecialWeaponsBox","TKSpecialWeapons_EP1","CZBasicWeapons_EP1","UNBasicWeapons_EP1"];
		crates_small				= ["GuerillaCacheBox","RULaunchersBox","RUBasicAmmunitionBox","RUOrdnanceBox","USBasicAmmunitionBox","USLaunchersBox","USOrdnanceBox","USOrdnanceBox_EP1","USLaunchers_EP1","USBasicWeapons_EP1","USBasicAmmunitionBox_EP1","UNBasicAmmunitionBox_EP1","TKOrdnanceBox_EP1","TKLaunchers_EP1","TKBasicAmmunitionBox_EP1"," GuerillaCacheBox_EP1","GERBasicWeapons_EP1"];

		crate_weapons_buildables	= [["ChainSaw","ItemJerryMixed"],["ChainSawB","ItemJerryMixed"],["ChainSawG","ItemJerryMixed"],["ChainSawP","ItemJerryMixed"],["ChainSawR","ItemJerryMixed"]];
		
		crate_tools					= ["ItemKeyKit","Binocular","Binocular_Vector","ItemCompass","ItemCrowbar","ItemEtool","ItemFishingPole","ItemFlashlightRed","ItemGPS","ItemHatchet_DZE","ItemKnife","ItemMachete","ItemMatchbox_DZE","ItemToolbox","NVGoggles"];
		crate_tools_buildable		= ["ItemToolbox","ItemEtool","ItemCrowbar","ItemKnife"];
		crate_tools_sniper			= ["ItemCompass","Binocular","Binocular_Vector","NVGoggles","ItemGPS"];

		crate_items					= ["FoodCanFrankBeans","FoodCanPasta","FoodCanSardines","FoodchickenCooked","FoodmuttonCooked","FoodrabbitCooked","ItemTroutCooked","ItemTunaCooked","ItemSeaBassCooked","ItemAntibiotic","ItemBloodbag","ItemEpinephrine","ItemHeatPack","ItemMorphine","CinderBlocks","ItemCanvas","ItemComboLock","ItemLightBulb","ItemLockbox","ItemSandbag"];
		crate_items_high_value		= ["ItemVault","30m_plot_kit","ItemHotwireKit"];
		crate_items_food			= ["ItemWaterbottle","FoodNutmix","FoodPistachio","FoodMRE","ItemSodaOrangeSherbet","ItemSodaRbull","ItemSodaR4z0r","ItemSodaMdew","ItemSodaPepsi","ItemSodaCoke","FoodbaconCooked","FoodCanBakedBeans","FoodCanFrankBeans","FoodCanPasta","FoodCanSardines","FoodchickenCooked","FoodmuttonCooked","FoodrabbitCooked","ItemTroutCooked","ItemTunaCooked","ItemSeaBassCooked"];
		crate_items_buildables		= ["forest_large_net_kit","cinder_garage_kit","ItemSandbagExLarge5X","park_bench_kit","ItemComboLock",["CinderBlocks",25]"ItemComboLock","ItemLockbox",["ItemSandbag",10],["MortarBucket",10],"Cinder_wall_kit"];
		
		crate_items_vehicle_repair	= ["PartEngine","PartFueltank","PartGeneric","PartGlass","PartVRotor","PartWheel"];
		crate_items_medical			= ["ItemWaterbottle","ItemAntibiotic","ItemBloodbag","ItemEpinephrine","ItemHeatPack","ItemMorphine","ItemBandage","FoodCanFrankBeans","FoodCanPasta"];
		crate_items_chainbullets	= ["2000Rnd_762x51_M134","200Rnd_762x51_M240","100Rnd_127x99_M2","150Rnd_127x107_DSHKM"];
		crate_items_sniper			= [["ItemPainkiller",5],"Skin_Sniper1_DZ","Skin_CZ_Soldier_Sniper_EP1_DZ","Skin_GUE_Soldier_Sniper_DZ"];
		crate_items_president		= ["ItemDocument","ItemBriefcase100oz"];

		crate_backpacks_all			= ["DZ_Patrol_Pack_EP1","DZ_Assault_Pack_EP1","DZ_Czech_Vest_Puch","DZ_TerminalPack_EP1","DZ_ALICE_Pack_EP1","DZ_TK_Assault_Pack_EP1","DZ_CompactPack_EP1","DZ_British_ACU","DZ_GunBag_EP1","DZ_CivilBackpack_EP1","DZ_Backpack_EP1","DZ_LargeGunBag_EP1"];
		crate_backpacks_large		= ["DZ_GunBag_EP1","DZ_Backpack_EP1","DZ_LargeGunBag_EP1","DZ_CivilBackpack_EP1"];

		crate_random				= [crate_items,crate_items_food,crate_items_buildables,crate_items_vehicle_repair,crate_items_medical,crate_items_chainbullets];

};  

I don't see any errors there, can you post the whole config instead of half of it please? :)

 

Nevermind I spot it

 

["CinderBlocks",25]"ItemComboLock" you're missing a comma here

Edited by Jossy
Link to comment
Share on other sites

Hi all!

please tell me what am I doing wrong

 

I editing mission sniper_extraction.sqf

add:

//Troops
_rndnum = 4 + round (random 3);
[[_position select 0 + 10,_position select 1 + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 10,_position select 1 - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 30,_position select 1 + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 30,_position select 1 - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 30,_position select 1 - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 30,_position select 1 + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

error RPT:

10:42:35 "WAI: [Mission:[Bandit] Sniper Extraction]: Starting... [5655.92,13857.1,0]"
10:42:35 Error in expression <(floor(random 2) == 1) then { 
_pos_x = _pos_x - (5 + random(25));
} else {
_pos>
10:42:35 Error position: <_pos_x - (5 + random(25));
} else {
_pos>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 50
10:42:35 Error in expression <y - (5 + random(25));
} else {
_pos_y = _pos_y + (5 + random(25));
};
};

for "_>
10:42:35 Error position: <_pos_y + (5 + random(25));
};
};

for "_>
10:42:35 Error Undefined variable in expression: _pos_y
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 58
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <num = 4 + round (random 3);
[[_position select 0 + 10,_position select 1 + 10,0]>
10:42:35 Error position: <select 0 + 10,_position select 1 + 10,0]>
10:42:35 Error Zero divisor
10:42:35 File z\addons\dayz_server\WAI\missions\bandit\sniper_extraction.sqf, line 20
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">

10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <);

if(_pos_z == 0) then {
[_unitGroup,[_pos_x,_pos_y,_pos_z],_skill] spawn grou>
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],_skill] spawn grou>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 205
10:42:35 "WAI: Spawned a group of 5 AI (Hero) at [<null>,<null>,0]"
10:42:35 Error in expression <x - (5 + random(25));
} else {
_pos_x = _pos_x + (5 + random(25));
};	

if(flo>
10:42:35 Error position: <_pos_x + (5 + random(25));
};	

if(flo>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 52
10:42:35 Error in expression <(floor(random 2) == 1) then { 
_pos_y = _pos_y - (5 + random(25));
} else {
_pos>
10:42:35 Error position: <_pos_y - (5 + random(25));
} else {
_pos>
10:42:35 Error Undefined variable in expression: _pos_y
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 56
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 - 10,0]>
10:42:35 Error position: <select 0 - 10,_position select 1 - 10,0]>
10:42:35 Error Zero divisor
10:42:35 File z\addons\dayz_server\WAI\missions\bandit\sniper_extraction.sqf, line 21
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:36 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:36 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:36 Error Undefined variable in expression: _pos_x
10:42:36 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:36 Error in expression <);

 

Help please

Link to comment
Share on other sites

Hi all!

please tell me what am I doing wrong

 

I editing mission sniper_extraction.sqf

add:

//Troops
_rndnum = 4 + round (random 3);
[[_position select 0 + 10,_position select 1 + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 10,_position select 1 - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 30,_position select 1 + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 30,_position select 1 - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 + 30,_position select 1 - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[_position select 0 - 30,_position select 1 + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

error RPT:

10:42:35 "WAI: [Mission:[Bandit] Sniper Extraction]: Starting... [5655.92,13857.1,0]"
10:42:35 Error in expression <(floor(random 2) == 1) then { 
_pos_x = _pos_x - (5 + random(25));
} else {
_pos>
10:42:35 Error position: <_pos_x - (5 + random(25));
} else {
_pos>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 50
10:42:35 Error in expression <y - (5 + random(25));
} else {
_pos_y = _pos_y + (5 + random(25));
};
};

for "_>
10:42:35 Error position: <_pos_y + (5 + random(25));
};
};

for "_>
10:42:35 Error Undefined variable in expression: _pos_y
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 58
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <num = 4 + round (random 3);
[[_position select 0 + 10,_position select 1 + 10,0]>
10:42:35 Error position: <select 0 + 10,_position select 1 + 10,0]>
10:42:35 Error Zero divisor
10:42:35 File z\addons\dayz_server\WAI\missions\bandit\sniper_extraction.sqf, line 20
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">

10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <);

if(_pos_z == 0) then {
[_unitGroup,[_pos_x,_pos_y,_pos_z],_skill] spawn grou>
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],_skill] spawn grou>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 205
10:42:35 "WAI: Spawned a group of 5 AI (Hero) at [<null>,<null>,0]"
10:42:35 Error in expression <x - (5 + random(25));
} else {
_pos_x = _pos_x + (5 + random(25));
};	

if(flo>
10:42:35 Error position: <_pos_x + (5 + random(25));
};	

if(flo>
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 52
10:42:35 Error in expression <(floor(random 2) == 1) then { 
_pos_y = _pos_y - (5 + random(25));
} else {
_pos>
10:42:35 Error position: <_pos_y - (5 + random(25));
} else {
_pos>
10:42:35 Error Undefined variable in expression: _pos_y
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 56
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_mission] call spawn_group;
[[_position select 0 - 10,_position select 1 - 10,0]>
10:42:35 Error position: <select 0 - 10,_position select 1 - 10,0]>
10:42:35 Error Zero divisor
10:42:35 File z\addons\dayz_server\WAI\missions\bandit\sniper_extraction.sqf, line 21
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:35 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:35 Error Undefined variable in expression: _pos_x
10:42:35 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:36 Error in expression <_unit = _unitGroup createUnit [_aiskin,[_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:36 Error position: <_pos_x,_pos_y,_pos_z],[],0,"CAN COLLIDE">
10:42:36 Error Undefined variable in expression: _pos_x
10:42:36 File z\addons\dayz_server\WAI\compile\spawn_group.sqf, line 105
10:42:36 Error in expression <);

 

Help please

Try This

 

//Troops
_rndnum = 4 + round (random 3);
[[(_position select 0) + 10,(_position select 1) + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 10,(_position select 1) - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 10,(_position select 1) - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 10,(_position select 1) + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 30,(_position select 1) + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 30,(_position select 1) - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 30,(_position select 1) - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 30,(_position select 1) + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

Link to comment
Share on other sites

Well I just installed the latest version and all the missions spawn loot just fine once they are finished, if you don't have any RPT errors we can work with then we can't really help, check your files try install fresh etc

Yea, I'm not getting any errors, but I'm still not consistently getting loot either. What you said about God Mode though got me thinking - Could changing this value...

 

// percentage of AI players that must be killed at "crate" missions to be able to trigger completion

wai_kill_percent = 30;

 

Impact whether or not loot is spawning in the crates? Because on mine I have this set much higher than 30%  ... Does loot only spawn when the mission has been flagged complete? 

Link to comment
Share on other sites

12:22:22 File z\addons\dayz_server\WAI\missions\init.sqf, line 73
12:22:23 Error in expression < then { _result = 2; };
if((_currTime - _s_startTime >= _s_missionTime) && (!s_m>
12:22:23   Error position: <_s_startTime >= _s_missionTime) && (!s_m>
12:22:23   Error Undefined variable in expression: _s_starttime

And this is in the mission.init.
if((_currTime - _h_startTime >= _h_missionTime) && (!h_missionrunning)) then { _result = 1; };
		if((_currTime - _b_startTime >= _b_missionTime) && (!b_missionrunning)) then { _result = 2; };
		if((_currTime - _s_startTime >= _s_missionTime) && (!s_missionrunning)) then { _result = 3; };

		if(h_missionrunning) then { _h_startTime = floor(time); };
		if(b_missionrunning) then { _b_startTime = floor(time); };
		if(s_missionrunning) then { _s_startTime = floor(time); };

I uncommented out the // to get the special mission to spawn but now I get no special mission . here is my rpt and the mission.init. not sure what is wrong

Ah in the bunnyrandck mission.sqf I see

_mission     = [_position,"ColorPink","Bunny Ranch","Special",false]  call mission_init;

would I be correct in saying I have to change false to true to get the mission working ?

Edited by wizznall
Link to comment
Share on other sites

Does anyone having also the problem with that random teleporting survivor bot all over the map?

 

Not me. Never seen it either, are you sure it is caused by Wicked AI?

 

12:22:22 File z\addons\dayz_server\WAI\missions\init.sqf, line 73
12:22:23 Error in expression < then { _result = 2; };
if((_currTime - _s_startTime >= _s_missionTime) && (!s_m>
12:22:23   Error position: <_s_startTime >= _s_missionTime) && (!s_m>
12:22:23   Error Undefined variable in expression: _s_starttime

And this is in the mission.init.
if((_currTime - _h_startTime >= _h_missionTime) && (!h_missionrunning)) then { _result = 1; };
		if((_currTime - _b_startTime >= _b_missionTime) && (!b_missionrunning)) then { _result = 2; };
		if((_currTime - _s_startTime >= _s_missionTime) && (!s_missionrunning)) then { _result = 3; };

		if(h_missionrunning) then { _h_startTime = floor(time); };
		if(b_missionrunning) then { _b_startTime = floor(time); };
		if(s_missionrunning) then { _s_startTime = floor(time); };

I uncommented out the // to get the special mission to spawn but now I get no special mission . here is my rpt and the mission.init. not sure what is wrong

Ah in the bunnyrandck mission.sqf I see

_mission     = [_position,"ColorPink","Bunny Ranch","Special",false]  call mission_init;

would I be correct in saying I have to change false to true to get the mission working ?

 

 

Did you uncomment the special missions inside config.sqf?

 

Yea, I'm not getting any errors, but I'm still not consistently getting loot either. What you said about God Mode though got me thinking - Could changing this value...

 

// percentage of AI players that must be killed at "crate" missions to be able to trigger completion

wai_kill_percent = 30;

 

Impact whether or not loot is spawning in the crates? Because on mine I have this set much higher than 30%  ... Does loot only spawn when the mission has been flagged complete? 

 

Yes loot ONLY spawns when the mission objective has been completed (when the "survivors have secured" message pops up). If you haven't had that message there will be no loot inside the crate.

Link to comment
Share on other sites

Try This

 

//Troops
_rndnum = 4 + round (random 3);
[[(_position select 0) + 10,(_position select 1) + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 10,(_position select 1) - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 10,(_position select 1) - 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 10,(_position select 1) + 10,0],_rndnum,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 30,(_position select 1) + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 30,(_position select 1) - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 30,(_position select 1) - 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;
[[(_position select 0) - 30,(_position select 1) + 30,0],1,"extreme","Random",4,"Random","Hero","Random","Hero",_mission] call spawn_group;

Thank you!! It's worked!  :)

Link to comment
Share on other sites

Does anyone having also the problem with that random teleporting survivor bot all over the map?

I have seen an unknown survivor with just a pistol on 2 occasions. Now I think about it both were at or near a mission just after completion, I think. My memory isn't the best TBH.

 

Couldn't see it being related to the missions, until now, which is why I've said nothing.

 

Could it be the check for position thing? or maybe in clearing any remaining ai something funky happens?

Link to comment
Share on other sites

How can I make Custom Boxes on missions?

 

old WAI in file missionIni.sqf:

//Custom Boxes
Construction_Supply_Box  = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\missions\compile\ConstructionSupplyBox.sqf";
Medical_Supply_Box  = compile preprocessFileLineNumbers "\z\addons\dayz_server\WAI\missions\compile\MedicalSupplyBox.sqf";

....etc

I don't understand how to fix the loot in boxes..

in mission file armed_vehicle.sqf line:

[_crate,0,0,[8,crate_items_chainbullets]] call dynamic_crate;

in config file:

crate_items_chainbullets	= ["2000Rnd_762x51_M134","200Rnd_762x51_M240","100Rnd_127x99_M2","150Rnd_127x107_DSHKM"];

But loot in box:

 

giQOcG0.jpg

 

 

 

Link to comment
Share on other sites

A funky result from missing a comma and a number.

 

Should be

 

[_crate,0,0,[8,crate_items_chainbullets],0] call dynamic_crate;

 

Where the first number is number of weapons from the ai_wep_random array.

The second number is number of tools from the crate_tools array.

The third number is number of items from the crate_items array.

The forth number is the number of Backpacks from the crate_backpacks_all array.

 

if the number is an array e.g. [8,crate_items_chainbullets] then it takes that number of items from the specified array.

 

All the arrays are in the config file.

Link to comment
Share on other sites

Yes loot ONLY spawns when the mission objective has been completed (when the "survivors have secured" message pops up). If you haven't had that message there will be no loot inside the crate.

Perfect, thanks :) lowing the percentage back to 30 worked like a charm.

Excellent job with this btw - easily the best AI mod out there.

Link to comment
Share on other sites

The Ikea Convoys spawn nothing but Chainsaws? 
I removed the Chainsaw-Call so it looks like this:

if(_complete) then {
[_crate,[4,crate_tools_buildable],[30,crate_items_buildables],4] call dynamic_crate;
};

and now they are completely empty..?

Getting this in my .rpt :

16:18:53 Error in expression <;
_crate addWeaponCargoGlobal [(_weapon select 0),1];
_crate addMagazineCargoGlo>
16:18:53   Error position: <select 0),1];
_crate addMagazineCargoGlo>
16:18:53   Error select: Type String, expected Array,Config entry
16:18:53 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 52
 
Might be because of my slight... adjustment but the missions not spawning anything but Chainsaws just doesn't seem to be right^^
Link to comment
Share on other sites

Yeah, uh, update I guess - I was wrong in my other posts, with the loot crate being empty... because in all red missions (as far as I can tell) there's no loot crate to begin with! We've done multiple green, yellow, and red missions now, and it seems that the red ones always lack a crate!

 

Not gonna lie, I'm new to this whole server setup thing, so.. could anyone tell me how to access the infamous RPT file that i've been hearing about? Or is it a syntax log that server hosts use? Because I host the server on my own...

Link to comment
Share on other sites

Yeah, uh, update I guess - I was wrong in my other posts, with the loot crate being empty... because in all red missions (as far as I can tell) there's no loot crate to begin with! We've done multiple green, yellow, and red missions now, and it seems that the red ones always lack a crate!

 

Not gonna lie, I'm new to this whole server setup thing, so.. could anyone tell me how to access the infamous RPT file that i've been hearing about? Or is it a syntax log that server hosts use? Because I host the server on my own...

The report file is a log, you can open it with a text editor such as notepad. It is located in the instance folder that you are running, e.g. C:\Program Files (x86)\Steam\SteamApps\common\arma 2 operation arrowhead\instance_24_Napf\arma2oaserver.RPT

Link to comment
Share on other sites

Does anyone having also the problem with that random teleporting survivor bot all over the map?

Yup I have him on my server. He teleports in with no weapon, turns his head back and forth and teleports to another location. Other times you can see one running across the map. They are both invincible as well.

Also on occasion loot boxes are spawning in the sky instead of the ground. I have the latest versions.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Advertisement
×
×
  • Create New...