Possibility to pause .CEL scripts without interrupting.

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Guest

Possibility to pause .CEL scripts without interrupting.

Post #1by Guest » 12.02.2004, 14:43

Hey,

Is there a possibility to pause a .cel script, without interrupting it, to go on after playing around with a selected object.
In the script language there is no specific instruction.

greez

Ruud Schuurman (Netherlands)

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years
Location: Germantown, Ohio - USA

Post #2by Bob Hegwood » 12.02.2004, 16:12

Ruud,

Do you mean something other than the wait command?

wait {duration 5.0}

The above will pause for 5 seconds.

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #3by don » 12.02.2004, 17:47

One thing I would personally like to see implemented is an external pause, generated by the user. For example, when the spacebar is pressed, time pauses, but scripts continue to run. I think scripts should also pause when the spacebar is pressed.

-Don G.

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years
Location: Germantown, Ohio - USA

Post #4by Bob Hegwood » 12.02.2004, 21:12

don wrote: One thing I would personally like to see implemented is an external pause, generated by the user. For example, when the spacebar is pressed, time pauses, but scripts continue to run. I think scripts should also pause when the spacebar is pressed.


Whoops! :oops:

Sorry Ruud. Sorry Don. As usual, I guess I didn't understand what you were getting at!

The feature you suggest sounds like a good one to me too, Don. My latest is running at about fifteen minutes now, so this would be a useful feature.

Thanks, Bob
Bob Hegwood

Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.0 Pre6 FT1

Parker Moreland

Pausing .CEL scripts

Post #5by Parker Moreland » 26.02.2004, 06:16

Raud, Don, Bob --
Teachers using Celestia scripts in class need "external" pausing of the script -- despite one's best efforts at timing, with wait commands or duration of orbiting, etc., questions will come up, and it's always best to answer them at once. Can't do it now (that I'm aware of), so this feature would be very helpful.
Parker

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years
Location: Germantown, Ohio - USA

Post #6by Bob Hegwood » 26.02.2004, 07:18

Parker,

Thank you very much for that assessment... Unfortunately, that decision is not up to Don, Raud or Bob. :cry:

We *do* appreciate the comments though.

Thanks very much for your thoughts. :wink:

Take care, Bob
Bob Hegwood

Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.0 Pre6 FT1

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #7by don » 26.02.2004, 08:01

Howdy Parker and all,

Not only do teachers need it, so do husbands who are showing scripts to their wives (or kids), who want to ask a lot of questions! :lol: I've run into this particular circumstance many times.

With any luck, maybe we can encourage one of the developers to add this, as it *seems* that it should be fairly easy, but I don't know for sure.

-Don G.

Wizard
Posts: 15
Joined: 31.01.2002
With us: 22 years 9 months

Post #8by Wizard » 03.03.2004, 20:42

Here is a workaround. If you have Celestia in windowed mode and you hit "Alt" it will pause the script. Press "Alt" key again to resume. This does not work in full screen mode.

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #9by don » 03.03.2004, 23:04

Well, yes and no ... it pauses the script but does not pause time. Many scripts are time-sensitive, so this would not work for them.

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Re: Possibility to pause .CEL scripts without interrupting.

Post #10by don » 21.04.2004, 07:10

Ruud wrote:Is there a possibility to pause a .cel script, without interrupting it, to go on after playing around with a selected object.

In version 1.3.2 pre7, you can press the spacebar and it will pause both time AND scripts. Press it again, and both proceed.
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.


Return to “Scripting”