Celestia .CEL Scripting Guide for 1.3.1 final

All about writing scripts for Celestia in Lua and the .cel system
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Celestia .CEL Scripting Guide for 1.3.1 final

Post #1by don » 14.12.2003, 15:48

Howdy Everyone,

An updated final version (1.0d) of the Celestia .CEL Scripting Guide is now ready for you to download. It is available in .doc, .html, .pdf, and .rtf formats from my Celestia web page: http://www.donandcarla.com/Celestia/.

Please post your comments, suggestions, additions, corrections, etc.!!!

Thank you, and HAPPY SCRIPTING!

-Don G.

PS. Updated on Jan 6, 2004.
Last edited by don on 06.01.2004, 07:31, edited 2 times in total.

christoria
Posts: 74
Joined: 03.11.2003
With us: 21 years

Thank You

Post #2by christoria » 22.12.2003, 03:25

Thanks don,

I've had no time lately to do anything with Celestia, but this will certainly come in handy when I do.
Thank you,

christoria
-------------
Your stomach has to produce a new layer of mucus every two weeks; otherwise it will digest itself.

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

Post #3by Bob Hegwood » 22.12.2003, 06:29

Mr. Goyette,

I downloaded the documentation just the other day, and am now in the process of trying to read it. (Been busy playing with 51 separate addons from Jestr... Whew!)

Thanks very much for the resource. It's these documents which make learning about Celestia sooo... much easier. I *still* don't understand half of what I'm doing, but your guides have helped me figure out the other half. :)

Keep 'em coming willya?

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 4 months
Location: Colorado, USA (7000 ft)

Post #4by don » 22.12.2003, 19:19

Thanks guys, you're very welcome. It's nice to know that it helps <smile>.

HAPPY HOLIDAYS!

-Don G.

Guest

Set orbits in script in 1.3.1-1?

Post #5by Guest » 19.01.2004, 20:58

I'm testing a script with Celestia 1.3.0 and 1.3.1-1. The command to turn on orbits: renderflags { set "orbits" } does not work in 1.3.1-1 on my Windows system. Are there new orbit script commands for 1.3.1-1? I have not found any in the documentation.

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

Re: Set orbits in script in 1.3.1-1?

Post #6by Harry » 19.01.2004, 21:18

Anonymous wrote:I'm testing a script with Celestia 1.3.0 and 1.3.1-1. The command to turn on orbits: renderflags { set "orbits" } does not work in 1.3.1-1 on my Windows system. Are there new orbit script commands for 1.3.1-1? I have not found any in the documentation.


Works here on Linux, and I would be surprised to see any difference on Windows, but I can't test it right now. Do you have any specific orbits (like planet-orbits, spacecraft-orbits, etc.) enabled?

Harald

L2Cache
Posts: 25
Joined: 19.01.2004
With us: 20 years 10 months

Re: Set orbits in script in 1.3.1-1?

Post #7by L2Cache » 20.01.2004, 02:04

Anonymous wrote:I'm testing a script with Celestia 1.3.0 and 1.3.1-1. The command to turn on orbits: renderflags { set "orbits" } does not work in 1.3.1-1 on my Windows system. Are there new orbit script commands for 1.3.1-1? I have not found any in the documentation.


I found that if the user has moons and planets orbits checked under render, view options, orbits/labels, the orbits commands in the script can turn them off and on; but if the user has them unchecked, the orbits command, renderflags { set "orbits" }, will not turn them on.
I tried making up commands like renderflags { set "planetorbits" } or lables { set "planetorbits" }; but nothing worked. I need a way to turn these on from a script if the user has them unchecked.

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

Re: Set orbits in script in 1.3.1-1?

Post #8by don » 20.01.2004, 21:29

Anonymous wrote:I'm testing a script with Celestia 1.3.0 and 1.3.1-1. The command to turn on orbits: renderflags { set "orbits" } does not work in 1.3.1-1 on my Windows system. Are there new orbit script commands for 1.3.1-1? I have not found any in the documentation.

If you look at the View Options dialog box in Windows, there are several sections in it, including Show, Orbits/Labels, Filter Stars and Information Text.

The renderflags { set "orbits" } command in CEL scripting, and the "o" keyboard command, affect only the Show section of this dialog box. To date, there are no keyboard or script commands that affect the Orbits part of the Orbits / Labels section. Thus, this would be an enhancement request for a future version.

Cheers,

-Don G.

L2Cache
Posts: 25
Joined: 19.01.2004
With us: 20 years 10 months

orbits

Post #9by L2Cache » 20.01.2004, 23:03

>To date, there are no keyboard or script commands that affect the Orbits part of the Orbits / Labels section.

Then I guess, in our scripts, we will have to tell the 1.3.1 users to make sure they have checked, in the Orbits / Labels section, the orbits we want to turn off and on in our scripts, like moons, planets, etc. Otherwise, if the user has them unchecked, the script won't be able to turn them on.

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

Post #10by don » 20.01.2004, 23:12

Correct.

However, ALL orbits selected via Orbits/Labels are either shown or not shown (via Show Orbits). So this must be taken into account also.

Avatar
Adirondack M
Posts: 528
Joined: 01.03.2004
With us: 20 years 8 months

Post #11by Adirondack » 01.04.2004, 13:12

Well, it would be great, if an object-Argument could be implemented in the renderflags Command.

Like this:

Code: Select all

renderflags { object "Mars" set "orbits|automag|atmospheres|nightmaps" }


So a specific object could be selected for displaying the specific orbit (and not also the orbits of other plantes etc.) and other stuff.

But I'm not sure, if this is possible at all.

Adirondack

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

Post #12by don » 01.04.2004, 21:42

Agreed. Many folks have requested this in the past, so it must be on someone's to-do list by now. Not sure when we might see something like this though.
-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”