Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 25

Lua Scripting • Re: I despair to find the error in LUA

$
0
0
Could someone find the error please?
Not sure how much it helps, but Lua provides the line number and some details on where and why the error occurs. Without running anything from your script or trying to understand what it does, the "File not valid" error disappeared when including the whole contents of the file into the standard Initialize() function, e.g.:

Code:

function Initialize()...the contents here...end
Now, I'm pretty sure that you don't want the whole thing in that function, so distributing things where they should be (or creating functions for various parts of your code) is up to you and the purpose of each part. Obviously, the script throws other errors too, since it doesn't have the skin's .ini with all the variables and such, but at least the error you mentioned seems to have gone away for me after the mentioned change.

Statistics: Posted by Yincognito — September 21st, 2024, 10:44 pm



Viewing all articles
Browse latest Browse all 25

Trending Articles