acemod / ACE3

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

Advanced Fatigue - Error - Zero Devisor #10516

Open OverlordZorn opened 4 days ago

OverlordZorn commented 4 days ago
21:38:03 Error in expression < = (ace_advanced_fatigue_aePathwayPower / _aePathwayPowerFatigued) min 2;
privat>
21:38:03   Error position: </ _aePathwayPowerFatigued) min 2;
privat>
21:38:03   Error Zero divisor
21:38:03 File /z/ace/addons/advanced_fatigue/functions/fnc_mainLoop.sqf..., line 134
21:38:04 Error in expression < = (ace_advanced_fatigue_aePathwayPower / _aePathwayPowerFatigued) min 2;
privat>
21:38:04   Error position: </ _aePathwayPowerFatigued) min 2;

Description: This occoured for the second time for me. Both times, (different game sessions), I was uncon for an extended period of time, likely to have lost a fatal amound of blood.

The Community i play with has a script hat keeps people alive and negates bleedout.

After I woke back up / i think i got Zeus Healed, the error disappeared.

Mods (complete and add to the following information):

Steps to reproduce:

_Follow this flowchart!_

  1. Go to ...
  2. Click ...
  3. See ...

Expected behavior: No Scripterrors :]

Where did the issue occur?

Log Files: https://gist.github.com/OverlordZorn/bc0302c059db1d7e9af3c7a466c8d405

Server CBA Settings https://github.com/gruppe-adler/userconfig/blob/34f81d7157de7f7059208977ba2740c34036e08f/cba_settings.sqf#L7-L11

BrettMayson commented 3 days ago

The Community i play with has a script hat keeps people alive and negates bleedout.

They will need to update that to keep a minimum spo2. You likely have no oxygen in your blood, and are being forced to be alive

OverlordZorn commented 3 days ago

The Community i play with has a script hat keeps people alive and negates bleedout.

They will need to update that to keep a minimum spo2. You likely have no oxygen in your blood, and are being forced to be alive

you have by chance a quick hint which value they need to adapt where / how?

OverlordZorn commented 3 days ago

https://github.com/gruppe-adler/Co_StoLeviv.Maksniemi/blob/63e93761ea825d3822449ae256ff4e67058ea1eb/functions/events/fn_addBleedoutPFH.sqf