it's n00b time!

Post requests, images, descriptions and reports about work in progress here.
Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

it's n00b time!

Post #1by Hunter Parasite » 07.09.2006, 22:07

Can someone just give me a template for a planet and a star? Im attempting an add on for my book, and im having some issues with getting the STC and SSC files to work.

I've even gazed at selden's add on guide for a good hour or two, that only vaguely helped.

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 21 years 5 months
Location: Norway

Re: it's n00b time!

Post #2by rthorvald » 07.09.2006, 22:17

Hunter Parasite wrote:I've even gazed at selden's add on guide for a good hour or two, that only vaguely helped.


Well then, here is my vague star:

Code: Select all

# HIP 297397
297397 "Hunter"   {   

RA 270.674708333333   

Dec -23.1049444444444   

Distance 5229.982   

SpectralType "G2 V"   

AppMag 15.9   

}


(The HIP is of course fictional).

... And here??s your vague planet:

Code: Select all

"Parasite" "Hunter"
{
Class "planet"
Texture      "earth.*"
Radius 4000
EllipticalOrbit {
   Period   0.2
   SemiMajorAxis   0.4
   }
RotationPeriod   1700
Albedo      0.1
}




- rthorvald ;-)
Image

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #3by Hunter Parasite » 07.09.2006, 22:18

thank you for the vague bodies!

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #4by Hunter Parasite » 07.09.2006, 22:51

Why isnt this working?

Code: Select all

"Terra" "Torzhakt"
{
Class "planet"
Texture      "jupiter.jpg"
Radius 4000
EllipticalOrbit {
   Period   0.2
   SemiMajorAxis   0.4
   }
RotationPeriod   1700
Albedo      0.1
}


Code: Select all

# HIP 408933
408933 "Torzhakt"   {   

RA 270.674708333333   

Dec -23.1049444444444   

Distance 2000.982   

SpectralType "G2"   

AppMag 20.9   

}


I can't find either one.

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

Post #5by ajtribick » 07.09.2006, 22:59

They work for me.

You did put the files in the "extras" directory didn't you?

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #6by Hunter Parasite » 07.09.2006, 23:29

yes, what did you type in the search thing so you can find it?

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

Post #7by selden » 07.09.2006, 23:37

you can type
HIP 408933
or
Torzhakt
or
Torzhakt/Terra

Reminder: the HIP number won't be shown in the "tab completion" list.
Selden

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #8by Hunter Parasite » 07.09.2006, 23:42

Now I know why it doesn't work, for some reason my files stay as text files. How to I change them to STC and SCC?

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

Post #9by selden » 07.09.2006, 23:47

rename them
e.g. right-mouse-click on the name and select the rename option.
also make sure you've turned off "hide extensions for known file types".
Selden

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #10by Hunter Parasite » 08.09.2006, 00:00

awesomeness! While looking for the hide extensions thing, i noticed that the STC and SCC filetypes didn't exist on my computer, so i made them and it works! thanks, not I just have to make more planets and get some textures.

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

Post #11by ajtribick » 08.09.2006, 06:57

Presuming you're using a Windows machine, put the filename between " " in the Save As box, this will stop the .txt extension automatically being applied.

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #12by Hunter Parasite » 08.09.2006, 20:26

there should be a sticky that has templates for moons, stars, and planets.

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 19 years 3 months

Post #13by Chuft-Captain » 09.09.2006, 01:02

Why? -- when there's plenty of examples available in your Celestia\data folder. :wink:
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #14by Hunter Parasite » 09.09.2006, 01:14

people that are new to celestia that want to make an add on could have an easier time, plus it would be convient. We as a species live off of convience. We are human after all.

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

Post #15by ajtribick » 09.09.2006, 12:04

I guess the real problem here is two supposedly "helpful" Windows "features" designed to make using the operating system "convenient". ;)

Firstly, that by default Windows hides filename extensions. This "protects" the user from all those scary .txt, .doc, .rtf, etc. extensions. This is only really helpful for the most technophobic newbie users. I turned this "feature" off as soon as possible.

Secondly, that "Save As" dialog boxes automatically add the filename extension when it doesn't end in something associated with the program. You can get round this by associating the filetype with the program you use to edit the files. This can be done by right-clicking on the file in Explorer and selecting Open With... (or Open With>Choose Program...) and checking the box to make the filetype always open with the selected program.

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #16by Hunter Parasite » 09.09.2006, 15:00

Can someone tell me whats wrong with this? The atmosphere does not appear

Code: Select all

"Stractan" "Torzhakt"
{
Class "Planet"
Texture      "Stractan.*"
Radius 1700
EllipticalOrbit {
   Period   4.9
   SemiMajorAxis   0.9
   }
RotationPeriod   30
Albedo      0.40
}
HazeColor [ 0.5 0.35 0.2 ]
   HazeDensity 0.35
   Radius 6052

   Atmosphere {
      Height 60
      Lower [ 0.8 0.8 0.5 ]
      Upper [ 0.6 0.6 0.6 ]
      Sky [ 0.8 0.8 0.5 ]

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 10 months

Post #17by Fightspit » 09.09.2006, 15:01

You have forgotten a } at the end.
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #18by Hunter Parasite » 09.09.2006, 16:44

still doesnt work.

Fightspit
Posts: 510
Joined: 15.05.2005
With us: 19 years 10 months

Post #19by Fightspit » 09.09.2006, 16:48

I notice a wrong } between Albedo and HazeColor

Code: Select all

...
Albedo      0.40
}     <-- problem ?
HazeColor [ 0.5 0.35 0.2 ]
...
Motherboard: Intel D975XBX2
Processor: Intel Core2 E6700 @ 3Ghz
Ram: Corsair 2 x 1GB DDR2 PC6400
Video Card: Nvidia GeForce 8800 GTX 768MB GDDR3 384 bits PCI-Express 16x
HDD: Western Digital Raptor 150GB 10000 rpm
OS: Windows Vista Business 32 bits

Topic author
Hunter Parasite
Posts: 265
Joined: 18.09.2005
With us: 19 years 6 months
Location: CT

Post #20by Hunter Parasite » 09.09.2006, 16:52

now the planet has dissapeared.


Return to “Add-on development”