error lua

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
gironde M
Posts: 818
Joined: 16.12.2016
Age: 71
With us: 7 years 4 months
Location: Montigny-Les-Metz, France

error lua

Post #1by gironde » 22.08.2023, 18:09

In recent days, Decoda (lua debugger) triggered an error: "Constant table overflow"

After research on the internet, not very precise, I discovered that by splitting a table containing all the asteroids, the problem disappeared.
360,000 asteroids is too much for a lua table. I split the whole by several files of 100000 asteroids.

(celstia 1.6.1, lua 5.1.5, LUT 5)

Avatar
Topic author
gironde M
Posts: 818
Joined: 16.12.2016
Age: 71
With us: 7 years 4 months
Location: Montigny-Les-Metz, France

Post #2by gironde » 23.08.2023, 07:55

This morning, I did a test with 199999 asteroids in the table and it works, no error.

:hi:


Return to “Scripting”