Page 1 of 1
why are files written with spaces?
Posted: 17.01.2004, 17:39
by Polchei
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
}
Re: why are files written with spaces?
Posted: 17.01.2004, 17:44
by Polchei
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
}
Re: why are files written with spaces?
Posted: 17.01.2004, 17:48
by Polchei
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????
Posted: 17.01.2004, 17:56
by JackHiggins
Register as a user so you can edit your posts.
Then use the
box to print text with lots of spaces etc.
Posted: 18.01.2004, 00:07
by selden
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")
Posted: 19.01.2004, 16:41
by JackHiggins
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.
Posted: 19.01.2004, 19:06
by granthutchison
And for pity's sake register with the forum, so you can at least delete your failed efforts!
Grant