How to use scripted orientation

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Pierral
Posts: 10
Joined: 16.01.2008
With us: 16 years 10 months
Location: Cannes, FR

How to use scripted orientation

Post #1by Pierral » 17.01.2008, 08:28

Hi all !

I'm a "new newbie" on celestia, and first of all, i'd like to congratulate you for all the work you're doing, it's a really great program !

I'm working on a project that consists in scripting a orientation and orbit of a sattelite from a file, generated by a simulator.
I started 2 weeks ago, with the Celestia 1.5.0pre5, because of the new features.
I'm a C++ developer, but i'd like to make the script with lua. I downloaded the script of pointing hubble here http://shatters.net/forum/viewtopic.php?t=11186&highlight=pointing+hubble but i don't understand one thing. How the interface between a lua code/class and the celx script works ?
I put celx files in the file directory, ssc in data, 3ds in model, and celxx directory in the script one. When I launch the celx script, I think that it does not use the lua file in the celxx subdirectory. And I don't undestand how the celx script can use object in the lua file (in celxx subdirectory).
Can someone explain me how it works please ?

I'm searching for 1 weeks in all topics and I did not find an answer, that's why I post this tread.

Thanks all for your help.

Pierral.

Topic author
Pierral
Posts: 10
Joined: 16.01.2008
With us: 16 years 10 months
Location: Cannes, FR

Post #2by Pierral » 17.01.2008, 09:51

Ok so i was just told about this url http://en.wikibooks.org/wiki/Celestia, at the end, the section "Customizing Celestia", where there is all explanation i need ! The documentation i'm searching for 3 days !!

I was sure there were a documentation... and now i know where it is !!


Pierral.

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

Post #3by selden » 17.01.2008, 12:54

Pierral,

It's good to know it helps.
Selden

Topic author
Pierral
Posts: 10
Joined: 16.01.2008
With us: 16 years 10 months
Location: Cannes, FR

Post #4by Pierral » 17.01.2008, 13:01

Yes that's why I gave the link. For a newbie like me who just want to make script to custom orbits and attitude of a spacecraft, this documentation is very helpful ! Thanks for that !
(Even if i am also a newbie in understing all parameters of an orbit, but this is another problem :wink: , i'm learning)

Pierral.


Return to “Scripting”