Page 1 of 1

Pausing without time-reset and full-screen in CEL-scripts

Posted: 29.09.2007, 10:34
by kramskov
A problem with the full screen mode:
I am working on a script for educational purpose and I want to distribute it to students on a CD including the Celestia program etc (Celestia 1.4.1 for Windows). I have written a CEL-script and on the CD it is started with the command line --full-screen, so it can run in full screen mode. However, when Celestia runs for the first time the default resolution for full screen mode is not the current resolution of the screen (which I think would be the obvious choice), but 640 x 480. As far as I can see, you have to start Celestia (as an administrator) and manually set the full screen resolution before the script can run in full screen mode in the default screen resolution.
If I omit the parameter --full-screen I can make it run fine in a maximized window in the current screen resolution (but it is more pretty in full screen mode).
Any suggestion to a solution?

Another problem:
I would very much like to be able to pause the script. When you are doing that by pressing 'space' it is also resetting the time, i.e. if the script is running fx by a time factor of 1000 x, that time factor will be reset to real time when you press 'space' a second time to continue the script. I my case that means the rest of the script will be played incorrectly.

Is there a way to pause the script without resetting the time?

Best regards

Posted: 02.10.2007, 06:38
by LordFerret
Hello Kurt,

I have not experimented with Celestia's full-screen option, so I can't help you any there - but I'm sure someone here will, shortly.

As for the .cel scripting, there is a command "timerate" which allows you to change Celestia's time multiplier. You'll find this command documented in the Cel_Script_Guide_v1-0g file (see the Scripting Guides section) found here:
http://www.celestiamotherlode.net/catalog/documentation.html

Basically, its usage is -
timerate { rate n }

Where special values for n are -
0 = pause time
1 = reset to real time

:D

*EDIT*
Oops! I almost forgot... the actual pause... for this you'll use the "wait" command (also documented in that guide).

Usage -
wait { duration s }

Where s = seconds.

Posted: 02.10.2007, 08:23
by kramskov
Hello LordFerret,

Perhaps I did not describe my problem clear enough. I am fully aware of the CEL scripting commands timerate and wait, and use them a lot in the script.
However, I would very much like to be able to pause the script FROM THE KEYBOARD, for example when I am using the script in a teaching situation and want to pause it and add some comments before it is activated again.

The problem appears when the script runs Celestia with a time rate different from real time, for example a time rate of 1000x. When I pause the script by pressing 'space' in such a situation, the timerate will be reset to real time when I press 'space' one more time to continue the script.

So I am looking for a way to manually pause the running script (and Celestia) for a while and then be able to reactivate the script from the point it was paused with Celestia in exactly the same state as it was paused (including the same time rate).

Regards Kurt

Posted: 02.10.2007, 09:18
by ANDREA
kramskov wrote:....So I am looking for a way to manually pause the running script (and Celestia) for a while and then be able to reactivate the script from the point it was paused with Celestia in exactly the same state as it was paused (including the same time rate).
Regards Kurt

Kurt, I have the same problem when using my cel scripts for students.
I solved it in a bit...well, ugly way :oops: , but it works.
I know exactly where I have to pause in order to add informations, examples, reply to questions, and so on: in those script portions I wrote the timerate command again and again, let's say every 3-4 command lines, so I'm almost sure that in a very short time, or immadiately, the timerate will be the right one, even if I paused the script.
I repeat, ugly, but working.
My little cent. :wink:
Regarding the full screen command, are you using Windows?
If yes, the exact command should be --fullscreen not --full-screen.
Moreover, you must inizialize Celestia to the resolution you wish to use, the way shown here:
http://www.celestiaproject.net/forum/viewtopic ... creen+mode
in my 4th post.
Enjoy!
Bye

Andrea :D

Posted: 02.10.2007, 11:05
by Vincent
Kurt, Andrea,

This bug is fixed in Celestia 1.5:
http://celestiaproject.net/forum/viewtopic.php?t=8569&start=33

Posted: 02.10.2007, 11:12
by ANDREA
Vincent wrote:Kurt, Andrea, This bug is fixed in Celestia 1.5:
http://celestiaproject.net/forum/viewtopic.php?t=8569&start=33

Yes Vincent, I know, but Kurt is using 1.4.1, just like me (remember... 1.5 is missing sound! :wink: ).
Bye

Andrea :D

Posted: 02.10.2007, 11:17
by Vincent
ANDREA wrote:Yes Vincent, I know, but Kurt is using 1.4.1, just like me (remember... 1.5 is missing sound! :wink: ).
Bye

Andrea :D

Andrea,

I would even say that 1.5 is simply missing... :wink:

Posted: 02.10.2007, 11:50
by ANDREA
Vincent wrote:
ANDREA wrote:Yes Vincent, I know, but Kurt is using 1.4.1, just like me (remember... 1.5 is missing sound! :wink: ).
Bye Andrea :D
Andrea,
I would even say that 1.5 is simply missing... :wink:

Yes, I'm sorry to say it, but you are right. :cry:
It's missing!
Bye

Andrea :D

Posted: 03.10.2007, 21:24
by kramskov
Andrea, thank you for your solutions to the problems about pausing. I might use them temporarily hoping that version 1.5 will make things work better.

The problem about the full-screen mode in Windows also sounds like a bug. Maybe that will be solved also in version 1.5. Is there a more formal way to suggest such improvements? (Or maybe it is too late for version 1.5?).

Despite these irritating problems Celestia is a great program for educational purposes, because you can design your own universe emphasizing what you want especially to show. I hope to be able to upload a couple of my CEL scripts soon, so others can use them.

Kurt

Posted: 03.10.2007, 21:36
by selden
Kurt,

Feature suggestions and bug reports should be made on Celestia's tracker pages at SourceForge. That way the developers can check them off as they're added or fixed.

Feature suggestions:
https://sourceforge.net/tracker/?group_ ... tid=371302

Bug reports:
https://sourceforge.net/tracker/?atid=1 ... unc=browse

v1.5.0 hasn't been finalized. However, there's no way to be sure which bugs will be fixed in it. Some problems may be considered too inconsequential and others too difficult to be corrected right away.

Posted: 04.10.2007, 03:21
by LordFerret
I would very much like to be able to pause the script FROM THE KEYBOARD

Sorry for the misunderstanding Kurt. :oops: I'm glad to hear Andrea's suggestion has worked for you. :D