Just wondering if there is such a thing as a converter which converts CEL scripts into CELX?
C
CEL to CELX converter
-
Topic authorColin_hutcheson
- Posts: 19
- Joined: 01.02.2007
- With us: 17 years 7 months
- Location: Birmingham, UK
CEL to CELX converter
Colin Hutcheson
Planetarium Presenter
_____________________
Thinktank Trust
Thinktank Trading Limited
Millennium Point Curzon Street
Birmingham
B4 7XG
Registered charity no. 1061898
Planetarium Presenter
_____________________
Thinktank Trust
Thinktank Trading Limited
Millennium Point Curzon Street
Birmingham
B4 7XG
Registered charity no. 1061898
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 :
Hope this helps...
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
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