[SOLVED] ReShade 6.4.1 fails to initialize properly when loaded as a .ASI file
- Afevis
- Topic Author
Less
More
4 months 5 days ago #1
by Afevis
Reshade 6.4.1.1965 fails to initialize properly when loaded as a .ASI file was created by Afevis
What it says on the tin. Reshade 6.4.2 fails to initialize fully when loaded as a .asi mod via ASI loader, which is supposed to be supported per the documentation. (Fails to initialize as in it doesn't show the overlay, load any of my shaders, nor respond to keyboard inputs.)
I have an old version - 5.9.2, and confirmed that version DOES initialize properly when loaded as a .asi mod.
Game is Metal Gear Solid 2 - Master Collection Version (on steam), v2.0.1 (latest.)
My folder structure is essentially:
MGS2\launcher.exe
MGS2\METAL GEAR SOLID2.exe
MGS2\winhttp.dll (asi loader)
MGS2\wininet.dll (asi loader)
MGS2\plugins\dxgi.asi (reshade)
Log files from 5.9.2 as a .asi in MGS2/plugins (which DOES load)
pastebin.com/GR9bHKPh
Log files from 6.4.1.1965 as a .asi in MGS2/plugins (does NOT load)
pastebin.com/zate5Kbd
Log files from 6.4.1.1965 as dxgi.dll in MGS2 (does load, but crashes the game's main launcher - which you can get around with another mod that skips the launcher entirely, which is the main reason i'm trying to get it to load via ASI loader as that appears to fix the issue with 5.9.2)
pastebin.com/LssQamia
Here's a DXDiag if needed:
pastebin.com/qAMtg7Kn
I have an old version - 5.9.2, and confirmed that version DOES initialize properly when loaded as a .asi mod.
Game is Metal Gear Solid 2 - Master Collection Version (on steam), v2.0.1 (latest.)
My folder structure is essentially:
MGS2\launcher.exe
MGS2\METAL GEAR SOLID2.exe
MGS2\winhttp.dll (asi loader)
MGS2\wininet.dll (asi loader)
MGS2\plugins\dxgi.asi (reshade)
Log files from 5.9.2 as a .asi in MGS2/plugins (which DOES load)
pastebin.com/GR9bHKPh
Log files from 6.4.1.1965 as a .asi in MGS2/plugins (does NOT load)
pastebin.com/zate5Kbd
Log files from 6.4.1.1965 as dxgi.dll in MGS2 (does load, but crashes the game's main launcher - which you can get around with another mod that skips the launcher entirely, which is the main reason i'm trying to get it to load via ASI loader as that appears to fix the issue with 5.9.2)
pastebin.com/LssQamia
Here's a DXDiag if needed:
pastebin.com/qAMtg7Kn
Please Log in or Create an account to join the conversation.
- Afevis
- Topic Author
Less
More
4 months 4 days ago - 4 months 4 days ago #2
by Afevis
Replied by Afevis on topic Reshade 6.4.1.1965 fails to initialize properly when loaded as a .ASI file
Oops, just realized I posted the wrong log for 5.9.2.
Corrected links:
Log files from 5.9.2 as a .asi in MGS2/plugins (which DOES load)
pastebin.com/sqdYffVZ
Log files from 6.4.1.1965 as a .asi in MGS2/plugins (does NOT fully load)
pastebin.com/zate5Kbd
Log files from 6.4.1.1965 as dxgi.dll in MGS2 (loads fine)
pastebin.com/LssQamia
From the logs it looks like when 6.4.1 is being loaded through ASI loader CreateDXGIFactory is never being hooked and IDXGIFactory::CreateSwapChain never gets called, while both were hooked/called in 5.9.2.
Corrected links:
Log files from 5.9.2 as a .asi in MGS2/plugins (which DOES load)
pastebin.com/sqdYffVZ
Log files from 6.4.1.1965 as a .asi in MGS2/plugins (does NOT fully load)
pastebin.com/zate5Kbd
Log files from 6.4.1.1965 as dxgi.dll in MGS2 (loads fine)
pastebin.com/LssQamia
From the logs it looks like when 6.4.1 is being loaded through ASI loader CreateDXGIFactory is never being hooked and IDXGIFactory::CreateSwapChain never gets called, while both were hooked/called in 5.9.2.
Last edit: 4 months 4 days ago by Afevis.
Please Log in or Create an account to join the conversation.
- crosire
Less
More
4 months 3 days ago - 4 months 3 days ago #3
by crosire
Replied by crosire on topic Reshade 6.4.1.1965 fails to initialize properly when loaded as a .ASI file
You are confusing the hook manager by calling it "dxgi.asi". Rename it to something that does not have the filename "dxgi" and it should start working, e.g. just "ReShade.asi".
Last edit: 4 months 3 days ago by crosire.
Please Log in or Create an account to join the conversation.
- Afevis
- Topic Author
Less
More
4 months 2 days ago #4
by Afevis
Replied by Afevis on topic Reshade 6.4.1.1965 fails to initialize properly when loaded as a .ASI file
Thanks! Looks like that was half of the issue - reshade now initializes properly while called reshade.asi while in the MGS2 folder.
I realized the other half of the issue is that ReShade itself is looking in the wrong directory for all its configuration files when being loaded by ASI loader. Reshade's looking for the ini's and all that in the main executable's directory instead of the directory ASI loader picked it up from (since ASI Loader supports loading .asi files from /plugins, /scripts, and /update subdirectories.)
I opened a PR to fix this issue over here
github.com/crosire/reshade/pull/357
I realized the other half of the issue is that ReShade itself is looking in the wrong directory for all its configuration files when being loaded by ASI loader. Reshade's looking for the ini's and all that in the main executable's directory instead of the directory ASI loader picked it up from (since ASI Loader supports loading .asi files from /plugins, /scripts, and /update subdirectories.)
I opened a PR to fix this issue over here

github.com/crosire/reshade/pull/357
Please Log in or Create an account to join the conversation.
- crosire
Less
More
4 months 23 hours ago #5
by crosire
Replied by crosire on topic Reshade 6.4.1.1965 fails to initialize properly when loaded as a .ASI file
Thanks! Mostly a design decision, but it's more intuitive.
Please Log in or Create an account to join the conversation.