V1.6 cel script from 1.5.1 not all working

All about writing scripts for Celestia in Lua and the .cel system
Topic author
elbertdee
Posts: 15
Joined: 25.03.2009
With us: 15 years 8 months

V1.6 cel script from 1.5.1 not all working

Post #1by elbertdee » 30.03.2009, 02:10

I have a cel script that worked beautifully in version 1.5.1
The part that I used from Space opera to show the Milky way is the part that no longer works.
The Select object Milky Way doesn't work from a script on inside the the interface
the way the other script goes there doesn't work in 1.6 either. Not sure which build version of the 1.6 I have
Any help is appreciated.
Basically I want to go thorugh dark space get to the Milky Way at a resp[ectable distancle . orbit for a bit . then oof to the sun earth ... etc
Just nee the first part to work like it did in 1.5.1
Reason I want to use 1.6 is the ability to set lince colors and label colors . I want to show Lakota constellations in one color and when I switch to other Nations change the line colors and labels.


# Lakota Constellation Tour
# Part taken from the Celestia script Galaxy part by Paul Swennenhuis

# 1 lightyear= 9460800000000 km ~ 1e+13 km
# initialization
# enable constellations and their labels
renderflags { clear "atmospheres|automag|boundaries|cloudmaps|comettails|constellations|eclipseshadows|galaxies|grid|markers|nightmaps|orbits|planets|pointstars|ringshadows|stars"}
labels { clear "asteroids|comets|constellations|galaxies|moons|planets|spacecraft|stars"}
renderflags { set "constellations|atmospheres|galaxies|planets|pointstars|stars|cloudmaps"}

# *****************Celectial Galaxy script excerpt *******************
set {name "ambientlightlevel" value 0.5}
setfaintestautomag45deg {magnitude 7.2}
set {name "fov" value 15}
set {name "stardistancelimit" value 1000000}
timerate {rate 1.0}




select {object "milky way" }
track{}

# start of at 500 million lightyears from home, to get an empty screen
gotoloc {time 1 position [50e+20 0 0] }
wait {duration 5}
renderflags { set "constellations|atmospheres|automag|cloudmaps|eclipseshadows|galaxies|nightmaps|planets|pointstars|ringshadows|stars"}

# 9 million lightyears from home...
#print {text "Space. An empty place..." origin "left" column 5 duration 6}
# get a bit closer, to see the Milky Way
# this position makes sure we see the Milky Way from 'above'
gotoloc {time 6 position [1e+19 67 93] }
wait {duration 6}

# **************END of GALAXY Snip*************************************************
select { object "Milky Way" }
#print { text "We're viewing the entire Milky Way galaxy." row -3 duration 6 }
orbit { axis [ 1 3 1 ] rate 30 duration 12.0 }
#print { text "Time to go home . . ." row -3}

cancel{}

# from Milky way to the sun
select {object "Sol"}
follow{}
wait {duration 6}

# Explore Moon of Earth
select { object "Sol/Earth/Moon" }

Thanks Again

Derek
Posts: 64
Joined: 18.12.2007
With us: 16 years 11 months
Location: Pretoria South Africa

Re: V1.6 cel script from 1.5.1 not all working

Post #2by Derek » 30.03.2009, 13:20

Hi elbertdee,

I copied your script shown the most obivious thing missing are the { } at the start and finish of the script, I guess you may have just left them off as you should have got an error message.
With the brackets the script seems to run OK in the latest SVN4645 version I have
Derek

Topic author
elbertdee
Posts: 15
Joined: 25.03.2009
With us: 15 years 8 months

Re: V1.6 cel script from 1.5.1 not all working

Post #3by elbertdee » 30.03.2009, 14:40

hanks

That is just the snippet of the part that wasn't working.
I just tried the build I got last night. It says svn4679

and The first part still doesn't work as in 1.5.1
The Milky Way doesn't show up till starting toward the sun and then it just flys by.
in 1.5.1 it slowly appears and then Orbit then to the sun.
Here is just the Milky Way part that is the problem. Try running it in 1.5.1 and 1.6
It looks very different. Least with the version of 1.6 I have
If there is a version it will run in and have the setline and set label May I Please have the link.

Thanks
{

# Lakota Constellation Tour
# Part taken from the Celestia script Galaxy part by Paul Swennenhuis

# 1 lightyear= 9460800000000 km ~ 1e+13 km
# initialization
# enable constellations and their labels
renderflags { clear "atmospheres|automag|boundaries|cloudmaps|comettails|constellations|eclipseshadows|galaxies|grid|markers|nightmaps|orbits|planets|pointstars|ringshadows|stars"}
labels { clear "asteroids|comets|constellations|galaxies|moons|planets|spacecraft|stars"}
renderflags { set "atmospheres|automag|cloudmaps|comettails|galaxies|planets|pointstars|stars"}
# *****************Celectial Galaxy script excerpt *******************
set {name "ambientlightlevel" value 0.5}
setfaintestautomag45deg {magnitude 7.2}
set {name "fov" value 15}
set {name "stardistancelimit" value 1000000}
timerate {rate 1.0}




select {object "milky way" }
track{}

# start of at 500 million lightyears from home, to get an empty screen
gotoloc {time 1 position [50e+20 0 0] }
wait {duration 5}


# 9 million lightyears from home...
#print {text "Space. An empty place..." origin "left" column 5 duration 6}
# get a bit closer, to see the Milky Way
# this position makes sure we see the Milky Way from 'above'
gotoloc {time 6 position [1e+19 67 93] }
wait {duration 6}

# **************END of GALAXY Snip*************************************************
select { object "Milky Way" }
#print { text "We're viewing the entire Milky Way galaxy." row -3 duration 6 }
orbit { axis [ 1 3 1 ] rate 30 duration 12.0 }
#print { text "Time to go home . . ." row -3}

cancel{}

# from Milky way to the sun
select {object "Sol"}
follow{}
wait {duration 6}

# Explore Moon of Earth
select { object "Sol/Earth/Moon" }
goto { time 9 distance 1000 }
# timerate { rate 200 }
#follow {}
wait { duration 7 }
#print { text "Next stop: the Moon." row -3 }
select { object "Moon" }
goto { time 5 distance 7 upframe "equatorial" }
set {name "fov" value 30}
wait { duration 5.5 }
#print { text "Watch for the Earth and Sun as we orbit the Moon" row -3}
orbit { axis [ 0 1 0 ] rate 30 duration 4 }
#Earth moon trip
set {name "fov" value 30}
select {object "Sol/Earth"}
# ********************************* from template **************
gotolonglat { time 7
distance 5
longitude -94.82394
latitude 35.28109 }

# END of TEMPLATE CODE *************************************
goto {time 4 distance 10}
orbit { axis [ 0 1 0 ] rate 30 duration 4 }
wait {duration 5}
}

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 6 months
Location: Rome, ITALY

Re: V1.6 cel script from 1.5.1 not all working

Post #4by ANDREA » 30.03.2009, 15:17

Elbert, I tried your script just now, in both 1.5.1 and 1.6 with svn4679, as your one.
It works without problems here, both give exactly the same results.
Sorry but I fear the problem is of yours. :(
May be the graphic card drivers?
Or some Celestia corrupted files?
I can only suggest you to try to install again the 1.6 with svn4679.
Good luck!
Bye

Andrea :D .
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

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

Re: V1.6 cel script from 1.5.1 not all working

Post #5by selden » 30.03.2009, 15:35

Elbert,

I just now tried your script with both Celestia v1.5.1 and Celestia r4678 and both looked the same to me.

What environment are you running the svn version of Celestia in?
For example, if you simply copied the updated Celestia executable into the v1.5.1 directory, it can't work correctly. There have been incompatible changes in celestia.cfg and the names and locations of its catalog files.
Selden

Topic author
elbertdee
Posts: 15
Joined: 25.03.2009
With us: 15 years 8 months

Re: V1.6 cel script from 1.5.1 not all working

Post #6by elbertdee » 30.03.2009, 16:01

Ok maybe that is it. 1.6 loads with the old config file and runs most everything just not that first part of the script.
Thanks for the info.
Is there away to get the whole thing for 1.6 ?

Thanks

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

Re: V1.6 cel script from 1.5.1 not all working

Post #7by selden » 30.03.2009, 16:21

elbertdee wrote:Is there away to get the whole thing for 1.6 ?

My guess is that an official release candidate will be available within a month.
Until then, you'll have to download the files from sourceforge, either individually or using svn.

If you want to do it manually, you might try copying the entire v1.5.1 directory to a new location, and then downloading the new version of celestia.cfg and the files that it references from sourceforge at http://celestia.svn.sourceforge.net/vie ... g?view=log
and
http://celestia.svn.sourceforge.net/vie ... stia/data/

The procedure for using svn to download the files is described in the Celestia WikiBook at
http://en.wikibooks.org/wiki/Celestia/D ... 2_platform
Selden

Topic author
elbertdee
Posts: 15
Joined: 25.03.2009
With us: 15 years 8 months

Re: V1.6 cel script from 1.5.1 not all working

Post #8by elbertdee » 30.03.2009, 16:58

Tjhanks
Ill see what I can get done later today.

Thanks for the help

Topic author
elbertdee
Posts: 15
Joined: 25.03.2009
With us: 15 years 8 months

Re: V1.6 cel script from 1.5.1 not all working

Post #9by elbertdee » 30.03.2009, 17:26

Thank You thank You
It all seems to be fine now.

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

Re: V1.6 cel script from 1.5.1 not all working

Post #10by selden » 30.03.2009, 19:05

Great!

You're very welcome.
Selden


Return to “Scripting”