Feature Request

General discussion about Celestia that doesn't fit into other forums.
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 5 months
Location: Colorado, USA (7000 ft)

Feature Request

Post #1by don » 08.11.2003, 21:33

Howdy All,

It would be nice to be able to control the execution speed of a script, just like the speed of time (L-K-J-\ keys) on the keyboard. Especially for testing and debugging, when you have a long script and are testing the stuff at the end <smile>.

Thank you!

-Don G.

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

Post #2by Bob Hegwood » 09.11.2003, 03:15

Just do it like I do it, Don...

Just create a small test script and simply copy the code you wish to test to the file before you run it. Call it "test.cel" and have a ball.

Or, do you mean that you'd really like to control the speed of the script?

Now you've gotten me thinking again. I'd like to see a feature which would allow us to SET the time, as well as reverse it.

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

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

Post #3by don » 09.11.2003, 07:47

Howdy Bob,

Thanks for the cut-and-paste idea, which I use for small scripts. However, with a long script that changes many things (camera position, text, time, visible parameters, etc.) through the entire script, this doesn't work very well <sigh>. Just want to be able to quickly go through what might take several minutes, to get to the part that I'm working on right now.

Bob wrote:I'd like to see a feature which would allow us to SET the time, as well as reverse it.

Have you looked at my "Template Script" (http://ennui.shatters.net/forum/viewtopic.php?t=2961), or the Preliminary Celestia .CEL Scripting Guide (http://www.donandcarla.com/Celestia/)? Both demonstrate the time command ...

Code: Select all

# Set Date and Time...
#     U.S. Navy Calendar Date/Time to Julian Date/Time converter:
#       http://aa.usno.navy.mil/data/docs/JulianDate.html
#
#   time { jd JulianDate }

Hope this helps,

-Don G.

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

Post #4by Bob Hegwood » 09.11.2003, 18:37

Sorry Don...

I *do* have your documentation, and I'm afraid that I'm just Julian-Date time disabled. :)

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

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

Post #5by don » 09.11.2003, 18:40

Howdy Bob,

I am too.

Ummmmm, just look closely at the previous message. There is a URL in it that is very simple to use <smile>.

-Don G.

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

Post #6by Bob Hegwood » 09.11.2003, 18:51

Don,

You Da Man! That converter is GREAT resource for us JD-impaired types.

Thanks *very* much for the URL.

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

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

Post #7by don » 10.11.2003, 01:21

'Tis the ooooonly way to do jd stuff. 8) Wouldn't know what ta do otherwise!

-Don G.

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #8by JackHiggins » 10.11.2003, 23:45

Hehe... :) Before I found about that, I figured the only way to find JD would be to do it myself. So I made my own converter in M$ excel! (Along with the dozens of other ones I have made for xyz trajectories, ssc's etc... :D
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 3 months
Location: Germany

Post #9by Harry » 11.11.2003, 01:43

Lua can convert to JD too.

Code: Select all

celestia:flash( celestia:tojulianday(2003,11,11,00,42,0) )
should print the result on screen, but only for some 1.5 seconds :(

First I wanted to post

Code: Select all

celestia:flash(celestia:tojulianday(2003,11,11,00,42,0),20)

(with 20 seconds display duration) until I realized that I am the only person around where this works. Doh! :oops:

But I hope 1.3.1 will have the new Lua-stuff and be ready soon. :lol:

Harald

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

Post #10by don » 11.11.2003, 03:19

Ya see Bob, all ya gotta do is ask. Now you have your choice between three different methods of computing Julian dates <smile>!

Thanks Harald and Jack!

-Don G.

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

Post #11by Bob Hegwood » 11.11.2003, 06:03

Thanks AGAIN Don...

I *think* I'll use your suggested method. Looks much easier to me. 8O

PS - Don't I owe YOU a drink now too? You've certainly helped me as much as Selden has and I DEFINITELY owe him one. :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

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

Post #12by don » 11.11.2003, 07:23

No worries mate. We're all here to help each other.


Return to “Celestia Users”