Page 1 of 1

About the "Add" and "Replace" options

Posted: 30.08.2006, 15:25
by Cham
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 ?

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

Posted: 30.08.2006, 16:16
by rthorvald
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

Posted: 30.08.2006, 17:48
by Cham
"Modify" !

Haaa, thanks a lot Runar, that's the command I needed. :-)