Jump to content
duda123

Advanced AI Command

Recommended Posts

25 minutes ago, duda123 said:

 

No, but let me see if I can make that work

That would be amazing from a RTS tactical point of view and make life much easier for the player commanding AI.

 

Thanks for looking into it.

Share this post


Link to post
Share on other sites
4 hours ago, redarmy said:

That would be amazing from a RTS tactical point of view and make life much easier for the player commanding AI.

 

Thanks for looking into it.

 

Got it working... new release soon

  • Like 1

Share this post


Link to post
Share on other sites
Just now, duda123 said:

 

Got it working... new release soon

Wow that was fast!

 

Well done man,i just had a look at the view mode,very very nice and just enough camera control(fighting group leaders direction facing) to have a realistic amount of information based on what that group would actually see.

Share this post


Link to post
Share on other sites

v1.5.1 Released. Get it on github or steam


Changes:

  • Updated remote view camera logic to smooth out the camera movement.
  • Extended max remote view camera distance to 60m.
  • Added support for using the map while in remote view.

Share this post


Link to post
Share on other sites
17 minutes ago, redarmy said:

Wow that was fast!

 

Well done man,i just had a look at the view mode,very very nice and just enough camera control(fighting group leaders direction facing) to have a realistic amount of information based on what that group would actually see.

 

Oh, I've also updated the camera in the 1.5.1 release so that it don't follow the unit's direction. Found it too annoying :)

  • Like 1

Share this post


Link to post
Share on other sites

Duda,

 

Anyway to update the INS Revive on your GitHub and integrate with AIC?

Share this post


Link to post
Share on other sites
36 minutes ago, Jnr4817 said:

Duda,

 

Anyway to update the INS Revive on your GitHub and integrate with AIC?

 

That's not my project, but how would you want ins integrated?

Share this post


Link to post
Share on other sites

Gave an AI heli the order to land via AIC... they decided to land (successfully!) on top of the power lines! That's a first.

 

 Capture.jpg

  • Like 3

Share this post


Link to post
Share on other sites
On ‎1‎/‎16‎/‎2017 at 5:48 PM, duda123 said:

 

That's not my project, but how would you want ins integrated?

I really haven't found an all-in-one revive mod. INS_Revive does an excellent job, but appears it could be updated and optimized for current Arma 3, as it is still checking for Arma 2 and other older methods of scripting. The ability to revive players, revive AI, heal players, heal AI, and respawn is key. Also, have the AI complete all of these task on other players or AI, alike. Then add the ability to drag, carry, and load/unload bodies of player or AI into a vehicle for transport, while dead or in an unconscious state. Example, need to get player/ai back to a med tent or kill/capture scenario with HVT. When killed, having your loadout saved and then reapplied when revived or respawned. BIS Revive is getting better, but still has glitches and is not very robust.

Just a few ideas to being all of these feature into one place. Coupling this with AI_Revive and AIC present a total package of AI control, revive, respawn, and loadout saving.

 

My humble opinion,

Reed

Share this post


Link to post
Share on other sites

Duda i was just running a scenario and i noticed some issues

 

in a nutshell,the command functions including remote controle of groups stopped functioning entirely,i could select add waypoint for example,but then no marker would appear to select destination.

 

I am trying to reproduce.Can you tell me if there is any reason all functionality might suddenly cease working?I was thinking,too much stress on cpu or scripts running.But im only using GAIA from MCC(Not on the groups in question who i am commanding obviously)

 

there wasnt alot happening at the time i lost control,so im a little stumped

Share this post


Link to post
Share on other sites

You are not by any chance on of these presets, where the normal press of the space bar has been changed? I came across this with AIC and thought that something was wrong, but it turns out that the new Apex preset (IIRC) changes what key to press when selecting from menus. Had to remap "Selected Action" key.

Share this post


Link to post
Share on other sites

Can you add a RTB-button? Maybe,even make a group request a transport helo?  Or a helicopter that can fly a Search-pattern-type flight pattern ,searching for a unit for a while?

 

This is a great mod ,thank you.

Share this post


Link to post
Share on other sites

Duda i noticed an issue with remote control.

 

Once the AI you have assumed control of takes any damage,you are switched back to player.Is this intentional? I was under impression its only when unit is outright killed.

Share this post


Link to post
Share on other sites
20 minutes ago, redarmy said:

Duda i noticed an issue with remote control.

 

Once the AI you have assumed control of takes any damage,you are switched back to player.Is this intentional? I was under impression its only when unit is outright killed.

 

That's expected - it has to switch you back to your original player before dying, otherwise you end up respawning.

Share this post


Link to post
Share on other sites
18 minutes ago, 1212PDMCDMPPM said:

Hello,

is there a script version-only of this mod ?

 

Thx.

 

Yes, take a look at the GitHub project. It has a sample mission.

Share this post


Link to post
Share on other sites

@duda123 I just tried doing a test mission with the script version. It's working perfectly except I don't have any intel on OPFOR detected by my troops (I play without any troop marker on the map). Is this coming from the script version or is it something that is not covered by AIC ?

Share this post


Link to post
Share on other sites
25 minutes ago, 1212PDMCDMPPM said:

@duda123 I just tried doing a test mission with the script version. It's working perfectly except I don't have any intel on OPFOR detected by my troops (I play without any troop marker on the map). Is this coming from the script version or is it something that is not covered by AIC ?

 

Not currently supported by the addon

 

Share this post


Link to post
Share on other sites

Hey duda! Just gotta say thanks a lot for the hard work on the mod. It gave me back the fun in playing single player on scale larger than squad command.

 

There's one thing I've found that I haven't seen in the thread. It's where I use C2 or vanilla controls to get a remote controlled squad into precise positions before an attack or whatever. If I release controls of that squad, it's commander will order the squad back into formation and whatever else state they are set to. I usually want to switch to a drone or a helo to gain intel or soften defenses before taking the squad into a compound or through a town. But them going back to formation usually means unmasking.

 

Is there a possibility to add something like a formation type which is "freeze formation" or maybe "no formation" that will just leave each squad member as they are when I relinquish control? That way I can come back to them and continue from where I left off.

 

Thanks again!

Share this post


Link to post
Share on other sites
On 1/5/2017 at 5:34 PM, duda123 said:

 

Yeah, we're working together on some stuff to make the two addons works seamlessly together.

 

Here's how you can set a group's color (using the default colors):
 

[_group,AIC_COLOR_RED] call AIC_fnc_setGroupColor;
[_group,AIC_COLOR_BLUE] call AIC_fnc_setGroupColor;
[_group,AIC_COLOR_GREEN] call AIC_fnc_setGroupColor;
[_group,AIC_COLOR_BLACK] call AIC_fnc_setGroupColor;
[_group,AIC_COLOR_WHITE] call AIC_fnc_setGroupColor;

 

If you want some custom color, you can do that as well (array of numbers are RBB values - e.g. [1,0,0] is red):


[_group,["CUSTOMCOLOR1",[1,0.5,0.5]]] call AIC_fnc_setGroupColor;

 

You should be able to place these in unit init fields. e.g.

 

[group this,AIC_COLOR_WHITE] call AIC_fnc_setGroupColor;

 

Can't seem to get this to work. I get an error saying the "group" part is supposed to be an object, not a group. I tried just "this" to no avail as well.

Share this post


Link to post
Share on other sites

Duda,

I am getting the following errors.

Thanks

Spoiler

12:51:37 Error in expression <private ["_group"];
_group = param [0];
_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error position: <_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\groupData\fn_getAllWaypoints.sqf [AIC_fnc_getAllWaypoints], line 363
12:51:37 Error in expression <,(_groupControlId)],0]; 
_waypoints = [_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error position: <_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 373
12:51:37 Error in expression <private ["_group"];
_group = param [0];
_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error position: <_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\groupData\fn_getAllWaypoints.sqf [AIC_fnc_getAllWaypoints], line 363
12:51:37 Error in expression <,(_groupControlId)],0]; 
_waypoints = [_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error position: <_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 373
12:51:37 Error in expression <",(_groupControlId)],""];
_groupType = _group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error position: <_group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 393
12:51:37 Error in expression <",(_groupControlId)],""];
_groupType = _group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error position: <_group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 393
                                    
_isDead = false;
while {_condition} do
{
_who_taking_care_of_inj>
 7:52:38   Error position: <_condition} do
{
_who_taking_care_of_inj>
 7:52:38   Error Undefined variable in expression: _condition
 7:52:38 File C:\Users\Jason Reed\Documents\Arma 3 - Other Profiles\[SA]Reed\mpmissions\SATemplate_6%2e0%20Bravo.Tanoa\SA\scripts\ins_ai_revive_init.sqf, line 294
 
 _isDead = false;
while {_condition} do
{
_who_taking_care_of_inj>
 7:52:46   Error position: <_condition} do
{
_who_taking_care_of_inj>
 7:52:46   Error Undefined variable in expression: _condition
 7:52:46 File C:\Users\Jason Reed\Documents\Arma 3 - Other Profiles\[SA]Reed\mpmissions\SATemplate_6%2e0%20Bravo.Tanoa\SA\scripts\ins_ai_revive_init.sqf, line 294

Share this post


Link to post
Share on other sites
10 minutes ago, Jnr4817 said:

Duda,

I am getting the following errors.

Thanks

  Hide contents

12:51:37 Error in expression <private ["_group"];
_group = param [0];
_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error position: <_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\groupData\fn_getAllWaypoints.sqf [AIC_fnc_getAllWaypoints], line 363
12:51:37 Error in expression <,(_groupControlId)],0]; 
_waypoints = [_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error position: <_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 373
12:51:37 Error in expression <private ["_group"];
_group = param [0];
_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error position: <_group getVariable ["AIC_Waypoints",[0,[>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\groupData\fn_getAllWaypoints.sqf [AIC_fnc_getAllWaypoints], line 363
12:51:37 Error in expression <,(_groupControlId)],0]; 
_waypoints = [_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error position: <_group] call AIC_fnc_getAllWaypoints;
_c>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 373
12:51:37 Error in expression <",(_groupControlId)],""];
_groupType = _group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error position: <_group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 393
12:51:37 Error in expression <",(_groupControlId)],""];
_groupType = _group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error position: <_group call AIC_fnc_getGroupIconType;
if>
12:51:37   Error Undefined variable in expression: _group
12:51:37 File AICommand\functions\mapElements\groupControl\fn_groupControlManager.sqf [AIC_fnc_groupControlManager], line 393
                                    
_isDead = false;
while {_condition} do
{
_who_taking_care_of_inj>
 7:52:38   Error position: <_condition} do
{
_who_taking_care_of_inj>
 7:52:38   Error Undefined variable in expression: _condition
 7:52:38 File C:\Users\Jason Reed\Documents\Arma 3 - Other Profiles\[SA]Reed\mpmissions\SATemplate_6%2e0%20Bravo.Tanoa\SA\scripts\ins_ai_revive_init.sqf, line 294
 
 _isDead = false;
while {_condition} do
{
_who_taking_care_of_inj>
 7:52:46   Error position: <_condition} do
{
_who_taking_care_of_inj>
 7:52:46   Error Undefined variable in expression: _condition
 7:52:46 File C:\Users\Jason Reed\Documents\Arma 3 - Other Profiles\[SA]Reed\mpmissions\SATemplate_6%2e0%20Bravo.Tanoa\SA\scripts\ins_ai_revive_init.sqf, line 294

 

Getting the errors when groups die?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×