Hello Guest it is April 20, 2024, 01:24:43 AM

Author Topic: Lua Error while running chunk  (Read 1391 times)

0 Members and 1 Guest are viewing this topic.

Lua Error while running chunk
« on: February 16, 2021, 10:20:22 AM »
bad argument #to 'format'(number expected, got nil)
stack traceback:
[C] in function 'string,format'
?: in function <?:691>
?: in function 'Panelfunction,Writebackupfile'
?: in function 'configOption'
?: in main chunk
[C]: in function 'require'
C\Mach4Hobby\ScreenScript.lua 1614; in function 'Mach_PLC_Script


i got this message when i clicked on mach everything has been completely reset can anyone give me a solution how to get all settings back or on how i can prevent this in the future if i have to re-do the set-up thanks guys .

Re: Lua Error while running chunk
« Reply #1 on: February 16, 2021, 09:17:58 PM »
Hi,
this post belongs in the Mach4 General Discussion board.

The script, ScreenScript.lua, is a file that gets composed of all the Lua fragments, they all get rolled into one file and compiled.

The fault occurs at line 1614 in that file.

My guess is that you have a poorly or incorrectly defined parameter and when Mach goes to compile the code it fails. That's what the
stack traceback is all about, and in particular the line number.

Note that even once you find the offending line you cannot edit ScreenScript.lua directly, you have to edit the source Lua fragment
which is incorporated into ScreenScript.lua.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'