Page 1 of 1

Start.cel

Posted: 05.05.2004, 08:14
by StarCrazy
Hi,
I'm trying to get celstia to start me off on the surface of the suburb I live in, so I could check the local sky out, before I wizz off into the deep unknown.
I tried to get the script happening by going to the surface of the suburb I live in and then have it center on Rigel Kentaurus ( circumpolar over here).
The following script gets me to the surface but doesn't center on Rigel Kentaurus:

Code: Select all

{
   select { object "Sol/Earth" }
   synchronous {}
   goto { time 5 }
   gotolonglat { time 0 distance 1.0001 longitude 144.97 latitude -37.77 }
}
   cancel {}
   select { object "Rigel Kentaurus A" }
   center {}
}


While next one(dropped the '}' following gotolonglat line) centers on Rigel but I'm 204AU's away from Earth:

Code: Select all

{
   select { object "Sol/Earth" }
   synchronous {}
   goto { time 5 }
   gotolonglat { time 0 distance 1.0001 longitude 144.97 latitude -37.77 }
   cancel {}
   select { object "Rigel Kentaurus A" }
   center {}
}

Help me....I'm melting.

Also, while I'm here, I have created a 'SpaceExploration1957-1959.cel' as an excercise to learn about script writing. It works well, but it would enhance the script with Sputnik 2 and Vangaurd models. I haven't found them and would like to know for sure that they don't exist, before I give it a go myself....don't hold your breath...I'm only a novice concerning 3d programs.

Thanks for any help
Chris

Posted: 05.05.2004, 08:53
by maxim

Code: Select all

cancel{}

should be your problem. As soon as you do that you aren't stuck to an object anymore - so you won't stay on earth surface.

maxim

Posted: 05.05.2004, 09:10
by StarCrazy
Hi Maxim
Yeah, I tried that...but, still the same. I was meant to take the 'cancel{}' out before posting this...sorry...it was an attempt to force the view towards Rigel...no luck, unfortunately.

Thanks anyway
Chris

Posted: 05.05.2004, 10:18
by Harry
You forgot to add the necessary wait-commands - maybe you want to read Don's Scripting Guide, I am sure it explains this:
http://www.donandcarla.com/Celestia/

This code should work:

Code: Select all

{
   select { object "Sol/Earth" }
   synchronous {}
   goto { time 5 }
   wait { duration 5 }
   gotolonglat { time 0.1 distance 1.0001 longitude 144.97 latitude -37.77 }
   wait { duration 0.1 }
   
   select { object "Rigel Kentaurus A" }
   center {}
}


The gotolonglat takes now 0.1s, to avoid any problems.

Harald

Posted: 05.05.2004, 10:57
by StarCrazy
Hi Harald,
I have read Don's very helpful guide....and yeah, I forgot about the wait commands. But, alas, still no success. Your script has me facing towards an area near the star, Alnath, 205.69AU from Earth.
I'll re-read Don's guide...again :?....I must be missing the essential info i'm looking for, everytime I go through it...like, not able to find my keys that are right in front of me.
Thanks
Chris

Posted: 05.05.2004, 13:15
by Harry
StarCrazy wrote:Hi Harald,
I have read Don's very helpful guide....and yeah, I forgot about the wait commands. But, alas, still no success. Your script has me facing towards an area near the star, Alnath, 205.69AU from Earth.
I'll re-read Don's guide...again :?....I must be missing the essential info i'm looking for, everytime I go through it...like, not able to find my keys that are right in front of me.
Thanks
Chris

Hm, the code I posted works for me.

Though I don't think that this would cause your problem: What version of Celestia do you have? You may want to give the latest prerelease a try.

Harald

Posted: 05.05.2004, 15:39
by StarCrazy
StarCrazy wrote:Your script has me facing towards an area near the star, Alnath, 205.69AU from Earth.

It does face Rigel Kentaurus, not near Alnath....don't know what happened there.

Harry wrote:Though I don't think that this would cause your problem: What version of Celestia do you have?


Ok...things are looking a little darker downunder. I'm using Celestia 1.3.1-1 OSX, the latest version for Mac. If it's working for you...I'm assuming you are using windows pre-release 1.3.2....then it's a strong possibilty that version 1.3.1 hasn't the ability to do this...

Thanks
Chris

Posted: 05.05.2004, 16:43
by don
Howdy StarCrazy,

Harald's version works okay for me (ver 1.3.1 final and 1.3.2 p7 on WinXP). Since Harald normally uses Linux, that leaves the OSX version as the culprit. :(

Maybe Hank or Bob know more about this?

Posted: 05.05.2004, 16:50
by Harry
StarCrazy wrote:It does face Rigel Kentaurus, not near Alnath....don't know what happened there.
For clarification: so the problem is that you are not near earth, but 205 AU away from it, correct?

Ok...things are looking a little darker downunder. I'm using Celestia 1.3.1-1 OSX, the latest version for Mac. If it's working for you...I'm assuming you are using windows pre-release 1.3.2....then it's a strong possibilty that version 1.3.1 hasn't the ability to do this...

Na, I am running Linux/current CVS ;)

You could try inserting a wait-command as your first line - try experimenting with the duration, there could be a problem because Celestia is still busy with initialization while the script already runs.

Does this script work?

Code: Select all

{
   select { object "Sol/Earth" }
   synchronous {}
   gotolonglat { time 5 distance 1.0001 longitude 144.97 latitude -37.77 }
   wait { duration 5.1 }

   select { object "Rigel Kentaurus A" }
   track {}
}


Harald

Posted: 05.05.2004, 18:58
by StarCrazy
Harry wrote:Does this script work?

Code: Select all

{
   select { object "Sol/Earth" }
   synchronous {}
   gotolonglat { time 5 distance 1.0001 longitude 144.97 latitude -37.77 }
   wait { duration 5.1 }

   select { object "Rigel Kentaurus A" }
   track {}
}


Harald


Harald....you're a legend, mate. 'Track' seems to be the only one that works on OSX. Still have to move my finger to press 't', to untrack it :roll: Na...I'm not that bad. It's the safety mechanism of my ship....handbrakes :wink:

Thanks Harald for making me dance...I'm dancing right now...WooHoo...and everyone for their tune.

Much Appreciated
A Happy Chappie :D