-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CBA_fnc_taskPatrol broken #499
Comments
@SilentSpike |
I can't reproduce on latest master. Waiting for Silents answer. (Reminder to myself to add this to the changelog) |
try placing more units. when i tried one group only once it looked fine, but when you have several (as in trying to reproduce a civilian city) you got problems. more than 4 groups should do the trick. someone pointed out to me that maybe it is due to a lacking Z parameter in the second position of the array, the placement one (no idea what he was talking about tho). |
Can you upload an example mission? Preferably with anything striped away that isn't vanilla Arma? |
@commy2 I can't say I ever encountered this error in all of my testing for that PR
Whoops, I actually read the rpt log wrong, that's |
Yeah, even before your PR, it was: instead of |
NVM. This is a follow up and the error happens in https://github.com/CBATeam/CBA_A3/blob/master/addons/ai/fnc_addWaypoint.sqf#L35 |
Just mentally going through |
Same, although I must say, that I dislike how the arguments are handled. It's a bit to minimalistic. To a point where errors like these happen and no one understand why. |
You mean how it implicitly just passes them on to |
Exactly |
Yeah, I preserved that behaviour from before the function was ever updated just because that's how it was written. It kind of makes sense since there's no point in validating that stuff twice and it keeps only the relevant parameters in |
Meh. We can keep it, but I'd like to figure this problem out. |
I placed 20 NATO rifle squads and put the line in every squad leader. It's crawling everywhere, but no error in sight. Edit: Same with the module. No luck. |
I tried several times to reproduce in a blank mission today but i couldnt. :-/ i have a theory on what happened. I dont think i have done this, so search me on HOW it actually happened, but different randompatrol functions got in both the init field of the unit AND in the object init of its own group. I suppose one glitchy save made a mess and displaced code around. I am not certain this is what caused the error, because i never meant to put code in the group init field in the first place, but it got there somehow. Now, i took away all the codes, and replaced them one by one, and it seems working. |
So if you put the code into the group init box and into the squad leaders init box, this error happens? |
i am not sure. i found different codes in the boxes, i mean the same function, but with different parameters. Sometimes a line like "this stop true" would appear in the object init of a unit that had waypoints laid out. No idea how it got there, i never write that line myself. Really no idea how this error could have happened. now i've deleted everything and redone from scatch and the error seems to have disappeared. probably it's best treating it as a one time error and close the ticket. if it comes again ill be sure to notify you with more relevant data. |
ok. false alarm then. |
Arma 3 Version: 1.62 stable
CBA Version:
3.0.0
stableMods:
@CBA_A3 - @ACE
Description:
18:44:18 File x\cba\addons\ai\fnc_addWaypoint.sqf, line 3
18:44:18 Error in expression < "x\cba\addons\ai\fnc_addWaypoint.sqf"
params [
"_group",
"_position",
["_radiu>
18:44:18 Error position: <params [
"_group",
"_position",
["_radiu>
18:44:18 Error Params: Type Array, expected String
18:44:18 File x\cba\addons\ai\fnc_addWaypoint.sqf, line 3
18:44:18 Error in expression < "x\cba\addons\ai\fnc_addWaypoint.sqf"
Steps to reproduce:
Where did the issue occur?
RPT log file:
arma3_2016-09-07_18-05-48.zip
Note: script&module still work properly, but they spam the RPT horribly.
The text was updated successfully, but these errors were encountered: