praydog / REFramework

Scripting platform, modding framework and VR support for all RE Engine games
https://cursey.github.io/reframework-book/
MIT License
2.92k stars 357 forks source link

[BUG] Resident Evil 4 Remake crash after initializing the game #705

Closed gele05 closed 1 year ago

gele05 commented 1 year ago

Hello.

I got a problem with REFramework with UpscalerBaseplugin and NVIDIA DLSS DLL.

After starting the game, the REFramework 7mb version works well but i don't have TEMPORALUPSCALER.

If i'm gonna use the 12MB REFramework version where TEMPORALUPSCALER work, the game crashing after REFramework initializing.

Attached the log, anyone know why?

Thanks

Thanks re2_framework_log.txt

praydog commented 1 year ago

What GPU do you have? The log says your GPU does not support DLSS.

praydog commented 1 year ago

Closed to insufficient information.

kurnis2 commented 1 year ago

I have this EXACT problem

volter111 commented 1 year ago

I have the same issue.

RTX 2070 super, msi x570, ryzen 5800x, 32gb ram

RE4 Remake Build 11025382, UpscalerBasePlugin 1.1.0 + REFramework (Upscaler Beta) 1.460a + NVIDIA DLSS DLL 3.1.11

crashes during initialization, 10-15 sec after a game run

Larry8435 commented 1 year ago

I have the same issue,too. RTX3060ti,ASUS TUF GAMING H670-PRO WIFI D4,Intel I5-13500

H4M2 commented 1 year ago

Me too but for RE4 :(

Blazkowitch commented 1 year ago

solution: use dinput8.dll after launching the game

doomguy95 commented 1 year ago

solution: use dinput8.dll after launching the game

What do u mean by "use it after launching the game"?

Blazkowitch commented 1 year ago

dinput8.dll is associated with Resident Evil 4 v1.0-v20230424 Plus 36 Trainer, then copied after launching the game. then delete after leaving the game

volter111 commented 1 year ago

dinput8.dll is associated with Resident Evil 4 v1.0-v20230424 Plus 36 Trainer, then copied after launching the game. then delete after leaving the game

That will not work, dinput8.dll should be initialized during the game launch. The game won't look for additional libs after the start - 0 effect.

volter111 commented 1 year ago

@praydog I still have the same issue with the new build of REFramework ae6f5e1 (v1.5.1 main release), nvngx_dlss_3.1.13, UpscalerBasePlugin 1.1.0 (crash while start)

RTX 2070 super, msi x570, Ryzen 5800x, 32gb ram

RE4 Remake Build 11025382

re2_framework_log.txt

please let me know if you need any additional info, always here

thanks in advance :)

wuriyanto48 commented 1 year ago

@Blazkowitch it works, thanks

geminihc commented 1 year ago

same issue here

danielghost123 commented 3 weeks ago

my solution is go to: D:\SteamLibrary\steamapps\common\RESIDENT EVIL 4 BIOHAZARD RE4 open local_config.ini and change render directX12 to directX11 (for me its working, no more crashes rightnow)

if you are playing and an error message appears, but the game works, if you avoid closing that window you can continue playing normally

install the latest VC_Redist maybe can fix the problem: https://learn.microsoft.com/es-es/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

and install the latest DirectX version: https://www.microsoft.com/en-US/download/details.aspx?id=35&msockid=324467d9ca3765191c52735fcb9f64a4

and make sure you graphics card and you windows is updated.

( can try to install a memory cleaner maybe can fix but its not tested ).

List of possible solutions:

danielghost123 commented 3 weeks ago

@gele05

I never used REFramework but maybe on settings (file.ini) you can disable TemporalUpscaler and maybe your game works.

in the logs appers that:

[2023-03-29 18:45:04.277] [REFramework] [info] [TemporalUpscaler] Initializing upscale features...
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] NVSDK_NGX_D3D12_Init = 0xbad00001, info: NVSDK_NGX_Result_FAIL_FeatureNotSupported
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] NVIDIA NGX not available on this hardware/platform., code = 0xbad00001, info: NVSDK_NGX_Result_FAIL_FeatureNotSupported
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] Attempt to ReleaseDLSSFeatures without NGX being initialized.
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] NGX was not initialized when querying Optimal Settings
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] m_RecommendedSettingsMap[1].OptimalRenderSizeX = 3440
[2023-03-29 18:45:04.640] [REFramework] [info] [TemporalUpscaler] m_RecommendedSettingsMap[1].OptimalRenderSizeY = 1440
[2023-03-29 18:45:04.649] [REFramework] [info] [TemporalUpscaler] NVSDK_NGX_D3D12_Init = 0xbad00001, info: NVSDK_NGX_Result_FAIL_FeatureNotSupported
[2023-03-29 18:45:04.649] [REFramework] [info] [TemporalUpscaler] NVIDIA NGX not available on this hardware/platform., code = 0xbad00001, info: NVSDK_NGX_Result_FAIL_FeatureNotSupported
[2023-03-29 18:45:04.649] [REFramework] [error] Exception occurred: c0000005
[2023-03-29 18:45:04.649] [REFramework] [error] RIP: 7ffd77e60075

(If you disable TAA (Temporal Anti Aliasing) maybe can fix the problem) (not tested)