PDA

View Full Version : Megascale +5 and Beyond



Steve
May 9th, '03, 10:26 PM
I was building a VERY long-range teleport power and noticed that when I added a +5 Megascale Advantage I received a negative number in the calculation. Beyond +5 some of the higher values also gave a negative number, but not all of them did.

lemming
May 10th, '03, 07:23 AM
Originally posted by Steve
I was building a VERY long-range teleport power and noticed that when I added a +5 Megascale Advantage I received a negative number in the calculation. Beyond +5 some of the higher values also gave a negative number, but not all of them did.
Probably has something to do with integer overflow. I noticed that in some cases "A LONG way was used"
I'd ignore it for now and Dan will probably fix it in a jiff when he gets back from vacation. (Vacation! Shouldn't he be chained to a computer somewhere?)

Simon
May 17th, '03, 03:38 PM
Originally posted by lemming
Probably has something to do with integer overflow. I noticed that in some cases "A LONG way was used"
I'd ignore it for now and Dan will probably fix it in a jiff when he gets back from vacation. (Vacation! Shouldn't he be chained to a computer somewhere?)

It is an overflow situation...just use the solution noted and you'll be good to go for now. The cases in which this will come up are so rare that it's probably not worth messing with right now....

Steve
May 18th, '03, 06:33 AM
Originally posted by dsimon
It is an overflow situation...just use the solution noted and you'll be good to go for now. The cases in which this will come up are so rare that it's probably not worth messing with right now....

Can't you just set it so that it uses "A LONG Way" (which starts at +4 3/4 Advantage) for any point beyond where you first say "A Long Way"? Taking it out even further, I have since found that +9 Advantage and beyond gives 1"=0km. If you have some sort of logical test that gives back "A Long Way" at a certain point, why not just make it true for all advantage values over +4 1/2? Or is that not how the logical test works in the program? Is it based off the value returned by the multiplier? I know this sort of thing won't come up much in normal Champions, but the Champions 3000 genre and more cosmic games can get into galaxy-hopping distances.