Don G's Celestia Scripting Resources


Celestia is a free (Open Source), real-time, 3-D, space simulation created by Chris Laurel, that lets you explore our solar system and universe in full three dimensional splendor. Check out the Celestia web site for more details.
 
 
.CEL Scripting Guide
This 55-page guide describes Celestia's CEL scripting language in easy-to-understand terms and includes many examples. It is currently available in two languages, English and German, and in several file formats...
 
File Type Size
KB
Lang. Ver. Description
MS Word Document (.doc) 672 English 1.0g For use with Word, Word Viewer, or OpenOffice.org only.
Adobe PDF file (.pdf) 381 English 1.0d (older version) For use with Adobe Reader.
HTML web page (.htm) 609 English 1.0g Left click to display page, then select File / Save As / Save as type / Web page, complete.
Rich Text Format (.rtf) 723 English 1.0g For WordPad and other Rich Text Format file viewers.
Adobe PDF file (.pdf) 532 German 1.0d For Adobe Reader. This translation graciously provided by Ulrich "Adirondack" Dickmann.


 
 

.CEL Scripts and How-To Guides
To save a file, right-click a File Name (URL) and select Save Target As. These ".cel" files have a secondary extension of ".txt" so that if you left-click the link, it will not run the script, which runs Celestia on your computer first! When saving a "filename.cel.txt" file to your computer, remove the ".txt" extension so that only the ".cel" extension is present.
 
File Name Size Description
CelScriptTemplate_v1_2.cel.txt 5 KB A fully functional template script that you can modify to set Celestia values the way you want, for all of your scripts.
MarkAndUnmarkCommands.cel.txt 4 KB How-To: Use the Mark and Unmark commands, with a full example script.
SunAndPlanetsSizeComparison_1_0_4.cel.txt 23 KB Display our solar system planets to compare their size to the sun, at a distance of two million km. Original author: Christoria. Modified by Bob H. and Don G.

 
 
.Celx (Lua) Scripts and How-To Guides
To save a file, right-click a File Name (URL) and select Save Target As. These ".cel" files have a secondary extension of ".txt" so that if you left-click the link, it will not run the script, which runs Celestia on your computer first! When saving a "filename.cel.txt" file to your computer, remove the ".txt" extension so that only the ".celx" extension is present.
 
File Name File
Type
Description Size
KB
Author
CelxMethods.rtf Doc A one-page RTF file that lists the current methods available in Celx, sorted by object. (This file last updated on April 26, 2004) 3 DonG
CelxCommands_1-5.rtf Doc Easy-to-read and print text file of Celx commands. The guts of this file came from Harald Schmidt's Summary of Lua-support in Celestia web page during April, 2004. It has been reformatted, includes a brief intro to objects (classes / types) and methods, many examples and notes, etc. For a short introduction to Lua syntax, variables, etc. please refer to Harald's page. (This file last updated on April 26, 2004) 61 DonG
Lua Support in Celestia URL Link to Harald Schmidt's "Summary of Lua-support in Celestia" web page. -- Harald
Lua Documentation URL Link to the Lua web site documentation page. -- Lua
CleanupExample_v1-2.celx.txt Script Example that demonstrates the use of the Celx, automatically-executed celestia_cleanup_callback() function. This function allows your script to reset the user's settings back to the way they were when your script started. 5 DonG
RunAScript_v1-1.celx.txt Script Menu that displays a list of Celx scripts on-screen and then allows the user to select one of the scripts via a key press. Makes a nice Tool menu, and is also useful for running the same script over and over (ie. script creation & debugging). 5 DonG
DateConverter_v1-0.celx.txt Script Allows the user to enter either a Calendar or Julian date/time, and then displays the date converted to the other format. 11 DonG
MarkMultiSpectralTypes.celx.txt Script Allows the user to select a specific star spectral type and then marks all stars of this type with a marker. From http://shatters.net/forum/viewtopic.php?t=4902. 7 Toti
FlashMarker_v1-1.celx.txt Function Helps draw the viewers attention to the object you are trying to point out, by flashing a marker of your specification on the selected object. 9 DonG
ShrinkMarker_v1-1.celx.txt Function This function helps to draw the viewers attention to the object you are trying to point out by shrinking a marker of your description from a beginning to ending size, in x steps, repeated y times. 9 DonG
PauseAScript_v1-0.celx.txt Function Pauses the script and waits for the user to press the spacebar. 4 DonG
PrintFunctions_1-1.celx.txt Function Provides easy to use print functions that you can use in your own Celx scripts. textWrap automatically wraps a paragraph of text to your specifications. displayTime calculates how long to display text on the screen. printLL displays text in the lower left-hand corner of the display, automatically calling autoWrap and displayTime, if desired. 15 DonG
MarkSpectralType_1-1_Don.celx.txt Function Allows you to define a specific star spectral type and then marks all stars of this type with a 10-pixel pink triangle marker. Base code by Chris Laurel. 2 DonG
GetUserInput_v1-0.celx.txt Function Allows the user to enter a single line of text in reply to your text prompt for information. 5 DonG
SetNewDate_v1-0.celx.txt Function Allows the user to enter a new date, then Celestia sets that date. 8 DonG

 
Celestia Related Links
Here are some links to other folks web/ftp pages that feature Celestia scripts:
   AuReality's Celestia Page (AutoPilot for Windows, CEL: Space Opera)
   Bob Hegwood's Celestia For The Brain-Dead (lots of nice tour scripts in CEL)
   Harald Schmidt's Lua/Celx Page (many Celx scripts, and a 'Summary of Lua-support in Celestia' page)
   Solar System Tour Generator
 
Here are some links to Celestia Scripting forum topics that contain script code embedded in the messages:
   CEL: Planet Size/Distance Comparison, by christoria
   CEL: Sun vs. Planets Size Comparison (modified, originally by christoria)
   CEL: Voyager 1 Flyby, by Oniisan (top of page)
   CEL: Voyager 2 Flyby, by Oniisan (halfway down the page)
   CEL: Basic Voyager 2 Trajectory, by Paul L.
   CEL: Solar System Tour, by christoria
   CEL: Solar System Mini Tour, by L2Cache
   CEL: Updated Solar System Mini Tour, by L2Cache
   CEL: perl-generated tour scripts, by DoS
 
   Celx: Deep Space Tour, by Tim Mc
   Celx: Updated Deep Space Tour, by Tim Mc
   Celx: Solar System Tour, by Tim Mc (mod version of Harald's script)
   Celx: Updated Solar System Tour, by Tim Mc (mod version of Harald's script)
   Celx: Solar System Tour for Celestia 1.3.2, by Tim Mc (mod version of Harald's script)
   Celx: Select/Mark Spectral Classes, by Toti
   Celx: Time Acceleration Function, by Toti
   Celx: Intro to Celx Vectors, by Toti
   Celx: Display Orbital Speeds, by Toti
   Celx: Interactive Frames and Coordinates Explorer, by JPierre
 
   Windows: AutoPilot, by AuReality (a custom Celx script generator)
 

E-Mail Me

Last Update: Sep 8, 2004
Contents Copyright ©2004, Don Goyette
 
 visitors since July 9, 2004

Celestia Web Ring Home Page
[ List | Random | Next ]