Page 1 of 1

Can't Get to Star

Posted: 14.07.2006, 20:44
by Dollan
Hi folks...

I'm making a new star for the OA Universe, and have an STC file ready to go. I can type in the name of the star, and it shows up, and I can even tab to it. However, I cannot get Celestia to select it, much less go to it. Any thoughts? here's the STC file, which is absolutely identical to others that I have used successfully (identical except for the star name and details, of course):

Code: Select all

Barycenter "72 Aurigae"
   {
   RA      89.554
   Dec      27.652
   Distance      2147
   }

"72 Aurigae A"
   {
   OrbitBarycenter   "72 Aurigae"
   SpectralType   "G6V"
   AbsMag      5.09 # also AppMag if you want
   Radius      653770 # sol=695500
   EllipticalOrbit
      {
      Period      6.00
      SemiMajorAxis   0.01
      Eccentricity   0.00
      Inclination   0.00
      }
   RotationPeriod   600 # hours
   }


I'm using barycenters because it will be a double star as soon as I iron this out, but it is worth noting that I have easily used barycenter definitions for single stars before. in fact, this is essentially the standard format for stc's that I use when I make new stars....

...John...

Posted: 14.07.2006, 21:02
by selden
It looks to me like it may be a bug in Celestia.

Note that "72 Aurigae A" is undefined, which means that there's something wrong in its definition.
If you turn on the console log, you'll find that it complains that it can't find "72 Aurigae".

If you replace the spaces in the names by underscores, then it works fine.

Posted: 14.07.2006, 21:11
by Dollan
So... why would that one not work, and one that I had just made named "43 Ordinatus" be just fine?

Weird...

Posted: 14.07.2006, 21:13
by selden
It's the nature of bugs to be weird :)

I'll move this to the Bug forum.

Posted: 14.07.2006, 21:22
by Dollan
**laughs** That would be a great tag line, you know!

Anyway, a little addition: I left the underscore under the barycenter, but didn't use it for the star name, and both worked just fine. Weird indeed!

Posted: 15.07.2006, 06:54
by Chuft-Captain
John, Selden,

Is it possible that Celestia requires Barycenter and/or star names to be unique in perhaps the first 8-10 characters? In which case "72 Aurigae A" would have the same name (in first 8-10 chars) as the Barycenter "72 Aurigae", so would probably be ignored.

Just a thought, that might provoke some experimentation. I hope I'm wrong. :wink:

Regards
CC

Posted: 15.07.2006, 11:36
by selden
Even when the "star" is undefined, the Barycenter should still be selectable.

It isn't.

Posted: 15.07.2006, 17:26
by Chuft-Captain
selden wrote:Even when the "star" is undefined, the Barycenter should still be selectable.

It isn't.

I see.
(and would have seen earlier, if I'd read your first answer more carefully :lol: )

Posted: 16.07.2006, 11:48
by ajtribick
Another case of inconsistent parsing at different points in the .stc file.

At one point, "72 Aurigae" gets converted to the abbreviated form "72 Aur", while at another it doesn't.

Therefore you end up with a Barycenter named "72 Aurigae", however everywhere else apart from the Barycenter definition the string gets converted to "72 Aur" (e.g. in the OrbitBarycenter parameter, or in the text input in Celestia).

Defining your barycenter as "72 Aur" will work.