Page 1 of 1

Bug in the .Cel script

Posted: 24.11.2009, 13:52
by fly_space
Hello.
Long time no see :D

I making the cel script, "Control Key of Celestia.cel".
It made by Korean because I want to use many Korean use Celestia.
now, This script is pixed at Ver 0.3!

However, I get a bug about quickstart.
I want to start this script files in desktop. So I add a quick start file the same script.
and I run, but this window appear.

Can I get a workaround this problem?

Re: Bug in the .Cel script

Posted: 24.11.2009, 14:31
by selden
All I am sure about is that the error message means that there is something wrong in the Target field of the shortcut.

I'm not sure how this translates into Korean, but the Windows XP U.S. English version of Celestia will run a script when Celestia starts if you specify a "url" in the Target field of a Celestia desktop shortcut.

The image below shows the shortcut Properties menu. This shortcut runs Celestia's demo script in fullscreen mode. The full text of the string in the Target field is

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --fullscreen --url demo.cel

This assumes that the script is in the directory specified in the "Start in"" field.

Re: Bug in the .Cel script

Posted: 26.11.2009, 14:40
by fly_space
Selden,

Ok. I understand your workaround a bit.
But I can't open shortcut properties windows. (I don't know...)
Could you teach me how open that?

and, I want to run the script which is in the way "C:\Program Files\Celestia\Extras\Control key of Celestia\Control key of Celestia" at the desktop's file. and then, Control Key of Celestia script is run at the screen mode, too.
In this case, what am I write command?


I'm so sorry to you.
Have a nice day ~ :D

Re: Bug in the .Cel script

Posted: 26.11.2009, 15:15
by selden
Use the rightmost mouse button:

Put cursor on Celestia icon
Hold down right mouse button
Drag icon to new location
Release right mouse button
A new popup menu appears
Select "Create shortcuts here"
A new icon appears at the new location (The old icon is unchanged)

Put cursor on new Celestia icon
Click right mouse button (do not hold down)
A new popup menu appears
Select Properties (at the bottom of the new menu)
In the Target field, enter

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url "extras\Control key of Celestia\Control key of Celestia.cel"


Notes:
1. The "extras" directory name is not capitalized: it is spelled "extras" not "Extras"
2. the .cel filetype is required at the end.
3. Separate quotes are needed around the "url" name because of the spaces.
Suggestion: Rename the folder and the file. Replace the spaces (" ") by underscore ("_") so no quotes are needed.

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url extras\Control_key_of_Celestia\Control_key_of_Celestia.cel

Re: Bug in the .Cel script

Posted: 30.11.2009, 14:14
by fly_space
Selden,

Thanks! I made a Quick start this script!

But, Some error is still appeared. When I run this quick start icon , open Celestia window and roading files.
Thereupon, this window was opened.
Fatal error.jpg


At this time, quick start icon's target field command is here.

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url extras\Control_key_of_Celestia\Control_key_of_Celestia.cel"


When this window appeared, I thought This file maybe have wrong command.
Above code, '~~ --url extras ~~~'. So I amend code like this.

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url "extras\Control_key_of_Celestia\Control_key_of_Celestia.cel"


Thereupon, This window appeared.
Fatal error 2.jpg



This error command wasn't understood to me. Maybe, This error command is Unicode command.
But, I don't know what this error's workaround. I'm sorry. but Help me, please! :cry:

Re: Bug in the .Cel script

Posted: 30.11.2009, 16:03
by selden
Your first attempt had an extra quote at the end. If you delete the quote, it should work.

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url extras\Control_key_of_Celestia\Control_key_of_Celestia.cel"

should be

Code: Select all

"C:\Program Files\Celestia\celestia.exe" --url extras\Control_key_of_Celestia\Control_key_of_Celestia.cel

Re: Bug in the .Cel script

Posted: 01.12.2009, 14:12
by fly_space
Selden,

Thanks for your advise. but This problem still appeared.
Fatal error 2-window.jpg


And, I around Celestia folder and cel files,
All cel scripts were appeared This window -> 'Invlid command line option "(File's course)"'

when I ran demo.cel script, This window appeared.
demo_invalid.jpg


and I ran guide.cel script, this window appeared, too.
guide_invalid.jpg

Re: Bug in the .Cel script

Posted: 01.12.2009, 15:56
by selden
I'm sorry, but if demo.cel doesn't work, there is something wrong that I don't understand. (I used demo.cel to test the instructions that I provided.)

Maybe someone else can help who is familiar with the configuration used for Asian locales.

Re: Bug in the .Cel script

Posted: 04.12.2009, 13:18
by fly_space
Selden,

Hmm. OK!
Thanks for your help :D


Cheers,
fly_space

Re: Bug in the .Cel script

Posted: 04.12.2009, 18:30
by jogad
Hello,

Fly_space, your command line for your script is now correct and your script is lauched correctly. The message "Fatal Error" denotes an error in your cel script.

The error when you try to lauch guide.cel or demo.cel is a command Line Error because you have specified an absolute path on the disk D: without quotes. Don't bother with that.

The only thing you have to do is to correct your cel script. It is often a curve bracket missing.

Good luck :mrgreen: