怒之铁拳4

怒之铁拳4

查看统计:
kleph 2021 年 12 月 11 日 下午 3:06
[CLOSED] [LINUX][INPUT] HRAPv3 controller detected twice at startup -> Not related with the game but probably in steam-input
Hi,

I have an issue with the "recent" linux build (not sure which FNA update, see below for more details) and my HRAPv3 controller.
It's a hori usb arcade controller originally for ps3, but detected as "generic" in steam, not "PlayStation"controller.

The controller gets detected twice when it's plugged when the games starts.
It takes the place of two controllers. In "input configuration" there's two controllers, that moves perfectly in sync.

In the menu, two inputs are registered so the cursor move twice, hence some entries are not selectables with the controller. The keyboard is still fine though, but in character selection it looks as if there was the players.

If I unplug and then plug back the controller while the game is running, both controllers disappears and only one is brought back.
It's a good workaround :)


I can make a short twitch video, if it's needed. Feel free to ask if my description is not clear enough.



Other infos:

I tested with my other controller, an Xbox 360 controller and the bug does not occur (it uses xpad driver and is recognized as "Xobx Controller" in steam).
I tested my arcade controller with other games (like Towerfall scension, I think it also uses FNA) and this issue does not occur.

I am not using the "big picture" mode.

I am not sure that I've played since the FNA update of september the 28th, so I can't tell if the reggression appears with the december 6th's update or the september 28th.
Given the time I spent playing survival mode with this controller, I am quite confident that this bug was not present during the two weeks after the DLC release ;-)


Regards,

(And while I'm here, thanks for the best beat'em up ever ;) I really love the game!)



kernel logs:
usb 3-1: Product: REAL ARCADE Pro.V3
usb 3-1: Manufacturer: HORI CO.,LTD.
input: HORI CO.,LTD. REAL ARCADE Pro.V3 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:0F0D:0022.000F/input/input80

kernel is : 5.14.15-gentoo
It have a few gentoo patches but it's mostly the mainline vanilla kernel tree.
Patches are just for openrc(gentoo init system) integration, if I remerber well.

If you need more info / logs / video, I'll be happy to help diagnose the issue!
最后由 kleph 编辑于; 2022 年 1 月 23 日 下午 6:56
< >
正在显示第 1 - 8 条,共 8 条留言
flibitijibibo  [开发者] 2021 年 12 月 13 日 上午 9:13 
Can you file this as a Steam Input issue? When duplicate devices are shown that's an indicator that their virtualized input isn't filtering devices properly. Their tracker is here:

https://psteamcommunity.yuanyoumao.com/app/353370/discussions/1/
kleph 2021 年 12 月 15 日 下午 6:25 
oh, sure !
thanks for the repy
kleph 2021 年 12 月 17 日 上午 2:57 
While collecting logs for the issue at steam input (and trying to find another game with the same behavior), I just remembered that the game also has logs! May be it's interesting?


When the game starts, I see the controller beeing detected twice, but slightly differently :
[FNA info] Controller 0: HORI CO. LTD. REAL ARCADE Pro.V3, GUID: 0d0f2200, Mapping: 030000000d0f00002200000011010000,HORI CO. LTD. REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux

[FNA info] Controller 1: HORI REAL ARCADE Pro.V3, GUID: 0d0f2200, Mapping:
000000000d0f00002200000000100000,HORI REAL ARCADE Pro.V3,a:b0,b:b1,x:b3,y:b4,back:b10,guide:b12,start:b11,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,lefttrigger:a2,righttrigger:a3,platform:Linux

When I unplug and the plug it back while the game is running, only the first one is detected :
[FNA info] Controller 0: HORI CO. LTD. REAL ARCADE Pro.V3, GUID: 0d0f2200, Mapping: 030000000d0f00002200000011010000,HORI CO. LTD. REAL ARCADE Pro.V3,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,lefttrigger:b6,rightshoulder:b5,righttrigger:b7,start:b9,x:b0,y:b3,platform:Linux


I also reproduced with an HORI CO. LTD. FIGHTING STICK 3, GUID: 0d0f1000
flibitijibibo  [开发者] 2021 年 12 月 17 日 上午 9:44 
I've been told that SDL 2.0.18 has a hotplugging issue in it - a fix is supposed to be released in January but I pulled it in to make a test:

https://flibitijibibo.com/sdlhotplug.tar.bz2

Drop this on top of the copy I have in ./lib64/ and try again, if it fixes the issue I'll cherry pick the fix and push it in advance.
kleph 2021 年 12 月 22 日 下午 2:50 
Thanks for the upgraded SDL version! I tested it, unfortunatly the bug still occurs.

And again, digging more, I found more logs, steam logs, (I can't stand I did not look / see those before...), steam client is also detecting the controller twice:

Loaded SDL version 2.0.19-6963453
Local Device Found
type: 0f0d 0022
path: sdl://0
serial_number: - 0
Manufacturer:
Product: HORI CO. LTD. REAL ARCADE Pro.V3
Release: 111
Interface: -1

!! Steam controller device opened for index 0.
Steam Controller reserving XInput slot 0
Local Device Found
type: 0f0d 0022
path: sdl://1
serial_number: - 1
Manufacturer:
Product: HORI REAL ARCADE Pro.V3
Release: 1000
Interface: -1

!! Steam controller device opened for index 1.
Steam Controller reserving XInput slot 1
BYieldingQueryAccountsRegisteredToController
Controller 0 mapping uses xinput : false
Controller 1 mapping uses xinput : false
BYieldingQueryAccountsRegisteredToController
Opted-in Controller Mask for AppId 0: 0
Controller has an Invalid or missing unit serial number, setting to 'f0d-22-54e9fbdg'
Controller has an Invalid or missing unit serial number, setting to 'f0d-22-54e9fbd'
local (potentially out of sync) copy of roaming config loaded - 3980 bytes.
BYieldingQueryAccountsRegisteredToController
BYieldingQueryAccountsRegisteredToController
Set Account Config Sets 0 0 0

It seems steam also use a upgraded version.

I'll post those logs in the steam issue right away.

(I did not give the link here: https://psteamcommunity.yuanyoumao.com/app/353370/discussions/1/4739473745771589963/ )

I am confused if the issue is in FNA, steam-input or SDL

I'll try to reproduce the issue with SDL 2.0.19 and a joystick detection program (like sdl-joytest or something similar).
Gentoo is still at version 2.0.16 in ~amd64, so I've built 2.0.19 and having linking path issues to use that lib and not the system one ;)
flibitijibibo  [开发者] 2021 年 12 月 22 日 下午 9:43 
If it's affecting all three it might actually be further down the stack than Steam or any game... maybe a breakage in the driver? Steam Input uses hidapi directly and FNA just does what SDL says, and SDL uses either hidapi or the kernel's API. I would definitely file this with Steam Input if it hasn't been already, the overlap between them and SDL is really high so that'll be the best place to report, if not SDL's tracker directly.
kleph 2022 年 1 月 23 日 下午 6:55 
Hi,
Sorry, I was AFK for a bit of time.

SInce then, libSDL 2.20 came out and gentoo is using it, so I could run jstest linked against that version and confirm it detects the joystick only once.

I think you were right from the start, the bug seems to be in steam-input, now the settings panel show two contollers, as the logs say, and the behavior is the same, unplung and then plug, and it show up only once as it should.

Thanks for your help, I'm closing the thread here, and try to investigate more on the steam-input one.


P.S: I don't have this bug in windjammers2, by the way ;-)
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50