Bug in the .Cel script

Report bugs, bug fixes and workarounds here.
Topic author
fly_space
Posts: 41
Joined: 23.10.2008
With us: 16 years 1 month
Location: Seongnam, Korea

Bug in the .Cel script

Post #1by fly_space » 24.11.2009, 13:52

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?
KCU(Korean Celestia User)
http://blog.naver.com/wjdeogks18 (My Blog)
I wished to be a Developer, and I actually did.
I still want to be a poet, too

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

Re: Bug in the .Cel script

Post #2by selden » 24.11.2009, 14:31

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.
Selden

Topic author
fly_space
Posts: 41
Joined: 23.10.2008
With us: 16 years 1 month
Location: Seongnam, Korea

Re: Bug in the .Cel script

Post #3by fly_space » 26.11.2009, 14:40

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
KCU(Korean Celestia User)
http://blog.naver.com/wjdeogks18 (My Blog)
I wished to be a Developer, and I actually did.
I still want to be a poet, too

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

Re: Bug in the .Cel script

Post #4by selden » 26.11.2009, 15:15

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
Selden

Topic author
fly_space
Posts: 41
Joined: 23.10.2008
With us: 16 years 1 month
Location: Seongnam, Korea

Re: Bug in the .Cel script

Post #5by fly_space » 30.11.2009, 14:14

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:
KCU(Korean Celestia User)
http://blog.naver.com/wjdeogks18 (My Blog)
I wished to be a Developer, and I actually did.
I still want to be a poet, too

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

Re: Bug in the .Cel script

Post #6by selden » 30.11.2009, 16:03

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
Selden

Topic author
fly_space
Posts: 41
Joined: 23.10.2008
With us: 16 years 1 month
Location: Seongnam, Korea

Re: Bug in the .Cel script

Post #7by fly_space » 01.12.2009, 14:12

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
KCU(Korean Celestia User)
http://blog.naver.com/wjdeogks18 (My Blog)
I wished to be a Developer, and I actually did.
I still want to be a poet, too

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

Re: Bug in the .Cel script

Post #8by selden » 01.12.2009, 15:56

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.
Selden

Topic author
fly_space
Posts: 41
Joined: 23.10.2008
With us: 16 years 1 month
Location: Seongnam, Korea

Re: Bug in the .Cel script

Post #9by fly_space » 04.12.2009, 13:18

Selden,

Hmm. OK!
Thanks for your help :D


Cheers,
fly_space
KCU(Korean Celestia User)
http://blog.naver.com/wjdeogks18 (My Blog)
I wished to be a Developer, and I actually did.
I still want to be a poet, too

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Bug in the .Cel script

Post #10by jogad » 04.12.2009, 18:30

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:


Return to “Bugs”