emoose / OutRun2006Tweaks

Turning and spinning and spinning and turning, woah!
MIT License
311 stars 0 forks source link

. #6

Closed lance8765 closed 3 months ago

lance8765 commented 3 months ago

.

emoose commented 3 months ago

Hm, it mentions MSVCP140 there, maybe newer VC redist is needed for the DLL, you can find latest at https://aka.ms/vs/17/release/vc_redist.x86.exe & https://aka.ms/vs/17/release/vc_redist.x64.exe.

If that doesn't help could you check if C:\Windows\Minidump\ folder has a OR2006C2C.dmp file inside and upload it somewhere if it does? (http://pixeldrain.com or http://we.tl should be able to host it)

emoose commented 3 months ago

Yep looks like it, thanks.

Seems crash is while it's trying to setup log file, maybe can't write to file properly, can you try making a blank Outrun2006Tweaks.log next to game EXE and see if there's any difference?

The actual code it's erroring at is inside MSVCP140.dll though, inside function

msvcp140.dll!mtx_do_lock(_Mtx_internal_imp_t mtx, const xtime target) Line 100 C++

If I search for errors related to that one post does mention it can happen if MSVCP140 is different version to what it built with: https://developercommunity.visualstudio.com/t/Visual-Studio-17100-Update-leads-to-Pr/10669759?sort=newest&topics=visual+studio+2019&WT.mc_id=WD-MVP-5003763

For me MSVCP140.dll shows as version 14.40.33810, maybe check if yours is the same. (also might be worth installing both x86 and x64 versions of the redist if you hadn't already)

DonelBueno commented 3 months ago

Did you change the '.exe" compatibility mode? If so, try disabling it, that is, run with no compatibility changes applied.

emoose commented 3 months ago

Ah thanks for letting me know about that crash issue, seems MS actually hide that "app stopped working" dialog box since Win10 so hadn't actually seen that on my end - re-enabling the dialog like last reply at https://stackoverflow.com/questions/51814677/how-to-enable-program-has-stopped-working-dialog mentions does show it for me now though, will look into a fix for it shortly.

Should probably be fine to disable the compatibility mode options, been playing without any compatibility enabled and all seems fine on Win11 anyway.

emoose commented 3 months ago

That compat setting might have been carried over from your original EXE, AFAIK windows saves it for the EXE path, so if you unzip the tweaks ZIP to some other folder it should have it cleared.

Posted 0.2.4 which should hopefully resolve the crash on exit: https://github.com/emoose/OutRun2006Tweaks/releases/tag/v0.2.4

Thanks again for letting me know about it, if you notice any more issues or have other suggestions please let me know!