Custom stars.dat files?

General discussion about Celestia that doesn't fit into other forums.
Topic author
Evil Dr Ganymede
Posts: 1386
Joined: 06.06.2003
With us: 21 years 6 months

Custom stars.dat files?

Post #1by Evil Dr Ganymede » 18.06.2003, 22:37

Let's say I want to ditch the existing stars.dat file and make up my own little universe. Is there a way I can put a load of stc entries together into a single text file and convert that into a new stars.dat file to replace the one that Celestia uses?

I figure there must be, or those big Hipparcos stars.dat files wouldn't be possible to make :).

Can anyone point me in the right direction?

marc
Posts: 426
Joined: 13.03.2002
With us: 22 years 9 months
Location: Outback Australia

Post #2by marc » 19.06.2003, 02:28

Nice one silly, please read the announcement at the top of this forum.

You will need to write some code. Have a look at buildstardb.cpp in the celestia source, its used to create the stars.dat file.

Topic author
Evil Dr Ganymede
Posts: 1386
Joined: 06.06.2003
With us: 21 years 6 months

Post #3by Evil Dr Ganymede » 19.06.2003, 03:30

Er, what announcement? There's nothing in the FAQ thread about this.

So I'd have to compile the stars.dat building code myself? I was hoping that there was an already compiled version of it out there somewhere that I could download (says he, not having C++).

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 10 months
Location: Seattle, Washington, USA

Post #4by chris » 19.06.2003, 06:42

I can probably modify Celestia just slightly so that it can start up without loading stars.dat. As a temporary fix though, it would be easy to create a stars.dat file with just a single star, allowing everything else to be added through .stc files. Would that be adequate?

--Chris

Topic author
Evil Dr Ganymede
Posts: 1386
Joined: 06.06.2003
With us: 21 years 6 months

Post #5by Evil Dr Ganymede » 19.06.2003, 07:00

That would be rather spiffy, yes - if it's not too much trouble that would be great! (I'm assuming you mean you'd create the stars.dat file with the one star, because I don't know how to do this)

Heck, assuming the default star wasn't Sol, you could set it up so it's an M9 V star about 3000 lightyears away or something, so it wouldn't show up in Celestia unless you ramped up the magntitudes all the way to maximum.

Thanks! :D

wcomer
Posts: 179
Joined: 19.06.2003
With us: 21 years 5 months
Location: New York City

Post #6by wcomer » 19.06.2003, 20:22

Chris, that would be a great solution. Currently, stars.dat is the only thing left which has to be handled carefully during installation updates. This work-around would make the new installs completely painless.


Return to “Celestia Users”