Status of celestia scripting

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
alexibu
Posts: 17
Joined: 17.11.2003
With us: 21 years
Location: Bristol UK

Status of celestia scripting

Post #1by alexibu » 11.12.2003, 16:56

I would like to add to the scriptability of celestia - exposing futher functions, specifically to allow the scripting of window splitting and controlling the two views, and the ability to switch specific orbits on and off.

What is the status of LUA scripting ?
Is anyone in particular working on it ?
Is the stuff in src/celscript all I need ?
How does the actual lua source code compile in ?

All our scripts are .cel at the moment. Should I try to add the functionality we want to the cel interpreter or is the LUA interpreter ready to go and just waiting someone to extend it's capabilities ?

Alex :?

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

Re: Status of celestia scripting

Post #2by Harry » 11.12.2003, 21:36

Hi,

alexibu wrote:I would like to add to the scriptability of celestia - exposing futher functions, specifically to allow the scripting of window splitting and controlling the two views, and the ability to switch specific orbits on and off.

What is the status of LUA scripting ?
Is anyone in particular working on it ?
Is the stuff in src/celscript all I need ?
How does the actual lua source code compile in ?

All our scripts are .cel at the moment. Should I try to add the functionality we want to the cel interpreter or is the LUA interpreter ready to go and just waiting someone to extend it's capabilities ?


I've been working on lua-scripting, there are some improvements in the CVS, which will eventually be available in celestia v1.3.1. It should now be more stable (but not completely stable), and has some new functionality.

While manual control of views has just been disabled during (lua-)script exectution (could crash), scriptable views should be possible. Regarding orbits: did you check how orbits are managed? I don't know if it's easily possible to toggle single orbits, so the actual interface to scripting could well be the easiest part to get this working.

To compile with lua, you need the header files and the libs, and have CELX defined. What platform are you compiling for? For windows, have a look at
http://www.shatters.net/celestia/files/winlibs-new.zip, but I don't know the details.

Lua-specific stuff is mostly in src/celestia/celx.*, and a little bit in celestiacore.cpp.

Maybe we want to discuss details via Mail, perhaps on the developers mailinglist on sourceforge.net?

Harald

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

Re: Status of celestia scripting

Post #3by don » 12.12.2003, 23:31

alexibu wrote:I would like to add to the scriptability of celestia - exposing futher functions, ...

Howdy Alex,

It's exciting to have some folks, like you and Harald, interested in extending the functionality of Celestia scripting! Image

Thank you.

Harald is currently the person to discuss Lua code with, aside from Chris. There must be some other folks here that know something about the Lua scripting code too, but maybe they are just lurking?

I, for one, am looking forward to playing with the new functionality y'all come up with.

Happy Holidays! Image

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #4by JackHiggins » 13.12.2003, 01:10

Don

Great smileys... I must make a DontLinkHere on my own site too..!
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

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

Post #5by don » 13.12.2003, 03:30

Howdy Jack,

Thank you (to all their creators <smile>).

The reason I name that directory that way is because I change either it or the sub-dirs on occassion to stop hard-linkers. All the old icons are no longer found after that, but the messages that used them are then old too, so it doesn't matter.

Cheers!

-Don G.

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

Post #6by Harry » 13.12.2003, 12:33

don wrote:The reason I name that directory that way is because I change either it or the sub-dirs on occassion to stop hard-linkers.


If your webspace-provider is using Apache and has enabled ".htaccess"-files and mod_rewrite, you can deliver different content depending on Referrer, just like Geocities is doing. Or forbid linking from some pages, or ... It's pretty powerful, once you learned how to use it.

Harald

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

Post #7by don » 13.12.2003, 19:15

Howdy Harald,

Thank you for reminding me about this feature.

It was a topic of interest for me in the late 90's when I had a web site full of MIDI files that people continually hard-linked to. However, I never got it working correctly and eventually gave up.

Do you know of a web page that fully describes how to use this feature like Geocities is using it (which is what I want to do)?

Thanks again Harald <smile>!

Cheers,

-Don G.


Return to “Development”