Arma 3
CF_BAI
_mickey_ 8 Dec, 2022 @ 6:41am
I have Errors messages if AI uses safe and careless modes (rpt-file attached)
I don't use any other AI-mods other than CF_BAI.
If there are AI units in the map with "Safe" modes, then I get an error with line 8.

Error *: Type String, expected Number,Not a Number
File x\CF_BAI\addons\detect\fnc_determineKnowsAbout.sqf..., line 8

If there are units in "Careless mode", then I get an error related to line 29

Error *: Type String, expected Number,Not a Number
File x\CF_BAI\addons\detect\fnc_determineKnowsAbout.sqf..., line 29

Units in "Aware" (by default) and "Combat" modes do not cause errors.

My rpt here - https://drive.google.com/file/d/1jjBjgQLEoVON29W4ddEZw_6yx9ux9OZ3/view?usp=share_link
Last edited by _mickey_; 8 Dec, 2022 @ 6:47am
< >
Showing 1-13 of 13 comments
honger  [developer] 8 Dec, 2022 @ 7:38am 
All right, if I ever manage to understand why doesn't it read the values as number instead of string, I will fix it, thank you for your report. For now I can only recommend disabling the module.

If anyone has a pretty extensive knowledge of SQF, I encourage you to make a patch and I'll add it to the mod once I regain access to my PC.
_mickey_ 8 Dec, 2022 @ 8:16am 
@Husaam al-Moradi did you manage to reproduce the error on your computer? The problem is that many users will not immediately encounter this error, because by default all AI have Aware mode, in order to detect an error, user need to switch their mode to Safe or Careless.

"I can only recommend disabling the module" - I subscribe this mod, just because of the detection module! Everything else I had ( Lambs supression for example) or didn't interest me ( CF_BAI boost for example ) boost I completely turned off

Unfortunately, I don't understand much about SQF or Arma3 scripting. I can only help you with tests.
Teneus 8 Dec, 2022 @ 8:50am 
I also have the same error here :) For to say this
_mickey_ 8 Dec, 2022 @ 8:53am 
@Teneus thank you. I'm glad I'm not alone in this world)
Last edited by _mickey_; 8 Dec, 2022 @ 8:54am
honger  [developer] 8 Dec, 2022 @ 12:05pm 
Originally posted by _mickey_:
@Husaam al-Moradi did you manage to reproduce the error on your computer? The problem is that many users will not immediately encounter this error, because by default all AI have Aware mode, in order to detect an error, user need to switch their mode to Safe or Careless.

"I can only recommend disabling the module" - I subscribe this mod, just because of the detection module! Everything else I had ( Lambs supression for example) or didn't interest me ( CF_BAI boost for example ) boost I completely turned off

Unfortunately, I don't understand much about SQF or Arma3 scripting. I can only help you with tests.
Hey, indeed I did manage to reproduce the issue and I think I have figured out how to fix it. If anyone is interested, the issue with Safe mode was because it's detection test value was passed as "[0.261948,1,1,1,0.5,1,"CF_BAI_detect_aivision_safe_chance"];", when instead of the last string there should be also a number. Couldn't find the source of that array so I just did an override in another script and I consider it solved, because there is no error anymore.

As for issue with Careless this might be a bit more complicated since Careless is handled in some weird way unlike other combat modes. I might have to just disable the detection module for Careless units if I learn how to do that lol. For now please use Hold Fire so units will ignore enemies, just like Careless units would.

I'll push an update around this weekend.
_mickey_ 8 Dec, 2022 @ 12:55pm 
@Husaam al-Moradi thank you for your responsiveness! I hope you fix it soon. It's also a pity that Careless doesn't work, still try to fix it as well
honger  [developer] 8 Dec, 2022 @ 12:58pm 
Okay, figured it out sooner than I expected, update is now live. I have written a short memo in the Changelog section about the current state of CF_BAI<->Careless compatibility. Adding "Hold Fire" mode to Careless units is enough to make it work properly and it is very simple, in Eden editor, in Zeus or even as a script.
_mickey_ 8 Dec, 2022 @ 1:02pm 
Super! Huge thanks for your operative maintenance!
Last edited by _mickey_; 17 Dec, 2022 @ 2:28pm
Fluffy GS G5 9 Dec, 2022 @ 12:25pm 
@mickey: i have an older version of lambs danger, a "somewhere in the middle of devlopement" Version. I downloaded it a while a go local on my computer because i tried to learn how this scripting works (I use it now local/privat for me and my friends) . Its in my opinion a version where it worked very fine, not perfect but very fine. I don't use the latest version of lambs danger anymore because it has to many bugs.

I used it now for some days together with this mod and Project Injury Reaction (PIR) and till now it works realy fine. Maybe i can share with you this older version of Lambs danger so you can use it also for you?

Let me know :)
_mickey_ 9 Dec, 2022 @ 1:30pm 
@Fluffy GS G5 thank you.

I started using LAMBS from version-2.3.3 to version 2.5.3 (this is latest today if we talk about stable version). I also tried the 2.5.4 dev version, but it seemed to me that it had some performance problems and I returned to the stable version 2.5.3

So I checked each subsequent version from 2.3.3 and I have all of them on the my PC. I have not noticed that any old version was better than the new one
Here main question - what better lambs version do you have and please tell me why this version is better than 2.5.3?

Quote - "I don't use the latest version of lambs danger anymore because it has to many bugs" - what bugs?, describe please
Last edited by _mickey_; 9 Dec, 2022 @ 1:33pm
_mickey_ 9 Dec, 2022 @ 1:44pm 
@Fluffy GS G5 - about @PIR.

I used it several times, but I had to give it up because it was unrealistic - I didn't like the most that @PIR destroyed the medic soldier as class and allows every soldier with medkit to treat a completely self or other soldier an infinite number of times in 5 second! This looks super stupid, especially after such terrible injuries that PIR shows us/

If I turned off the medkit in the settings, then the AI started to limp with any injury, not even in the leg. This created crowds of limping soldiers with the same animation. It looked terrible.
In addition, there were other problems in PIR, but I will not describe them all.

I tried several times to contact the author of @PIR and asked to make a setting so that the Medkit is not an endless magic tool and restores only part of the soldier health and only if the medic does it, but the author of the mod ignored me.

Thus, in general PIR I'm not interested for me
Fluffy GS G5 11 Dec, 2022 @ 3:16am 
@_mickey_ I need to check the version i have local, i think acording to the bikey it is the 2.4.2 Version.
The Bugs&Problem i had with the Latest Lambs Danger Version: AI abonding Tanks/Vehicles for no reason, pressing all ammo because of suppressing fire in the air, AI freezing in the Field and don't doing anything anymore etc.

But i disabled and changed some settings by the CBA Menu, so it works very good .

Well PIR is a thing for it self, i just mentioned it because it also has some impact of AI behavior and i didnt see any conflict with PIR till now.

Also till now i didn't see any conflict/problem with the Lambs Danger Version i'm using now. I only observe there is a little more of "spraying" during infantery fights. I guess maybe because now thei are loosing theyr accurazy.
_mickey_ 11 Dec, 2022 @ 10:45am 
@Fluffy GS G5 drop me your version of LAMBS, curious to see, but please first determine the exact version

Yes, I do not like that with LAMBS it shoots at empty air and suppresses empty places on the map for an infinitely long time. Thus wasting ammo. As for the other problems you described, I haven't seen them in noticeable numbers.
< >
Showing 1-13 of 13 comments
Per page: 1530 50