Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller going crazy #362

Closed
2 tasks done
Nitsug72 opened this issue Nov 12, 2022 · 33 comments
Closed
2 tasks done

Controller going crazy #362

Nitsug72 opened this issue Nov 12, 2022 · 33 comments
Labels
bug Something isn't working

Comments

@Nitsug72
Copy link

Validation

Describe your issue here (drag+drop ZIP to attach it)

Video example
Game version: 1.1.0
Re4_tweaks ver: 1.7.7.6

Hi. I'm not really sure if this is re4_tweaks' fault but so far it has never happened with any other game.

Seemingly at random the controller (DS4) stops working properly and the game shows keyboard prompts in the inventory menu.

It happens even if:
-I disable steam input
-I connect the controller through USB instead of bluetooth
-I use a virtual x360 controller (with DS4windows) either through USB or bluetooth
-I set input.ini as read only so the game can't modify it (I thought it could help)

I don't remember this ever happening before and I've been using the hd project since february.

@Nitsug72 Nitsug72 added the bug Something isn't working label Nov 12, 2022
@LethalPlacebo
Copy link

This doesn't seem related to the HD Project or RE4 Tweaks, but I'll recommend you try this anyway:

-Go to "Device Manager" on your PC
-Open the "Sound, video and game controllers tab"
-Your DS4 should be listed near the bottom as simply "wireless controller"
-Completely uninstall and remove it, then unplug and replug your DS4 and see if it works with RE4.

You can also test the controller at a system level:

-Open "Control Panel" on your PC
-Open "Hardware and Sound"
-Open "Devices and Printers"
-Once again you should see "wireless controller" here. Right-click it and open "game controller settings" then click "advanced." Windows will show you a screen that lets you test out all buttons and analog inputs.

@Nitsug72
Copy link
Author

It does work for like 5-15 minutes and then it starts having this issue. I'm pretty sure it's not the controller, no other game has any similar issue.

@LethalPlacebo
Copy link

It does work for like 5-15 minutes and then it starts having this issue. I'm pretty sure it's not the controller, no other game has any similar issue.

So it still has this issue after trying the steps above, right? No other USB controller devices are plugged in?

@Nitsug72
Copy link
Author

Yup, no other controller connected.

@Nitsug72
Copy link
Author

As I said before, RE4 is the only game with this problem.

@LethalPlacebo
Copy link

I see. You said you've set input.ini as read-only, have you tried outright deleting it?

@Nitsug72
Copy link
Author

Just tried that, still happens. I did notice that if I hold the right stick in any direction the controller behaves "normally" (as shown in the video). Could it be related to stick drifting? I'll try to unbind the right stick on steam input to see if something changes @_@

@Nitsug72
Copy link
Author

I had the same issue but I had to hold the left stick instead.

@LethalPlacebo
Copy link

Hmmm. Try to make sure the gyro in the DS4 also isn't bound to anything?

@Nitsug72
Copy link
Author

It isn't.

Hmmm. Try to make sure the gyro in the DS4 also isn't bound to anything?

@nipkownix
Copy link
Owner

Sounds like this issue:
https://steamcommunity.com/app/254700/discussions/0/2954915322314982947/

I've seen some people report that before, even before I made re4_tweaks, so I don't think it is caused by it. Unless some change we're making is triggering the same bug, which could happen. Could you test without re4_tweaks?

@Nitsug72
Copy link
Author

Sounds like this issue: https://steamcommunity.com/app/254700/discussions/0/2954915322314982947/

I've seen some people report that before, even before I made re4_tweaks, so I don't think it is caused by it. Unless some change we're making is triggering the same bug, which could happen. Could you test without re4_tweaks?

Could be the same. I'll try to disable steam overlay and if that doesn't work I'll run the game without re4_tweaks.

@Nitsug72
Copy link
Author

Nitsug72 commented Nov 12, 2022

Could be the same. I'll try to disable steam overlay and if that doesn't work I'll run the game without re4_tweaks.

Still happens. In fact, it happens from the very beginning without re4_tweaks, which leads me to believe that this is somehow performance-related (also, the main menu animation looks "choppy" when I have this problem). My pc is very weak and I need to disable v-sync to get a stable framerate.

The thing is, I've been playing since february and this started happening just recently.

@nipkownix
Copy link
Owner

Hmm, yeah.. odd. It would be great if we could figure out a way to reproduce the issue here, so I could take a look, but this just never happened to me ever since this port released :/

@Nitsug72
Copy link
Author

Hi. I tested a virtual x360 gamepad (with DS4windows) with the "Hide DS4" option enabled and the same happens. I also tried to play on the least "cpu intensive" enviroments and managed to play for longer before this started happening. Now I'm pretty sure it's something performance-related and not the controller's fault.
Just wanted to mention that.

@emoose
Copy link
Collaborator

emoose commented Nov 17, 2022

If you are getting performance problems/framedrops I'd guess that could have an effect on input, don't really know why it'd stop working completely though.

Maybe worth trying out dxvk or #255, I've heard dxvk can help with framedrops a lot at least.
IIRC setting up dxvk just needs the x32 d3d9.dll/dxgi.dll from tar.gz at https://github.com/doitsujin/dxvk/releases/tag/v2.0 extracted next to the game EXE (dxvk 2.0 did change Vulkan requirements though, so you might also want to try the earlier https://github.com/doitsujin/dxvk/releases/tag/v1.10.3 version as well, could perform better than 2.0 for you)

If you try those let us know if there's any effect, otherwise maybe will look into adding some debug info around the controller related code, to get some idea why game is deciding to stop reading from it.

E: btw after the controller stops working in the game, do you know if other things are still able to recognize it? eg Win10/Win11 start menu should respond to LS if it's still recognized by the OS, if that also doesn't respond maybe it's not entirely game related...

@Nitsug72
Copy link
Author

I'll try, though I think the links in #255 don't work anymore.

E: btw after the controller stops working in the game, do you know if other things are still able to recognize it? eg Win10/Win11 start menu should respond to LS if it's still recognized by the OS, if that also doesn't respond maybe it's not entirely game related...

Yeah, it works just fine with everything.

@emoose
Copy link
Collaborator

emoose commented Nov 19, 2022

Ah, done a rebase + rebuild of #255
(E: was merged into master too, can get that from https://github.com/nipkownix/re4_tweaks/suites/9401866481/artifacts/443673397)

It could also be worth trying the re4_tweaks+dxvk combined DLL at #361 (comment) too.

Hoping one of these methods can help with it somewhat, will also look into adding that debugging stuff to figure out why it happens soon.

@Nitsug72
Copy link
Author

Hi. A little update on my situation.
Aparently this doesn't happen if I disable bluetooth and connect the controller through USB. So I have two theories:
-This actually is caused by poor performance and my pc is so weak that enabling bluetooth has a meaningful impact.
-It's related to using a DS4 through bluetooth (though no other game ever had this issue, at least for me)

@Nitsug72
Copy link
Author

Ah, done a rebase + rebuild of #255 (E: was merged into master too, can get that from https://github.com/nipkownix/re4_tweaks/suites/9401866481/artifacts/443673397)

It could also be worth trying the re4_tweaks+dxvk combined DLL at #361 (comment) too.

Hoping one of these methods can help with it somewhat, will also look into adding that debugging stuff to figure out why it happens soon.

I'll try. thanks <3

@LethalPlacebo
Copy link

Hi. A little update on my situation. Aparently this doesn't happen if I disable bluetooth and connect the controller through USB. So I have two theories: -This actually is caused by poor performance and my pc is so weak that enabling bluetooth has a meaningful impact. -It's related to using a DS4 through bluetooth (though no other game ever had this issue, at least for me)

I thought you said you already tried with your controller wired? Or had you not disabled Bluetooth when trying it wired before?

Anyway, your Bluetooth is most likely the problem here, but probably not because your PC is weak. When I try to play RE4 on my PC when a Bluetooth driver is installed, I get a stutter every 5 seconds or so. I should have tried disabling it first, but decided to just uninstall it altogether, and the problem immediately went away.

Similarly to your problem, no other game had stutters when I had the Bluetooth driver installed, but if I used a controller with Bluetooth and then the controller lost sync, it would tank my performance because the Bluetooth driver would freak out.

Anyway RE4 seems to really not like Bluetooth devices lol.

@Nitsug72
Copy link
Author

I did, but I still had my headphones connected.

@Nitsug72
Copy link
Author

Ah, done a rebase + rebuild of #255 (E: was merged into master too, can get that from https://github.com/nipkownix/re4_tweaks/suites/9401866481/artifacts/443673397)

That one definitively helped! I played through the first chapter with no slowdowns at all (only two minor ones in particule-intense cutscenes) It felt way smoother than before.

@Nitsug72
Copy link
Author

Nitsug72 commented Nov 20, 2022

I have to try dxvk. I'll keep you informed once I do.

@Nitsug72
Copy link
Author

Nitsug72 commented Nov 21, 2022

I tried both #255 and dxvk [v1.10.3] at the same time. I'm in 1-3 right now, so far the game ran almost flawlessly aside from some stutter here and there.
aaa

Tho the problem with the controller persists @_@

@Nitsug72
Copy link
Author

Hi. I disabled bluetooth when my (wired) controller started failing and the problem went away.

@emoose
Copy link
Collaborator

emoose commented Nov 21, 2022

Huh interesting, guess maybe game is reading from both wired & bluetooth, maybe the stutter interferes with something with the bluetooth part, and game ends up disconnecting from both because of it (just a guess tho, but the gamepad code in here is pretty bad, so wouldn't be surprised if one controller disconnecting would break all of them...)

I wonder if PrecacheModels might help with your stutter issue at all, that should ensure all the models in the stage are loaded in, so should hopefully reduce any stutters/slowdowns as you play, maybe try enabling that in the dinput8.ini and see if that's any better.
(we could probably make that default really, or at least enable it in HDProject.ini, since there are definitely stutters there that are fixed by it: #274 - I think only downside with it is maybe more increased VRAM usage, but haven't confirmed that myself)

@Nitsug72
Copy link
Author

Nitsug72 commented Nov 21, 2022

Here's another video.
I hope it can be useful.

@Nitsug72 Nitsug72 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2022
@Nitsug72
Copy link
Author

Sorry I don't know what I just did @_@

@Nitsug72 Nitsug72 reopened this Nov 21, 2022
@Nitsug72
Copy link
Author

Nitsug72 commented Nov 30, 2022

I think I found the culprit. These are the headphones I'm using (and have been since I got a BT adapter for my pc)

culprit

This device has a weird motion sensor that pauses/resumes whatever you're playing when you take it off (and is annoying as hell because it doesn't work properly)
I'm not a very technical person, but my guess is that the game is recognizing the headphones as an input device. I managed to consistently trigger this bug by taking them off .-.

@Nitsug72
Copy link
Author

Nitsug72 commented Nov 30, 2022

Update: I just tested the game with no controller connected (just keyboard/mouse). It still happens.
It's the headphones. Mystery solved.

Again, RE4 is the only game with this problem.

@Nitsug72
Copy link
Author

I have just found out after three years that there is a way to disable this godforsaken feature. At last, I am allowed to play.

@Nitsug72
Copy link
Author

Tested the game again with the auto-pause/play thing disabled and the game worked just fine.

Guess what? Pressing the little play/pause button on the headphones triggers this bug as well.

I assume it could happen with almost any audio device. I'm so glad that I finally figured this out. Thanks a lot for your time and effort, I hope this thread becomes useful for other people going through the same problem.

@Nitsug72 Nitsug72 closed this as completed Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants