-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Description
Just starting to play around with the new release, and ran into an issue with the TIME variable. I have a script that updates a display with a field for the current game time. Prior to v1.3.0.0, this was done using the following statement:
PRINT time:clock.
After updating to v1.3.0.0, this now fails with the following error:
PRINT time:clock.
GET Suffix 'CLOCK' not found on object TIMESPAN(19323264.616226)
__________________________________________
VERBOSE DESCRIPTION
GET Suffix 'CLOCK' not found on object TIMESPAN(19323264.616226)
An attempt was made to get a suffix called:
clock
from an object of type:
TimeSpan
when that object does not have that
suffix usable in that way.
Possible causes are:
- No TimeSpan ever has a clock suffix.
- There is such a suffix, but it can't be used
with a get operation.
- There is such a suffix on some instances
of TimeSpan, but not this particular one.
__________________________________________
__________________________________________
At interpreter, line 16
PRINT time:clock.
^
Converting time:seconds to a TimeStamp then getting the clock suffix works, but if I am reading the updated documentation right, the TIME variable should be returning a TimeStamp already vs. a TimeSpan. I'm not sure if this is a bug with TIME or a documentation bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels