Page 1 of 1

V1.6 cel script from 1.5.1 not all working

Posted: 30.03.2009, 02:10
by elbertdee
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

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

Posted: 30.03.2009, 13:20
by Derek
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

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

Posted: 30.03.2009, 14:40
by elbertdee
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}
}

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

Posted: 30.03.2009, 15:17
by ANDREA
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 .

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

Posted: 30.03.2009, 15:35
by selden
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.

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

Posted: 30.03.2009, 16:01
by elbertdee
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

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

Posted: 30.03.2009, 16:21
by selden
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

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

Posted: 30.03.2009, 16:58
by elbertdee
Tjhanks
Ill see what I can get done later today.

Thanks for the help

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

Posted: 30.03.2009, 17:26
by elbertdee
Thank You thank You
It all seems to be fine now.

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

Posted: 30.03.2009, 19:05
by selden
Great!

You're very welcome.