Arma 3
(DEV) AI Pathfinder Improvement
47 Comments
ImmortalTheOwl  [author] 28 Jul @ 12:07pm 
Alright, next update which should be soon will focus on the dynamic pathing of the AI to more or less avoid obstacles being placed right in front of them on the fly. Hopefully, without them having to clip through stuff or do the arma thing and crawl under em. My apologies for the delays in getting these updates out. I appreciate your patience in all this.
ImmortalTheOwl  [author] 23 Jul @ 12:47pm 
@X_Wing_Ian It can be ran either way to be honest.
X_Wing_Ian 23 Jul @ 12:37pm 
Before the todays update I got the error from below, but this has been fixed with the latest update
8:30:29 Error in expression <nterval", 5]];

if (isNull _grp || _grp isEmpty) exitWith {};

_grp deleteWaypoi>
8:30:29 Error position: <isEmpty) exitWith {};

_grp deleteWaypoi>
8:30:29 Error Missing )
8:30:29 File AIPathfinderImprovementV2\scripts\fn_smartMove.sqf..., line 3
8:30:29 Error in expression <nterval", 5]];

if (isNull _grp || _grp isEmpty) exitWith {};

_grp deleteWaypoi>
8:30:29 Error position: <isEmpty) exitWith {};

_grp deleteWaypoi>
8:30:29 Error Missing )
8:30:29 File AIPathfinderImprovementV2\scripts\fn_smartMove.sqf..., line 3

But I am watching this mod very closely and excited to see where it goes
X_Wing_Ian 23 Jul @ 12:32pm 
Hello been testing this on ops and I don't see any errors on dedicated server now after loading the latest update, also should this be server mod line or regular mod line?. I put on the server mod line.
ImmortalTheOwl  [author] 23 Jul @ 9:55am 
I've updated the dev branch once again, I'm giving it one last chance before I ask for help from the discord server.

I've had to strip the hell out of the smartMove script on this one, and add a tiny init script to be used as a diag_log script.

If no errors persist, great, if it does, then I'll just do what I initial said I'd do.

The main focus for this is the pathfinding of infantry units to go around placed objects in eden or zeus.

I will be testing this as well so theres more than one report of... whatever it is that might be.
_mickey_ 20 Jul @ 3:56pm 
I tried to run it today

1:50:31 Error in expression <dd ((_targetPos vectorDiff _currentPos) vectorNormalized) vectorMultiply _obstac>
1:50:31 Error position: <vectorNormalized) vectorMultiply _obstac>
1:50:31 Error Missing )
1:50:31 File AIPathfinderImprovementV2\scripts\fn_smartMove.sqf..., line 22
1:50:31 Error in expression <dd ((_targetPos vectorDiff _currentPos) vectorNormalized) vectorMultiply _obstac>
1:50:31 Error position: <vectorNormalized) vectorMultiply _obstac>
1:50:31 Error Missing )
1:50:31 File AIPathfinderImprovementV2\scripts\fn_smartMove.sqf..., line 22
ImmortalTheOwl  [author] 20 Jul @ 7:49am 
The current dev branch update only affects AI infantry, so I don't think it should conflict with some of the other AI mods out there like vcom and vice versa.
HazeNoir 19 Jul @ 8:58pm 
Does this mod work with lambs?
HazeNoir 19 Jul @ 7:44am 
I see, thanks
ImmortalTheOwl  [author] 19 Jul @ 7:32am 
@HazeNoir I did make it so that newly spawned AI should also be affected after mission start. (or if not thats still the plan)

Now, if only I can get the AI to respond properly to objects being spawned in front of them on the fly. That would be ideal.
HazeNoir 19 Jul @ 5:46am 
Does this mod work with Impasse Total War? Since it spawn in unit during the match and I remembered seeing a comment about unit spawned mid match is not supported for now.
ImmortalTheOwl  [author] 18 Jul @ 4:57pm 
Now it's got the version with only smartMove in it that I spent the last couple days rewriting. And load and behold, line 22 missing ) error, I'm not even surprised.
ImmortalTheOwl  [author] 18 Jul @ 4:45pm 
Yeah I noticed the error as well so I reverted back to the previous version for now.
_mickey_ 18 Jul @ 2:59pm 
I posted the errors related to your mod in the corresponding topic
_mickey_ 18 Jul @ 2:55pm 
I don't even want to clutter up the chat, there are kilometer-long lines there
_mickey_ 18 Jul @ 2:53pm 
@ImmortalTheOwl bro, when I launch the game with your mod there are a bunch of errors again.
ImmortalTheOwl  [author] 18 Jul @ 11:23am 
annnnd script not found, whoops, lemme just fix that real quick.
ImmortalTheOwl  [author] 18 Jul @ 11:13am 
New DEV branch update available (read changelogs for details)
ImmortalTheOwl  [author] 16 Jul @ 10:45am 
@Astromad I'd say it is highly likely that the mod will interfere with ALIVE AI commanders, specifically regarding the waypoints ALIVE creates for AI groups, or even other mods that uses a similar function for waypoint creations.
Astromad 15 Jul @ 7:26pm 
Would this interfere with ALiVE AI commanders? As in the tasking way-points it creates for AI groups.
ImmortalTheOwl  [author] 15 Jul @ 3:35pm 
Any help whether that be improving the scripts so that they function and vice versa would also be greatly appreciated. ^v^
LuizBarros99 15 Jul @ 3:13pm 
There is also this website that I found useful for debugging sqf scripts. Helped me a bit, I wonder if it could help you too
https://sqfvm.arma3.io/vm/
ImmortalTheOwl  [author] 15 Jul @ 2:40pm 
And reading the errors on there, I think I might know what it could be now. I'll adjust them and update the dev branch when its ready.
ImmortalTheOwl  [author] 15 Jul @ 2:37pm 
Yep, seems like that did the trick.
LuizBarros99 15 Jul @ 2:36pm 
Yeah, check the advanced parameters section and the options in the launcher for anything related to error reporting (or even rtp file related). Maybe the problem could be there?
_mickey_ 15 Jul @ 1:57pm 
@ImmortalTheOwl It's strange that you don't see these errors! Maybe you have error reporting disabled in the game settings? Check it in the game launcher (advanced settings)
ImmortalTheOwl  [author] 13 Jul @ 10:51am 
prolly wont change much tbh.
ImmortalTheOwl  [author] 13 Jul @ 10:48am 
Oh wait, I totally forgot that I left spaces in the script where it didnt need em, perhaps thats why it's causing these errors to start totting up. Lemme just get rid of those wasted spaces and rebuilt the addon. Then we'll see if it works.
ImmortalTheOwl  [author] 13 Jul @ 10:44am 
Okay that is weird, why does it happen to you but not for me? even with the show errors mod someone suggested, it still doesn't show me. I have no idea where I'm going wrong from here, if someone can point me in the right direction in proper syntax's and such, that'd be greatly appreciated. Might have to consult the Arma 3 discord for help on this cus this is getting ridiculous. I've spent all this time for it to make it worse somehow.
_mickey_ 12 Jul @ 1:17pm 
there is even a continuation of this Log, but I don't want to clog up the messenger so much. Create a topic for reporting errors so that long logs can be written there. It looks like your mod just doesn't work.
_mickey_ 12 Jul @ 1:15pm 
and:
private _wp = _grp add>
23:06:43 Error position: <deleteWaypoints;

private _wp = _grp add>
23:06:43 Error Missing ;
23:06:43 File AIPathfinderImprovement\scripts\fn_dynamicPath.sqf..., line 13
23:06:43 Error in expression <ll _groupToMonitor && !(_groupToMonitor isEmpty)} do {
private _currentWaypointI>
23:06:43 Error position: <isEmpty)} do {
private _currentWaypointI>
23:06:43 Error Missing )
23:06:43 File AIPathfinderImprovement\scripts\fn_groupPathMonitor.sqf..., line 8
23:06:43 Error in expression <ll _groupToMonitor && !(_groupToMonitor isEmpty)} do {
private _currentWaypointI>
23:06:43 Error position: <isEmpty)} do {
private _currentWaypointI>
23:06:43 Error Missing )
_mickey_ 12 Jul @ 1:14pm 
Further:

private _nearby>
23:06:43 Error Missing ;
23:06:43 File AIPathfinderImprovement\scripts\fn_smartDrive.sqf..., line 19
23:06:43 Error in expression <ivate _rightVector = vectorCrossProduct _forwardVector [0,0,1];

private _nearby>
23:06:43 Error position: <_forwardVector [0,0,1];

private _nearby>
23:06:43 Error Missing ;
23:06:43 File AIPathfinderImprovement\scripts\fn_smartDrive.sqf..., line 19
23:06:43 Error in expression <};

if (isNull _grp) exitWith {};

_grp deleteWaypoints;

private _wp = _grp add>
23:06:43 Error position: <deleteWaypoints;

private _wp = _grp add>
23:06:43 Error Missing ;
23:06:43 File AIPathfinderImprovement\scripts\fn_dynamicPath.sqf..., line 13
23:06:43 Error in expression <};

if (isNull _grp) exitWith {};

_grp deleteWaypoints;
_mickey_ 12 Jul @ 1:13pm 
@ImmortalTheOwl HI!

I tried to test your mod and once again when I launch a mission in the editor, I get a ton of errors:

23:06:43 Error in expression < { !isNull _grpMonitor && !(_grpMonitor isEmpty) && ((_leaderMonitor distance _t>
23:06:43 Error position: <isEmpty) && ((_leaderMonitor distance _t>
23:06:43 Error Missing )
23:06:43 File AIPathfinderImprovement\scripts\fn_smartMove.sqf..., line 19
23:06:43 Error in expression < { !isNull _grpMonitor && !(_grpMonitor isEmpty) && ((_leaderMonitor distance _t>
23:06:43 Error position: <isEmpty) && ((_leaderMonitor distance _t>
23:06:43 Error Missing )
23:06:43 File AIPathfinderImprovement\scripts\fn_smartMove.sqf..., line 19
23:06:43 Error in expression <ivate _rightVector = vectorCrossProduct _forwardVector [0,0,1];

private _nearby>
23:06:43 Error position: <_forwardVector [0,0,1];
ImmortalTheOwl  [author] 10 Jul @ 6:45am 
I don't see much issues or issues being reported so I'm going to assume it's working well so far, I'm about to re-add the filter verticle drop script back in cus during playtest I saw the AI get rather finnicky around cliffs and high platforms.
ImmortalTheOwl  [author] 6 Jul @ 10:20am 
My deepest apologies for the delay, the DEV branch has been updated, I'm going to test it out myself using what little andy suggested to see if anything pops up.
little andy 1 Jul @ 11:15pm 
@ImmortalTheOwl
maybe the launch parameter "Show Script Errors" would help
there's also a mod called "Advanced Script Error Dialog" which is quite useful
many thanks for your work on AI pathfinding :steamhappy:
_mickey_ 1 Jul @ 1:39pm 
@ImmortalTheOwl good news!
ImmortalTheOwl  [author] 1 Jul @ 12:31pm 
Alright, I think I've done it, I don't know if this'll work but I'll push the update out soon to hopefully address these lil bits and bobs of errors popping up.
治水的大宇啊 29 Jun @ 4:50pm 
you have maybe do your best ,all problems comes from BIS lol : )
ImmortalTheOwl  [author] 29 Jun @ 3:32pm 
Nope, they never seem to pop up on my end for some god awful reason.
_mickey_ 29 Jun @ 12:51pm 
Haven't you seen these mistakes yourself?
ImmortalTheOwl  [author] 29 Jun @ 10:36am 
And by the looks of it, it keeps throwing syntax errors diwako mentioned before, I'll have to do some more digging into group variables and vice versa to see where I'm going wrong with this.
ImmortalTheOwl  [author] 29 Jun @ 10:35am 
Interesting, I had a slight feeling that _grp and _wp would keep throwing errors. But I couldn't point my finger as to why that is.
_mickey_ 29 Jun @ 5:52am 
15:47:03 Error Missing )
15:47:03 File AIPathfinderImprovement\scripts\fn_groupPathMonitor.sqf..., line 8
15:47:03 Error in expression <e _grp = _x;
if (!isNull _grp && !(_grp isEmpty)) then {
[_grp] spawn fn_groupPa>
15:47:03 Error position: <isEmpty)) then {
[_grp] spawn fn_groupPa>
15:47:03 Error Missing )
15:47:03 File AIPathfinderImprovement\scripts\fn_initSmartPathing.sqf..., line 3
15:47:03 Error in expression <e _grp = _x;
if (!isNull _grp && !(_grp isEmpty)) then {
[_grp] spawn fn_groupPa>
15:47:03 Error position: <isEmpty)) then {
[_grp] spawn fn_groupPa>
15:47:03 Error Missing )
15:47:03 File AIPathfinderImprovement\scripts\fn_initSmartPathing.sqf..., line 3
15:47:04 [CBA] (xeh) INFO: [0,35.075,0] PreStart started.
_mickey_ 29 Jun @ 5:52am 
I only got around to this today. I was busy. As soon as I start my simple infantry test mission, I got an bunch errors messages:

private _wp = _grp add>
15:47:03 Error Missing ;
15:47:03 File AIPathfinderImprovement\scripts\fn_dynamicPath.sqf..., line 13
15:47:03 Error in expression <ll _groupToMonitor && !(_groupToMonitor isEmpty)} do {
private _currentWaypointI>
15:47:03 Error position: <isEmpty)} do {
private _currentWaypointI>
15:47:03 Error Missing )
15:47:03 File AIPathfinderImprovement\scripts\fn_groupPathMonitor.sqf..., line 8
15:47:03 Error in expression <ll _groupToMonitor && !(_groupToMonitor isEmpty)} do {
private _currentWaypointI>
15:47:03 Error position: <isEmpty)} do {
private _currentWaypointI>
ImmortalTheOwl  [author] 28 Jun @ 5:24pm 
How's the stuff going so far?
_mickey_ 27 Jun @ 1:48pm 
I'll be the first to comment. Good luck and prosperity to this mod!