[SOLVED] celx scripts in Linux

All about writing scripts for Celestia in Lua and the .cel system
Topic author
sgcb
Posts: 8
Joined: 21.07.2012
With us: 7 years 2 months

[SOLVED] celx scripts in Linux

Post #1by sgcb » 22.07.2012, 04:04

I'm running celestia 1.6.1 in Debian GNU/Linux and I'm unable to find a way to launch the program with a celx script passed to it. Both the FAQ and the wikibook suggest that --url script.celx parameter should be sufficient, however if I try this myself, I get:

Code: Select all

$ celestia --url test.celx
celestia: invalid option -- '-'
Usage: celestia [-v] [-f <filename>]

I've tried passing the script via the -f argument as well. This time celestia launches, but an "Error opening script 'test.celx'" message appears.
My intuition tells me linux builds of celestia may have celx script loading missing for some reason. That, or I'm missing something...
Last edited by sgcb on 26.07.2012, 13:57, edited 1 time in total.

Topic author
sgcb
Posts: 8
Joined: 21.07.2012
With us: 7 years 2 months

Re: celx scripts in Linux

Post #2by sgcb » 26.07.2012, 13:57

I've found the problem. For whatever reason celestia does not accept script paths relative to the current working directory. Instead $ celestia -f /full/path/to/script.celx is what works for me now. (something I thought I had tested before posting a new thread here.

Avatar
John Van Vliet
Posts: 2710
Joined: 28.08.2002
With us: 17 years 1 month

Re: [SOLVED] celx scripts in Linux

Post #3by John Van Vliet » 27.07.2012, 01:18

--- edit ---


Return to “Scripting”

Who is online

Users browsing this forum: 5 guests