Page 1 of 1

Restore Full Range Frame Yardage Customization

Posted: Mon Dec 18, 2017 2:40 am
by TheCheat
A build of DBM this past week has locked the range frame to 9 specific values instead of having free customization. This is kind of silly since a /range 7 command is perfect for tank positioning on Varimathras Heroic without forcing silly tank movement, just as an example. There's really no reason to limit what the frame can be set to other than having an upper bound (such as the current max of 43).

We tested this on Tuesday and it worked incredibly well. Now, however, the frame only goes to 6 or 8 yards.

Re: Restore Full Range Frame Yardage Customization

Posted: Mon Dec 18, 2017 5:25 am
by MysticalOS
7 would have never worked.because there is no way to check that. 5, 6 and 8 have always been standard, i you typed 7 it would have just been rounded to 8 since there is no item check for 7. You can blame blizzard for non precise ranges. With no official range API all mods can do is a crappy text based range finder with items that have specific ranges. 7 isn't one of them. Never was.

I also suspect highly that in 8.0 this too will Get fixed, as it was never intended that you can change ranged on items you DO NOT possess. But api bug allows it. They'll probably fix that bug which means range frame will simply be 10, 11, 18, 30 and that's it.

Re: Restore Full Range Frame Yardage Customization

Posted: Tue Dec 19, 2017 11:04 pm
by TheCheat
If this is as you suggest then we might have actually experienced a bug and I believe 7 was rounding down to 6. Otherwise we would have been taking Alone hits repeatedly last Tuesday and that wasn't the case.

Re: Restore Full Range Frame Yardage Customization

Posted: Tue Dec 19, 2017 11:10 pm
by MysticalOS
It'll always round up not down. because rounding down would make range too small for protection. 7 would have just rounded to 8.

if range <= 5 then
range = 5
elseif range <= 6 then
range = 6
elseif range <= 8 then
range = 8
elseif range <= 10 then
range = 10
elseif range <= 11 then
range = 11
elseif range <= 13 then
range = 13
elseif range <= 18 then
range = 18
elseif range <= 22 then
range = 22
elseif range <= 30 then
range = 30
elseif range <= 43 then
range = 43
elseif range <= 50 then
range = 50
elseif range <= 60 then
range = 60
elseif range <= 80 then
range = 80
end