freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
127 stars 54 forks source link

Network drive path missing drive path resulting in error #479

Open snakesoup88 opened 4 months ago

snakesoup88 commented 4 months ago

Not sure if network drive (NAS) installation is supported. If not, please feel free to close. I have a baller-installer installation on a network drive. I have over 100 tables running fine only if external dmd is disable. When external dmd is enabled, vpinmame errors out with the following dmdDevive.log:

[1] 2024/05/21 00:22:40.545 ERROR | System.TypeInitializationException: The type initializer for 'PinMameDevice.DmdDevice' threw an exception. ---> System.IO.FileNotFoundException: /share/vPinball/VisualPinball/VPinMAME/DmdDevice64.dll
at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)
at LibDmd.Common.PathUtil.GetAssemblyVersion(String& fullVersion, String& sha)
at LibDmd.DmdDevice.DmdDevice..ctor(IConfiguration config)
at PinMameDevice.DmdDevice.DeviceInstance..ctor()
at PinMameDevice.DmdDevice..cctor()
--- End of inner exception stack trace ---
at PinMameDevice.DmdDevice.Open()

The path: /share/vPinball/VisualPinball/VPinMAME/DmdDevice64.dll Should be something like \MYNAS\share\vPinball\VisualPinball\VPinMAME\DmdDevice64.ini in windows world.

I'm not sure where the dmdext is picking up the path. I can reproduce the same error in dmdext 2.2.1.0 and 2.2.2.0.

Things I have tried: Running the installer on an older installation: Same error. dmdext test works fine. Path and env var %DMDDEVICE_CONFIG% is set. Running fresh copy of latest baller installer: version 2.2.1.0. Same error and results. Rudy's May 2024 update: version 2.2.2.0. Same error and results. Manually set env var %DMDDEVICE_CONFIG% to \MYNAS\share\vPinball\VisualPinball\VPinMAME\DmdDevice64.ini

Please advise a way to set a network drive path.