it's n00b time!

Post requests, images, descriptions and reports about work in progress here.
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 7 months

Post #21by Malenfant » 09.09.2006, 17:00

You've messed up your {}s, try this. It works for me.

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
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #22by Hunter Parasite » 09.09.2006, 17:30

thank you again, Now, i just have to get some cloud maps and i'll be done,=.

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

Post #23by Cham » 09.09.2006, 18:04

Personally, I prefer to format my SSC codes like this :

Code: Select all


"Stractan" "Torzhakt"
{
   Class "Planet"
   Texture  "Stractan.*"
   Radius 1700
   RotationPeriod 30
   Albedo 0.40

   HazeColor [ 0.5 0.35 0.2 ]
   HazeDensity 0.35

   EllipticalOrbit
   {
      Period 4.9
      SemiMajorAxis 0.9
   }

   Atmosphere
   {
      Height 60
      Lower [ 0.8 0.8 0.5 ]
      Upper [ 0.6 0.6 0.6 ]
      Sky [ 0.8 0.8 0.5 ]
   }
}

"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!"

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 7 months

Post #24by Malenfant » 09.09.2006, 18:22

Yeah Cham, I usually prefer to do it like that - I find it easier to indent each code block too, I was just illustrating things without that complication ;).

As general advice, don't be afraid to comment the code like I did if it'll make things more understandable. You can put a # at the start of a line or after existing code on a line and everything after that will be ignored by Celestia. Plus it helps if you have a break from Celestia for a while and come back to it later, then you can understand what you wrote when you look at it again ;).
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

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

Post #25by Cham » 09.09.2006, 18:29

Aaah ! The art and Zen of SSC coding ! ;-)
"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!"

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #26by Hunter Parasite » 09.09.2006, 18:35

I have finished! I have uploaded it and i hope it will appear.

Here's a screenshot:
Top Right-Torzhakt
Top Left-Phoronus-Home of the Illusionists
Middle Right-Stractan-Home of the Stractanar (Later to be known as the Cybertoids)
Middle Left-Stroktinokt-Home of the Strokt(Lizard People)
Lower Right-Terra-Home of the Creators
Lower Left-Seronus-Home of the alterists

Image

Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 7 months

Post #27by Malenfant » 09.09.2006, 19:25

Looks pretty decent! Is that a custom lens flare?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #28by Hunter Parasite » 09.09.2006, 19:30

Thanks, and no. Thats the the + shaped Flare from the star section in the motherlode.

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 19 years 3 months

Post #29by Chuft-Captain » 16.09.2006, 09:22

Hunter Parasite wrote:...We are human after all.
I'm Kzinti. :twisted:
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #30by Hunter Parasite » 17.09.2006, 21:05

well, im an Argonian!


Return to “Add-on development”