A Brief Question Of Time

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

A Brief Question Of Time

Post #1by Chuft-Captain » 06.11.2017, 11:51

Hi guys,

Anyone know if it's possible to interactively STOP time in Celestia?

Before everyone responds "use the SPACEBAR idiot!", I'm NOT talking about simply "pausing" simulation. I'm talking about setting the timescale to zero.
There's a subtle difference. One is simply pausing execution, whereas the other is setting the simulation timescale to zero whilst allowing execution (eg. of the script) to continue.
eg.
Here is Celestia running with the simulation time paused:
paused.jpg
paused.jpg (9.38 KiB) Viewed 2678 times

Here is Celestia with the time stopped:
stopped.jpg
stopped.jpg (8.87 KiB) Viewed 2678 times

This "Time Stopped" state is only achieved from within a script via the celx command: celestia:settimescale( 0 ), however as far as I can recall there's never been a keystroke assigned so that this can be done interactively. eg. The "\" key is equivalent to: celestia:settimescale( 1 )
It's quite possible to manipulate the timescale to almost any value interactively using combinations of the "\", "J", "K","L" keys (and caps-lock), but it appears the only way to set it to ZERO is via the celx command.

... As you can see, when running a script, it is possible to stop time within the script, and also pause execution with the spacebar, which makes clear the distinction between "Paused" and "Time Stopped" (timerate=0):
stopped_paused.jpg
stopped_paused.jpg (9.49 KiB) Viewed 2678 times


To summarize:
PIC 1: timescale= 1, simulation paused ... ("\", SPACEBAR)
PIC 2: timescale= 0, simulation running ... (script only)
PIC 3: timescale= 0, simulation paused ... (script + SPACEBAR)

Cheers
CC

EDIT. Corrected this thread to change all references to "celestia:timescale()" method (which I inadvertently referred to as "celestia:timerate()").
Last edited by Chuft-Captain on 06.11.2017, 21:27, edited 3 times in total.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Avatar
CM1215 M
Posts: 221
Joined: 30.08.2017
Age: 22
With us: 7 years 2 months
Location: Ohio, U. S. A.

Post #2by CM1215 » 06.11.2017, 11:57

I have found that if you start the demo and then press the esc. key to cancel, it will stop time like what you are saying (it won't simply pause it). I actually don't know of a single key that can achieve what you are trying to achieve, though this is as close as I can get.

I hope this helps.
CM1215: Celestial master in learning.

Avatar
Topic author
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #3by Chuft-Captain » 06.11.2017, 12:15

CM1215,

Sadly no. The demo script's first command is: "timerate { rate 0 }" (the CEL equivalent of celestia:settimescale( 0 ).

By hitting ESC, you just exit the script, and whatever timerate was set by the script is retained, but thank you because your example DOES demonstrate the problem perfectly...

Without exiting the DEMO, it's quite possible to use the "\" key to change the timescale, however once you've done that, there's no way to return to "Time Stopped" again while the DEMO continues.
THIS is the crux of the issue: the timescale again has been set to ZERO by a script (in this case a CEL script), and it can be changed interactively to any other timescale (except ZERO) while the script continues to execute.

Cheers
CC
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

perryna
Posts: 1
Joined: 21.05.2018
With us: 6 years 6 months

Post #4by perryna » 21.05.2018, 13:31

Celestia needs a "floating time dialog window" where all the features of time control are found in one convenient dialog window, similar to the way it is done in "MuseScore" the wonderful interactive software that plays musical scores in real time. Also the user would be allowed to adjust the font size and/or display size, for easier reading. :smile: :smile:


Return to “Help Central”