Page 1 of 1

Different Versions of Celestia using the same texture-Folder

Posted: 16.04.2005, 21:19
by Hauke
Hi!
2 questions :)

1)
I am using 2 Versions of Celestia, 1.3.2 and 1.4 beta 6 (or so). I??d like both of them to use the same texture-folder (as the title of the thread might indicate ;)). Is this possible?
I already made them to use the same extras-folder (by telling celestia 1.4 to use ../Celestia_131/extras as it??s extras-folder).

and 2) I am also using NASA World Wind - can i somehow make celestia to use the World Wind-VT?

Best regards
Hauke

Re: Different Versions of Celestia using the same texture-Fo

Posted: 16.04.2005, 21:43
by t00fri
Hauke wrote:Hi!
2 questions :)

1)
I am using 2 Versions of Celestia, 1.3.2 and 1.4 beta 6 (or so). I??d like both of them to use the same texture-folder (as the title of the thread might indicate ;)). Is this possible?
I already made them to use the same extras-folder (by telling celestia 1.4 to use ../Celestia_131/extras as it??s extras-folder).

and 2) I am also using NASA World Wind - can i somehow make celestia to use the World Wind-VT?

Best regards
Hauke


You forgot to tell us your operating system. From the direction of your directory slashes, in infer you are using Linux? If so, then you may simply use a symbolic link for the textures directory of the second installation.

Bye Fridger

Posted: 17.04.2005, 19:26
by Hauke
And if i??m using Windows? (XP) :)
I already tried to set a shortcut, won??t work :(

Posted: 25.04.2005, 18:18
by Hauke
no more answers? :(

And what do you mean with "symbolic link" because i??m going to change to linux soon ;)

Posted: 25.04.2005, 19:20
by hjw
And what do you mean with "symbolic link" because i??m going to change to linux soon


- An unix data-file is just an area of bytes within a filesystem (without name).
- To access the data of a file, you give it one (or more) "filenames".
- If the same area of bytes has more than one filename, the filenames are called "hard links".
- Filenames are stored as one of several possible kinds of entries in a directory tree, the tree starting at "/".
- Other types of directory entries are devices, sockets, fifos and "symbolic links".
- A symbolic link points to ANY other directory entry anywhere in the directory tree, including another symbolic link.

Example:
Your textures are in the directory /home/celestia/textures. You now can
make a symbolic link, pointing to this directory,
e.g.
/home/cel1/textures -> /home/celestia/textures. As soon as you
access something within the subtree of /home/cel1/textures, you actually
access it within /home/celestia/textures.

I.e. there is ONE actual data directory tree, but you can access it
as if it is replicated to many other places.

Did this help?

MfG - HJW

Posted: 26.04.2005, 21:39
by Hauke
thanks :)
but can i do this in windowsXP,too?

i found out, that i can set the path for my extras-directory in the celestia.cfg.
this is what i use for my celestia 1.40 extras-directory:

Code: Select all

ExtrasDirectories  [ "../Celestia_132/extras" ]


my directory tree is

Code: Select all

c:\Programme\
          -celestia_132
          -celestia_140


so i need something like

Code: Select all

TexturesDirectories  [ "../Celestia_132/textures" ]

is this possible?
of course i could set absolute paths in my solarsys.ssc (like c:\programme\celestia132\textures\medres\mars.jpg) instead of mars.jpg
but there has to be another way...(?)

Posted: 27.04.2005, 06:12
by hjw
but can i do this in windowsXP,too?

I've been told something similar is possible with XP, but I'm
a complete dummy with windows... I just remember that something
like "fsutil" should do the trick.

i found out, that i can set the path for my extras-directory in the celestia.cfg


yes, and you also can use multiple entries, like
["../extras-1" "../extras-2" "../extras-3"].

I'm afraid you can't do this with the "data" directory. I never
tried, because, well, I just used symbolic links...

MfG - Horst

Posted: 27.04.2005, 06:18
by BlindedByTheLight
Regarding different versions of Celestia sharing the same textures I started this thread:

http://www.celestiaproject.net/forum/viewtopic ... highlight=

I was actually more concerned with different add-ons sharing the same textures (like several surface maps using the same normal map) but the issues are the same.

Jest came up with an idea for using the Modify declaration that helped alleviate some problems... hope his suggestion helps.

Posted: 28.04.2005, 16:55
by Hauke
ok...i tried to understand the thread... ;)
what you meant was to create .ssc-files in my extras-folder

(which i can set to, say,

Code: Select all

c:\programme\celestia_132\extras
(and which both celestia-versions use))

and put the textures with full pathnames

like

Code: Select all

c:\programme\celestia_132\textures\hires\16KVTMars.ctx

into the file?

so i have a .ssc for mercury, one for venus, one for earth/moon,[...],pluto and they are copied/pasted from my solarsys.ssc?
And there??s no opportunity just to tell celestia "don??t look there for textures but here"?

Posted: 29.04.2005, 05:46
by BlindedByTheLight
And there??s no opportunity just to tell celestia "don??t look there for textures but here"?


The short answer is no. The long answer is yes... but it involves creating a special add-ons folder with your new textures - along with special SSC files to "declare" these new textures in a way Celestia can understand.

My post was for doing something a little more elaborate. I see now, perhaps you are trying to do something different. Check this out - it should answer all your questions:

http://www.lepp.cornell.edu/~seb/addon-intro.html