Jump to content

[Release] Wicked AI 2.2.0


f3cuk

Recommended Posts

hi guys .... at first, super missions! very cool!

but all the boxes despawn to fast for our Player. our bots are hardcore

and the Player dont get it fast enough

where could i Change it?

 

Increase wai_clean_mission_time

Link to comment
Share on other sites

Its in the config file, by default there is 3 coords.. [12.345, 54.321, 0.001] each of these values represents X, Y and Z. And you can use a combination of more than 1 location.

Blacklist = [ [X, Y, Z], [X, Y, Z], [X, Y, Z]];

To get the coords i usually gonto the arma2 editor, place an unit where i want to get the location, save it, then go to your user folder (in your C:, or whatever your disk is), then to the documents folder, arma 2 oa, profile (or other profiles), missions and you should see a sqf file with the name you saved your mission in the editor. Open it. Inside it you will find a block of code, in some of these lines you will see the coords =D or just look for it on youtube, there must be a lot of tutorials =)

 

Cheers, i now how to get the co-ords etc, but that doesnt seem to help, i would have to blacklist the entire non playable area of the terrain, and on miroslavl that's a hell of alot, i dont see how blacklisting will help in this case...

Link to comment
Share on other sites

Noticed a glitch too, if the AI die by any other means than a player killing them and it's a kill mission you can't complete the mission. One way I've seen a couple of times now is a vehicle that spawns in with the mission spawning in one top of a bush or near another object, exploding and taking out most of the AI, the mission then can't be completed.

Link to comment
Share on other sites

Ok so those 2 typos fixed, yet it's still putting them way to far up north out of the playable area...

 

http://cloud-4.steampowered.com/ugc/531745346220955873/C18170749BB2CC6BF029C2ED375EB20B44E5560E/

 

Not sure what's going on here :|

all you need to do is add a check for out of bounds spawning in the find_position.sqf

 

inside the call { section in the inDebug part of code, add something like this

if(worldName == "Miroslavl") 			exitWith { _hasdebug = true; _xLeft = 200; _xRight = 8000; _yTop = 12000; _yBottom = 200; };

but replace 8000 and 12000 with the outer limits minus about 200 for your map, we didn't include this map because it's not included with epoch, that's why they spawn out there

Link to comment
Share on other sites

all you need to do is add a check for out of bounds spawning in the find_position.sqf

 

inside the call { section in the inDebug part of code, add something like this

if(worldName == "Miroslavl") 			exitWith { _hasdebug = true; _xLeft = 200; _xRight = 8000; _yTop = 12000; _yBottom = 200; };

but replace 8000 and 12000 with the outer limits minus about 200 for your map, we didn't include this map because it's not included with epoch, that's why they spawn out there

Thank's i'll give this a try now :)

Link to comment
Share on other sites

My missions keep spawning up north or at Gorka

 

My players are building bases waiting for the missions 

 

Might move back to previous WAI :/

 

Love to use this but the missions just arent random locations

 

Hopefully this will get fixed

There is nothing wrong with the spawn locations of WAI, it works perfectly fine on every other server, perhaps you should check your mission.sqm file and the center marker

Link to comment
Share on other sites

There is nothing wrong with the spawn locations of WAI, it works perfectly fine on every other server, perhaps you should check your mission.sqm file and the center marker

 

I have checked the mission.sqm nothing wrong with the center marker

class Item0
{
	position[]={7839.6055,381.33774,8414.7324};
	name="center";
	type="Empty";
};
Link to comment
Share on other sites

About reporting issues

 

Guys if you have problems with the script, please make sure you provide us with as much details as possible. We are not able to help you when you fail to do so, nor do we feel like trying if you are not. We get that it's frustrating when you can't seem to make things work, but troubleshooting can only happen when we get proper intel.

 

If you have issues, please switch on the debug function (config.sqf) and run for a few hours. Then provide us your server.rpt, your WAI config file and make sure to report ANY chances you have made to the files yourself. Other then that make sure you report your problem in as much detail as possible and also let us know what measures you have taken trying to resolve it yourself.

--

 

@NigeyS: To be sure about the worldname, open init.sqf

Add to top of the file.

diag_log format["WAI: Current world: %1",worldName];
So it looks like

diag_log format["WAI: Current world: %1",worldName];
if(isServer) then {
To your init.sqf and report back with your server.rpt after restarting.
Link to comment
Share on other sites

In addition to my previous post. Please use this form to report your problem.

Please use this form to report problems

[b][size=6](Problem title, e.g. Kill type missions sometimes fail to despawn)[/size][/b]

[b]WAI Version[/b] (E.g. 2.1.4)
[b]World:[/b] (E.g. Taviana 2.0)
[b]Mods:[/b] (E.g. @Overpoch, @Origins, @Epoch1051,)
[b]Installed add-ons[/b] (Especially the ones that spawn AI, E.g. DZMS, EMT, etc.)
[b]Custom loot files[/b] Yes or No
 
[b]Problem description[/b]
Tell us your exact problem in as much details as possible
 
[b]What i tried so far[/b]
Tell us exactly what you have done to try and fix this problem
 
[b]Config file[/b]
[spoiler][code] -- paste config.sqf here --[/code][/spoiler]
 
[b]Server RPT[/b]
[spoiler][code] -- paste arma2oaserver.RPT here --[/code][/spoiler]
 
Link to comment
Share on other sites

I'm considering changing the map marker - I'd like to make the center 50 to 75 meters from the event center, no dot, and increase the circle size.

 

Am I correct that this is done within the mission_init.sqf?

 

Any suggestions on how I should randomize the circle?

 

Not tested, but this should do the trick.

if(isServer) then {
    
    private ["_mines","_difficulty","_mission","_type","_color","_dot","_position","_marker","_name"];

    _position     = _this select 0;
    _difficulty = _this select 1;
    _name        = _this select 2;
    _type        = _this select 3;
    _mines        = _this select 4;
    
    _mission     = count wai_mission_data;
    
    if(debug_mode) then { diag_log("WAI: Starting Mission number " + str(_mission + 1)); };
    
    wai_mission_data = wai_mission_data + [[0,_type,[]]];

    if(wai_enable_minefield && _mines) then {
        call {
            if(_difficulty == "easy")         exitWith {_mines = [_position,20,37,20] call minefield;};
            if(_difficulty == "medium")     exitWith {_mines = [_position,35,52,50] call minefield;};
            if(_difficulty == "hard")         exitWith {_mines = [_position,50,75,100] call minefield;};
            if(_difficulty == "extreme")     exitWith {_mines = [_position,60,90,150] call minefield;};
        };
        wai_mission_data select _mission set [2, _mines];
    };
    
    _marker     = "";
    _dot         = "";
    _color        = "";
    
    call {
        if(_difficulty == "easy")        exitWith {_color = "ColorGreen"};
        if(_difficulty == "medium")        exitWith {_color = "ColorYellow"};
        if(_difficulty == "hard")        exitWith {_color = "ColorRed"};
        if(_difficulty == "extreme")     exitWith {_color = "ColorBlack"};
        _color = _difficulty;
    };
    
    call {
        if(_type == "mainhero")        exitWith { _name = "[B] " + _name; };
        if(_type == "mainbandit")    exitWith { _name = "[H] " + _name; };
        if(_type == "special")        exitWith { _name = "[S] " + _name; };
    };

    [_position, _color, _name, _mission] spawn {

        private["_position","_color","_name","_running","_mission","_type","_marker"];

        _position    = [(_this select 0),0,75,0,1,2000,0] call BIS_fnc_findSafePos;
        _color         = _this select 1;
        _name         = _this select 2;
        _mission     = _this select 3;
        _running     = true;
        
        while {_running} do {

            _type    = (wai_mission_data select _mission) select 1;
            
            _marker         = createMarker [_type, _position];
            _marker         setMarkerColor _color;
            _marker         setMarkerShape "ELLIPSE";
            _marker         setMarkerBrush "Solid";
            _marker         setMarkerSize [300,300];
            _marker         setMarkerText _name;

            sleep 1;

            deleteMarker     _marker;

            _running = (typeName (wai_mission_data select _mission) == "ARRAY");

        };
    };
    
    if(debug_mode) then { diag_log("WAI: Mission Data: " + str(wai_mission_data)); };
    
    markerready = true;

    _mission
    
};

Link to comment
Share on other sites

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