Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
252 stars 55 forks source link

in-game disconnect issue #55

Closed skullHUNter29 closed 2 years ago

skullHUNter29 commented 2 years ago

Hello,

serialfeeder shows changes, built in channel monitor works fine, changes appear on vjoy monitor too, the in game configuration works too, and the analog or digital signals appear to do their work, but whenever i push any button or move any variable resistor, it (forza horizon 5) says, that i need to reconnect my device, after i press enter, variable resistors work if i change the value really really slow, but any not slow change will result in in-game disconnection.

Thanks for the reply in advance!

Cleric-K commented 2 years ago

That's strange. Do you have similar problems in other games?

skullHUNter29 commented 2 years ago

I only tried one very old racing game, called richard burns rally (2004), which somehow has a build in solution for this, beign that it uses the last value no matter what, but still giving a hint that it doesnt work as it supposed to(gives warning label to check options, but doesnt interrupt the game), i didnt check other games yet, but if that helps, i will try some.

Cleric-K commented 2 years ago

Yes, please try something else too. If we see problem everywhere, then it should be on a more system-wide level. What is your hardware setup? Arduino?

skullHUNter29 commented 2 years ago

yes, arduino uno copy, with the 16u2 chip

Cleric-K commented 2 years ago

How things look when you go to Set up USB Game Controllers in Windows? Do the axes move fine there?

skullHUNter29 commented 2 years ago

image yes, it works fine, i set some parameters up for 1-4 axis and used button one

Cleric-K commented 2 years ago

I don't really know what that could be. Please try some other games first.

skullHUNter29 commented 2 years ago

okay, i will try to get my hands on some other games, probably tomorrow, i will keep you updated when i installed and tested another

Cleric-K commented 2 years ago

Meanwhile you may try to emulate with xBox controller instead of vJoy, just for a test.

https://github.com/Cleric-K/vJoySerialFeeder/blob/master/Docs/vXbox.md

skullHUNter29 commented 2 years ago

okay, i tried beamng and it works flawless, so i started to look for incompatibily issues with forza 5, turns out forza tends to have a problem with recognizing even some official controllers, so they made a solution, called forza emuwheel, which stabilizes the connection between the controller and the game, now i have another problem, my vjoy doesnt really want to communicate with this emuwheel config, can you please look it up? You dont need to download the game, just this feeder application, here is the article : https://www.pcgamer.com/forza-horizon-5-wheel-disconnect-fix-force-feedback-working/?fbclid=IwAR2Na20-xh5C5S9rx7QwtQ1ejpUlKXI_YdX1gzkUxTWSm8ymSZTiEUb2q2M

Cleric-K commented 2 years ago

I don't think this can work because the Emuwheel itself is a vjoy feeder (same as vjoyserialfeeder). Thus they would compete to feed to the same vJoy device. Did you try the xbox emulation?

Hopefully the hotfix that they'll soon release will fix it anyway.

skullHUNter29 commented 2 years ago

yea, i just did now, i thought i failed earlier because i had to do things from 3 different git pages, if i understood correctly that is, but i tried the old game, it works fine, with forza i need to do some fine tuning because it reads my analog inputs as controllings, so it jumps around in the setting, i will let you know when i figured it out, but it seems to be working so far, so thank you

skullHUNter29 commented 2 years ago

okay, so the extreme of axis work as a stepping mechanism on the menu, but thats not an in game issue, the other thing is that one axis works as two sliders, but thats just a configuration issue, i can solve the problem inside the feeder configuration, so all i have only one issue left, which is being the H shifter setup, because the controller in-game config doesnt have the option to set buttons as specific gears, can you suggest something to solve this problem?

Cleric-K commented 2 years ago

Well, it can be tried with scripting. It can be made such that shifting to a lower gear simulates one button, while rising a gear - another. The problem though is that this will easily go out of sync at some point if the game changes the gear (after a crash or something) while your stick is now at another position. The second problem is that it won't work properly if you shift from say, fourth directly to first. The scripting can't currently simulate the needed three down-gear button presses.

At this point I don't see a simple solution to this.

skullHUNter29 commented 2 years ago

alright, i think i can live with this final outcome, the major problems are all solved, so thanks for the help, i hope you have a good day, you did a wonderful work with this project :)

Cleric-K commented 2 years ago

Great, I'm glad you sorted it out :)