Page 1 of 1

1.5.0CVS: Timerate is inaccurate (WIN32)

Posted: 11.12.2006, 01:01
by Adirondack
The timerate doesn't work properly in cel-scripts with 1.5.0 CVS (WIN32).

250 goes 300 (rounded up)
320 goes 300 (rounded off)
350 goes 400 (rounded up)
380 goes 400 (rounded up)
400 goes 400 (OK)

Code: Select all

{
select { object "Sol/Earth" }
follow {}
print { text "Timerate 250" row -4 column 1 duration 10.0}
timerate { rate 250 }
wait { duration 10 }
print { text "Timerate 320" row -4 column 1 duration 10.0}
timerate { rate 320 }
wait { duration 10 }
print { text "Timerate 350" row -4 column 1 duration 10.0}
timerate { rate 350 }
wait { duration 10 }
print { text "Timerate 380" row -4 column 1 duration 10.0}
timerate { rate 380 }
wait { duration 10 }
print { text "Timerate 400" row -4 column 1 duration 10.0}
timerate { rate 400 }
wait { duration 10 }
timerate { rate 1 }
}



Adirondack

Posted: 11.12.2006, 18:17
by Toti
The timerate is correctly set by the script, but the readout was being rounded a bit too much. It's fixed now.

Posted: 11.12.2006, 21:57
by Adirondack
Thanks, Toti.

Adirondack

Posted: 11.12.2006, 23:41
by Adirondack
Toti,

I have updated my local CVS (Dec 11, 22:15 UT) and I did compile the EXE anew (with empty Release dirs).
But the error still exists (it is not fixed). :cry:

Adirondack

Posted: 12.12.2006, 01:06
by Toti
Sorry, my mistake :oops:.
It should have been committed this time.