why are files written with spaces?

General discussion about Celestia that doesn't fit into other forums.
Topic author
Polchei

why are files written with spaces?

Post #1by Polchei » 17.01.2004, 17:39

I wonder why Celestia's catalog files are written with all that space when I can write it without the space and it will work just as fine. Here is what I mean.

The normal script:

"c" "HD 75732"
{
Texture "jupiterlike.jpg"

Mass 70
Radius 56000

EllipticalOrbit {
Period 0.1212
SemiMajorAxis 0.241
Eccentricity 0.339
ArgOfPericenter 279
MeanAnomaly 67
}

RotationPeriod 10
}


Or I can write it like this without the long spaces and it can still work:

"c" "HD 75732"
{
Texture "jupiterlike.jpg"
Mass 70
Radius 56000
EllipticalOrbit {
Period 0.1212
SemiMajorAxis 0.241
Eccentricity 0.339
ArgOfPericenter 279
MeanAnomaly 67
}
RotationPeriod 10
}

Topic author
Polchei

Re: why are files written with spaces?

Post #2by Polchei » 17.01.2004, 17:44

No, that's not how I the message is suppose to look, I didn't post it like that. These message boards aren't very flexible. I wish I could edit my message and do it over. Let me say it again...

I wonder why Celestia's catalog files are written with all that space when I can write it without the space and it will work just as fine. Here is what I mean.

The normal script:

"c" "HD 75732"
{
Texture "jupiterlike.jpg"

Mass 70
Radius 56000

EllipticalOrbit {
Period 0.1212
SemiMajorAxis 0.241
Eccentricity 0.339
ArgOfPericenter 279
MeanAnomaly 67
}

RotationPeriod 10
}


Or I can write it like this without the long spaces and it can still work:

"c" "HD 75732"
{
Texture "jupiterlike.jpg"
Mass 70
Radius 56000
EllipticalOrbit {
Period 0.1212
SemiMajorAxis 0.241
Eccentricity 0.339
ArgOfPericenter 279
MeanAnomaly 67
}
RotationPeriod 10
}

Topic author
Polchei

Re: why are files written with spaces?

Post #3by Polchei » 17.01.2004, 17:48

8O Noooo! It did it again, the message is not suppose to look like that. How can I explain what I'm saying if the messege won't post as it's suppose to????

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 22 years
Location: People's Republic Of Cork, Ireland

Post #4by JackHiggins » 17.01.2004, 17:56

Register as a user so you can edit your posts.

Then use the

Code: Select all

Code
box to print text with lots of spaces etc.
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

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

Post #5by selden » 18.01.2004, 00:07

The whitespace is there for human readability.

If you don't need to include any comments, you can even put everything on one line.

(The only comment character that I know about is #, which means "ignore to end of line")
Selden

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 22 years
Location: People's Republic Of Cork, Ireland

Post #6by JackHiggins » 19.01.2004, 16:41

Polchei

You can't use normal html code on this forum. Press quote on my post above to see how I got the code to come out.
- Jack Higgins

Jack's Celestia Add-ons

And visit my Celestia Gallery too!

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years 1 month

Post #7by granthutchison » 19.01.2004, 19:06

And for pity's sake register with the forum, so you can at least delete your failed efforts!

Grant


Return to “Celestia Users”