Hello Guest it is April 29, 2024, 04:39:38 AM

Author Topic: ScreenScript file keeps getting overwritten on update.  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

ScreenScript file keeps getting overwritten on update.
« on: September 08, 2023, 05:28:58 PM »
Like the title says when I update Mach4 to a newer version I have to edit the Screenscript file to get my cycle start button to work again because it is overwritten. When I created the mill and lathe profiles I copied profiles instead of creating new ones. Should I have created new? Is there a way to prevent the file from being overwritten on an update?
 

Offline thosj

*
  •  532 532
    • View Profile
Re: ScreenScript file keeps getting overwritten on update.
« Reply #1 on: September 08, 2023, 06:15:45 PM »
You can copy profiles but have to give them unique names, right? Then when you upgrade, just load your old profile. Or am I missing something? Screenscript.lua is CREATED anew from all the Mach4 bits, and isn't to be edited, if I remember correctly.

That said, I like to, when I upgrade Mach4, rename Mach4Hobby to something else, like Mach4Hobby_4162, for example. Than install anew, a NEW Mach4Hobby folder will be created. Then open the old Mach4Hobby folder and the new one side by side and copy your stuff over, plugins, profiles, screens, macros, license, modules. This way you never hose up a good working version. If something goes amiss you don't like, rename a couple folders, Mach4Hobby to Mach4Hobby_Hosed, and Mach4_4162 to Mach4Hobby, and you're back where you started. I never install over the top, NEVER!!
--
Tom
Re: ScreenScript file keeps getting overwritten on update.
« Reply #2 on: September 08, 2023, 08:25:25 PM »
The Mach4mill profile was copied and Huck-o-matic was created and Mach4lathe was copied and Lathe-o-matic was created. So the profiles have unique names. I checked my shortcuts to be sure that those are the profiles that are being  loaded. I was wondering if that was a mistake and I should have created a new blank profile and built it from the ground up. It seems like the Huck-o-matic profile is using the Mach4mill screenscript file.
Re: ScreenScript file keeps getting overwritten on update.
« Reply #3 on: September 09, 2023, 07:36:56 AM »
You need to make a copy of the screenset you are using as well inside the c:/mach4hobby/screens folder. As you are using the mill profile it will be using the wx4 screenset that you are using. This is where all the lua code is actually stored. After making a copy of the screen file and renaming it, you can load it when you open mach4 through the View menu
Re: ScreenScript file keeps getting overwritten on update.
« Reply #4 on: September 09, 2023, 07:42:19 AM »
That sounds reasonable to me. I will give that a go and see what happens. Thank you!
Re: ScreenScript file keeps getting overwritten on update.
« Reply #5 on: September 09, 2023, 08:03:56 AM »
Ok I figured out how to do all this. I renamed a copy of wx4 in the profile folder and loaded it. Now I can do the two profiles in the shop and wait for the next update.

How likely is it that the screen load file or screen set changed with an update? Is that something I'll have to keep an eye on and copy and paste changes into my screen?

Offline thosj

*
  •  532 532
    • View Profile
Re: ScreenScript file keeps getting overwritten on update.
« Reply #6 on: September 09, 2023, 10:16:54 AM »
Probably best to assume it'll change every time.
--
Tom
Re: ScreenScript file keeps getting overwritten on update.
« Reply #7 on: September 09, 2023, 01:14:01 PM »
I would think I'm good now. It's a different folder with a different screen file with a different name. What could possibly go wrong?

And for anybody reading this on this fine Saturday, don't forget it's National Beer & Pizza day.  Your welcome.

Offline Tweakie.CNC

*
  • *
  •  9,201 9,201
  • Super Kitty
    • View Profile
Re: ScreenScript file keeps getting overwritten on update.
« Reply #8 on: September 09, 2023, 03:02:14 PM »
And for anybody reading this on this fine Saturday, don't forget it's National Beer & Pizza day.  Your welcome.

How could I possibly forget ?  😊

Tweakie.
PEACE