nk3nny / LambsDanger

AI enhancement mod for Arma 3
Other
105 stars 40 forks source link

Unknown enum value: "PRONE" #406

Closed mjc4wilton closed 1 month ago

mjc4wilton commented 4 months ago

Mods (complete and add to the following information):

Description:

RPT and on-screen error caused by an unknown enum value

Steps to reproduce:

Expected behavior:

Error does not occur

Where did the issue occur?

Dedicated Multiplayer

Additional context:

https://github.com/nk3nny/LambsDanger/blob/9670c56ef4ed48716387974abf278fe3faf89a83/addons/danger/functions/fnc_brainForced.sqf#L55

BI Wiki

Log Files: RPT error:

9:50:16 Error in expression <ll lambs_main_fnc_doAssaultSpeed;
_unit setUnitPosWeak (["MIDDLE", "PRONE"] sele>
 9:50:16   Error position: <setUnitPosWeak (["MIDDLE", "PRONE"] sele>
 9:50:16   Error Foreign error: Unknown enum value: "PRONE"
 9:50:16 File z\lambs\addons\danger\functions\fnc_brainForced.sqf..., line 55
 9:50:16 [ACRE] (sys_io) INFO: Pipe error: Read CreateFileA WinErrCode: 2

(I think the fix is replacing the enum with "DOWN" but I don't have time to read the full code context)

jokoho48 commented 4 months ago

Wow, this has been in for 3 years, and nobody has noticed until now.

nomisum commented 4 months ago

funnily enough i encountered this the first time today as well

dedmen commented 4 months ago

I did a big refactor on enum handling. Lots of places were missing validation. Like this one apparently.