Page 1 of 1

AllIn1DC VCP no longer loading

Posted: Tue Jan 31, 2023 12:27 pm
by tm-todd
Something happened and my VCP is no longer loading for our AllIn1DC. I get the following message. "Could not find a part of the path 'C:\WINDOWS\system32\resources\vcp\options.xml'" I did a search and found this https://centroidcncforum.com/viewtopic.php?f=60&t=8161, but it was for Acorn not AllIn1DC. Any ideas?

Re: AllIn1DC VCP no longer loading

Posted: Tue Jan 31, 2023 3:31 pm
by cncsnw
It looks like something is amiss with the Windows shortcut you are using to launch CNC12. It should be opening CNC12 (cncm.exe) in the c:\cncm directory, so that VirtualControlPanel.exe can then find its files below c:\cncm.

Somehow, on your system, when cncm.exe launches VirtualControlPanel.exe, the current directory is not c:\cncm, but is instead C:\WINDOWS\system32.

Re: AllIn1DC VCP no longer loading

Posted: Tue Jan 31, 2023 8:43 pm
by tm-todd
I don't see anything amiss in either the Windows shortcut or the start.bat file.

Re: AllIn1DC VCP no longer loading

Posted: Tue Jan 31, 2023 9:08 pm
by cnckeith
make a copy of the cncm folder.
do a fresh install. does the vcp start?

Re: AllIn1DC VCP no longer loading

Posted: Wed Feb 01, 2023 12:00 pm
by tm-todd
Thanks Keith. A fresh install was going to be my next step. First however, I did a diff between the current cncm directory and a backup from last week and I found that some settings in the options.xml file had changed including the transparency being set to 0%. I don't recall making those changes, I can't imagine who else would have done it, but I also can't imagine them changing on their own. So I don't know what happened. Resetting the values in options.xml brought back the VCP.
Screenshot from 2023-02-01 08-46-42.png
The file path thing was a bit of a red herring, however the warning dialog is still there in the background, but doesn't seem to be causing any issues.
path_warning.PNG
path_warning.PNG (2.79 KiB) Viewed 731 times
I think I'm going to disable the 'VCP Options' buttons so this doesn't repeat. I understand I can't move or delete the button, but I can "hide" it by modifying the svg file. What would be the best way to neuter the button functionality in the xml file? Change the skin event number to a value that is not used by the PLC?

Re: AllIn1DC VCP no longer loading

Posted: Wed Feb 01, 2023 2:53 pm
by cnckeith
things that might cause

- accidently renaming options.xml

- accidently moving options.xml

- accidently renaming a directory

- be sure to run the installer on c:\ do not change the installer path (c:\) when running the installer!

- please run windows update and make sure any .NET is up to date as the v4.22 VCP requires the latest .NET

fyi...the upcoming v5.0 installer will check the .NET version and install/update the required version if it is missing/old.