Linking startXXX.cel with its own SolarsysXXX.cel

General discussion about Celestia that doesn't fit into other forums.
Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Linking startXXX.cel with its own SolarsysXXX.cel

Post #1by ANDREA » 22.07.2003, 13:21

As I told sometimes, I'm particularly interested in the use of Celestia for Astronomy School teaching, and to do this I'm writing or I've written many different start.cel files, each of them making obviously different things.
They are:

1- The Solar System
2- Eclipses and Transits
3- The Orrery
4- The Conquest of Space
5- The Universe
6- Hi-Fi Planets
7- Inner Solar System
8- The Giants
9- Strange Worlds
10- Science-Fiction Universe
11- Fantasy Worlds

Well, on my PC I have one Celestia Directory for each of them, so eleven Celestias, each of them with only the needed textures, the related Start.cel and Solarsys.ssc, and everything is needed to perform the given actions :( .
In the hundreds of messages that are available in the Forum, I haven't found if there is the possibility to gather things in the following way, e.g.:

start-1.cel with solarsys-1.ssc and textures-1 subdirectory
start-2.cel with solarsys-2.ssc and textures-2 subdirectory
start-3.cel with solarsys-3.sscand textures-3 subdirectory

and so on, but taking everything in the same Celestia directory, where everything is contained, as needed from ALL the start-XX.cel files.
Could it be possible? :?:
Moreover this could be very useful when upgrading to new prereleses with the new .exe file only, because now I have to do it eleven times, a long work (plus one for etst purposes) :D .
I have to consider too the amount of add-ons that is growing up daily, and makes even more difficult to distribute them in the various directories :? .
Thank you for your patience :) .

By

Andrea
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 10 months
Location: San Sebastian (Spain)

Post #2by jamarsa » 22.07.2003, 16:50

I don't understand why do you need different solarsys.ssc for each of the scripts, or different textures, unless you try to show the early solar system (or the future one). You could have all of it with the same textures and add-ons in the same folder... You can even play with the alternate textures option (I don't know, however, if you can alternate from script).

There is a way to start celestia with a different directory/script than the default; just give it in the command line:

celestia --dir <StartDirectory> -u <script.cel> (in Windows)

(I found it reading the source code. Cannot test until going home, I'm using a Linux machine now)

You can create a direct link with the complete command included, for each of the lessons.

As for the matter of past and future, you can cheat a little, replicating the Solar System in another nearby star... ;-) until my feature request of dynamical alteration of ssc/stc structures at run time becomes available (but don't wait awake for it...).

Javier.

PS: Oh oh, what's happening with shatters.net? It's pretty slow lately...

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #3by don » 22.07.2003, 17:23

In the Preliminiary User's FAQ thread, Selden wrote the following:

- - - - - - - - - - - - -
When invoked from a command line, Celestia can be passed the name of a .CEL or .CELX script to run at startup:

Code: Select all

./celestia -c name-of-script.cel


When the command line includes the qualifier "-once", the command line will be passed to the running copy of Celestia instead of starting a new copy of the program.

Code: Select all

 ./celestia -once -c name-of-script.celx


A limitation in the current version of Celestia (to 1.3.1. pre6) is that your default directory must be the Celestia root directory and the scripts must be there, too. Otherwise Celestia will not be able to find the surface texture files for its objects.
- - - - - - - - - - - - -

I have not personally tried this in Windows XP, since DOS no longer exists as a runable program (ie. using a PIF file). I'm not sure how to make a runable icon on an XP desktop (yet). One may need to use the Start/Run options of Windows -- I'm just not sure. If someone knows how to do this, please post a message in the Celestia Scripting forum.

Also, due to Selden's the last paragraph, I'm not sure if you could use multiple directories with this either.

Just thought I'd pass it along in case you can figure out how to make it work <smile>. If/when you do, please post how you got it to work so I can add it to the Scripting Guide I'm working on. Thank you!

-Don

PS. There is a new Celestia Scripting forum available for all Scripting-related topics. And, it would be GREAT if you could post some of your scripts there too, for others to enjoy <smile>!

Guest

Post #4by Guest » 22.07.2003, 17:57

jamarsa wrote:I don't understand why do you need different solarsys.ssc for each of the scripts, or different textures, unless you try to show the early solar system (or the future one)
In the various .cel files, I need to use different textures of the same subject, e.g. the Earth.
If I'm showing "The Orrery", I need a very Lowres one, while in "The Solat System" I need a Medres one, and in "The Hi-Fi Planets" I need the 16k Hires texture (and the same for bumps, clouds, night textures, etc. at various resolution, as needed)
So, how can I use only one solarsys.ssc? :?: I think it's impossible, at least actually. The proposed solution should have different solarsys.ssc files linked to different start.cel files, with 2k, 4k and 16k definition, respectively as in the above example.
[/quote]You could have all of it with the same textures and add-ons in the same folder... You can even play with the alternate textures option (I don't know, however, if you can alternate from script)[/quote]
I know alternating textures with typing, but how is it possible with the .cel file? And anyhow, how can I give the different planetary data for the same planet with different textures? I don't think this can be a solution.
[/quote]There is a way to start celestia with a different directory/script than the default; just give it in the command line:
celestia --dir <StartDirectory> -u <script.cel> (in Windows)
(I found it reading the source code. Cannot test until going home, I'm using a Linux machine now). You can create a direct link with the complete command included, for each of the lessons.[/quote]
I use a connection between the start.cel files and the icons I created on my desktop (look at my page). It works. :)
[/quote]As for the matter of past and future, you can cheat a little, replicating the Solar System in another nearby star... ;-) until my feature request of dynamical alteration of ssc/stc structures at run time becomes available (but don't wait awake for it...).
Javier. [/quote]
I have done this with "The Fantasy Worlds" and "The Universe", where I use many objects found in many extrasolar solar systems like Rassilon's ones or others, nebulae, a galaxy, pulsar, open clusters, the black hole and so on, as for the Earth one million years ago, the flattened Earth and Mars with Schiaparelli channels, all of them in orbit around G stars similar to the Sun. :wink:
So my problem is limited to the Solar System objects and their textures.

But now that I'm thinking on this, may be I can create extrasolarsys.ssc files, with the same data taken for the Solar System, and changing the resolution of the textures to be used (e.g., an exsolsys Hi-Fi.ssc, with Hires earth, Moon and Mars rotating aroung the star HIP XXXXX, similar to the Sun). :!:
It's a little complicated to be done, and I would prefer a simpler way, but if there is nothing else...
Thank you Javier. Could be a solution! :D

By

Andrea

Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Post #5by ANDREA » 22.07.2003, 18:01

But now that I'm thinking on this, may be I can create extrasolarsys.ssc files, with the same data taken for the Solar System, and changing the resolution of the textures to be used (e.g., an exsolsys Hi-Fi.ssc, with Hires earth, Moon and Mars rotating aroung the star HIP XXXXX, similar to the Sun). :!:
It's a little complicated to be done, and I would prefer a simpler way, but if there is nothing else...
Thank you Javier. Could be a solution! :D
By
Andrea[/quote]
Sorry, this GUEST was me, unopportunely unlogged. Excuse me :oops:

Andrea
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #6by don » 22.07.2003, 18:47

Andrea wrote:I use a connection between the start.cel files and the icons I created on my desktop (look at my page). It works. :)


Great idea!

Nice web page too. :P

Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Post #7by ANDREA » 22.07.2003, 18:58

don wrote:
Andrea wrote:I use a connection between the start.cel files and the icons I created on my desktop (look at my page). It works. :)

Great idea!
Nice web page too. :P


Thank you Don, you are very kind :D .
Anyhow in the next days I'll have some free time, so I'll try if it works as I hope :wink: .
I have checked the Celestia list of stars, and I have found that the following ones have the same Sun Class (G2V):
RIGEL Kentaurus A
ZET1 Ret
HD10307
i Boo
NU2 Lup,

while BET Hyi is G2IV, so can be used the same :) .
I'll inform on the results.
By soon

Andrea
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #8by don » 22.07.2003, 19:33

ANDREA wrote:I'll inform on the results.


Thank you Andrea.

I have not played with other star systems or creating my own because I want to keep my Celestia install "clean" (the way it comes in the download) for beta testing and documenting. But, it sure sounds exciting and I can't wait to "play" also. :D

-Don

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 10 months
Location: San Sebastian (Spain)

Post #9by jamarsa » 22.07.2003, 20:13

don wrote:Thank you Andrea.

I have not played with other star systems or creating my own because I want to keep my Celestia install "clean" (the way it comes in the download) for beta testing and documenting. But, it sure sounds exciting and I can't wait to "play" also.

don, you can do as andrea: install celestia again in another directory, and add/modify whatever you want, without "tweaking" the test copy. A lot of people does the same way here (me included).

ANDREA wrote:If I'm showing "The Orrery", I need a very Lowres one,


andrea: sorry, my mistake. I didn't notice what an "Orrery" was until I saw your page (the word was not part of my vocabulary :oops: ). Sure, the problem is really different if you change the Solar System structure (that's why I quoted the ancient Solar System as special).

By the way, the Orrery is an excellent and original idea; proof of the flexibility of Celestia.

Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Post #10by ANDREA » 22.07.2003, 21:07

ANDREA wrote:If I'm showing "The Orrery", I need a very Lowres one,

andrea: sorry, my mistake. I didn't notice what an "Orrery" was until I saw your page (the word was not part of my vocabulary :oops: ). Sure, the problem is really different if you change the Solar System structure (that's why I quoted the ancient Solar System as special).
By the way, the Orrery is an excellent and original idea; proof of the flexibility of Celestia.[/quote]

Thank you Javier, very kind.
By soon

Andrea
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #11by don » 22.07.2003, 23:50

jamarsa wrote:don, you can do as andrea: install celestia again in another directory, and add/modify whatever you want, without "tweaking" the test copy. A lot of people does the same way here (me included).


Hi Javier,

Hmmmm, I wouldn't really *install* it though, right? I would just copy the existing Celestia directory / folder (and sub-directories) to a new directory / folder (like "Celestia2") and then run that Celestia.exe instead of the actual "installed" one, yes?

I can't imagine how confused Windows and the Registry would get if I truly went through a "normal" second install and used a different directory / folder name. It might lose it's mind <laughing>!

Just want to make sure I do the right thing <smile>.

Thank you Javier.

-Don

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 10 months
Location: San Sebastian (Spain)

Post #12by jamarsa » 23.07.2003, 00:16

don wrote:Hmmmm, I wouldn't really *install* it though, right? I would just copy the existing Celestia directory / folder (and sub-directories) to a new directory / folder (like "Celestia2") and then run that Celestia.exe instead of the actual "installed" one, yes?
I can't imagine how confused Windows and the Registry would get if I truly went through a "normal" second install and used a different directory / folder name. It might lose it's mind <laughing>!




Both methods are valid AFAIK. If you reinstall, the entries in the Registry would be overwritten with the new values, making .cel associations and cel://URLs point to the new directory. By copying you keep them pointing to the first installation. I did a quick review of celestia registry entries, and I think there wouldn't be any duplicates. But your method is simpler... :wink:

By the way, the -c option you quote must have been dropped, as there is no sign of it in the source, and I tried it with no result. The registry entry uses the -u option instead (I think the -c option was blended into the -u one for use with both URLs and script files).

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #13by don » 23.07.2003, 00:41

jamarsa wrote: But your method is simpler... :wink:
Thanks Javier, I'm all for simple and safe. :D

By the way, the -c option you quote must be outdated, as there is no sign of it in the source, and I tried it without result. The registry entry uses the -u option instead (I think the -c option was blended into the -u one for use with both URLs and script files).

Hmmmm, Selden posted that one not too long ago, on July 4th. I've not tried it myself though (yet). Looking at the Windows .cel File Association information in File Manager, it too shows a "-u" ...

Code: Select all

C:\Program Files\Celestia\celestia.exe --once --dir "C:\Program Files\Celestia" -u "%1"

... but the -u might be for a different purpose? Or would the "%1" be replaced with the script name?

It would be nice to find out exactly what command-line options are available, what they do, and how to use them.

-Don

jamarsa
Posts: 326
Joined: 31.03.2003
With us: 21 years 10 months
Location: San Sebastian (Spain)

Post #14by jamarsa » 23.07.2003, 07:13

Command-line options (M$ Windows version):


--verbose: enable debug messages (only if compiled with DEBUG switch on).

--fullscreen: start Celestia in fullscreen mode.

--dir <path> : change root celestia directory to <path>.

-u <url>|<filename> : start in the given <url> or if the parameter is a script file, execute <filename>.

--once : tell a running instance of celestia to open a given URL. If no running instance, just ignored.

Command-line options (glut/gtk version):

-v [0|1] : enable debug mode.

Command-line options (KDE version):

<url> : start in the given url/execute script file.
--help : command-line help
...
(other common X/Qt/KDE options)

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 7 months
Location: Colorado, USA (7000 ft)

Post #15by don » 24.07.2003, 02:56

Wow!

Thank you Javier!

AlexA

Post #16by AlexA » 22.10.2004, 22:48

8) Celestia Sol similar stars:
http://yastro.narod.ru/hab_stars.txt

Evil Dr Ganymede
Posts: 1386
Joined: 06.06.2003
With us: 21 years 8 months

Post #17by Evil Dr Ganymede » 22.10.2004, 23:14

That's a very odd reason for thread necromancy there... :?

Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Post #18by ANDREA » 22.10.2004, 23:23

AlexA wrote:8) Celestia Sol similar stars:
http://yastro.narod.ru/hab_stars.txt

Thank you AlexA, appreciated. :wink:
By

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO


Return to “Celestia Users”