DeepsSky Object gone

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
HB M
Posts: 132
Joined: 26.11.2002
With us: 21 years 11 months
Location: Eindhoven, The Netherlands

DeepsSky Object gone

Post #1by HB » 05.10.2008, 12:47

From the executable of the latest SVN downloads, the Deepsky objects, like the milky way, are gone.
It has been sorted out that from the file config.ccp the following line is missing:

configParams->getString("DeepSkyCatalog", config->deepSkyCatalog);
config->deepSkyCatalog = WordExp(config->deepSkyCatalog);

Is this on purpose or just an accident?
HB

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: DeepsSky Object gone

Post #2by t00fri » 05.10.2008, 16:59

HB wrote:From the executable of the latest SVN downloads, the Deepsky objects, like the milky way, are gone.
It has been sorted out that from the file config.ccp the following line is missing:

configParams->getString("DeepSkyCatalog", config->deepSkyCatalog);
config->deepSkyCatalog = WordExp(config->deepSkyCatalog);

Is this on purpose or just an accident?

There have been substantial structural modifications in the context of my recent addition of the globular clusters implementation to SVN. Therefore it is crucial to do a complete REINSTALL! The deepsky.dsc galaxy data file has been renamed into galaxies.dsc and together with the globulars.dsc data now forms an array in celestia.cfg.

As I have written in the forum, you are bound to get into trouble if you just replace the executable from SVN or try to fiddle otherwise ;-).

Fridger
Image

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

Re: DeepsSky Object gone

Post #3by selden » 05.10.2008, 17:15

Confirming what Fridger wrote, I just now rebuilt Celestia r4488 from scratch and the CELX script still works fine for me when used in Celestia's current (v1.6) directory tree as downloaded by svn from SourceForge. It can't work with v1.5.1's directory tree.

Also, I can't find any source code file named config.cpp
Do you mean src/celestia/configfile.cpp ?

The code that you seem to be proposing seems to me to be obsolete: that variable is now an array and has a plural name (DeepSkyCatalogs). This suggests to me that you may be looking at and compiling from an obsolete version of the source code.

Here's one of the lines where the new name is used in the current version of configfile.cpp:
Value* dsoCatalogsVal = configParams->getValue("DeepSkyCatalogs");

As Fridger wrote, this and related changes are to support the new globular cluster catalog which will be included with Celestia v1.6. (i.e. Celestia will now include multiple .DSC files when it ships.)

This and the other symptoms being reported also may be consistent with building Celestia with obsolete build files. Have you updated the appropriate build files to include globular.h and globular.cpp?
Selden

Avatar
Topic author
HB M
Posts: 132
Joined: 26.11.2002
With us: 21 years 11 months
Location: Eindhoven, The Netherlands

Re: DeepsSky Object gone

Post #4by HB » 05.10.2008, 19:50

fridger wrote:As I have written in the forum, you are bound to get into trouble if you just replace the executable from SVN or try to fiddle otherwise .

Hmm... is that so. I've checked your modification around DSO and yes I've found out how it works. clever way!!
With the proper settings in the celestia.cfg file I get it work ( DeepSkyCatalog ==> DeepSkyCatalogs an [ ] around the DSC file(s))
I suppose that the galaxies.dsc is named like that only to avoid confusion with deepsky.dsc.

To Selden:

Due to my busy work I wasn't able to spend much time to Celestia and all things around it.
So I've to catch up a backlog of six or seven months and read all about important changes and after all this, to see if things are still working as before.

Yes, I mean configfile.ccp and yes too on compiling the globular.h/ccp file.

Thanks anyway to both of you.
HB

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: DeepsSky Object gone

Post #5by t00fri » 05.10.2008, 20:40

HB wrote:I suppose that the galaxies.dsc is named like that only to avoid confusion with deepsky.dsc.

It was simply a matter of logics. The addition of another deepsky data set (globular.dsc) besides the galaxy data implied that the generic name deepsky.dsc for the galaxy data alone should be specialized into galaxies.dsc...

It does not make sense to squeeze all forthcoming deepsky data into a single deepsky.dsc data file...

Fridger
Image


Return to “Bugs”