Lua/CELX scripting

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
aywander
Posts: 5
Joined: 29.03.2010
With us: 14 years 8 months

Lua/CELX scripting

Post #1by aywander » 29.03.2010, 23:12

I was wondering if there is any way to debug one's Lua/CELX code efficiently. Currently, the only feedback I get from Celestia is that either the script works as expected or it doesn't. Is there a stdout or stderr somewhere that can be viewed :?:

Cheers

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

Re: Lua/CELX scripting

Post #2by selden » 30.03.2010, 10:25

I agree. It's a pain.

Some errors show up in Celestia's "console log".
It can be seen by typing a "tilde" (~) which is the same as (shift-`) on most keyboards.
It can be navigated by typing the up- and down-arrow keys.
Selden

Topic author
aywander
Posts: 5
Joined: 29.03.2010
With us: 14 years 8 months

Re: Lua/CELX scripting

Post #3by aywander » 31.03.2010, 10:15

Thanks! That's better than nothing.

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Lua/CELX scripting

Post #4by Vincent » 31.03.2010, 11:29

Also, you can print out your own debug messages in the console log using the celestia:log(string) method.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
aywander
Posts: 5
Joined: 29.03.2010
With us: 14 years 8 months

Re: Lua/CELX scripting

Post #5by aywander » 03.04.2010, 02:24

Thanks Vincent, that is quite useful!


Return to “Help Central”