rebtd7 / FF13Fix

Performance and bug fixes for the PC versions of FF13 and FF13-2
GNU General Public License v3.0
343 stars 24 forks source link

Game fails to open properly most of the time for some users #4

Open rebtd7 opened 4 years ago

rebtd7 commented 4 years ago

Original report: https://www.reddit.com/r/FinalFantasy/comments/egxu9c/ff13_pc_unofficial_fixes/felhfdg/

Log

[TIME] [THREAD] [LOG]

18:44:45.137 00001564 FF13Fix 1.3.1 https://github.com/rebtd7/FF13Fix

18:44:45.137 00001564 AutoFix for "Final Fantasy XIII" enabled

18:44:45.137 00001564 Loaded C:\Windows\system32\d3d9.dll

18:44:45.644 00001564 HWND 0x0048047E: ClassName "OleMainThreadWndClass", WindowName: "OleMainThreadWndName"

18:44:45.644 00001564 Starting FFXIII one time RAM patches.

18:44:45.644 00001564 Using the ingame the instruction that sets the frame rate to get the frame rate address.

18:44:45.645 00001564 Unable to find frame rate pattern. This is normal if the game still hasn't completely started yet.
Windows 10, 1909, Build 18363

UI Language: English

Processor Information:

AMD Ryzen 7 2700X Eight-Core Processor 4200 Mhz

Video Card:

NVIDIA GeForce RTX 2080 Ti

Driver Version: 26.21.14.4187

Primary Display Resolution: 3840 x 2160

Desktop Resolution: 3840 x 3360

Primary Display Size: 55.91" x 31.50" (64.13" diag)

142.0cm x 80.0cm (162.9cm diag)

Sound card:

Audio device: AV Receiver (2- NVIDIA High Def

Memory:

RAM: 16331 Mb 3200cl14

Game Controller: Xbox 360 Controller detected

VR Headset: Oculus Rift S detected

Also affected by OneTweakNG, so this is probably related to the function hooking

Shin741 commented 4 years ago

FF13Fix.log FF XIII-2 is crashing when I try to open it while the "dinput8.dll" file is in the bin folder

Nucleoprotein commented 4 years ago

@Shin741 You also have Ryzen CPU?

Shin741 commented 4 years ago

@Nucleoprotein Nope I have an Intel Core I7-7700k 4.20GHz

Nucleoprotein commented 4 years ago

Please check this build (replaced MinHook with MS Detours). dinput8.zip

Shin741 commented 4 years ago

@Nucleoprotein still doesn't work

Nucleoprotein commented 4 years ago

@Nucleoprotein still doesn't work

Please install this runtime and recheck: https://aka.ms/vs/16/release/vc_redist.x86.exe

Shin741 commented 4 years ago

Please install this runtime and recheck: https://aka.ms/vs/16/release/vc_redist.x86.exe

doesn't work

Nucleoprotein commented 4 years ago

@Shin741 We need more info, Windows version (run cmd.exe from start and copy from there), system spec ect.

Shin741 commented 4 years ago

@Nucleoprotein Microsoft Windows [version 10.0.18363.815] 1909 Graphic card: GTX1080 RAM:16GB Processor: Intel Core I7-7700k CPU 4.20GHz

Nucleoprotein commented 4 years ago

@Shin741 I think it will be very hard for use to debug this because i cant reproduce crash. If you want to help me and @rebtd7 you can enable LocalDumps and send us dump file. You need to do this to enable local crash dumps: https://www.meziantou.net/tip-automatically-create-a-crash-dump-file-on-error.htm Please use original 1.4.6 release file when creating dump.

Shin741 commented 4 years ago

this is the compressed dump file @Nucleoprotein ffxiii2img.exe.14192.zip

Nucleoprotein commented 4 years ago

STACK_TEXT:
00000000 00000000 Unknown!SharpDX.Direct3D9.Device.GetSwapChain+0x0 00000000 00000000 Unknown!CAMFPS_API.Hook.DXHookD3D9_EX.EndSceneHook+0x0

Quick Google search about CAMFPS_API and i found it's https://www.nzxt.com/camapp and it crashes maaaany games and software (https://www.google.com/search?q=CAMFPS_API) . Seems it's also not compatible with our Direct3D9 hooks. If you can - disable in game monitoring (overlay) because it's causing the crash.

Shin741 commented 4 years ago

OMG thanks it works perfectly. Thank you so much to you and rebtd7 I owe you guys. :D