acemod / ACE3

Open-source realism mod for Arma 3
https://ace3.acemod.org
Other
1k stars 736 forks source link

Medical Treatment: Script error on diagnosing dead patient #10384

Closed Cyruz143 closed 3 weeks ago

Cyruz143 commented 3 weeks ago

Mods (complete and add to the following information):

Description: Script error on diagnosing dead AI with adv medical bits disabled.

Steps to reproduce:

  1. Launch A3 with -debug
  2. Set medical settings as detailed below
  3. SP editor, place 2 units
  4. Kill one and diagnose
// ACE Medical
force ace_medical_treatment_advancedBandages = 0;
force ace_medical_treatment_advancedDiagnose = 0;
force ace_medical_treatment_advancedMedication = false;

Expected behavior: Hint should show alive state / blood loss and pain level. Only shows first two and generates an error.

Where did the issue occur?

Log Files: https://gist.github.com/Cyruz143/c6fc3e275a11d8303c8a298c269aa8d2

13:36:08 Error in expression <   } forEach _text;
            _text = format _text;
        };
    };
    if (>
13:36:08   Error position: <format _text;
        };
    };
    if (>
13:36:08   Error 3 elements provided, 4 expected
13:36:08 File /z/ace/addons/common/functions/fnc_displayTextStructured.sqf..., line 34
13:36:08  ➥ Context:     [] L5 (/x/cba/addons/common/XEH_postInit.sqf)
    [] L38 (x\cba\addons\common\init_perFrameHandler.sqf)
    [] L34 (x\cba\addons\common\init_perFrameHandler.sqf)
    [] L36 (x\cba\addons\common\init_perFrameHandler.sqf)
    [] L100 (/z/ace/addons/common/functions/fnc_progressBar.sqf)
    [] L116 (/z/ace/addons/common/functions/fnc_progressBar.sqf)
    [] L117 (/z/ace/addons/common/functions/fnc_progressBar.sqf)
    [] L120 (/z/ace/addons/common/functions/fnc_progressBar.sqf)
    [] L47 (/z/ace/addons/medical_treatment/functions/fnc_treatmentSuccess.sqf)
    [] L49 (/z/ace/addons/medical_treatment/functions/fnc_diagnose.sqf)
    [] L26 (/z/ace/addons/common/functions/fnc_displayTextStructured.sqf)
    [] L27 (/z/ace/addons/common/functions/fnc_displayTextStructured.sqf)
    [] L28 (/z/ace/addons/common/functions/fnc_displayTextStructured.sqf)
    [] L34 (/z/ace/addons/common/functions/fnc_displayTextStructured.sqf)

Screenshots: working bust