CEL to CELX converter

General discussion about Celestia that doesn't fit into other forums.
Topic author
Colin_hutcheson
Posts: 19
Joined: 01.02.2007
With us: 17 years 5 months
Location: Birmingham, UK

CEL to CELX converter

Post #1by Colin_hutcheson » 26.04.2007, 09:00

Just wondering if there is such a thing as a converter which converts CEL scripts into CELX?

C
Colin Hutcheson
Planetarium Presenter
_____________________
Thinktank Trust
Thinktank Trading Limited
Millennium Point Curzon Street
Birmingham
B4 7XG

Registered charity no. 1061898

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

Post #2by Vincent » 26.04.2007, 10:33

Hi,

There are many commands that are available in CELX scripting but not in CEL. So it would be very difficult to build a converter.

However, you can include your CEL commands into a CELX script quite easily using the following code :

Code: Select all

function CEL(source)
   local script = celestia:createcelscript(source)
   while script:tick() do
      wait(0)
   end
end

CEL([[
{

# Paste here your .cel script lines

}
]])


Hope this helps...
@+
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


Return to “Celestia Users”