He-Man Posted October 27, 2015 Report Share Posted October 27, 2015 Hi, found a little Bug in the Epoch Masterloop: 0:47:44 Error in expression <EPOCH_chargeRate = ceil(_totalCapacity / (count _players));EPOCH_nearPower = t> 0:47:44 Error position: </ (count _players));EPOCH_nearPower = t> 0:47:44 Error Zero divisor 0:47:44 File x\addons\a3_epoch_code\compile\setup\EPOCH_masterLoop.sqf, line 518 The lines shows:_players = player nearEntities[["Epoch_Male_F", "Epoch_Female_F"], _energyRange];EPOCH_chargeRate = ceil(_totalCapacity / (count _players)); Now, when I'm alone on a Server:"_players = player nearEntities[["Epoch_Male_F", "Epoch_Female_F"], _energyRange];" will be 0-> ceil(_totalCapacity / 0; -> Error Better should be:_players = player nearEntities[["Epoch_Male_F", "Epoch_Female_F"], _energyRange];if (count _players == 0) then {EPOCH_chargeRate = ceil _totalCapacity;} else { EPOCH_chargeRate = ceil (_totalCapacity / (count _players));}; Link to comment Share on other sites More sharing options...
vbawol Posted October 28, 2015 Report Share Posted October 28, 2015 (edited) Thanks! got a fix for this added in the next patch (0.3.5.0)_players = player nearEntities[["Epoch_Male_F", "Epoch_Female_F"], _energyRange]; if (_players isEqualTo []) then { EPOCH_chargeRate = ceil _totalCapacity; } else { EPOCH_chargeRate = ceil (_totalCapacity / (count _players)); }; Edited October 28, 2015 by vbawol KPABATOK 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now