jpd002 / Play-

Play! - PlayStation2 Emulator
http://purei.org
Other
2.03k stars 249 forks source link

Issues when trying to run Play! on my some laptops #1361

Closed cgdl00 closed 2 months ago

cgdl00 commented 2 months ago

Quick summary

Tried on both Win 10 64-bit laptop, returns failure during installation and application run.

System Details

Real Machine

Virtual Machine (Virtual Box)

Both using SSD (SATA), if that matters.

Issue Details

I have tried to run Play! on two of my laptops, both are Win 10 64-bit. One of them is directly on the machine, the other in the virtual machine. During installation, although the internet is available, for both it always fails to download VC Redist 2015. By reading the installation code here: https://github.com/jpd002/Play-/blob/master/installer_win32/vcredist2015_x64.nsh#L21 I was able to download the redist manually. For both it always return something like VCRUNTIME and MSVCP (with or without _1) not found.

(Edit: the error message before installing vc_redist is: "The code execution cannot proceed because VCRUNTIME140.dll/MSVCP140.dll/MSVCP140_1.dll was not found. Reinstalling the program may fix this problem."

the error message after installing vc_redist is: "The code execution cannot proceed because VCRUNTIME140_1.dll/MSVCP140_1.dll was not found. Reinstalling the program may fix this problem.")

I tried for both install VC Redist 2015-2022 (https://aka.ms/vs/17/release/vc_redist.x64.exe). The error message disappeared. However, Play! won't run without any error message. By looking at Task Manager, it opens, then closes after few seconds

sector-c commented 2 months ago

I believe this is an issue with your VC Redist install on your computer and not with the emulator itself. You mention installing the x64 versions of the VC Redist but I think you also need to install x86 version.

cgdl00 commented 2 months ago

Thanks for the reply sector-c. However, previously I have tried that and it still did not work.

The good news is I have found the root of the problem. Turns out my real machine is not compatible to run Play!, it does not have dedicated graphic card (since as I said, it is an older laptop). For the virtual machine, I am able to get it to work by enabling 3D acceleration. The performance is really bad but expected, since it is a virtual machine.

Also, the error message above are due to VC Redist 2019 is not installed (https://learn.microsoft.com/en-us/answers/questions/84775/vcruntime140-1-dll-was-not-found?page=1#answers; Answered by RLWA32), so what I did downloading the 2015-2022 was a correct solution.

I do think the installation process still need to be improved, since I still need to download VC Redist 2015-2022 manually, and the one recommended by the installer is not the right version and cannot even be downloaded by the installer.

jpd002 commented 2 months ago

Thanks for your report @cgdl00 . Regarding your GPU issue, linking a ticket that was opened a while ago: https://github.com/jpd002/Play-/issues/1275.

I'll remove the old redist download code from the NSIS install script as it doesn't make sense anymore. I'll add a link to the new redist packages instead on the readme and website.