Just thought I'd ask!

All about writing scripts for Celestia in Lua and the .cel system
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #21by don » 12.03.2004, 00:41

Howdy Toti,

Now that's what I call using your brain! I think I'm about half "brain-dead", like Bob calls it, so I'm a little slow.

Do you already have these examples coded in Celx/Lua? It sounds like you would make a GREAT pre-defined Celx function "Library" writer!!! The wait timing one for displaying text sounds perfect for "tour" writers. Would you mind writing a couple of Celx methods (functions / routines), like this one, and sharing them with us?


Toti wrote:Of course, learning a programming language is not an easy task, but there should be a beginner's scripting guide out there.

For Celx, there is Harald's "Summary of Lua-support in Celestia (Version 1.0)", but it does not teach OO Programming. Neither does the short Lua reference guide. The only "beginner's" guide out there is the one I wrote for CEL scripting.

I'm lucky in that I played with some Paradox for Windows ObjectPAL, Delphi and C++ about 10 or so years ago, so I still remember some of the basics. But for someone who has no exposure to OOP, Celx/Lua is a steep learning curve (IMHO). :(

Cheers,

-Don G.

Toti
Developer
Posts: 338
Joined: 10.02.2004
With us: 20 years 9 months

Post #22by Toti » 12.03.2004, 16:29

Don:
No, I didn't code anything yet, but I certainly will (soon). I want the code to be very simple, and add enough comments and documentation to make learning easier for those who want to create Lua scripts but don't have any OOP experience.

Bye :)

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #23by don » 12.03.2004, 22:37

Hi Toti,

Thank you! I, for one, look forward to seeing some of your functions / methods / routines for celx. :D
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

bassrat
Posts: 16
Joined: 08.02.2004
With us: 20 years 9 months
Location: Iowa

Post #24by bassrat » 15.03.2004, 02:03

Bob,

Your tour scripts are EXCELLENT, please don't stop them. They would be missed.

Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #25by Bob Hegwood » 15.03.2004, 06:05

Thanks bassrat...

I appreciate your comments. I'm working on Neptune and Uranus now.

Take care, Bob
Bob Hegwood
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.0 Pre6 FT1

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #26by don » 15.03.2004, 16:32

Howdy Bob,

Any luck with finding a spot-LESS Neptune?
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #27by Bob Hegwood » 15.03.2004, 18:51

Nope...

The only spotless images are from the Hubble Telescope, and they
are way too fuzzy to be useful. I suppose I could "airbrush" the spot
out though.

Take care, Bob
Bob Hegwood

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.0 Pre6 FT1

Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #28by Bob Hegwood » 08.04.2004, 00:10

New Tour of Uranus available on my website at:

http://home.earthlink.net/~bobhegwood

Take care, Bob
Bob Hegwood

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.0 Pre6 FT1


Return to “Scripting”