Page 1 of 1

[Twinsen][0.17.17] Slider in constant combinator skips 1

Posted: Sun Mar 24, 2019 9:53 pm
by dirtcrusher
When modifying a value in a constant combinator using the slider, the value of 1 is skipped.
This happens when using the mouse to drag the slider, or by using the scroll wheel when hovering over the slider.

It can be reproduced easily in a clean vanilla save with the following steps:
  1. Place down constant combinator
  2. Add any signal
  3. Hover over the value slider and scroll down to make the signal 0, then scroll up one tick.
    The value will be 2 instead of 1

Re: [0.17.17] Slider in constant combinator skips 1

Posted: Sun Mar 24, 2019 10:02 pm
by tehfreek
Confirmed. Additionally, the last two positions both give a value of 100k. This smells like an off-by-one error.

Re: [0.17.17] Slider in constant combinator skips 1

Posted: Sun Mar 24, 2019 11:50 pm
by Rseding91
I'm not sure if this is a bug or not. The slider just translates the slider horizontal position using a log scale to the result number. It doesn't care if any given number is possible as a result - it just runs the calculation and gives a number back every time the slider moves.

Re: [0.17.17] Slider in constant combinator skips 1

Posted: Mon Mar 25, 2019 5:32 am
by steinio
One is the lonelyest number...

Re: [Twinsen][0.17.17] Slider in constant combinator skips 1

Posted: Wed Mar 27, 2019 2:39 pm
by Twinsen
Fixed both issues in Version: 0.17.22.
Thanks.