gotoloc problem using cel:// info

All about writing scripts for Celestia in Lua and the .cel system
Topic author
cinder
Posts: 1
Joined: 03.05.2008
With us: 16 years 8 months
Location: Texas

gotoloc problem using cel:// info

Post #1by cinder » 03.05.2008, 21:44

Hi,

I've just discovered Celestia scripting, and I'm still learning. I'm having a problem with the gotoloc when using information from Celestia URLs.

What I'm trying to do is simple: Go to the Moon, oribit while I throw some text on screen, then zoom in to Mare Crisium. Everything works fine until the script tries to position the camera above Mare Crisium, it zooms off to ~1 AU from the Moon.

Code: Select all

{
select {object "Sol/Earth/Moon"}
follow {}
goto   {time 6.0 distance 6.0}
wait   {duration 6.0}
orbit  {axis [0 1 0]  rate 10.0  duration 10.0}
setframe { ref "Sol/Earth/Moon" }

gotoloc {
   time 5
   x "N+H8bwKONaD0/////////w"
   y "ItMNVXArYf///////////w"
   z "6O8hyBBjZkL1/////////w"
   ow 0.203799
   ox -0.298737
   oy -0.905528
   oz -0.221903
}
wait { duration 12.0 }
}


What am I doing wrong? Thanks.

Return to “Scripting”