Mike_da_Spike Posted December 18, 2023 Posted December 18, 2023 I'm not sure how PinballX identify how flash is working, but on new systems it doesn't work Recently I bought a laptop and a new dev PC. On both I installed a clean version of VP , DBM and PinballX. On both systems I have the issue that flash is giving an error that flash cannot be initialized Doing the trick to remove the flash.ocx and reinstall PinballX results in the same. When I create a new Visual Studio project, import the OCX from the PinbalLX directory, the OCX will show a SWF correctly Form and object: simple code Run: My cabinet PC is replaced in may 2022 and installed a fresh copy of PinballX as well. This machine is updated with every version and from the begin Flash is working and it is still working Any suggestions how to fix this ? log.txt PinballX.ini
Tom Speirs Posted December 19, 2023 Posted December 19, 2023 Ill take a look soon. Last time I looked it was good on 64 bit but not 32 bit because of the Microsoft changes. Unless I messed something up and i can't recall making any changes but if its a new setup it could be an older missing MS visual C++ runtime. Cheers. Tom.
Tom Speirs Posted December 19, 2023 Posted December 19, 2023 Not getting the error here. Fresh install of PinballX but not Windows. I'm betting its a missing VC runtime that I already have installed on this machine. I've done various tidy ups of the installer in recent times. Pretty sure that is the culprit. 09:18:19.70 19/12/2023: PinballX Core - Version 6.03 x64 09:18:19.71 19/12/2023: Microsoft Windows 10 Enterprise 64-bit (32GB) 09:18:19.71 19/12/2023: Loading Settings 09:18:19.71 19/12/2023: Initialize Component 09:18:19.74 19/12/2023: Initialize Display 09:18:19.76 19/12/2023: Testing Flash engine. 09:18:19.83 19/12/2023: Loading PlugIns 09:18:19.86 19/12/2023: Looking for startup images
scutters Posted December 20, 2023 Posted December 20, 2023 Hi Tom, I've got a new desktop pc so fresh copy of windows (11). I get the "Error initializing flash engine" if i install either core or framework 64 bit version of 6.03, but the 32 bit framework version is ok. Hope that helps narrow it down a bit.. 11:09:04.52 20/12/2023: PinballX - Version 6.03 11:09:04.53 20/12/2023: Microsoft Windows 11 Home 32-bit (32GB) 11:09:04.53 20/12/2023: Loading Settings 11:09:04.54 20/12/2023: Launching Startup Program: OBSMirrorPFLeft.bat 11:09:04.54 20/12/2023: C:\CustomScripts\OBSMirrorPFLeft.bat 11:09:04.56 20/12/2023: Initialize Component 11:09:04.60 20/12/2023: Initialize Display 11:09:04.62 20/12/2023: Testing Flash engine. 11:09:04.64 20/12/2023: Loading PlugIns 11:10:28.19 20/12/2023: PinballX Core - Version 6.03 x64 11:10:28.44 20/12/2023: Microsoft Windows 11 Home 64-bit (32GB) 11:10:28.44 20/12/2023: Loading Settings 11:10:28.44 20/12/2023: Launching Startup Program: OBSMirrorPFLeft.bat 11:10:28.44 20/12/2023: C:\CustomScripts\OBSMirrorPFLeft.bat 11:10:28.45 20/12/2023: Initialize Component 11:10:28.48 20/12/2023: Initialize Display 11:10:28.50 20/12/2023: Testing Flash engine. 11:10:28.51 20/12/2023: Error initializing flash engine. (i did go back to v5.96 as well, but still no luck there with 64 bit and flash. It does work on the cab with 6.03 x64 so it probably is a missing runtime thing that was in an old installer version like you suspect)
Mike_da_Spike Posted December 20, 2023 Author Posted December 20, 2023 Thanks for testing Tom and Scutters I've removed all VC runtimes on 1 of my test machines (not able to go to the 2nd one I removed the Flash.ocx and reinstalled PinballX only the following VC's are now installed after installing PBX but still I have : 11:18:57.87 20-12-2023: PinballX Core - Version 6.03 x64 11:18:58.43 20-12-2023: Microsoft Windows 11 Home 64-bit (16GB) 11:18:58.43 20-12-2023: Loading Settings 11:18:58.43 20-12-2023: Initialize Component 11:18:58.47 20-12-2023: Initialize Display 11:18:58.50 20-12-2023: Testing Flash engine. 11:18:58.50 20-12-2023: Error initializing flash engine. 11:18:58.51 20-12-2023: Please try deleting flash.ocx in the installation folder and then reininstall PinballX. 11:18:58.51 20-12-2023: You may need to change security properties on the file. 11:18:58.51 20-12-2023: If PinballX does not initialize you should address this issue. I even used Mcirosofts powershel ttol, to install all versions of vcredist (see https://vcredist.com/) , but that didn't fixed it at all. do you want to share the cod that test the flash engine ? So we (Scutters and I) can do some tests without launching the complete frontend ?
Mike_da_Spike Posted December 20, 2023 Author Posted December 20, 2023 @Tom Speirs not sure if you changed a version, but I copied over my flash.ocx from my cabinet to the test machine. and that is working 2:52:51.39 20-12-2023: PinballX Core - Version 6.03 x64 12:52:51.61 20-12-2023: Microsoft Windows 11 Home 64-bit (16GB) 12:52:51.61 20-12-2023: Loading Settings 12:52:51.61 20-12-2023: Initialize Component 12:52:51.66 20-12-2023: Initialize Display 12:52:51.69 20-12-2023: Testing Flash engine. 12:52:51.85 20-12-2023: Loading PlugIns The wrong file is from 6.03. The correct flash.ocx is from a version of last year I hope this helps 1
joyrider3774 Posted December 21, 2023 Posted December 21, 2023 i'm not sure but if i remember correctly they released a new file (not sure if it was the ocx file) that had a permanent block inside it to load it but i'm not sure this whats causing it. potentially the older file did not have this block yet if it is the cause
Tom Speirs Posted December 22, 2023 Posted December 22, 2023 Its fixed in 6.04. it was an error in the installer. You will have to manually remove flash.ocx from the PinballX install folder. That takes a little work, 1
Mike_da_Spike Posted December 22, 2023 Author Posted December 22, 2023 Good work. Thanks @Tom Speirs. I'm not able to test, but I trust your fix. For removing flash.ocx, here's a small procedure : 1
scutters Posted December 22, 2023 Posted December 22, 2023 Deleted flash.ocx following @Mike_da_Spike's instructions.. installed v6.05 x64 core version and all now ok. No error in log and 'instructions' visible in menu on my desktop pc. Thanks Tom.
Recommended Posts