Core.wait() doesn't work right in scripts in 11.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Medium
|
Unassigned |
Bug Description
core.wait(); is not working right in the new version 11.4
If you put a value under 1 second, it will round up to 1
For instance, if your line is core.wait(0.25);
the script will wait a full 1 second instead of a quarter of a second. No matter what decimal you put in, it will wait 1 second
It looks like somehow in version 11.4 core.wait() can only do integers of being able to do decimals (double).
Here's an simple example to show
// Name: 1 Hour advance to check core.wait bug
// License: Public Domain
// Author: Qam1
// Description: 1 Hour advance to check core.wait bug
//
q = 1
while (q == 1)
{
core.setDate("+1 hours");
core.wait(0.1);
}
Please make this a critical bug, most of my (and I am sure other people's) scripts I made for Stellarium (and my private ones) now don't work effectively.
Qam1
tags: | added: win64 |
Changed in stellarium: | |
status: | New → Confirmed |
tags: | added: scripting windows |
Changed in stellarium: | |
status: | Confirmed → In Progress |
Changed in stellarium: | |
status: | In Progress → Fix Released |
milestone: | 0.14.0 → none |
I am using windows 7 and the 64 bit version of Stellarium 0.11.4
On a hunch from a discussion in the forums I downloaded, installed and ran the 32 Bit version of 0.11.4 and wa-la the bug is not there.
So this bug is in the 64 bit Windows version only (I don't know about mac or Linux).