takescreenshot silently fails

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Posts: 7
Joined: 06.04.2019
With us: 1 year 10 months

takescreenshot silently fails

Post #1by krisztian » 12.10.2019, 15:35

i'm totally in the dark here. installed celestia on an amazon linux vm with Xvfb. my init script seems to run fine, but the screenshots it is attempting to save simply does not show up.

the same script ran fine on my box.

celestia.cfg is correctly set, and it is confirmed by the fact that the script indicated in it runs. the user has full rights to the folder, and can cd into it. but even with sudo, it does not save anything.

i looked for the files elsewhere, but they're nowhere to be found.

i can grab Xvfb screens, and i see the script running, but i see no error messages there.

so how do you debug such a problem? how can takescreenshot fail with no indication of error? can i turn on some logging?

what do i check? jpg library seems to be installed, name is "libjpeg-turbo-devel"

the code is this, n is a number

Code: Select all

celestia:takescreenshot("jpg", n .. "_raw")

Return to “Scripting”

Who is online