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.
Feature Request
-
- Posts: 1048
- Joined: 19.10.2003
- With us: 21 years 1 month
- Location: Germantown, Ohio - USA
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
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
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 authordon
- Posts: 1709
- Joined: 12.07.2003
- With us: 21 years 5 months
- Location: Colorado, USA (7000 ft)
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.
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 ...
Hope this helps,
-Don G.
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.
-
- Posts: 1048
- Joined: 19.10.2003
- With us: 21 years 1 month
- Location: Germantown, Ohio - USA
-
- Posts: 1048
- Joined: 19.10.2003
- With us: 21 years 1 month
- Location: Germantown, Ohio - USA
-
- Posts: 1034
- Joined: 16.12.2002
- With us: 21 years 11 months
- Location: People's Republic Of Cork, Ireland
Lua can convert to JD too.
should print the result on screen, but only for some 1.5 seconds
First I wanted to post
(with 20 seconds display duration) until I realized that I am the only person around where this works. Doh!
But I hope 1.3.1 will have the new Lua-stuff and be ready soon.
Harald
Code: Select all
celestia:flash( celestia:tojulianday(2003,11,11,00,42,0) )
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!
But I hope 1.3.1 will have the new Lua-stuff and be ready soon.
Harald
-
- Posts: 1048
- Joined: 19.10.2003
- With us: 21 years 1 month
- Location: Germantown, Ohio - USA
Thanks AGAIN Don...
I *think* I'll use your suggested method. Looks much easier to me.
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.
Take care, Bob
I *think* I'll use your suggested method. Looks much easier to me.
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.
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
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