Just re-install Mach 4. It will reload everything back to stock.
When you do it again, make a copy of the screen set you are using before hand so you can go back to it before you start messing with the code.
The name of the file is always weird when messing with the scripts in the editor. I have learned to just make sure you’re not going to anything else while in the screen editor and editing a screen script of some kind.
Make your changes, save them, get out of zero brain before anything else. I have lost chunks of code before as well I usually do testing in macros before going to the screen scripts, I use to navigate tabs to the macro I was using and copy code from there. It didn’t like that. At all. So now I copy and paste it into notepad before I make changes.
Also, as an aside. Mach4 runs great right out of the box. It is the ability to be flexible with mach4 that is great and terrible. Everyone has their own ideas of what a machine tool should do as a default; but with Mach4… you can make it do what you want if you’re willing to take the time to do it. With other machine tools, you’re at the mercy of slow development or just their thought of what is good or bad.
As far as probing goes.
It is the quirks between motion controllers with probing that I have found to be the most annoying, so you’re not alone there, and that’s why I wrote my own code to do probing. Some motion controllers work well with probing some don’t. I’m not sure why.
As far as needing to program in LUA, most of the stuff that people want changed are ready to but commented out like the go to work zero. (Although you’re having issues with that). Normally it is pretty straightforward and I’m confident you’ll get it going.