Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: robertspark on September 10, 2019, 06:51:12 AM

Title: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 10, 2019, 06:51:12 AM
The following seems to be a fairly common issue (bug) across a few wizards such as the FeedandSpeedWizard , or soft limits config etc

Quote
Lua: Syntax error during pre-compilation
C:\Mach4Hobby\Wizards\FeedandSpeedWizard.mcs: version mismatch in precompiled chunk

Quote
Lua: Syntax error during pre-compilation
C:\Mach4Hobby\Wizards\mcConfigSoftLimits.mcs: version mismatch in precompiled chunk

Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 10, 2019, 06:55:28 AM
probably wants someone to just click on a few of the wizards and see what works and what no longer works as there seems to have been something that has obviously changed and now they no longer can start up.
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: joeaverage on September 10, 2019, 02:34:22 PM
Hi,
at a guess I would say that the Wizards were compiled with Lua 5.2 compiler whereas Mach4 progressed to the Lua 5.3
compiler about four months ago.

Craig
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 10, 2019, 02:43:54 PM
yeah, I thought it would be that, but the problem for us mere users is we cannot fix the problem as they are compiled by NFS I guess... or someone else who needs to maintain them of delete them from future releases......

always the problem with something under perpetual development... especially if you change the software version upon which it's based.  I understand completely.... but the expectation is that NFS added them to a watch list of items when the decision is made for lua 5.4, 5.5 etc.... that needs to be done again
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 10, 2019, 02:45:18 PM
there may be other similar gremlins under the bonnet elsewhere too
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: smurph on September 10, 2019, 09:53:23 PM
Look for versions of these files with a "mcc" extensions.  The mcs files are from your OLD install that had 5.2 LUA.  mcs files were never supposed to be compiled, but were, do to a misunderstanding way back when.

mcs == non-compiled human readable LUA scripts.
mcc == compiled scripts. 

Delete any non-readable *.mcs files and you should be good to go. 
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 11, 2019, 01:38:06 AM
ahhh!!! {light bulb moment}

thanks v much, I'll give it a go and report back to close out
Title: Re: Mach4 bug (wizards) - v 4.2.0.4305 + 4300
Post by: robertspark on September 14, 2019, 07:39:06 AM
Look for versions of these files with a "mcc" extensions.  The mcs files are from your OLD install that had 5.2 LUA.  mcs files were never supposed to be compiled, but were, do to a misunderstanding way back when.

mcs == non-compiled human readable LUA scripts.
mcc == compiled scripts. 

Delete any non-readable *.mcs files and you should be good to go. 

I can confirm that yup I'm a Muppet.... should have done a clean install and not just installed over the last install

problem fixed