New cel commands for Celestia 1.6.0

All about writing scripts for Celestia in Lua and the .cel system
duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: New cel commands for Celestia 1.6.0

Post #21by duds26 » 26.09.2008, 12:46

Will the integration of these features mean that Celestia-ED will be discontinued?
(I mean the adjusted version of Celestia, not the Educational Activities.)

-------------------
And users of Celestia-ED will be directed to Celestia 1.6?
And will the educational activities adjusted for Celestia 1.6?
???

And what formats are supported?
wma, (mp3 probably not), flac, ogg (vorbis), spx (speex codec for speech), ape, others???
(Please ogg codecs: flac, ogg, spx)
(libs for all three available on the Xiph.org Website)
Last edited by duds26 on 16.10.2008, 17:08, edited 2 times in total.

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

Re: New cel commands for Celestia 1.6.0

Post #22by Adirondack » 03.10.2008, 00:02

Vincent,

this new CEL features are great!

Nevertheless, I have an objection concerning the setgalaxylightgain-command:
Shouldn't we implement 'setgalaxylightgain' to the global set-command in order to correspond to the standards?
Instead of setgalaxylightgain {gain 0.5} we should use set {name "GalaxyLightgain" value 0.5}
Just like we set the FOV, AmbientLightLevel and so on.

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)

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: New cel commands for Celestia 1.6.0

Post #23by Vincent » 03.10.2008, 15:47

Adirondack wrote:Shouldn't we implement 'setgalaxylightgain' to the global set-command in order to correspond to the standards?
Instead of setgalaxylightgain {gain 0.5} we should use set {name "GalaxyLightgain" value 0.5}
Just like we set the FOV, AmbientLightLevel and so on.
Hi Ulrich,

The setambientlight and setfaintestautomag45deg commands are not part
of the global set command:

Code: Select all

setambientlight { brightness 0.2 }
setfaintestautomag45deg { magnitude 7.5 }

That's why I decided to not include setgalaxylightgain in the global set command either.
The use of the GalaxyLightgain field within the global set command looks quite deprecated to me.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

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

Re: New cel commands for Celestia 1.6.0

Post #24by Adirondack » 03.10.2008, 16:04

Vincent wrote:The setambientlight and setfaintestautomag45deg commands are not part
of the global set command:

Code: Select all

setambientlight { brightness 0.2 }

Yes, but AFAIK setambientlight { brightness 0.2 } has become obsolete today
and is replaced with set {name "AmbientLightLevel" value 0.2 }.

Just my two cents. You are the man.

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)

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

Re: New cel commands for Celestia 1.6.0

Post #25by selden » 03.10.2008, 16:05

Personally I think this was a mistaken oversight.
I think it would be best to have all of the "set" commands handled the same way. Having arbitrary exceptions like these will cause coding errors and frustration.
Selden

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: New cel commands for Celestia 1.6.0

Post #26by Vincent » 03.10.2008, 16:30

Adirondack wrote:Yes, but AFAIK setambientlight { brightness 0.2 } has become obsolete today
and is replaced with set {name "AmbientLightLevel" value 0.2 }.

Just my two cents. You are the man.
I afraid I'm not your Cel man anymore here... :roll:
I've not been using Cel scripting for monthes (years?).


selden wrote:Personally I think this was a mistaken oversight.
I think it would be best to have all of the "set" commands handled the same way. Having arbitrary exceptions like these will cause coding errors and frustration.
I agree and I'll make the change.
But we need to decide first what will be this 'same way', i.e., if we shall use the global set command or not...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Scripting”