SARGE AI Framework - Public Release

Status
Not open for further replies.
It's sadly not that easy. You would need to add it in the spawn logic of the units ...

I might look into implementing an item loadout function tomorrow.

Sarge
 
It's sadly not that easy. You would need to add it in the spawn logic of the units ...

I might look into implementing an item loadout function tomorrow.

Sarge
ah nice thx well it dint work for now i added some more npc's spawn just for testing and there was no backup
tested this on bandit npc's and soldiers npc's

and what is this ? it keeps spamming my rpt log
"Wrong text element 'null'"
 
so Sarge, any possibility AI heli will shoot at players whenever they see them? that will make more meaning that AI wont just fly around on the air, thank you very much
 
I am very new to messing around with adding scripts into my server and I have no actual knowledge yet of scripting itself. The problem I keep running into is, any other script I attempt to add in that adds lines to init.sqf in the mission file makes me get an error in game about "addons\SARGE\SAR_AI_init.sqf" not being found. Any other scripts seem to be working fine together, as far as I can tell. What am I doing wrong?
 
I am very new to messing around with adding scripts into my server and I have no actual knowledge yet of scripting itself. The problem I keep running into is, any other script I attempt to add in that adds lines to init.sqf in the mission file makes me get an error in game about "addons\SARGE\SAR_AI_init.sqf" not being found. Any other scripts seem to be working fine together, as far as I can tell. What am I doing wrong?
end of the init.sqf put
// UPSMON
call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
// SHK
call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
// run SAR_AI
[] execVM "addons\SARGE\SAR_AI_init.sqf";
 
Can anyone help me out with why its spitting out errors?

Code:
 8:39:53 "----------------------------------------"
8:39:53 "Starting SAR_AI server init"
8:39:53 "----------------------------------------"
8:39:53 "SAR_AI: Area & Trigger definition Started"
8:39:53 "Setting up SAR_AI for : chernarus"
8:39:54 "CRASHSPAWNER: Starting spawn logic for Crash Spawner"
8:39:54 "CRASHSPAWNER: 75% chance to spawn 'UH-60 Wreck' with loot table 'MilitarySpecial' at 936"
8:39:54 "SAR_AI: Area & Trigger definition finalized"
8:39:54 "SAR_AI: Static Spawning for Helicopter patrols started"
8:39:54 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:54  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:54  Error 3 elements provided, 2 expected
8:39:54 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:54 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_patrol_NWAF"
8:39:54 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:54  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:54  Error 3 elements provided, 2 expected
8:39:54 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
8:39:54 "DEBUG: Spawning a Misc_cargo_cont_net1 at [4365.01,9627.09]"
8:39:54 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:54  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:54  Error 3 elements provided, 2 expected
8:39:54 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:54 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_AREA_NEAF"
8:39:54 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:54  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:54  Error 3 elements provided, 2 expected
8:39:54 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
8:39:54 "DEBUG: Spawning a Misc_cargo_cont_net1 at [9798.98,8763.49]"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:55 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_patrol_soutcoast"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
8:39:55 "DEBUG: Spawning a Misc_cargo_cont_net1 at [8874.02,11288.1]"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:55 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_patrol_soutcoast"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
8:39:55 "DEBUG: Spawning a Misc_cargo_cont_net1 at [6569.66,7444.43]"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:55 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_patrol_eastcoast"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
8:39:55 "DEBUG: Spawning a Misc_cargo_cont_net2 at [6141.88,6617.82]"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man2heli action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[0]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 115
8:39:55 "SAR_DEBUG: static AI Heli patrol spawned in: SAR_patrol_eastcoast"
8:39:55 Error in expression <dWeapon _soldier_weapon_name;
_man3heli action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error position: <action ["getInTurret", _heli,[1]];
[_man>
8:39:55  Error 3 elements provided, 2 expected
8:39:55 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_setup_AI_patrol_heli.sqf, line 122
 

Attachments

  • SAR_setup_AI_patrol_heli.sqf
    5 KB · Views: 5
This Problem is posted in this thread maybe three pages before. You can ignore this for now as long as the helis are there and will shoot on you if they should. Have the same messages, but the helis work properly.
 
Is anyone getting the same error spam ? its spamming my rpt log

13:05:27 Wrong text element 'null'
13:05:27 Wrong text element 'null'
13:05:27 Wrong text element 'null'
13:05:27 Wrong text element 'null'
13:05:28 Wrong text element 'null'
13:05:28 Wrong text element 'null'
13:05:28 Wrong text element 'null'
13:05:28 Wrong text element 'null'
13:05:29 Wrong text element 'null'
13:05:29 Wrong text element 'null'
13:05:29 Wrong text element 'null'
13:05:29 Wrong text element 'null'
13:05:30 Wrong text element 'null'
13:05:30 Wrong text element 'null'
13:05:30 Wrong text element 'null'
13:05:30 Wrong text element 'null'

Edit: i fixed the bug by editing some troops that spawned whit 0 people
 
@SARGE

Update of the Lingor grid file.
pls implement and overwrite the old one
 

Attachments

  • SAR_cfg_grid_lingor.sqf
    1.1 KB · Views: 6
am i right in thinking that regardless of configuration, if i use the new lingor grid, and just spawn (for example) 5 groups of each faction in each grid with 100% probability they should show up and work as normal regardless of other stuff?
 
This file is only the grid definition. Before I had 4x4 grid. So from 0_0 to 3_3. Now you have it from 0_0 to 5_5. You have to think about that in setting up the single grid configuration if you made one. If you run it completely random you only have to replace this file.
 
so Sarge, any possibility AI heli will shoot at players whenever they see them? that will make more meaning that AI wont just fly around on the air, thank you very much

They shoot bandits on my version here. If you configure the AI heli patrols as bandits, they will shoot everyone. It might simply be that they didnt spot you. If you want to test this, set a small defined area, and spawn one heli in there. get close to the area so they can see you - they should shoot.
 
I have had problems with other AI's i have tested a few since this is coded completely diffrently whats the spot range of the AI because on my server as long as you have a sniper rifle AI is a piece of cake because they cant spot you
 
I have had problems with other AI's i have tested a few since this is coded completely diffrently whats the spot range of the AI because on my server as long as you have a sniper rifle AI is a piece of cake because they cant spot you

Thats a well known Arma II AI issue. usually the spotting distance is around 300m for the AI, might be less. Even if that specific skill is set to max, they won't spot a sniper that is far awyay. What you can try to do is run ASR_AI (get it from Armaholic) in addition. With this you can adjust skills on a very detailled level per unit, and it works very well with my addon.
 
Status
Not open for further replies.
Back
Top