Page MenuHomeFeedback Tracker

Bug in bis_fnc_radialRed
Need More Info, NormalPublic

Description

Logged scripterrors for bis_fnc_radialRed on line 54

Zero devisor

_dirToFront = (180 - _dir) / 180;

Details

Severity
Trivial
Resolution
Open
Reproducibility
Sometimes
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Playing the game

Event Timeline

Rougle created this task.Oct 7 2024, 9:49 PM
dedmen added a subscriber: dedmen.Oct 9 2024, 10:22 AM

Please run the game with -debug parameter.
And attach the full RPT log file for this error

dedmen changed the task status from New to Need More Info.Oct 9 2024, 10:22 AM
Rougle added a comment.Oct 9 2024, 2:09 PM

Sorry for being unclear.

Is comming from my error database. Looking at the code it would have to do with the relative direction between two players being 180 causing the 0 devisor to appear. This function is being called by the game itself and not something which i can control.

_unit = _handleDamageArray select 0;
_shooter = _handleDamageArray select 3;
_dir = if (_unit == _shooter) then {
	0
} else {
	[_unit,_shooter] call bis_fnc_relativedirto;  // Might be 180
};
if (isNil "_dir") then {_dir = 0};	
_dirToFront = (180 - _dir) / 180; // Zero devisor if _dir is 180

This error happens about once every 250 hours of playtime on a deathmatch server.

The error is from the next line:

_dirToEnd = (abs _dirToFront / _dirToFront) - _dirToFront;