Page 1 of 1

Name change via "Replace" or "Modify"

Posted: 26.10.2008, 20:15
by NuclearVacuum
Is there a way to change (or add) a name to a planet when you use the "replace" and "modify" setting?

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 06:08
by John Van Vliet
--- edit ---

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 14:46
by NuclearVacuum
Thanks for that, but I would like to know if there is a way to change it with a replace or modify setting. Yes or no, is there one?

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 16:23
by selden
Modify only lets you change the part between the squiggly brackets.

However, you can use Modify or Replace to insert the line
Class "invisible"
That effectively deletes the object.

Then define an entirely new object with whatever characteristics you want,
which could include a copy of the original definition.

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 21:29
by NuclearVacuum
Wow, I had no idea that "invisible" was an option for this. This both answers how to change names, and to remove an object. This helps me out quite well. I have been meaning to ask this because I have several reasons. For instance, I would like to make the mythological nickname for some extrasolar planets.

Code: Select all

Modify "b" "51 Peg"
   {
   Class      "invisible"
   }

"Bellerphon" "51 Peg"
   {
   Texture         "exo-class4.*"
   NightTexture      "exo-class4night.*"
   Color         [0 0.36 1]
   Albedo         0.05
   Mass         150
   Radius         98000
   InfoURL         "http://exoplanet.eu/star.php?st=51+Peg"
   EllipticalOrbit
      {
      Period         0.0116
      SemiMajorAxis      0.0527
      Eccentricity      0.013
      ArgOfPericenter      142
      MeanAnomaly      296
      }
   }


I also wish to use this to give some planets and dwarf planets their [nick]names. I would rather not change the official code (in case I were to mess something up).

This is also good for some add-ons that I have, which have also given names to exoplanets, but have not removed the already in use code. This causes the new and old planets to overlap with each other.

Thank you again :mrgreen:

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 21:37
by NuclearVacuum
Is there a way to do this with STC-files?

Re: Name change via "Replace" or "Modify"

Posted: 28.10.2008, 23:58
by selden
You have to use a different method to rename Celestia's Stars. As with STC object,s it's a bit of a hack. It'd be really nice if Celestia had a Rename option.

Rather than explaining the method here, I'd rather point you to the documentation. Please read the WikiBook's sections on Celestia's catalog files.
http://en.wikibooks.org/wiki/Celestia#C ... g_Celestia

Re: Name change via "Replace" or "Modify"

Posted: 29.10.2008, 16:12
by NuclearVacuum
Sorry, I meant to say is there a way to remove a star (or make it invisible), to make a new version of it? I made the proper data for Delta Trianguli, yet the original one is still in the sky.

Re: Name change via "Replace" or "Modify"

Posted: 29.10.2008, 19:25
by selden
If you provide a Star definition which specifies its Hipparcos ID number, it should completely replace the original definition. Note that the Hipparcos catalog number must not be in quotes.

Unfortunately DEL Tri already has been redefined in Celestia's catalog spectbins.stc.
It looks like you'll have to manually edit that file.

DEL Tri

Posted: 02.11.2008, 16:36
by NuclearVacuum
Thank you, Selden. I manually altered DEL Tri, and now there is only the two stars of the system (no duplicates). Since we are on the discussion of DEL Tri, I thought I'd mention and show my code that I made for the system. This is the correct data for the two stars. This includes the proper distances, position, spectral type, and the radial brightness.

Code: Select all

Barycenter 10644 "DEL Tri"
   {
   RA         34.38458745
   Dec         +34.224231
   Distance      35.3
   }

"DEL Tri A"
   {
   OrbitBarycenter   "DEL Tri"
   SpectralType   "G0Ve"
   AppMag      4.9 # est. to equal 0.98 Solar radius
   EllipticalOrbit
      {
      Period      0.02743
      SemiMajorAxis   0.045
      Eccentricity   0.012
      Inclination      157
      ArgOfPericenter   0.00
      }
   }

"DEL Tri B"
   {
   OrbitBarycenter   "DEL Tri"
   SpectralType   "K4V"
   AppMag      7.35 # est. to equal 0.65 Solar radius
   EllipticalOrbit
      {
      Period      0.02743
      SemiMajorAxis   0.065
      Eccentricity   0.012
      Inclination      157
      ArgOfPericenter   180.00
      }
   }