Are .CEL scripts deprecated?

All about writing scripts for Celestia in Lua and the .cel system
BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 2 months
Location: Germantown, OH

Post #21by BrainDead » 16.10.2005, 14:36

Hank,

Just so you know about it, I've added to the "Discussion" page on the
Wikibook site.

Thanks.
Brain-Dead Bob

Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.1

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #22by hank » 16.10.2005, 15:44

BrainDead wrote:Just so you know about it, I've added to the "Discussion" page on the Wikibook site.

That page is on my wikibook watchlist, so it tells me whenever anyone makes a change. And if you were a registered wikibook user, it would tell me that the changes were yours. I took the liberty of editing your comments slightly to put them into separate sections with more informative titles. You can also check my response there. Thanks.

- Hank

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Post #23by cpotting » 16.10.2005, 16:53

hank wrote:Meanwhile, I've made a start on a simple CELX scripting tutorial for the Celestia wikibook. Feel free to check it out.

- Hank


EXCELLENT work hank!!! It looks like your tutorial is off to a great start. BTW, are you a teacher? You seem to have a knack for this.
Clive Pottinger
Victoria, BC Canada

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 2 months
Location: Germantown, OH

Post #24by BrainDead » 16.10.2005, 17:20

ANDREA wrote:I absolutely agree with Bob. :D
I tried to understand the CELX "philosophy", but haven't been able to dive sufficiently deep to make me love .celx as I love .cel scripting way.

Andrea,

Have a look at the Wikibook site. I think you'll agree that this is a very nice
way to exchange educational material for even us Brain-Dead types. :wink:

Also - if I haven't made it clear yet - I'd just like to thank Hank again
for going to all of this trouble. Methinks I'm on to something here. I'm
actually learning CELX, albeit at the "Kindergarden" level. :roll:
Brain-Dead Bob



Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.1

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #25by ANDREA » 16.10.2005, 18:54

[quote="BrainDead]Have a look at the Wikibook site. I think you'll agree that this is a very nice
way to exchange educational material for even us Brain-Dead types. [/quote]

I agree again with you, Bob, and it's what I'll do, even if I'm not used to programming. :oops:
But I still need some information on CELX, before starting my educational tour: is it worth for my needs?
I explain: CEL scripts allow me to stop, move, modify almost everything during the show., but CELX doesn't allow this, correct? 8O
For my needs (shows for school boys aged 10-18, and for adults), when I receive a question, I need the possibility to stop, explain what they are asking for, show again, go closer or farther, speed-up or slow down, and so on.
If CELX makes this impossible, sorry, it's not for me. :evil:
Someone can inform me on this, please?
Thanks a lot.

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Re: Are .CEL scripts deprecated?

Post #26by hank » 16.10.2005, 18:55

BrainDead wrote:Let me ask another way... If all I wish to do is tour the known universe, why do I need CELX?

Try out this.

- Hank

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #27by hank » 16.10.2005, 19:15

ANDREA wrote:But I still need some information on CELX, before starting my educational tour: is it worth for my needs?
I explain: CEL scripts allow me to stop, move, modify almost everything during the show., but CELX doesn't allow this, correct? 8O
For my needs (shows for school boys aged 10-18, and for adults), when I receive a question, I need the possibility to stop, explain what they are asking for, show again, go closer or farther, speed-up or slow down, and so on.
If CELX makes this impossible, sorry, it's not for me. :evil:
Someone can inform me on this, please?
Thanks a lot.

Andrea :D

Andrea,

I'm not sure what your exact requirements are, so there may be some restriction that would affect you. But you can pause CELX scripts with the space bar and then use the interactive controls to manipulate the view, etc. You might try some experiments to see whether CELX can do what you need. Long-term, if CELX won't do what you want, that needs to be fixed.

- Hank

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #28by t00fri » 16.10.2005, 19:17

Well some time ago I found out accidentally that I speak /perfectly/ Lua. That's funny, since I never even had a close look at Lua. The discovery was that Lua is 99.9% identical to the programming language of the algebraic manipulation package Maple that I use almost /daily/ since > 15 years!

I never managed to find out why this resemblance was so close. There is nowhere any reference neither to Maple nor to Lua. ...

Back to the point:

Lua being much more powerful than cel scripts, I think there is room for both scripting languages.
Lua is definitely better for people being used to programming, while cel is much simpler and does a good job for many tasks nevertheless.


Bye Fridger

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #29by hank » 16.10.2005, 19:28

cpotting wrote:It looks like your tutorial is off to a great start. BTW, are you a teacher? You seem to have a knack for this.

Just a humble computer programmer. Perhaps I should consider a career change?

- Hank

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 2 months
Location: Germantown, OH

Re: Are .CEL scripts deprecated?

Post #30by BrainDead » 16.10.2005, 20:43

hank wrote:Try out this.


I have already downloaded and used every CELX script you've placed on this
forum. :wink:

This particular script just doesn't do anything for me though. I don't want
random encounters, I want specific encounters - along with feature highlights
and the pointing out of various interesting features.

Here's an example of what I have in mind... Go to the nearest (or farthest)
black hole you can think of, and show me what cool things it does. Jets?
Material being sucked into the center mass? Galaxies colliding?

Just me...
Brain-Dead Bob



Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.1

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Re: Are .CEL scripts deprecated?

Post #31by hank » 16.10.2005, 21:07

BrainDead wrote:Here's an example of what I have in mind... Go to the nearest (or farthest)
black hole you can think of, and show me what cool things it does. Jets?
Material being sucked into the center mass? Galaxies colliding?

Just me...

Wow. I'd like to see your CEL script for that.

- Hank

maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #32by maxim » 16.10.2005, 22:21

t00fri wrote:I never managed to find out why this resemblance was so close. There is nowhere any reference neither to Maple nor to Lua. ...


http://www.lua.org/manual/
http://www.math.uic.edu/maple/labs/

hope that helps.

maxim


BTW, do you know how to write the 'hello world' program in any possible programming language (including lua and mable of course)?
-> http://en.wikipedia.org/wiki/Hello_world_program

You want to do it in a more esoteric prog language, such as 'Argh!, 'Borg', 'NULL', 'Ook!' or 'T'? No problem:
-> http://www.reference.com/browse/wiki/Hello_world_program_in_esoteric_languages

Example?

Code: Select all

 DNA / Genetic code

The following code should theoretically translate to the peptide HELLQWQRLD, (cross fingers).

    TACGTACTTAATAATGTTACCGTTGCAAATCTAATC


:wink: :wink: :wink:

BrainDead
Posts: 238
Joined: 27.08.2005
With us: 19 years 2 months
Location: Germantown, OH

Re: Are .CEL scripts deprecated?

Post #33by BrainDead » 17.10.2005, 01:04

hank wrote:Wow. I'd like to see your CEL script for that.

Are you saying that I cannot do this in CEL?
Brain-Dead Bob



Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.1

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #34by t00fri » 17.10.2005, 21:04

maxim wrote:
t00fri wrote:I never managed to find out why this resemblance was so close. There is nowhere any reference neither to Maple nor to Lua. ...

http://www.lua.org/manual/
http://www.math.uic.edu/maple/labs/

hope that helps.

maxim


But as far as I am aware there is NO cross-reference to either Lua in the Maple manual or Maple in the Lua documentation.

Did you find any? Of course, being so extremely familiar with the Maple syntax that I don't look into their manuals anymore since > 10 years at least, the cross-reference in principle may still lurk somewhere...

Bye Fridger

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #35by hank » 17.10.2005, 21:18

t00fri wrote:I never managed to find out why this resemblance was so close. There is nowhere any reference neither to Maple nor to Lua. ...

From a brief look at the Maple docs, I think the resemblance is probably coincidental. Despite some superficial similarities, the languages are actually quite different in both syntax and semantics. The similarities are likely due to a common source in mathematical notation and earlier programming languages (e.g. Algol).

- Hank

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #36by t00fri » 17.10.2005, 21:56

hank wrote:
t00fri wrote:I never managed to find out why this resemblance was so close. There is nowhere any reference neither to Maple nor to Lua. ...
From a brief look at the Maple docs, I think the resemblance is probably coincidental. Despite some superficial similarities, the languages are actually quite different in both syntax and semantics. The similarities are likely due to a common source in mathematical notation and earlier programming languages (e.g. Algol).

- Hank


Let's hope so...Inded I spoke Algol, a long long time ago.
Besides studying physics, I also made a bachelor in numerical math and informatics at a University that was instrumental in creating Algol as a computer language...

For our younger friends, Algol was sort of a predecessor of Pascal, with Pascal being virtually unknown to anybody below 20 ;-)

Bye Fridger

maxim
Posts: 1036
Joined: 13.11.2003
With us: 21 years
Location: N?rnberg, Germany

Post #37by maxim » 19.10.2005, 11:59

t00fri wrote:But as far as I am aware there is NO cross-reference to either Lua in the Maple manual or Maple in the Lua documentation.

Did you find any? Of course, being so extremely familiar with the Maple syntax that I don't look into their manuals anymore since > 10 years at least, the cross-reference in principle may still lurk somewhere...


There seems to be no direct relationship:

http://www.lua.org/history.html
http://www.scg.uwaterloo.ca/SCG/history.html

Exept that language designers (which all have a more or less identical background) desided to build a small, fast, simple and easy to use language for os independent use.


maxim

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Post #38by cpotting » 21.10.2005, 21:30

ANDREA wrote:But I still need some information on CELX, before starting my educational tour: is it worth for my needs?
I explain: CEL scripts allow me to stop, move, modify almost everything during the show., but CELX doesn't allow this, correct? 8O
For my needs (shows for school boys aged 10-18, and for adults), when I receive a question, I need the possibility to stop, explain what they are asking for, show again, go closer or farther, speed-up or slow down, and so on.
If CELX makes this impossible, sorry, it's not for me. :evil:


Hi Andrea,

CELX does everything that CEL does plus more. I have not found any function that can be accomplished with CEL that can't be done in CELX.

That said, it may seem little harder to do the same thing in CELX. Why? Because CELX is intended to let you get a little closer to the inner workings of Celestia - it is not as "user-friendly". The syntax is a little more complicated. But the increased complexity is because you can do so much more...

For instance - the Guide (I'm sorry, I'm not trying to push it - it's just a good example). The Guide
    presents menus,
    accepts user input,
    decides what to do based on the user input,
    creates examples (with some randomness thrown in),
    recognises which settings the user has turned on and which are turned off and adjusts the examples accordingly,
    executes those examples,
    remembers previous menus and keystrokes,
    automatically adjusts for changes to the screen size,
and other things that CEL just can't do. And, it is all done in CELX.

This sounds to me to be exactly what you are asking for. With CELX it is not only possible to show your students a lesson. You can also control the lesson and add new abilities.

I have just completed a script to be used to show the comparitive size and orientations of any two objects (for instance, how large is Jupiter compared to Earth, or Barnard's Star compared to Mercury's orbit?). I don't think that something like this is even possible with CEL scripts (I can't think of how to do it). I would like to send you this script, with your permission, so you can see.

I actually created the script with you in mind - I thought it might be of use to you at your observatory. I was going to ask you to look it over and tell me if you think of improvements that I could make - so this would work out well.
Clive Pottinger
Victoria, BC Canada

Topic author
hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #39by hank » 21.10.2005, 22:44

cpotting wrote:The Guide
    presents menus,
    accepts user input,
    decides what to do based on the user input,
    creates examples (with some randomness thrown in),
    recognises which settings the user has turned on and which are turned off and adjusts the examples accordingly,
    executes those examples,
    remembers previous menus and keystrokes,
    automatically adjusts for changes to the screen size,
and other things that CEL just can't do. And, it is all done in CELX.

Clive,

Is your CELX UI code packaged for general use?

- Hank

danielj
Posts: 1477
Joined: 15.08.2003
With us: 21 years 3 months

Post #40by danielj » 22.10.2005, 02:10

Well,why my message was ignored?
It is more than an year,that the Deep Space Tour is not updated.With a better presentation of DSOs,this could be considered.Don??t you think?
Actually,it had beem several months since no new script is created.I don??t know why.I am talking about a downloable script,not this cut and paste methods.
The last solar system script was Pluto Tour,I think and since then,no more updates have been available...


Return to “Scripting”