start.cel

All about writing scripts for Celestia in Lua and the .cel system
Topic author
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

start.cel

Post #1by BobHegwood » 16.10.2007, 18:14

A note to people who STILL use cel scripts. Probably just Me now...

Just noticed that if you change any of the visibility settings in the start.cel,
you MUST make certain that these changes occur after the main settings
have been executed by the script.

In other words, I added: setfaintestautomag45deg {magnitude 10.0}
at the appropriate place in the start.cel script, but nothing happened. After
some toying around a bit, I found out that the setfaintestautomag45deg
command has NO effect unless it is placed toward the bottom of the
start.cel script. Must be used AFTER the automag function has been turned
ON earlier in the script.

Just FYI.

Chris? You want me to re-write the start.cel script so it works like it's
supposed to do? If a new user follows the text included in the current
script, he/she will become confused completely when things don't work
as the documentation says it will.

Again, just FYI.

P.S. Took me thirty minutes to figure out HOW to even SAVE the new
script on Vista. Seems that I had to classify the User "Bob Hegwood"
as able to change the file even though I'm the only user, the only
Administrator, the only Bozo ON this machine. Oh Brother... :roll:
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 16.10.2007, 20:50

Bob, if you want to rewrite the script so that it works properly, I would be thankful.

--Chris

Avatar
LordFerret M
Posts: 737
Joined: 24.08.2006
Age: 68
With us: 18 years 2 months
Location: NJ USA

Post #3by LordFerret » 16.10.2007, 21:38

BobHegwood wrote:A note to people who STILL use cel scripts. Probably just Me now...

Nope, you're not alone. :wink: :lol:

Topic author
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #4by BobHegwood » 16.10.2007, 21:50

chris wrote:Bob, if you want to rewrite the script so that it works properly, I would be thankful.

--Chris


You GOT it Sir...

Give me a day or two though... I'm also trying to update the Celestia
WikiBook - along with all of the learning that THAT's going to take. I'm
receiving requests to do all kinds of things now, but - the scary thing is
that - I don't know BEANS about anything I'm doing anymore.

Note: I'm gonna get you for all of this, Selden... <grin>
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Topic author
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #5by BobHegwood » 17.10.2007, 00:59

Okay,

So I lied...

The start.cel replacement is attached to an e-mail I sent to your
address as listed on the members section. I tested it pretty well here, but
you may wish to have Selden test it to make certain that it's okay.

See Selden? I TOLD you I'd get you back. More work for you. Hee, hee.
Seriously though, I simply re-wrote a lot of the text, and re-positioned
some of the commands so that they work as expected in 1.5 pre3.

Take care, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years

Post #6by dirkpitt » 19.10.2007, 00:42

A problem I found with the Windows Celestia is, if I enable AutoMag inside start.cel the Automag menu item is not checked - making it look like automag was not enabled.

Topic author
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #7by BobHegwood » 19.10.2007, 03:30

dirkpitt wrote:A problem I found with the Windows Celestia is, if I enable AutoMag inside start.cel the Automag menu item is not checked - making it look like automag was not enabled.


What I found was that ALL of the menu settings for the rendering options
have to be cleared and/or set at the beginning of the start.cel script. If you
move the renderflag SET statements to somewhere ABOVE the place where
you set your automag value, you'll find that it works correctly. (At least on
my new Windows Vista machine.)

If you like, I can e-mail you a copy of the re-arranged file. Just let me
know...

Thanks, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Avatar
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years

Post #8by dirkpitt » 19.10.2007, 06:40

BobHegwood wrote:What I found was that ALL of the menu settings for the rendering options
have to be cleared and/or set at the beginning of the start.cel script. If you
move the renderflag SET statements to somewhere ABOVE the place where
you set your automag value, you'll find that it works correctly.


Actually all I'm doing is set the automag render flag in my start.cel, not the automag value. Automag itself is getting turned on correctly, but Celestia's menu is not reflecting the change.

Topic author
BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #9by BobHegwood » 19.10.2007, 13:44

dirkpitt wrote:
Actually all I'm doing is set the automag render flag in my start.cel, not the automag value. Automag itself is getting turned on correctly, but Celestia's menu is not reflecting the change.


But that's EXACTLY why I had to modify the script... When I turned it on,
it didn't STAY on after the main Celestia program started up. You
understand?

Thanks, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN


Return to “Scripting”