Lyall / SMTVFix

A fix for ultrawide/narrower displays in Shin Megami Tensei V: Vengeance.
MIT License
94 stars 1 forks source link

Game won't start with versions above 0.8.3 #23

Closed Nashekni closed 4 months ago

Nashekni commented 4 months ago

Thank you for this amazing fix, but i tried updating it from version 0.8.3 to 0.8.6 and the game won't start. The log is created, but is empty. Tried with 0.8.4 and 0.8.5 and the game won't start with those too. Any idea to what may be causing this? I really want to try the GTAO and better LoD distance.

agentoranger commented 4 months ago

This issue is unique to your situation, the latest version is working for me, (me being a lowly user on the internet). Be certain that you are replacing the configuration file, along with all of the with the files with the latest release, try enabling a single option at a time until the issue is recreated. Which might isolate the issue.

Supplemental info could be helpful, which video card and driver version are you using?

Lyall commented 4 months ago

All of what @agentoranger said is good advice there. You're not trying to use the fix on the Microsoft/Xbox Store version are you? There is known incompatibility with that version.

Nashekni commented 4 months ago

All of what @agentoranger said is good advice there. You're not trying to use the fix on the Microsoft/Xbox Store version are you? There is known incompatibility with that version.

No, i'm using the Steam version. I just got home, so i'll try what Ranger said.

Nashekni commented 4 months ago

This issue is unique to your situation, the latest version is working for me, (me being a lowly user on the internet). Be certain that you are replacing the configuration file, along with all of the with the files with the latest release, try enabling a single option at a time until the issue is recreated. Which might isolate the issue.

Supplemental info could be helpful, which video card and driver version are you using?

Hi, just started my pc and tried setting everything to false in the configuration file to see start seeing what may cause the problem, but even if everything is set to false the game still won't start with 0.8.6 fix files. I'm using a AMD RX 6600 graphics card with Win11 Adrenaline 24.5.1 drivers. I'm thinking maybe redownloading the game might fix it? I'll try to record a video of the problem if it helps.

agentoranger commented 4 months ago

Just in case it's relevant, I'm using Windows 11, Nvidia 4090, driver version 555.

RaygeSol commented 4 months ago

I just started having issues with 8.8. But I'm also using Special K.

Nashekni commented 4 months ago

Tried redownloading the game, but it still won't start with versions above 0.8.3. Tried the recent 0.8.8 and won't start with it either. Will upload a video showing the problem.

Nashekni commented 4 months ago

https://drive.google.com/file/d/1GTqX3wtIBAhG90g-tGUKxaCe_7R0UUVP/view?usp=sharing

Here is the video showing the game with no fix, 0.8.8 and 0.8.3 (it's on drive since is 60mb, can't upload it here)

Lyall commented 4 months ago

So the log file is created but empty? Can you try creating a file called dsound.ini (in the game folder next to SMTVFix.asi/dsound.dll) and adding this to it:

[GlobalSets]
DontLoadFromDllMain=0

Then try launching the game again. If that doesn't work, can you try renaming both dsound.dll and dsound.ini to winmm.dll and winmm.ini respectively. If none of that works, I can try creating a build that has parts pulled out to try and narrow down what part is causing the crash.

Nashekni commented 4 months ago

So the log file is created but empty? Can you try creating a file called dsound.ini (in the game folder next to SMTVFix.asi/dsound.dll) and adding this to it:

[GlobalSets]
DontLoadFromDllMain=0

Then try launching the game again. If that doesn't work, can you try renaming both dsound.dll and dsound.ini to winmm.dll and winmm.ini respectively. If none of that works, I can try creating a build that has parts pulled out to try and narrow down what part is causing the crash.

Created the dsound.dll and changing the names and didn't work. Would love if you create a build to see what could be the problem.

Lyall commented 4 months ago

Alright, this build basically has everything stripped out. It only interacts with the log file and the ini file. Give this a try and see if it generates a proper log file. SMTVFix_build1.zip

Nashekni commented 4 months ago

Replaced the 0.8.8 build with the one you send, the game now starts and does in fact generate a log file. SMTVFix.log

Lyall commented 4 months ago

Replaced the 0.8.8 build with the one you send, the game now starts and does in fact generate a log file. SMTVFix.log

Alright, I'll add more back in then and we'll see how that goes.

Lyall commented 4 months ago

This build has just the resolution hook, aspect ratio and FOV.

SMTVFix_build2.zip

Nashekni commented 4 months ago

ok, this one starts too SMTVFix.log

Lyall commented 4 months ago

SMTVFix_build3.zip

Nashekni commented 4 months ago

This one works too SMTVFix.log

Lyall commented 4 months ago

SMTVFix_build4.zip

Nashekni commented 4 months ago

also working SMTVFix.log

Lyall commented 4 months ago

Alright this build has about 90% of the original stuff in it. I suspect this is the one that won't work, or at least that's what I'll put my bet on.

SMTVFix_build5.zip

Nashekni commented 4 months ago

This one suprisingly does work. SMTVFix.log

Lyall commented 4 months ago

Alright, so that last build was only missing the intro skip. So if this build crashes then we know the issue is with that. If you can confirm that I'll see if I can add some extra checks to the intro skip to maybe fix whatever is happening on your end.

SMTVFix_build6.zip

Nashekni commented 4 months ago

Ok, sooo, this one does actually starts too. SMTVFix.log

Lyall commented 4 months ago

Ok, sooo, this one does actually starts too. SMTVFix.log

Well now I'm confused. The only difference between the last build I sent and v0.8.8 is a few new additions. I guess it's also built through the GitHub runner versus the file I posted being compiled on my machine. I'll generate a build on GitHub of the latest version and post it here in a minute.

Lyall commented 4 months ago

SMTVFix_v0.8.9.zip

Nashekni commented 4 months ago

This one crashed. It seems that when the fix is compiled on Github it crashes my game. Maybe my computer is missing something?

Lyall commented 4 months ago

This one crashed. It seems that when the fix is compiled on Github it crashes my game. Maybe my computer is missing something?

Alright well at least we've narrowed it down now. I'd recommend installing this pack of visual C++ runtimes. Then give the GitHub-built version I posted a try.

Nashekni commented 4 months ago

Okay, I will download it right now and then i'll tell you if it worked. Thank you so much for your help and time.

Nashekni commented 4 months ago

This one crashed. It seems that when the fix is compiled on Github it crashes my game. Maybe my computer is missing something?

Alright well at least we've narrowed it down now. I'd recommend installing this pack of visual C++ runtimes. Then give the GitHub-built version I posted a try.

Mmm, even after installing the c++ runtimes the game won't start with the Github built

Lyall commented 4 months ago

Does this build work for you? This is compiled on my machine. I've updated to the latest build tools to match the ones on GitHub's runner. The build diag output (at least at the start) is exactly the same and the file size is a match.

SMTVFix.zip

Nashekni commented 4 months ago

Does this build work for you? This is compiled on my machine. I've updated to the latest build tools to match the ones on GitHub's runner. The build diag output (at least at the start) is exactly the same and the file size is a match.

SMTVFix.zip

This build also seems to crash my game :/

jangyoking commented 4 months ago

So the log file is created but empty? Can you try creating a file called dsound.ini (in the game folder next to SMTVFix.asi/dsound.dll) and adding this to it:

[GlobalSets]
DontLoadFromDllMain=0

Then try launching the game again. If that doesn't work, can you try renaming both dsound.dll and dsound.ini to winmm.dll and winmm.ini respectively. If none of that works, I can try creating a build that has parts pulled out to try and narrow down what part is causing the crash.

I also have problem to let it work.log files is not created. then I rename dsound.dll to winmm.dll,it seems to work

Lyall commented 4 months ago

I also have problem to let it work.log files is not created. then I rename dsound.dll to winmm.dll,it seems to work

That didn't work for you right @Nashekni? I'm struggling to think why just updating the Visual Studio build tools would cause the build to crash on your machine. I'm honestly flummoxed.

Nashekni commented 4 months ago

Yeah, chaging the names didn't work for me. I'm just as confused as you, like, is fully my computers problem, but I don't really know what may be causing this, like, my Win11 is fully updated and I installed the C++ things yesterday, i'll try later in the day to see what may be causing the game to crash.

Lyall commented 4 months ago

Well at least for now you could use the build in this post. This a very baffling issue and I'm sorry there's no easy fix.

Nashekni commented 4 months ago

Don't worry about it, the solution probably will appear at some moment. But I really gotta thank you for everything you've done for me.

Kierek commented 4 months ago

I have the same issue, but I’m using Linux and Proton 9.0-2. Version 0.8.3 works great for me, so it’s not a major problem, but the changelog for newer versions looks tempting.

Lyall commented 4 months ago

I have the same issue, but I’m using Linux and Proton 9.0-2. Version 0.8.3 works great for me, so it’s not a major problem, but the changelog for newer versions looks tempting.

Can you try the build from this post? This should be identical to v0.8.9, just compiled with the older build tools.

RaygeSol commented 4 months ago

I'm having similar issues on my Win11 system. Anything after 0.8.6 has stopped working for me. Used the batch to install all the runtimes and still have issues. Everything else on my system is up to date and the game was ran without any other programs (special K, shader toggler)

fluxehub commented 4 months ago

I have the same issue, but I’m using Linux and Proton 9.0-2. Version 0.8.3 works great for me, so it’s not a major problem, but the changelog for newer versions looks tempting.

Issue exists for me too on Whisky on macOS (which is also using Wine), except it's only on version 0.8.7 and above, <=0.8.6 works without issue. Can also confirm that the issue doesn't occur for me on my Windows 11 desktop. What a strange one!

lucasmathmendes commented 4 months ago

I had this problem too. I'm on Windows 11 with GTX 4080 and the monitor is a 32:9 5120x1440. Started with version 0.8.6 a few days ago and today it started to crash, I didn't changed anything (maybe a Windows or game update caused it?). So I've tried to update to 0.8.9 to solve it, but it doesn't work. Finally, using SMTVFix_build6.zip from this post the game launched.

Lyall commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

SuperROBO1 commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

had the same problem as OP and others in this thread, windows 11 2070 super ryzen 3700x

this build is working for me

Kierek commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

SMTVFix_v_0_8_9_buildtools.zip and SMTVFix_build6.zip doesn't work for me on Linux

ASD10040 commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

Hi, I can confirm that this works for me too. The fix wasn't running for me suddenly when I played yesterday even when i used the new ver. So I removed it and played normally. I used this file you provided and the game launched fine. I am on Windows 10 btw.

Thanks for making this patch

fluxehub commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

Doesn't work for me on Whisky sadly

RaygeSol commented 4 months ago

For those that are having crashing, can you please try this build?

SMTVFix_v_0_8_9_buildtools.zip

Can confirm that this works for me on Win11.

Lyall commented 4 months ago

Okay so mixed results then. I've put out v0.9.0 with more build optimisations removed. If you still encounter crashing, please try changing the ASI loader filename dsound.dll to d3d12.dll or d3d11.dll depending on what renderer you are using. Also try adding an ini file named d3d12.ini or d3d11.ini with the contents:

[GlobalSets]
DontLoadFromDllMain=0

If you are using Linux/Steam Deck, you'll need to change the launch command to reflect the new DLL name.

agentoranger commented 4 months ago

I'm gonna throw my hat in the ring, I use the abodi installer for vc++ runtimes, the author (abodi) is very diligent in providing the latest vc++ runtimes libraries possible, which means they may be newer than the official pack from microsoft, I believe they are sourced from Visual Studio. This also comes with the traditional disclaimer, your mileage may vary, and sometimes these libraries need to be removed to be updated. Sometimes they might break if the stars are not aligned. Naturally, when these libraries are not present or broken common apps may begin to fail until they are reinstalled. Example, Adobe reader needs vc++ runtimes.

Abodi's vc++ pack https://github.com/abbodi1406/vcredist

Those looking to keep it official, go here: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Edit: v.0.8.9 and v.0.9.0 is working for me, Windows 11 with and without Special K.

Nashekni commented 4 months ago

I'm gonna throw my hat in the ring, I use the abodi installer for vc++ runtimes, the author (abodi) is very diligent in providing the latest vc++ runtimes libraries possible, which means they may be newer than the official pack from microsoft, I believe they are sourced from Visual Studio. This also comes with the traditional disclaimer, your mileage may vary, and sometimes these libraries need to be removed to be updated. Sometimes they might break if the stars are not aligned. Naturally, when these libraries are not present or broken common apps may begin to fail until they are reinstalled. Example, Adobe reader needs vc++ runtimes.

Abodi's vc++ pack https://github.com/abbodi1406/vcredist

Those looking to keep it official, go here: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

Edit: v.0.8.9 and v.0.9.0 is working for me, Windows 11 with and without Special K.

Woah, this pack fixed the issue in my computer, now fix v.0.9.0 works without any issues. Thanks a lot! Edit: For some reason when I try to started on Steam the games doesn't launch, but some other times it does. When launching from the .exe in Win64 folder it always starts. A little detail, but nothing that ruins my experience, just did a shortcut of the .exe.