Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: TimGS on May 27, 2015, 10:32:23 PM
-
Has anyone seen this error....
"Invalid value 4 for a boolean key "MatchCase" in config file" ??? ???
Created a couple of registers and deleted them and started to see this error every time I open the Mach 4 Screen, PLC and Signal scripts :-\
Any ideas ???
Thank You
-
config file ... something in your configuration status that you used to reference in one or your registers or vice versa or something about your configuration was pointing to your register and it is not there anymore returning a false status. maybe? I've installed & reinstalled mach 4 so much that i just copy my license and profile -> uninstall -> reinstall -> and configure within 10minutes. That's the efficiency I get for playing around in the screen start up and PLC scripts. haha! Honestly, I have no clue what that error is. Just a guess on my part about "pointing" to a false value or a value that is returning a false or nil status.
could be some type of index that is trying to point to a "key" that had a value of a field in your configuration or startup file which used to be in your register plug-in which you deleted....did you have a table referenced in your register file? your guess is as good as mine...Lua is all about index's that are also known as keys are assigned values in a table or array.
for example: the key "distance mode" = "incremental" and "control mode" = "mill"
index=1 key = distance mode value = incremental
index=2 key = control mode value = mill
if you had a table and deleted it but some code is still trying to pull index#2 of a mystery table that does not exist there would be no key to reference and return an nil or '0' value.
fml, i just totally went down the rabbit hole with this.
-
index=1 key=0 value=Axis X
index=2 key=1 value=Axis Y
index=3 key=2 value=Axis Z
index=4 key=3 value=Axis A
mc.mcAxisRegister or unmap or Enable = 0, false => table.remove...no longer there...i don't freakin know. but if a key was removed the index would be removed with it along with the value....I'm going to bed.
-
Thank You...
I like yourself have been playing a lot lately with scripts and may have to reload on occasion ;D
...yes, an artifact of staying up late, having fun, making progress and sometimes finding those hidden >:D that cause us to reload.
Thank You for your help
-
??? ??? ??? ??? ??? ??? ??? ???
I have reinstalled and I still get the error. Started the Lua editor by itself and still get the error. Please Help!
-
Are you using the same profile?
-
that may be a Window's error...maybe try Window's repair or restore point or registry hack to delete the registry key? look up windows registry repair or cleanup first. yep, bet that's it. Reg Key ...be careful though in the registry using regedit.
-
I think that you are right.... I started to search the registry earlier but couldn't find any Lua entries that matched the error. :-\ I will look again tomorrow. This error is more of an annoyance than a show stopper.
-
one thing you can do is delete the mcLua.MCC from your macro folder it rebuilds on next start up from whats there not what was
-
Dan may be right. I read another post that after an install the person had the same error and he had to delete the mcLua.mcc file. After it recompiles Windows should repair that key it is reporting back as invalid. I also remember something about how the core code is assigned to a hidden directory and our whole Mach4 folder just points to it. yah, also looked in the registry and couldn't find any reference but then again because mach core is hidden it may be represented by some hexadecimal number in the registry. We would have a better chance of winning the lottery than going through those numbers. Shoot, it will only take you 5 seconds to delete and another 10 seconds to load and recompile. C'mon..hurry up! Let us know!
-
It is an annoying message. The directory must be hidden...I deleted just about everything and ran the mcLuaEditor.exe from a memory stick and still had the same problem...just on that computer.
I ran the mcLuaEditor.exe on another computer and it ran just fine.
-
I may have found something while at lunch today....
../AppData/.../wxLuaIDE.ini
I will look for that same .ini file when I get home.
-
;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
Fixed It!!!!!
;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
I corrupted the wxLuaIDE.ini file; probably while editing a script then crashing Mach4 and killing the process. ...I am sure nobody has ever done that here ::)
Running Windows 8.1 64-bit
I tried to change the value on an older machine to recreate the suspected problem but Lua automatically fixed the problem; but it did not fix it here on this machine.
The following is a snapshot of the location and the file you need to edit.... In my case, change from the MatchCase=4 to MatchCase=1 or =0...this is part of the Find Function. (The error message was telling us what the problem was. It just didn't tell us where the file was). Note: This file is written every time you close a LuaEditor window.
-
Holy sh!tB@lls batman!! That is freakin awesome! ?Good looking out Tim. Thanx for letting us know if we ever encounter that issue!
--josh
-
by the way, I just changed my name from 20,000 Axes to just my first name....just so your are like "who the heck is this guy?"
-
Yep... when I saw your first name I thought it was 20,000 Ex's.... I have one or two of those :D