earth to moon

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

earth to moon

Post #1by ELF » 24.01.2011, 22:48

hi..I want to travel from earth to the moon but don't know how to make a script to do it....can someone can post the script here to help me????... it would be appreciated..

i also need to know where all the objects get copied to...the folders...
i want my camera to follow a craft..any craft will do...the craft should be fully visable but not too far from the camera...here it is..

At a altitude of 100 miles follow craft with camera to moon...duration 3 minutes..
At a altitude of 100 miles do a complete revolution of the moon ...duration 1 minute
return back to earth..duration 3 minutes..
at a altitude of 100 miles do a complete revolution of earth..duration 1 minute

if i can get this basic script to do this, then i have the basics to go further...

Also is there a wait/pause statement ?? loop statement? do in order statement? do together statement?

ED

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: earth to moon

Post #2by Fenerit » 24.01.2011, 23:35

Here http://www.shatters.net/forum/viewtopic.php?f=9&t=16165 you can find a script maker of scripts; it will record your action into another that will be the your.

As for learning about scripting language, you can explore the SCRIPTING subforum, there are several examples, methods and solutions. For its directives, take a look here: http://en.wikibooks.org/wiki/Celestia#Scripting
Never at rest.
Massimo

Topic author
ELF

Re: earth to moon

Post #3by ELF » 25.01.2011, 00:17

naw..no thanks..i want the info here on this thread..i don't want to wade through a mountain of jibberish to achieve a simple goal that can be posted here...

I already waded through all those web pages and so i ended up here...Joining the forum...asking a simple question...if anyones out there that write my script please help...i dont ask for much..

ED

Reiko
Posts: 1119
Joined: 05.10.2006
Age: 41
With us: 18 years 1 month
Location: Out there...

Re: earth to moon

Post #4by Reiko » 25.01.2011, 01:06

With that attitude you'll be waiting a very long time.

Topic author
ELF

Re: earth to moon

Post #5by ELF » 25.01.2011, 01:46

All i ask for is a simple script..is that too much to ask?

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

Re: earth to moon

Post #6by selden » 25.01.2011, 13:08

A single once-through Cel script probably wouldn't be too hard, but the setup probably would be substantial. First you need to specify the spacecraft's orbit. That would be a project in itself. Perhaps replicating something like the Apollo 8 flight would be easiest.

Cel scripts do not have loops. They're only a sequence of commands, one after the other. Most Cel commands tell Celestia to view things in a particular way. The pseudo-code that you provided can be translated almost directly into Cel commands, but the spacecraft's orbit must already have been defined in an SSC catalog file.

CelX scripts are written in Lua, which is a complete programming language. They can be quite complex and sometimes hard to debug.
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: earth to moon

Post #7by t00fri » 25.01.2011, 14:20

ELF wrote:All i ask for is a simple script..is that too much to ask?

As Selden already emphasized, that script will NOT be that simple...

I have another suggestion:
there are quite a number of working scripts available both in Cel and in Celx (Lua). Why don't you try to understand these first, thereby learning the scripting language of your choice. Most users have learned Celestia scripting precisely this way.

Then it will be way more satisfactory to try writing the desired script yourself. I can see no reason why you might only be able to learn Celestia's scripting languages from a particular script .

Fridger
Image

Topic author
ELF

Re: earth to moon

Post #8by ELF » 25.01.2011, 18:38

okee dokee...i would like to say this..if you have a move toward statement ..it would benefit everyone..also if you could show the script running in a box in real time...along with the world running..you would save time to make adjustments to the script...a calculator is a must have item to make changes to the script..

the commands..move to..copy..paste..pause...wait..move...turn..roll..resize..do together...loop.. could be clicked on and edited with the calculator???...drag and drop commands already installed in the interface would be of great benefit to users...

i can understand the complexity of programming this baby..its almost like when the world starts...wheres earth at? where am i at ...and where's my models at??

Thanks..
ED


Return to “Celestia Users”