WAI 2.1.4 Custom Static Spawn error

Geekin

Valued Member!
I am receiving this in in RPT .. have rem'd out the whole block of static spawn for the area .. others are working same exact layout, but even after rem, still get the error, but dosent hang at load screen after rem
this was working fine on orig server, rebuilt server and copied these over from orig server

EPOCH 1.5.01 chernarus, not overpoch etc .. just basic epoch, and WAI 2.1.4

RPT ERROR
0:24:02 Error in expression <fnc_selectRandom;
};

call {
if (_class == "Random") exitWith { _class = ai_stat>
0:24:02 Error position: <== "Random") exitWith { _class = ai_stat>
0:24:02 Error ==: Type Array, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
0:24:02 File z\addons\dayz_server\WAI\compile\spawn_static.sqf, line 56

the last line is 56 but as I stated above rem // out same error


[[[4542.5859, 8515.6406, 6.1035156e-005],[4039.5637, 8608.4941, 3.0517578e-005],[4053.4392, 8566.3545, 0],[4053.9143, 8597.1846, 3.0517578e-005],[4073.2244, 8621.1992, 0.00012207031]],"M2StaticMG","easy","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;

[[[4202.8267, 8563.4082, 3.0517578e-005],[4159.7104, 8632.5234, 0.049321495],[4255.5474, 8537.8438, 6.1035156e-005],[4332.4717, 8642.876, -3.0517578e-005],[4506.855, 8665.2559, 0]],"M2StaticMG","easy","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;

[[[4448.7974, 8509.8164, 3.0517578e-005],[4537.0313, 8442.0088, -6.1035156e-005],[4485.5308, 8432.2334, 6.1035156e-005],[4398.0488, 8366.9131, -6.1035156e-005],[4330.0146, 8399.8262, 0]],"M2StaticMG","easy","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;

[[[4262.062, 8466.6543, 3.0517578e-005],[4202.0386, 8411.7832, 0],[4246.3252, 8393.4336, 0.078777529],[4246.3252, 8393.4336, 0.078777529]],"M2StaticMG","extreme","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;
 
look in to your WAI config.sqf and search for the line:
PHP:
ai_static_weapons = ["KORD_high_TK_EP1","DSHKM_Ins","M2StaticMG"];    // static guns

it has to be an one dimension array "[]"

ps.: maybe you can post your "ai_static_weapons" line from your config
 
You are looking AT it already .. this is line 56 in the area that is posted above

[[[4262.062, 8466.6543, 3.0517578e-005],[4202.0386, 8411.7832, 0],[4246.3252, 8393.4336, 0.078777529],[4246.3252, 8393.4336, 0.078777529]],"M2StaticMG","extreme","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;

There is some other issue, The rest here is full list all work , and these worked prior .. to moving to new build , something some where that is different all I did was take the old file ad copy to WAI same place as the other was
 
Figured it out , dont know how I did this but was my own bad.. of course LOL

Guess when I edited these the last time, I copied one twice and left off a bracket DOH!o_O:eek::(

I know a lot of peeps looked at this and know one else saw either lol .. it was only when I was changing from all on one line to separated did I realize what I had done..

[[[4262.062, 8466.6543, 3.0517578e-005],[4202.0386, 8411.7832, 0],[4246.3252, 8393.4336, 0.078777529],[4246.3252, 8393.4336, 0.078777529]],"M2StaticMG","extreme","Bandit2_DZ","Bandit", "Random",2,"Random","Random"] call spawn_static;
 
Back
Top