PlutonianEmpire wrote:try copying an existing STC file (one that DOES work), and overwrite the existing code with the code you want to implement. that may work.
That's exactly what I did. That's why I'm a bit mystified that this doesn't work...
EDIT: Dammit! That's why it didn't work, the stupid text editor decided to suddenly switch directories that it was saving files into for no apparent reason (and I didn't check that at first). So it wasn't saving in my extras directory, which meant Celestia couldn't see it.
This code should work.
Code: Select all
Barycenter "HIP85569"
{
RA 262.3038514
Dec -31.53428573
Distance 16308
}
85569 "HIP 85569 A" # component A
{
OrbitBarycenter "HIP85569"
SpectralType "B2II"
AbsMag -6.5
EllipticalOrbit {
Period 0.000001
SemiMajorAxis 0.000001
Eccentricity 0
Inclination 0
AscendingNode 0
ArgOfPericenter 0
MeanAnomaly 0
}
}
"HIP 85569 B" # component B
{
OrbitBarycenter "HIP85569"
SpectralType "M3V"
AbsMag 10.5
EllipticalOrbit {
Period 0.2085
SemiMajorAxis 1.000
Eccentricity 0.000
Inclination 0.000
AscendingNode 0.000
ArgOfPericenter 0.000
LongitudeNode 0.000
}
}
Note that you MUST have a non-zero value for the period and semimajor axis of A around the barycenter, otherwise it renders as nonsense.
Oddly enough though, if I type HIP 85569 into the text entry window in Celestia pre7, it doesn't select the barycenter itself, it automatically selects the A star.
So, stick your planet around that and see what happens.