It is difficult to create celx scripts. The study of the scripting language is essential for those who often write scripts or want to create complex scripts.
But if you want to occasionally create a simple script that reproduces a sequence of actions in Celestia, you spend most of your time to learn how to do or to remember the exact syntax of the commands to use.
Moving to the right place with a script is not so easy and look in the right direction is a real headache.
I propose a script that records the actions performed in Celestia and produces the corresponding script celx.
It is of course limited to possible actions with the keyboard and the mouse (and joystick).
But some things that were difficult like managing multiple windows, or overflight around a spacecraft to explore its details or to move steadily from one point to another becomes very easy.
You can also add text directly to display in the script.
For simplicity I will call "program" the script that creates a celx script and "script" the script produced by the program (which is actually also a celx script)
Knowledge required to use the program
- You need to know how to run a script
- You must know how to manipulate text files and save them on your computer.
You do not need to know scripting but I bet you will learn anyway, looking at the produced scripts and trying to improve them.
Installation:
Celxmaker only works with versions 6.1 and higher of Celestia. Earlier versions are not supported.
If you do not have this version you can download it here:
http://cid-0284542f7a16db1f.office.live ... ld5043.exe
(Right click and save target as)
Celxmaker.celx is the program that produces a celx script. It writes the script directly in the Celestia "scripts" directory.
No problem with Windows XP but Vista and Windows 7 do not like it.
To make the program to work as expected, Celestia should not be installed in a subdirectory of "c:\program files" or "c:\program files (x86)".
I advise you for example to install Celestia in "c:\celestia"
Uncompress Celxmaker.zip in the directory "scripts" of Celestia.
To view and edit the script you will need a text editor. If your language is not English, the text editor should be able to handle UTF-8 encoding.
Usage
- Run the script celxmaker.celx from the menu "File-> scripts
- A celestia warning message may appear. You can disable it in the file celestia.cfg
- A message appears on the lower left. Wait until it is no longer displayed.
- Start using Celestia and the script will be built progressively.
- Shift Type Q to stop recording.
That's all!
If you set a text editor (edit celxmaker.celx line #6), the script appears in the script editor. You can edit and save it with a new name.
jogad wrote:That's all!
Yes but to take full advantage of Celxmaker possibilites, I suggest you read the "celxmaker-readme.txt" file.
Les francophones pourront trouver plus facile de lire le fichier "celxmaker-lisezmoi.txt".