AbyssEngine / AbyssEngineOld

The Open Source ARPG Engine.
https://www.abyssengine.com
GNU General Public License v3.0
438 stars 46 forks source link

Missing MSVCP140D.dll #119

Closed Jerther closed 9 months ago

Jerther commented 2 years ago

Describe the bug

AbyssEngine.exe - System Error

The code execution cannot proceed because MSVCP140D.dll was not found. Reinstalling the program may fix this problem.

OK

Other similar errors about missing dlls follow this one.

To Reproduce Steps to reproduce the behavior: Run AbyssEngine.exe

Expected behavior The game starts

Desktop (please complete the following information):

Additional context

cookta2012 commented 2 years ago

What version of Windows 10? Have you insured that your windows is not corrupt by running

SFC /scannow

In an elevated command prompt

Jerther commented 2 years ago

Version 10.0.19042 Build 19042 sfc /scannow did not find any problem.

Thing is, there IS a MSVCP140.dll file in the bin folder, just NOT the D variant MSVCP140D.dll.

I tried to rename the filed to their D counterpart and now ucrtbased.dll is missing, which is again a D variant of ucrtbase.dll that comes, again, with Visual Studio 2015 or something, and all the web installers are outdated and won't work.

So I finally found a working Visual Studio Build Tools package here, more precisely in the comments. In "Desktop development with C++", I selected "MSVC v140 - VS 2015 C++ build tools" in addition to what was already selected. This took a while to download (2.48GB) and to install (10GB installed), but finally I got past the missing DLLs messages.

If I had to take a guess, I believe the latest release was built in debug mode, while the dev build process copied the release DLLs in the output folder, and also missed some other required ones.

I now have this issue.

cookta2012 commented 2 years ago

Okay and I will let Essial know.

On Fri, Mar 11, 2022, 7:38 PM Jerther @.***> wrote:

Version 10.0.19042 Build 19042 sfc /scannow did not find any problem.

Thing is, there IS a MSVCP140.dll file in the bin folder, just NOT the D variant MSVCP140D.dll.

I tried to rename the filed to their D counterpart and now ucrtbased.dll is missing, which is again a D variant of ucrtbase.dll that comes, again, with Visual Studio 2015 or something, and all the web installers are outdated and won't work.

So I finally found a working Visual Studio Build Tools package here, more precisely in the comments https://stackoverflow.com/a/54136652/2498426. In "Desktop development with C++", I selected "MSVC v140 - VS 2015 C++ build tools" in addition to what was already selected. This took a while to download (2.48GB) and to install (10GB installed), but finally I got past the missing DLLs messages.

If I had to take a guess, I believe the latest release was built in debug mode, while the dev build process copied the release DLLs in the output folder, and also missed some other required ones.

I now have another crash message but I'll start a new issue as it's not related.

— Reply to this email directly, view it on GitHub https://github.com/AbyssEngine/AbyssEngine/issues/119#issuecomment-1065782376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZSOTDY2T7VD6ZTPDY5U3U7PYSHANCNFSM5QE4PMCA . You are receiving this because you commented.Message ID: @.***>

cookta2012 commented 2 years ago

I may have to spin up a Windows VM to check this out thank you for reporting it.

On Sat, Mar 12, 2022, 1:09 AM Troy Cook @.***> wrote:

Okay and I will let Essial know.

On Fri, Mar 11, 2022, 7:38 PM Jerther @.***> wrote:

Version 10.0.19042 Build 19042 sfc /scannow did not find any problem.

Thing is, there IS a MSVCP140.dll file in the bin folder, just NOT the D variant MSVCP140D.dll.

I tried to rename the filed to their D counterpart and now ucrtbased.dll is missing, which is again a D variant of ucrtbase.dll that comes, again, with Visual Studio 2015 or something, and all the web installers are outdated and won't work.

So I finally found a working Visual Studio Build Tools package here, more precisely in the comments https://stackoverflow.com/a/54136652/2498426. In "Desktop development with C++", I selected "MSVC v140 - VS 2015 C++ build tools" in addition to what was already selected. This took a while to download (2.48GB) and to install (10GB installed), but finally I got past the missing DLLs messages.

If I had to take a guess, I believe the latest release was built in debug mode, while the dev build process copied the release DLLs in the output folder, and also missed some other required ones.

I now have another crash message but I'll start a new issue as it's not related.

— Reply to this email directly, view it on GitHub https://github.com/AbyssEngine/AbyssEngine/issues/119#issuecomment-1065782376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZSOTDY2T7VD6ZTPDY5U3U7PYSHANCNFSM5QE4PMCA . You are receiving this because you commented.Message ID: @.***>

essial commented 2 years ago

Please join us on discord if you'd like help troubleshooting your specific. My first thought is you are missing the latest Microsoft C++ SDK libraries. You are bulding in debug mode and it is looking for the DEV (D) version of the runtime and can't find it.