Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Calum on May 10, 2021, 11:01:08 PM

Title: Zero Brane wont run
Post by: Calum on May 10, 2021, 11:01:08 PM
When I try to debug a Lua script I get the following message-

Program starting as '"C:\Mach4Hobby\ZeroBraneStudio\bin\lua53.exe" -e "io.stdout:setvbuf('no')" "C:\Users\ADMINI~1\AppData\Local\Temp\.8AE.tmp"'.
Program 'lua53.exe' started in 'C:\Mach4Hobby\ZeroBraneStudio\myprograms' (pid: 2528).
C:\Mach4Hobby\ZeroBraneStudio\bin\lua53.exe: error loading module 'machipc' from file 'C:\Mach4Hobby\Modules/machipc.dll':
   The specified module could not be found.


stack traceback:
   [C]: in ?
   [C]: in function 'require'
   C:\Users\ADMINI~1\AppData\Local\Temp\.8AE.tmp:1: in main chunk
   [C]: in ?
Program completed in 0.06 seconds (pid: 2528).

I've tried reloading Mach4 and Zero Brane but still get same error! Does anyone have and idea what could be wrong?

Calum
Title: Re: Zero Brane wont run
Post by: smurph on May 12, 2021, 07:15:00 PM
What build are you running?  Did you upgrade from an earlier build?  It may be a LUA version mismatch.  It is finding the module DLL, but the DLL is failing to load.  Which usually means some dependency isn't satisfied.  And the only dependency machipc.dll has is Mach itself and LUA. 

Steve
Title: Re: Zero Brane wont run
Post by: Pludikar on July 14, 2024, 04:51:04 PM
In case anyone is still having the same problem - make sure that the Lua interpreter in the ZeroBrane editor is correctly set!

Under the project menu in the editor - find "Lua interpreter" and ensure your appropriate interpreter is selected - for me and the latest mach4 version it should be Lua 5.3