Jump to content

[RELEASE] WAI 2.2.6


JasonTM

Recommended Posts

  On 7/18/2018 at 7:08 PM, JasonTM said:

I haven't tested this, but change this line:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L250

to this:

_acdot setMarkerText format["%1 Claim Timeout [%2]",(_acArray select 1),_leftTime];

 

Expand  

Super....yes that works thank you so much Jason now i can extend the timeout time and should stop players from placing markers again!

Fantastic work :)

Link to comment
Share on other sites

Hey All,

I am getting some warnings and errors in WAI when the server starts up (see spoiler below). Does anyone know how I might fix these errors?

Thanks!

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 7/20/2018 at 11:05 PM, Vladick said:

Hey All,

I am getting some warnings and errors in WAI when the server starts up (see spoiler below). Does anyone know how I might fix these errors?

Thanks!

  Reveal hidden contents

 

Expand  

SVD_DZ error means you're using old version (at least, the loot table is old) for 1.0.6.1.
"Error Undefined variable in expression: _num_pistols" also means your mission data is old.

use newer version. 

Link to comment
Share on other sites

  On 7/21/2018 at 12:21 AM, Schalldampfer said:

SVD_DZ error means you're using old version (at least, the loot table is old) for 1.0.6.1.
"Error Undefined variable in expression: _num_pistols" also means your mission data is old.

use newer version. 

Expand  

Thanks for the reply! Use newer version of what? The Epoch server files or the WAI mission files? Thanks!

Link to comment
Share on other sites

Hello,

installed, everything works fine but the mission announcements are not working i.e. no pop ups at all with radio or not. tried using the previous version remote message sqf but that makes the messages look like the attached picture. any help would be greatly appreciated.

 

Thanks.

IMG_0143.JPG

Link to comment
Share on other sites

  On 7/26/2018 at 3:46 AM, G2K said:

Hello,

installed, everything works fine but the mission announcements are not working i.e. no pop ups at all with radio or not. tried using the previous version remote message sqf but that makes the messages look like the attached picture. any help would be greatly appreciated.

 

Thanks.

IMG_0143.JPG

Expand  

use newer version. and, you need to edit WAI\config.sqf to use radio announcement..
old version is not available with localization with STR_CL_*** 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

i use KeyinCrate so keys will be put inside the crate, i do this so players will be able to unlock a vehicle only when finishing the mission howerver thats not how it works currently the key will be added to the crate right when vehicles are spawned, making possible for players to approach the crate and loot key before completing mission. Shouldn't the keys be added after mission completion together with loot?

Is that how it was intended ? to me and older version of WAI it was how it worked, i am not sure how @JasonTM meant for it to work, if thats how u wanted, ok, however if not please take a look because i am not sure how to do it.

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L80

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/functions.sqf#L225-L229

Link to comment
Share on other sites

i would like to block wai missions near Stary. donu guys have a solution for it?

blacklist.sqf

 

  Quote


call {
    if (toLower worldName == "chernarus") exitWith {wai_blacklist = [
        [[0,16000,0],[1000,-0,0]],                // Left
        [[0,16000,0],[16000.0,14580.3,0]],        // Top
        [[5533.00,8445.00],[6911.00,7063.00]]     // Stary ];
        blacklist = [ [[5533.00,8445.00],[6911.00,7063.00]] // Stary ];
    ];};
    if (toLower worldName == "namalsk") exitWith {wai_blacklist = [];};
    if (toLower worldName == "panthera") exitWith {wai_blacklist = [];};
    if (toLower worldName == "tavi") exitWith {wai_blacklist = [];};
    if (toLower worldName == "lingor") exitWith {wai_blacklist = [];};
    if (toLower worldName == "napf") exitWith {wai_blacklist = [];};
    if (toLower worldName == "smd_sahrani_a2") exitWith {wai_blacklist = [];};
    if (toLower worldName == "sauerland") exitWith {wai_blacklist = [];};
    wai_blacklist = []; diag_log "You are on an unsupported map! No blacklist available."; //default if nothing above matches
};

diag_log "WAI: blacklist Loaded";
 

Expand  

 

Link to comment
Share on other sites

  On 8/9/2018 at 12:14 AM, SmokeyBR said:

i use KeyinCrate so keys will be put inside the crate, i do this so players will be able to unlock a vehicle only when finishing the mission howerver thats not how it works currently the key will be added to the crate right when vehicles are spawned, making possible for players to approach the crate and loot key before completing mission. Shouldn't the keys be added after mission completion together with loot?

Is that how it was intended ? to me and older version of WAI it was how it worked, i am not sure how @JasonTM meant for it to work, if thats how u wanted, ok, however if not please take a look because i am not sure how to do it.

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L80

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/functions.sqf#L225-L229

Expand  

I wrote it like this out of convenience. I didn't think it would be an issue because players tend to wait until all of the ai are dead before approaching the crate. The original way placed the vehicle objects at the end of the dynamic crate.

https://github.com/f3cuk/WICKED-AI/blob/master/WAI/missions/bandit/ikea_convoy.sqf#L63

I can change it back to that method easy enough. Let me know if you want this.

 

Link to comment
Share on other sites

  On 8/9/2018 at 8:40 AM, daryl922 said:

i would like to block wai missions near Stary. donu guys have a solution for it?

blacklist.sqf

 

 

Expand  

Do it like this...

call {
    if (toLower worldName == "chernarus") exitWith {wai_blacklist = [
        [[0,16000,0],[1000,-0,0]],                // Left
        [[0,16000,0],[16000.0,14580.3,0]],        // Top
	[getMarkerPos "Tradercitystary",500]	// Prevent missions from spawning within 500 meters of Stary trader
    ];};
    if (toLower worldName == "namalsk") exitWith {wai_blacklist = [];};
    if (toLower worldName == "panthera") exitWith {wai_blacklist = [];};
    if (toLower worldName == "tavi") exitWith {wai_blacklist = [];};
    if (toLower worldName == "lingor") exitWith {wai_blacklist = [];};
    if (toLower worldName == "napf") exitWith {wai_blacklist = [];};
    if (toLower worldName == "smd_sahrani_a2") exitWith {wai_blacklist = [];};
    if (toLower worldName == "sauerland") exitWith {wai_blacklist = [];};
    wai_blacklist = []; diag_log "You are on an unsupported map! No blacklist available."; //default if nothing above matches
};

diag_log "WAI: blacklist Loaded";

This will prevent missions from spawning within a 500 meter radius around the Stary trader. You can change the 500 to whatever you want.

You can use different methods for creating blacklist entries.

blacklistPos (Optional): List of blacklisted areas in format [area1, area2, area3... areaN] (Default: []). Area could be one of:

    Array - in format [topLeftCorner, bottomRightCorner] - top and bottom coordinates of blacklisted area
    Object - trigger area
    String - marker area
    Location - location
    Array - array in format [center, distance] or [center, [a, b, angle, rect]] or [center, [a, b, angle, rect, height]]

https://community.bistudio.com/wiki/BIS_fnc_findSafePos

Link to comment
Share on other sites

  On 8/12/2018 at 12:32 PM, JasonTM said:

I wrote it like this out of convenience. I didn't think it would be an issue because players tend to wait until all of the ai are dead before approaching the crate. The original way placed the vehicle objects at the end of the dynamic crate.

https://github.com/f3cuk/WICKED-AI/blob/master/WAI/missions/bandit/ikea_convoy.sqf#L63

I can change it back to that method easy enough. Let me know if you want this.

 

Expand  

i have seen players abusing this... the only way i would know how to do it, its going back to the old way, which would require to edit every mission with vehicle being spawned like u showed. I thought a better way might be possible without having to make so many adjustments.

If thats the only way possible and only doing it because i asked dont bother with it then, since it seems im the only one bothered by it. thank you i do love the changes you made.

Link to comment
Share on other sites

  On 8/16/2018 at 4:37 AM, SmokeyBR said:

i have seen players abusing this... the only way i would know how to do it, its going back to the old way, which would require to edit every mission with vehicle being spawned like u showed. I thought a better way might be possible without having to make so many adjustments.

If thats the only way possible and only doing it because i asked dont bother with it then, since it seems im the only one bothered by it. thank you i do love the changes you made.

Expand  

I already made the changes on a test server and it is not that much of a bother. There are not that many current missions with vehicles. I will post the code tomorrow when I get time.

Link to comment
Share on other sites

Help

Server,rpt

 

  Quote

19:52:01 "WAI: AI Config File Loaded"
19:52:01 Error in expression <rver\WAI\configs\blacklist.sqf"
call {
if (toLower worldName == "chernarus") >
19:52:01   Error position: <f (toLower worldName == "chernarus") >
19:52:01   Error Missing ;
19:52:01 File z\addons\dayz_server\WAI\configs\blacklist.sqf, line 2
19:52:01 Error in expression <rver\WAI\configs\blacklist.sqf"
call {
if (toLower worldName == "chernarus") >
19:52:01   Error position: <f (toLower worldName == "chernarus") >
19:52:01   Error Missing ;
19:52:01 File z\addons\dayz_server\WAI\configs\blacklist.sqf, line 2
19:52:01 "WAI: Initializing missions"
19:52:01 Error in expression <\dayz_server\WAI\configs\blacklist.sqf"
call {
if (toLower worldName == "cher>
19:52:01   Error position: <call {
if (toLower worldName == "cher>
19:52:01   Error Generic error in expression
19:52:01 File z\addons\dayz_server\WAI\configs\blacklist.sqf, line 1
19:52:01 "WAI: Overpoch Config File Loaded"

Expand  

blacklist.sqf

  Quote

call {
    if (toLower worldName == "chernarus") exitWith {wai_blacklist = [
        [[0,16000,0],[1000,-0,0]],                // Left
        [[0,16000,0],[16000.0,14580.3,0]],        // Top
    [getMarkerPos "Tradercitystary",500]    // Prevent missions from spawning within 500 meters of Stary trader
    ];};
    if (toLower worldName == "namalsk") exitWith {wai_blacklist = [];};
    if (toLower worldName == "panthera") exitWith {wai_blacklist = [];};
    if (toLower worldName == "tavi") exitWith {wai_blacklist = [];};
    if (toLower worldName == "lingor") exitWith {wai_blacklist = [];};
    if (toLower worldName == "napf") exitWith {wai_blacklist = [];};
    if (toLower worldName == "smd_sahrani_a2") exitWith {wai_blacklist = [];};
    if (toLower worldName == "sauerland") exitWith {wai_blacklist = [];};
    wai_blacklist = []; diag_log "You are on an unsupported map! No blacklist available."; //default if nothing above matches
};

diag_log "WAI: blacklist Loaded";

Expand  

 

Link to comment
Share on other sites

Just came to the realization just now that missions in the BANDIT folder are FOR BANDITS, meaning they spawn HERO AI. I spent way more time than I'd like to admit disabling the wrong missions only to have the ones I thought I was disabling be the only ones spawning. Ugh!

Scratch that, it seems no matter what I do it wants to only spawn hero missions.

Well, it seems to be working for now.

Link to comment
Share on other sites

  • 2 weeks later...
  On 9/5/2018 at 8:33 PM, JakeQue said:

Is there any way of customising the messages that come in into a nicer style? I've seen some servers with boxes around the server announcements and it looks nice!

Expand  

Most of them using hints. You can look that up here: https://community.bistudio.com/wiki/hint
It's easy to do. It's somehow like doing a debug monitor.

You can also use something like my function:

But you would have to update some things yourself or wait or my update in case you want to use it and have no clue.

Link to comment
Share on other sites

  • 1 month later...

17:02:06 "<infiSTAR.de> LockUnlockVehicle: GAZ_Vodnik_HMG UNLOCKED @114040 [11488.1,11333.9,3.05176e-005]"
17:02:37 "WAI: Minefield Warning Owner 11"
17:02:41 "WAI: Minefield Warning Owner 8"
17:03:10 Error in expression <    = getArray (configFile >> "cfgWeapons" >> _weapon >> "magazines");

if (count _>
17:03:10   Error position: <>> _weapon >> "magazines");

if (count _>
17:03:10   Error >>: Type Array, expected String
17:03:10 File z\addons\dayz_server\WAI\compile\functions.sqf, line 8

Link to comment
Share on other sites

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



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