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