X39 / XMS2

X39s Medical System 2 (or short XMS2) is a modification for the game ArmA 3
9 stars 0 forks source link

Temperature simulation is incorrect, Improovement is required in prone behaviour #39

Closed Boozdeuvash closed 9 years ago

Boozdeuvash commented 9 years ago

After getting shot by an AI with an AKM (Mod), i went to blackscreen unconscious and lost temperature to 0 in just a few seconds (less than 10). Then it said I dies to coldness. the end.

Note that I was running a few other mods including AGM (not AGM medical or any other medical systems).

This did not happen when shot with another weapon (Stinger 9mm), but I didnt get shot enough to get into blackout.

will test with other vanilla/non-vaninnal weps.

MrP0tter commented 9 years ago

I'll run some tests as well on my end. Let us know if other weapons generate this problem, and do you know what mod the AKM was from?

X39 commented 9 years ago

Will check the temperature tick Maybe there is something not implemented correctly

X39 commented 9 years ago

An RPT log with the debug version would also help Could you provide us one @boozdeuvash ?

Boozdeuvash commented 9 years ago

I'll try to reproduce on a clean instance so you can have a decent rpt instead of the disaster produced by ou current build. Shouldnt take too long.

Edit: Reproduced with vanilla gear (got shot at a lot by a CSAT grunt) on Stratis. The regular RPT didnt contain anything so I took one with the Debug version, and so huhh, good luck.

Of note: 12:36:39 "291.779: [B Alpha 1-1:1 (Boozdeuvash)] call X39_MS2_fnc_getTemperature" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after rain part of simulation: 0.0001" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after ocean part of simulation: 0.0001" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after shelter part of simulation: 0.0001" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after environment part of simulation: 0.0001" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after daytime part of simulation: 0.0101" 12:36:39 "291.779 - X39_MS2_fnc_temperatureTick: _temperatureChange after height part of simulation: 0.0101" 12:36:39 "291.78 - X39_MS2_fnc_temperatureTick: _temperatureChange after body stress part of simulation: 0.0101" 12:36:39 "291.78 - X39_MS2_fnc_temperatureTick: _temperatureChange after prone reduction part of simulation: -0.2399" 12:36:39 "291.78 - X39_MS2_fnc_temperatureTick: _temperatureChange after fireplaces part of simulation: -0.2399"

The above happens about every second while knocked out. 12:36:39 "291.78: [B Alpha 1-1:1 (Boozdeuvash)] call X39_MS2_fnc_getWetness" 12:36:39 "291.78: [B Alpha 1-1:1 (Boozdeuvash),0] call X39_MS2_fnc_addWetness" 12:36:39 "291.78: [B Alpha 1-1:1 (Boozdeuvash)] call X39_MS2_fnc_getWetness" 12:36:39 "291.78: [B Alpha 1-1:1 (Boozdeuvash),0] call X39_MS2_fnc_setWetness" 12:36:39 "291.78 - X39_MS2_fnc_temperatureTick: _temperatureChange after wetness part of simulation: -0.2399" 12:36:39 "291.78: [B Alpha 1-1:1 (Boozdeuvash),-0.2399] call X39_MS2_fnc_addTemperature"

Where do i upload the RPT?

Boozdeuvash commented 9 years ago

Another thing, disabling the temp feature in the init "solves" the problem. Not sure if it helps :)

X39 commented 9 years ago

disabling the temp feature

as the problem relies on the temperature system it was to be expected that it wont happen when you disable the temperature system

from the RPT log perspective it looks like the calculation is not 100% correct the important line about it is

12:36:39 "291.78 - X39_MS2_fnc_temperatureTick: _temperatureChange after prone reduction part of simulation: -0.2399"

meaning that the temperature is reduced after being prone (which is expected behaviour but !NOT THAT MUCH!) gonna alter this tickets title so that the correct thing is fixed (its mostly just a change of the variables used ... so its just a default variable change)

thx for your help (ps. next time, report the entire RPT log at some file host, examples: http://dropbox.com http://mediafire.com http://mega.co.nz)

X39 commented 9 years ago

Please check the prone tick, the current value is reducing the player temperature WAY to fast (see comments above for more information about that)

goal: WAY smaller temperature loss by being prone (eg. 0.001 temperature loss for being prone)

X39 commented 9 years ago

X39_MS2_var_Temperature_reductionByBeingPronePerTick default value is 0.25 which is WAY to much

will be reduced to 0.025 in next update