PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.83k stars 1.63k forks source link

[BUG]: FFB not present when launched from CLI #8008

Open PiperCalls opened 1 year ago

PiperCalls commented 1 year ago

Describe the Bug

FFB is not present when launched via CLI. Verified FFB is present/correct when games are launched via GUI. Same games launched via CLI with nothing but the pcsx2 exe and the game iso have no FFB. Tested with multiple games/iso.

Reproduction Steps

Picked 3 test games/iso. Verified FFB is present when launched via GUI for all 3. Launched all 3 via CLI with nothing but pcsx2 exe and game/iso and no FFB is present in any of the 3.

Expected Behavior

FFB is present/correct via CLI since using a frontend (Launchbox in my case) just launches a CLI command.

PCSX2 Revision

1.7.3982

Operating System

Windows 10 (64bit)

If Linux - Specify Distro

No response

PiperCalls commented 1 year ago

I did some further testing with this issue. I wanted to rule out the possibility that my frontend (Launchbox) was creating the issue. I picked 3 popular racing games (Burnout, GT4 and NFS Hot Pursuit 2) since all have wheel & ffb support in-game. I tested all 3 launching from the PCSX2 GUI, via Launchbox and via straight CLI. In all 3 cases, all games launched via the GUI have FFB (very good btw!!) support in game. When all were launched via Launchbox (which just does a CLI launch) or via straight CLI, no FFB is present in any of the 3 games. My normal CLI launch parameters are -nogui - fullscreen. I also wanted to test if the parameters were causing the issue when launched via CLI. All 3 games, with no launch parameters present, do not have FFB present when launched via CLI.

So it seems that FFB is not initiated/hooked when any game is launched via CLI. I tested on the very latest version as of this morning (1.7.4593) and I'm on Win10 (fully updated), Nvidia rtx3060 (drivers fully updated) if that matters. Would be happy to do any further testing if needed.

Mrlinkwii commented 11 months ago

is this still an issue on latest nightly ?

cdf83 commented 11 months ago

Yes - just tested v1.7.5243 (29-Nov-2023)

No force feedback present when run via LaunchBox.

Tartifless commented 9 months ago

Hello, same behaviour when running from a simple .bat file (i do not use launchbox): 1) Configure the wheel in pcsx2 interface, tested and FFb ==> ok 2) Quitting pcsx2 and running GT4 via bat file ==> no FFb

jadflat commented 9 months ago

Experiencing the same here. As a workaround I wrote a script to launch a game from launchbox with the pcsx2 GUI. A separate auto hot key script is needed for each game. This script will launch the 10th title on the pcsx2 GUI. You'll need to change the third line to match the location of pcsx2 on your system. Once you're happy with it, lower the "setkeydelay" value from 200 (0.2 seconds) to somewhere between 20 and 50 to speed it up. Line 7 of the script (send, {Down 9} ; position on pcsx2 list minus 1) controls how many positions to move down the menu from the very top.

singleinstance, force

setkeydelay, 200 run, C:\Emulators\pcsx2-v1.7.5267-windows-x64-Qt_Driving Force\pcsx2-qt.exe sleep, 1000 click, 500, 500 send, {PgUp 2} send, {Down 9} ; position on pcsx2 list minus 1 send, {Enter 2}

PiperCalls commented 4 months ago

FYI...tested on latest stable (2.0.2) and same issue. All 3 games when launched via gui have FFB but all 3 when launched via cli have no ffb.

PiperCalls commented 4 months ago

Experiencing the same here. As a workaround I wrote a script to launch a game from launchbox with the pcsx2 GUI. A separate auto hot key script is needed for each game. This script will launch the 10th title on the pcsx2 GUI. You'll need to change the third line to match the location of pcsx2 on your system. Once you're happy with it, lower the "setkeydelay" value from 200 (0.2 seconds) to somewhere between 20 and 50 to speed it up. Line 7 of the script (send, {Down 9} ; position on pcsx2 list minus 1) controls how many positions to move down the menu from the very top.

singleinstance, force setkeydelay, 200 run, C:\Emulators\pcsx2-v1.7.5267-windows-x64-Qt_Driving Force\pcsx2-qt.exe sleep, 1000 click, 500, 500 send, {PgUp 2} send, {Down 9} ; position on pcsx2 list minus 1 send, {Enter 2}

this is a decent workaround for LB but if running from BB/fullscreen interface I'd imagine it's ugly

PiperCalls commented 4 months ago

the last version that has ffb from cli launch is 1.7.3410 but it doesn't have individual game controls / stenzek's interface

Mrlinkwii commented 3 weeks ago

is this still an issue ?

Tartifless commented 3 weeks ago

Yes