Mistake identification in .cel scripts

All about writing scripts for Celestia in Lua and the .cel system
Topic author
ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 8 months
Location: Rome, ITALY

Mistake identification in .cel scripts

Post #1by ANDREA » 28.12.2003, 10:19

I write or make changes to existing .cel scripts (at least I translate the print lines), and sometimes it happens to make some -stupid- mistake, e.g. using characters that scripts don't understand, or something else. :?
Well, the only message given by Celestia is:

Error in Script File
Bad Parameter List :twisted:

Could it be possible to have, just for example, the following line added:

Error in Script File
Bad Parameter List
at Line 147 :D

This is used in many softwares, and I think it could avoid losing lots of time to .cel writers/users. :wink:
Chris, can you help us, please?
Thank you

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

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 3 months
Location: Germantown, Ohio - USA

Post #2by Bob Hegwood » 29.12.2003, 04:21

Now THERE's an EXCELLENT suggestion...

If you forget a brace in a wait {duration 5.0} command, or ANY command for that matter, you have to investigate the ENTIRE script to discover the error.

Unless, of course, you make one change at a time and try to re-run the script after every change. You can also save a backup copy before you make any changes, but Andrea's suggestion is an EXCELLENT suggestion.

Anybody listening?

Thanks, 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”