Page 1 of 1

Status of celestia scripting

Posted: 11.12.2003, 16:56
by alexibu
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 :?

Re: Status of celestia scripting

Posted: 11.12.2003, 21:36
by Harry
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

Re: Status of celestia scripting

Posted: 12.12.2003, 23:31
by don
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

Posted: 13.12.2003, 01:10
by JackHiggins
Don

Great smileys... I must make a DontLinkHere on my own site too..!

Posted: 13.12.2003, 03:30
by don
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.

Posted: 13.12.2003, 12:33
by Harry
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

Posted: 13.12.2003, 19:15
by don
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.