Installing Scripts

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Installing Scripts

Post #1by Scott Chapin » 03.08.2004, 23:04

How do you install scripts? I downloaded a celx script which will launch Celestia just fine from the download folder, but when I run it from within Celestia, I grt the following fatal error:

:16:attempt to call method 'newposition'(a nil value)

Thanks

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

Re: Installing Scripts

Post #2by Harry » 04.08.2004, 00:07

Scott Chapin wrote:How do you install scripts?
Not at all... They should run from pretty much everywhere without installing.
I downloaded a celx script which will launch Celestia just fine from the download folder, but when I run it from within Celestia, I grt the following fatal error:

:16:attempt to call method 'newposition'(a nil value)

What script? What version of Celestia?

Are you sure you are using the same version of Celestia both times?

Harald

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Re: Installing Scripts

Post #3by Scott Chapin » 04.08.2004, 00:19

It's your ALT-AZ script

What script?

show-azimuth-elevation_v1.2.celx

Are you sure you are using the same version of Celestia both times?

Harald


Yes, I'm new to this, so I believe I have the latest:

1.3.1

Thanks

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #4by Scott Chapin » 04.08.2004, 01:05

Harry,

I have just now come to realize that the program at the official site is not the latest and greatest. I just found 1.3.2pre8, and it works.

Thank you!

Scott

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

Post #5by don » 04.08.2004, 08:39

Howdy Scott,

Scott Chapin wrote:I have just now come to realize that the program at the official site is not the latest and greatest. I just found 1.3.2pre8, and it works.

Actually, 1.3.1 is the latest "final" release. Everything after that is a "pre-release", which basically means it has new features, some bug fixes here and there, etc. Pre-releases are normally fairly stable, except for brand new features, which sometimes don't work as expected on all platforms, or might even break previous functions that did work properly.

The current pre-release is 1.3.2 pre11, and is available here:
http://www.shatters.net/celestia/files/celestia-win32-1.3.1pre11.exe

Cheers,
-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.

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #6by Scott Chapin » 04.08.2004, 09:44

Hi Don,

I figured that prelease meant beta, but I wanted Harald's script. Now I need to figure out how to use Celestia as a planetarium. The German manual describes it, but my German is not that good.

I'm at 33.88 North Lat, so when I pick 56.12 N Lat and hit CTRL-G, I wind up on the surface with the horizon at my zentih, but I cannot control the azimuth nor altitude of my view.

I can go to my true position and hit CTRL-G, like the manual says, but I wind up a 56.12 N Lat. Seems like CTRL-G swings your radial 90degs.

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

Post #7by selden » 04.08.2004, 10:29

Scott,

After you get to the surface, type Ctrl-F to change the arrow keys into Alt-Az controls.

See The Preliminary User's FAQ, Q/A #19
Selden

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #8by Scott Chapin » 04.08.2004, 22:04

Selden,

Thank you. That was most helpful. Where can those FAQs be found? It might spare a plethora of redundant questions.

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

Post #9by selden » 05.08.2004, 00:07

The FAQ is very near the top of the Celestia Users Forum Web page. Right now it's the 5th item from the top of that page.

Also, you'll notice that the phrase [url=http://www.celestiaproject.net/forum/viewtopic.php?p=21807&highlight=#21807]
The Preliminary User's FAQ, Q/A #19[/url]
is a different color from the rest of the message.
That's because it's a link to that particular FAQ. Just click on it and it'll open the FAQ (and its answer) in a new browser window.
Selden

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #10by Scott Chapin » 05.08.2004, 01:37

Thank you Selden,

My bad. I did click on it, and thought it was a response from you to a particular post. I didn't realize that the entire thread was a numerical listing of FAQs.

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

Post #11by Adirondack » 08.08.2004, 17:23

Howdy Scott,

After you get to the surface, type Ctrl-F to change the arrow keys into Alt-Az controls.


That's what my German User'S Guide says too (Page 47, 4th section).

BTW: Why are you using the german guide?


Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #12by Scott Chapin » 09.08.2004, 01:43


That's what my German User'S Guide says too (Page 47, 4th section).

BTW: Why are you using the german guide?


Adirondack


Hi Adirondack,

The Celestia home page did not have an English guide, and I can muddle through everyday German....Soooo I gave it a try. I finally located an English version which does not cover use as a planetarium, like the german guide.

It is sometimes hard enough to decipher technical English, let alone technical Deutsch! Besides, when the German manual said to stand on my head, that was fine , but I couldn't figure out how to di it! 8O

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

Post #13by don » 09.08.2004, 02:09

Scott Chapin wrote:Besides, when the German manual said to stand on my head, that was fine , but I couldn't figure out how to di it! 8O

Awww, that one's easy -- just rotate everything else in the room to be upside down! :lol:
-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.

Topic author
Scott Chapin
Posts: 15
Joined: 02.08.2004
With us: 20 years 3 months
Location: Powder Springs, GA

Post #14by Scott Chapin » 11.08.2004, 01:19

Awww, that one's easy -- just rotate everything else in the room to be upside down! :lol:


My wife might not like it when the knick-knacks fall off the wall. 8O


Return to “Scripting”