Skip to content
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

Pharma - Wrong params passed to ace_medical_treatment_fnc_onMedicationUsage #708

Open
DartRuffian opened this issue Jan 19, 2025 · 2 comments

Comments

@DartRuffian
Copy link

DartRuffian commented Jan 19, 2025

When using any medication, morphine; custom medication; etc. a script error appears.

This occurs on latest acemod/ACE3@81392aa and latest KAM release from Steam.

Error from RPT

20:23:50 Error in expression <ce_medical_treatment_fnc_overDose;
};
} forEach _incompatibleMedication;
>
20:23:50   Error position: <forEach _incompatibleMedication;
>
20:23:50   Error foreach: Type Number, expected Array,HashMap
20:23:50 File z\ace\addons\medical_treatment\functions\fnc_onMedicationUsage.sqf..., line 50
20:23:50  ➥ 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)
    [] L66 (/x/kat/addons/misc/functions/fnc_treatmentSuccess.sqf)
    [] L29 (z\ace\addons\medical_treatment\functions\fnc_medication.sqf)
    [] L35 (/x/cba/addons/events/fnc_targetEvent.sqf)
    [] L36 (/x/cba/addons/events/fnc_targetEvent.sqf)
    [] L36 (/x/cba/addons/events/fnc_targetEvent.sqf)
    [] L36 (/x/cba/addons/events/fnc_targetEvent.sqf)
    [] L115 (/x/kat/addons/pharma/functions/fnc_medicationLocal.sqf)
    [] L50 (z\ace\addons\medical_treatment\functions\fnc_onMedicationUsage.sqf)
@DartRuffian
Copy link
Author

Found the cause, https://github.com/KAT-Advanced-Medical/KAM/blob/dev-Tomcat/addons/pharma/functions/fnc_medicationLocal.sqf#L115 passes the wrong parameters to ace_medical_treatment_fnc_onMedicationUsage.

@DartRuffian DartRuffian changed the title Script error on ACE3 master and latest KAM release Pharma - Wrong params passed to ace_medical_treatment_fnc_onMedicationUsage Jan 19, 2025
@Cplhardcore
Copy link
Contributor

Cplhardcore commented Jan 19, 2025

Master Ace and stable KAM are not compatible with each other, #675 has the appropriate fixes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants