Code: Select all
"Stractan" "Torzhakt"
{
Class "Planet"
Texture "Stractan.*"
Radius 1700
EllipticalOrbit {
Period 4.9
SemiMajorAxis 0.9
}
RotationPeriod 30
Albedo 0.40
HazeColor [ 0.5 0.35 0.2 ]
HazeDensity 0.35
Radius 6052
Atmosphere {
Height 60
Lower [ 0.8 0.8 0.5 ]
Upper [ 0.6 0.6 0.6 ]
Sky [ 0.8 0.8 0.5 ]
}
}
You need to understand that some parts of the ssc are contained in their own code blocks, marked by curly brackets. The EllipticalOrbit is one block, the Atmosphere is another one, and of course the whole Planet block is too. So make sure that each of these blocks has an opening bracket and a closing bracket to go with it.
You can actually put all the stuff that isn't in {} at the top of the planet block. And you can put the starting brackets on the next line too. So if it makes it easier to follow, do it like this - that way it's more obvious where you have your code blocks:
Code: Select all
"Stractan" "Torzhakt"
{ # start of Planet block
Class "Planet"
Texture "Stractan.*"
Radius 1700
RotationPeriod 30
Albedo 0.40
HazeColor [ 0.5 0.35 0.2 ]
HazeDensity 0.35
Radius 6052
EllipticalOrbit
{ # start of EllipticalOrbit block
Period 4.9
SemiMajorAxis 0.9
} # end of EllipticalOrbit block
Atmosphere
{ # start of Atmosphere block
Height 60
Lower [ 0.8 0.8 0.5 ]
Upper [ 0.6 0.6 0.6 ]
Sky [ 0.8 0.8 0.5 ]
} # end of Atmosphere block
} #end of Planet block