Editing exoplanets without touching extrasolar.ssc...

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Neethis
Posts: 65
Joined: 10.12.2005
With us: 18 years 11 months

Editing exoplanets without touching extrasolar.ssc...

Post #1by Neethis » 16.01.2006, 14:16

Im making a star system around 18 Eri, and I was wondering if I could somehow edit the names and textures of the two gas giant exo-planets in the system without directly editing the data in "extrasolar.ssc".

Basically I want all the planets in the system to be in a single .ssc file, so that anyone I send it to wont have to edit "extrasolar.ssc" themselves... :)

Awaiting replies,
Neethis
FOR SALE: One small planet, red in colour, two small moons included. Moving due to difficult neighbours. Atmosphere and price negotiable.

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #2by ajtribick » 16.01.2006, 14:27

There are Modify and Replace directives which you can use to edit the properties of the planets, but as for renaming them, you're out of luck I think.

Usage:

Code: Select all

Modify "b" "EPS Eri"
{
# put the parameters you want to change here, using normal syntax
}

Topic author
Neethis
Posts: 65
Joined: 10.12.2005
With us: 18 years 11 months

Post #3by Neethis » 17.01.2006, 15:32

:( okay, thanks for the help.
-Neethis
FOR SALE: One small planet, red in colour, two small moons included. Moving due to difficult neighbours. Atmosphere and price negotiable.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 17.01.2006, 17:26

While you can't rename or delete an exoplanet, you can make it not be drawn and then create one of your own. That might be good enough.

e.g.

Code: Select all

Modify "b" "EPS Eri" { class "invisible"}

"My_Planet" "EPS Eri" {
# copy the entry that's in \data\exoplanets.ssc
}
Selden

Topic author
Neethis
Posts: 65
Joined: 10.12.2005
With us: 18 years 11 months

Post #5by Neethis » 19.01.2006, 14:19

Ahh, that works :D Thanks!
FOR SALE: One small planet, red in colour, two small moons included. Moving due to difficult neighbours. Atmosphere and price negotiable.

Topic author
Neethis
Posts: 65
Joined: 10.12.2005
With us: 18 years 11 months

Post #6by Neethis » 24.01.2006, 19:04

chaos syndrome wrote:There are Modify and Replace directives which you can use to edit the properties of the planets, but as for renaming them, you're out of luck I think.

Usage:

Code: Select all

Modify "b" "EPS Eri"
{
# put the parameters you want to change here, using normal syntax
}


Just a thought, what does the Replace directive do? And how do I use that?
FOR SALE: One small planet, red in colour, two small moons included. Moving due to difficult neighbours. Atmosphere and price negotiable.


Return to “Development”