ThirteenAG / WidescreenFixesPack

Plugins to make or improve widescreen resolutions support in games, add more features and fix bugs.
https://thirteenag.github.io/wfp
MIT License
2.31k stars 221 forks source link

[THPS2] Game crash only when game controller plugged in #351

Open fraganator opened 7 years ago

fraganator commented 7 years ago

I've run into an issue where THPS2 will crash when loading a level, but only when a game controller is plugged in. I've verified this with two different Xbox 360 controllers, and another generic USB game pad. If I unplug the controller and start the game, I can load and play a level without issue (and the widescreen fix looks great).

The controller(s) work when in the menu and I can reassign the controller inputs, so that would indicate it's working to some extent.

I tried changing UseDirectInput=1 setting in wndmode.ini, but it didn't seem to have any effect. I also tried using XInputPlus to remap XInput to DirectInput, but I suspect the widescreen fix is already performing all of the DirectInput functions so this had no effect.

I've tested with the release version of the widescreen fix, and also the latest build version from here, but both versions exhibit the crash.

Steps to reproduce:

  1. Install THPS2 from CD, apply "smaller" No-CD patch, and apply THPS2 widescreen fix
  2. Plug in wired Xbox 360 controller
  3. Start THPS2, then from the menu select Free Skate, choose a character and start the level
  4. THPS2 will crash

System Info:

jszymonek commented 5 years ago

I've run into the same issue. The game will crash if either:

Widescreen ini contents: [MAIN] ResX = 0 ResY = 0 FixHUD = 1

Upon crash, the game generate a log file - attached here. THPCERR.LOG

Unfortunately the DirectDraw mode also has a very low fps (around 20), while in d3d it's perfectly smooth (at least in movies and menus).