SetDate does not work properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Alexander Wolf |
Bug Description
This is the script that does not work:
[code]
core.setDate(
for(i=0; i<199; i++)
{
core.setDate("+ 2616 weeks sidereal");
core.wait(0.2);
}
[/code]
In version 0.11.4 (32 bit, Windows 7 64 bit), it seems to work properly: the equatorial grid remains fixed on the screen while the time increases about 50 years every 0.2 seconds.
In version 0.12.1 (32 bit on Windows 7 64 bit), it does not work anymore: the equatorial grid starts spinning. Same script, two different behaviors.
In version 0.12.1RC1 (32bit, on Windows 7 64bit), the program crashes after few seconds.
I don't know if the correct behavior is for the 0.11.4 or the 0.12.1, but I need that the script works like the 0.11.4.
Is it a bug or did you change something? How can I rewrite my script in order to make it work like the 0.11.4 version?
P.S: if you change "2616 weeks" with "50 years" the script does not work in any version. It seems that the word "years" is not accepted by the interpreter.
Changed in stellarium: | |
status: | Invalid → Opinion |
Changed in stellarium: | |
status: | Opinion → In Progress |
importance: | Undecided → Medium |
Changed in stellarium: | |
status: | In Progress → Fix Committed |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
Please read it: http:// www.stellarium. org/doc/ 0.12.1/ classStelMainSc riptAPI. html#a0ada201c8 c3f235346411886 a41f447c