It is because some mcc file is still in there somewhere when it tried to roll all of them up into the one big mcLua.mcc file. Incompatible mcc files prevent this from happening.
The rule of thumb is if there is no mcLua.mcc file, then there is an error in at least one script or the mcc files are incompatible. Those are the only two instances we have found that prevent the mcLua.mcc file from being built.
Be sure that if your scripts reference any scripts external to the profile (like in Mach4/Modules dir), that those scripts also have their mcc files deleted. You may have to compile external scripts in the mcLuaEditor as the auto compile will not work for scrips outside of the macros dir.
Steve
Hi Steve,
Reading what you wrote there and kind of understanding some of it I did exactly this and nothing more...
Uninstalled Mach4 1817, deleted folder.
Reinstalled M4 1817.
Started M4. No error. looked in the macros folder and I see m3, m6 and m6end: mcs and mcc files.
Loaded arctest and ran it.
Closed gcode. Closed M4.
Reopen M4. The error shows on load up.
Close M4.
Delete the m3, m6, m6end mcc files.
Open M4. M3,m6, m6end mcc files are created. mclua.mcc is created. This error comes up:
23:55:25: Failed to open 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m3.mcc' for reading (error 0: the operation completed successfully.)
23:55:25: Failed to retrieve file times for 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m3.mcc' (error 0: the operation completed successfully.)
Ok that error box. Then this error comes up:
23:55:25: Failed to open 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m6.mcc' for reading (error 2: the system cannot find the file specified.)
23:55:25: Failed to retrieve file times for 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m6.mcc' (error 2: the system cannot find the file specified.)
23:55:25: Failed to open 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m6end.mcc' for reading (error 2: the system cannot find the file specified.)
23:55:25: Failed to retrieve file times for 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\m6end.mcc' (error 2: the system cannot find the file specified.)
23:55:25: File 'C:\Mach4Hobby\Profiles\Mach4Mill\Macros\mcLua.mcc' couldn't be removed (error 2: the system cannot find the file specified.)
Close M4.
Reopen M4. No errors.
I'd bet none of that is a surprise to you but it sure is a lot of hoops to jump through for your average user. ;-)
-Nick