using scripts

General discussion about Celestia that doesn't fit into other forums.
Topic author
guest

using scripts

Post #1by guest » 30.01.2003, 10:41

hey i am new to this thing.. can somebody help me how to use the scripts ? I am not able to open th efiles with .ssc extension.. and the .cel files are appearing with Qtime .... I am kind of lost..

Kendrix
Posts: 159
Joined: 02.06.2002
With us: 22 years 6 months
Location: near Paris, France
Contact:

Post #2by Kendrix » 30.01.2003, 12:07

just drag'n'drop them in your favourite text editor : notepad, ultraedit, etc...

Parker

Post #3by Parker » 30.01.2003, 15:26

Kendrix wrote:just drag'n'drop them in your favourite text editor : notepad, ultraedit, etc...


Not too helpful for the REAL novice -- drag'n'drop what? Does Celestia have a "learn mode" such that you can walk the program through a program ("script") and save each step to a Notepad .cel file as you go? Or do you just use the list of scripting commands to type up your own script file in Notepad, etc., or other??

Parker

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #4by selden » 30.01.2003, 18:43

Parker (and others),

It's probably easiest to start Wordpad first and edit the file instead
of selecting the file first and hoping Windows will do the right thing.

One way to start Wordpad is to open Windows' main "Start" menu and select the "Run..." option. In the popup window's "Open" field, type "Wordpad" (without the quotes). Then select "OK".

To edit a file, select Wordpad's "File" menu and select its option "Open...". In the "Open" popup menu, choose "files of type" "All Documents (*.*)" which is down at the bottom if its menu. Still using Wordpad's "Open" menu window, browse to the appropriate Celestia directory folder. Select (double-click on) the file you want to edit. When you're finished changing it, you can select in the File menu either "Save" to overwrite the previous version or "Save As..." to write out a new file.

Unfortunately, the file name extensions (also known as "filetypes") that are used by Celestia are the same as are used by some other applications. This confuses Windows: if you double-click on those files, Windows will run the wrong helper program. There are ways to change the file associations, but they differ in the different versions of Windows.

Fortunately, the files used by Celestia that you need to edit (or create) are all just plain text files. Instead of starting with the file, you should start with the program you want to use to edit the files. I suggest using Wordpad, since it's on all Windows systems and works with Unix text files. Some of the text files supplied by the authors of various add-ons for Celestia separate lines by just a line-feed character. That's the standard line separator for Unix text files. Notepad doesn't cope with that very well, but Wordpad has no problems with it.

I hope this helps a little.
Selden


Return to “Celestia Users”