SARGE AI Framework - Public Release

Status
Not open for further replies.
has anyone got stationary AI to work on Lingor? The grid AI works great for us, we even changed the Bandits to Taki skins, and gave all the AI different loadouts.... but that pesky stationary ai is still not showing up.
can you show me how to place new stationary ai?
 
Getting a ton of:

Code:
f(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[ BDole (72.66.112.56:2304) e19d2f86e5a4c816b56b95439b731c2a - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #5 "f "zZombie_Base") then {
 
if(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[BeanieDaddy (68.82.62.70:2304) 30dc74ab3ec03634b807124a501f9c9f - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: ]TPG[ ticks (76.23.113.232:44964) 2e1ecc748a5106233b3225e09c28de49 - #5 "f "zZombie_Base") then {

It's making my scripts.txt over a gb every day and is the only thing in there. Any idea for a filter?
 
i just dont know how to get cords for the right place to spawn them in any help?
My favorite way to plot out where i want to spawn AI is by teleporting to the location using Bluephoenix's admin tools, then i use dayz CC to copy the coordinates from my players menu in the CC or any other Admin tool that you have.
 
like how do i get the cords for the ai to spawn?

Ok found this to be an easy way to get the markers where you want them. Use the Arma 2 editor and place your markers. Save the user mission. Go into your Arma 2 Other Profiles, under missions find your saved mission file and open the folder.
Open the mission.sqf or mission biedi with notepad++ and you will find precise coords, angles and area of your markers.
Input this data into your AI framework and your done. Much easier and more precise than any other method I reckon. Hope this helps.
 
Getting a ton of:

Code:
f(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[ BDole (72.66.112.56:2304) e19d2f86e5a4c816b56b95439b731c2a - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #5 "f "zZombie_Base") then {
 
if(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[BeanieDaddy (68.82.62.70:2304) 30dc74ab3ec03634b807124a501f9c9f - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: ]TPG[ ticks (76.23.113.232:44964) 2e1ecc748a5106233b3225e09c28de49 - #5 "f "zZombie_Base") then {

It's making my scripts.txt over a gb every day and is the only thing in there. Any idea for a filter?

Check the SAR_config.sqf and set the following to false.

// -----------------------------------------------
// Debug
// -----------------------------------------------

// Show AI hits and kills by players
SAR_HITKILL_DEBUG = false;

// Shows extra debug info in .rpt
SAR_DEBUG = false;

// careful with setting this, this shows a LOT, including the grid properties and definitions for every spawn and despawn event
SAR_EXTREME_DEBUG = false;
 
My favorite way to plot out where i want to spawn AI is by teleporting to the location using Bluephoenix's admin tools, then i use dayz CC to copy the coordinates from my players menu in the CC or any other Admin tool that you have.
then do you just put the cords in?
 
sort of, look at the sarge ai folder in my mission folder as an example of how its suposed to be, but like i said... i cant get the stationary to spawn, just the random grid ones.
i just want the ones i placed spawn so will this work
7971.7339,5389.7891,0
if i insert that in?
 
It should work now, thanks for letting us know.


Looking at the SAR_cfg_grps_lingor.sqf it appears that you're missing a few things in the code.

_this = createMarker ["SAR_El_Presedente", [8113.03,6722.69,0.001]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [4500, 4500];
SAR_El_Presedente = _this;

Should be:

_this = createMarker ["SAR_area_El_Presedente", [8113.03,6722.69,0.001]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [4500, 4500];
SAR_marker_El_Presedente = _this;

And

[SAR_EL_Presedente,1,2,10, "fortify", false] call SAR_AI;

Should be:

[SAR_marker_EL_Presedente,1,2,10, "fortify", false] call SAR_AI;

I am not positive if the capitals and underscores in the naming of the markers matter but I just use simple one word lower case marker names. You can try it the way you have the names but if it still doesn't work, go with one word marker names. Hope this helps
 
Looking at the SAR_cfg_grps_lingor.sqf it appears that you're missing a few things in the code.

_this = createMarker ["SAR_El_Presedente", [8113.03,6722.69,0.001]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [4500, 4500];
SAR_El_Presedente = _this;

Should be:

_this = createMarker ["SAR_area_El_Presedente", [8113.03,6722.69,0.001]];
_this setMarkerShape "RECTANGLE";
_this setMarkeralpha 0;
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [4500, 4500];
SAR_marker_El_Presedente = _this;

And

[SAR_EL_Presedente,1,2,10, "fortify", false] call SAR_AI;

Should be:

[SAR_marker_EL_Presedente,1,2,10, "fortify", false] call SAR_AI;

I am not positive if the capitals and underscores in the naming of the markers matter but I just use simple one word lower case marker names. You can try it the way you have the names but if it still doesn't work, go with one word marker names. Hope this helps

I think its working now. Thank you very much for the help. Come Check it out if you would like to see if I am actually seeing it or if its just the random AI. But they seem to be acting a bit differently in those specific areas.
 
Getting a ton of:

Code:
f(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[ BDole (72.66.112.56:2304) e19d2f86e5a4c816b56b95439b731c2a - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #5 "f "zZombie_Base") then {
 
if(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME "
23.04.2013 18:08:39: ]TPGr[BeanieDaddy (68.82.62.70:2304) 30dc74ab3ec03634b807124a501f9c9f - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: =GP=GrimTooth (174.0.37.81:2304) a3af31d37d5b16a29d6de6d25b3aa1c1 - #138 "eptime = SAR_DETECT_INTERVAL;
 
while {alive _ai} do {
 
if !(isServer) then {
 
_entity_array = (position _ai) nearEntities ["CAMa"
23.04.2013 18:08:39: ]TPG[ ticks (76.23.113.232:44964) 2e1ecc748a5106233b3225e09c28de49 - #5 "f "zZombie_Base") then {

It's making my scripts.txt over a gb every day and is the only thing in there. Any idea for a filter?


Add

Code:
!"while {alive _ai} do {\n\nif !(isServer) then {"

at the end of line 140

and

Code:
!"if(rating _x > -10000) then {\n_x addrating -10000;"

at the end of line 7

cheers, Sarge
 
Ok found this to be an easy way to get the markers where you want them. Use the Arma 2 editor and place your markers. Save the user mission. Go into your Arma 2 Other Profiles, under missions find your saved mission file and open the folder.
Open the mission.sqf or mission biedi with notepad++ and you will find precise coords, angles and area of your markers.
Input this data into your AI framework and your done. Much easier and more precise than any other method I reckon. Hope this helps.

This is THE absolute best way to get your area coords right, and is how i do it as well.

cheers, Sarge
 
Ok found this to be an easy way to get the markers where you want them. Use the Arma 2 editor and place your markers. Save the user mission. Go into your Arma 2 Other Profiles, under missions find your saved mission file and open the folder.
Open the mission.sqf or mission biedi with notepad++ and you will find precise coords, angles and area of your markers.
Input this data into your AI framework and your done. Much easier and more precise than any other method I reckon. Hope this helps.

For the ones that are not used to the arma 2 editor:

a) in the main Arma menu, press ALT-E
b) in the 2d editor, place a center (doesnt matter which side)
c) place a group
d) place a unit (doesnt matter which type of unit
e) now place your markers as you want them
f) save
g) copy the area marker definitions as stated by Jman.

If you do not put center/group/unit, the Arma editor will not let you preview / save.

Cheers, Sarge
 
Status
Not open for further replies.
Back
Top