Help with solar system add-on

Post requests, images, descriptions and reports about work in progress here.
Topic author
tuggles
Posts: 7
Joined: 30.08.2006
With us: 18 years 2 months

Help with solar system add-on

Post #1by tuggles » 23.07.2008, 16:00

Well Im trying to create a new solar system around the G2V class star i Boo. I have my first planet showing up but I cannot get the moon orbiting that planet to show up. Can someone tell me what is wrong with my .SSC file? Here is the file:

Code: Select all

"i Boo a" "i Boo"
{
   Class "planet"
   Texture "exo-class2.jpg"
   Radius 30263.4

   CustomOrbit "i Boo a 30263.4 "
   EllipticalOrbit {
      Period  1.18
      SemiMajorAxis 1.141
      Eccentricity 0.078
      Inclination 2.10732
   }

   RotationPeriod  10.92
   Obliquity  15
   Albedo  0.54



#------------Data Block-----------
#    Mass  32.179  Earth Masses
#    Density  1.6558101394
#    Class Type "Jovian"
#-----------End Data Block--------


}


"i Boo b" "i Boo a"
{
   Class "moon"
   Texture "C:\Program Files\Celestia\textures\medres\earth.png"
   Radius 6217.4

   CustomOrbit "i Boo a 1 6217.4 "
   EllipticalOrbit {
      Period  15.05
      SemiMajorAxis 785639
      Eccentricity 0.014
      Inclination 0.91069
   }

   RotationPeriod  15.72
   Obliquity  15
   Albedo  0.3



#------------Data Block-----------
#    Mass  0.924  Earth Masses
#    Density  5.4832328988
#    Class Type "Terrestrial"
#-----------End Data Block--------


}


rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 1 month
Location: Norway

Re: Help with solar system add-on

Post #2by rthorvald » 23.07.2008, 16:19

"i Boo b" "i Boo/i Boo a"
{
Class "moon"
Texture "C:\Program Files\Celestia\textures\medres\earth.png"
Radius 6217.4

CustomOrbit "i Boo a 1 6217.4 "
EllipticalOrbit {
Period 15.05
SemiMajorAxis 785639
Eccentricity 0.014
Inclination 0.91069
}

RotationPeriod 15.72
Obliquity 15
Albedo 0.3

That should do it... Your path to the star was broken.

PS: using CustomOrbits are pointless. EllipticalOrbit is correct, CustomOrbit is a custom designation for particular objects in our Solar System.
- rthorvald
Image

Topic author
tuggles
Posts: 7
Joined: 30.08.2006
With us: 18 years 2 months

Re: Help with solar system add-on

Post #3by tuggles » 23.07.2008, 16:24

that didnt change anything unfortunately. Oh and I just used system maker...and thats what it output so thats why it says what it does.

Code: Select all

"i Boo b" "i Boo/i Boo a"
{
   Class "moon"
   Texture "C:\Program Files\Celestia\textures\medres\earth.png"
   Radius 6217.4

   CustomOrbit "i Boo b 6217.4 "
   EllipticalOrbit {
      Period  15.05
      SemiMajorAxis 785639
      Eccentricity 0.014
      Inclination 0.91069
   }

   RotationPeriod  15.72
   Obliquity  15
   Albedo  0.3



#------------Data Block-----------
#    Mass  0.924  Earth Masses
#    Density  5.4832328988
#    Class Type "Terrestrial"
#-----------End Data Block--------


}
Last edited by tuggles on 23.07.2008, 16:27, edited 1 time in total.

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Help with solar system add-on

Post #4by Cham » 23.07.2008, 16:24

And why this path for the texture ? It's useless !

"i Boo b" "i Boo/i Boo a"
{
Class "moon"
Texture "C:\Program Files\Celestia\textures\medres\earth.png"
Radius 6217.4
...
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Re: Help with solar system add-on

Post #5by chris » 23.07.2008, 16:38

[quote="tuggles"]that didnt change anything unfortunately. Oh and I just used system maker...and thats what it output so thats why it says what it does.

There are a couple changes that you should make. The corrections suggested by rthorvald and Cham are necessary, and you also need to remove the CustomOrbit line. Not only is it unnecessary, it also prevents the EllipticalOrbit from being used. The definition for your moon should look like this:

Code: Select all

"i Boo b" "i Boo/i Boo a"
{
   Class "moon"
   Texture "earth.png"
   Radius 6217.4

   EllipticalOrbit {
      Period  15.05
      SemiMajorAxis 785639
      Eccentricity 0.014
      Inclination 0.91069
   }

   RotationPeriod  15.72
   Obliquity  15
   Albedo  0.3

#------------Data Block-----------
#    Mass  0.924  Earth Masses
#    Density  5.4832328988
#    Class Type "Terrestrial"
#-----------End Data Block--------
}


--Chris


Return to “Add-on development”