Hello Guest it is May 17, 2021, 06:39:30 PM

Author Topic: cant load m4prof files on last version from previus version  (Read 219 times)

0 Members and 1 Guest are viewing this topic.

cant load m4prof files on last version from previus version
« on: February 11, 2021, 06:01:46 PM »
i dounload last version
but when i try restore any of my screen from ver 4300 mach crash
attach one of profile from ver 4300 that i cant restore at last version
Re: cant load m4prof files on last version from previus version
« Reply #1 on: February 12, 2021, 08:13:34 AM »
I don't know what version your trying to open this in but I am going to try it in the Dev version.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: cant load m4prof files on last version from previus version
« Reply #2 on: February 12, 2021, 08:29:52 AM »
I have looked and something you have added to the screen set is crashing it out. Soon as I have some free time I will dig the screen apart and have a look. It is looking for a LIB that you don't have installed at first glance but I will know more later today.

Thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: cant load m4prof files on last version from previus version
« Reply #3 on: February 14, 2021, 05:29:03 PM »
any news?
Re: cant load m4prof files on last version from previus version
« Reply #4 on: February 15, 2021, 07:59:18 AM »
Not other than it is something in your screen... I took the weekend off :) it looks like some LUA code got added that is taking the system down.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: cant load m4prof files on last version from previus version
« Reply #5 on: February 15, 2021, 08:36:58 AM »
But in old version all work, something on new version cant accept it
Re: cant load m4prof files on last version from previus version
« Reply #6 on: February 15, 2021, 09:05:18 AM »
one problem that you have is that your module is trying to overwrite the Mach4 mill profile. You did some nice work in the screen.

 local CSVPath = wx.wxGetCwd() .. "\\Profiles\\Mach4Mill\\Modules\\Magazine.csv" 

This will cause you an issue :( We should make it look for the current loaded profile. I will help you with that and that will help with the issue.

When I installed your profile I did it in the Profiles\CNC5\Modules directory. should have some error checking to prevent crashing if the files are not found.

Nothing in I can do in the core to fix this :(
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: cant load m4prof files on last version from previus version
« Reply #7 on: February 15, 2021, 09:17:54 AM »
Something a little more like this would be better ... this is

Change the code to be more like this at the start of you CSV file loading and you should be good to go!

Code: [Select]
        local inst = mc.mcGetInstance()
local profile = mc.mcProfileGetName(inst)
local path = mc.mcCntlGetMachDir(inst)
        local CSVPath = path .. "\\Profiles\\" .. profile .. "\\Modules\\Magazine.csv" 
if(wx.wxFileExists(CSVPath) ~= true) then
return
end
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com