About the "Add" and "Replace" options

General discussion about Celestia that doesn't fit into other forums.
Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

About the "Add" and "Replace" options

Post #1by Cham » 30.08.2006, 15:25

I want to add rings and an atmosphere to some exoplanets, but I don't want to edit the extrasolar.ssc file. Also, I don't want to replace the original parameters, so it would be easier for me to update the extrasolar.ssc with a fresh one from CVS. Is it possible to do it, using the "Replace" or the "Add" options (or other commands I'm unaware of) ?

More precisely, I want to make an ssc file into my "extras" folder, something like this :

Code: Select all

"d" "HD 75732"   # Rho Cnc
{
   Add Rings {
      Inner  120837
      Outer  255179
      Texture "Giant-rings1.png"
   }
}


but apparently this doesn't work. Is there a trick, without rewriting all the other parameters ?
"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!"

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

Re: About the "Add" and "Replace" option

Post #2by rthorvald » 30.08.2006, 16:16

Cham wrote:I want to add rings and an atmosphere to some exoplanets, but I don't want to edit the extrasolar.ssc file.


Create an SSC file in your Add-Ons folder, in this style:

Code: Select all

Modify "d" "HD 75732"
{
   Rings {
      Inner  120837
      Outer  255179
      Texture "Giant-rings1.png"
   }
}


... Then make sure it loads AFTER solarsys.ssc.

- Runar
Image

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

Post #3by Cham » 30.08.2006, 17:48

"Modify" !

Haaa, thanks a lot Runar, that's the command I needed. :-)
"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!"


Return to “Celestia Users”