batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.85k stars 475 forks source link

Light gun issues #6709

Open Tovarichtch opened 2 years ago

Tovarichtch commented 2 years ago

This post will be edited as things progress. Some data are missing.

What need to be fixed for an out of the box / easy experience with light guns : (🔸is in priority)

General issues

System / core issues (including rom / gun specificity)

3DO:

Daphne:

MAME family:

Master System:

Model2 (and Wine in general):

Model3:

Naomi, Atomiswave, Dreamcast:

Naomi 2x6:

PSX:

PS3:

Saturn:

SNES: A reminder about SNES Super Scope buttons. 4 buttons in total : fire, pause, turbo, cursor.

Wii:

Wine:

Tovarichtch commented 1 year ago

Issues that were fixed :

C64:

Daphne:

FBNeo:

MAME Family:

Model2:

Model3:

Naomi, Atomiswave, Dreamcast:

NES:

PSX:

PS3:

SEGA Saturn:

SNES:

Wii:

Tovarichtch commented 1 year ago

Tracking cores with feature request for light gun support :

Amstrad: GX 4000 / CPC - (Libretro-Cap32) :white_check_mark:

Atari: Atari 7800 Atari 800

Commodore: Amiga :white_check_mark:

DosBox: DosBox-Pure

Microsoft: Xbox MSX (openMSX) - (blueMSX)

Sony: PlayStation 2 :white_check_mark:

Sinclair: ZX Spectrum

Hew-ux commented 1 year ago

These issues are in relation to the Wiimote connected in its light gun mode specifically:

For light guns in general:

nadenislamarre commented 1 year ago

These issues are in relation to the Wiimote connected in its light gun mode specifically:

* [ ]  Controller cannot exit game if Nunchuk is connected (presumably, it takes proirity over the first controller).

* [ ]  In fact, the Nunchuk does not function as intended anyway. Ignoring the fact it appears as a separate controller, it is impossible to map its analog stick. There are sight guns with analog sticks so this should be fine.

* [ ]  Connected Bluetooth controller disconnects after a while of inactivity (makes sense if you're using the light gun to play); problem is even when it reconnects it cannot be used again (impossible to exit the game if you've played it for too long).

* [ ]  Wiimote's buttons except for the trigger do not respond. This seems to be an intentional choice. Would be convenient to be able to navigate the ES menu in the meantime due to the following.

For light guns in general:

* [ ]  Cannot navigate the menu with the light gun. This is more a request than something that's genuinely broken, as it seems to just not be implemented yet.

these are feature requests. not issues.

Hew-ux commented 1 year ago

I would definitely consider "Controller cannot exit game if Nunchuk is connected" an issue. Even in the situation where we say "Nunchuk is not supported", the issue is irrelevant of that. It actively prevents Batocera from functioning. In this case, we code in something to have Batocera ignore the Nunchuk, so it cannot interfere with standard operation.

Bluetooth controllers "when it reconnects it cannot be used again" is an issue as it too, once again, prevents the operation of Batocera.

Please, these are not things that need explaining or elaboration on why they are issues.

The others are fine as requests though. Do you want me to remove those and keep it strictly to the issues?

nadenislamarre commented 1 year ago

no, it was just a precision. not for removal.

Vissari8 commented 1 year ago

For the Model 3, Star Wars Trilogy Arcade, left/right movement is mapped to the dpad on the Sinden light gun. Calibration doesn't seem to fix it, issue does not persist in other Model 3 games

Tovarichtch commented 1 year ago

For the Model 3, Star Wars Trilogy Arcade, left/right movement is mapped to the dpad on the Sinden light gun. Calibration doesn't seem to fix it, issue does not persist in other Model 3 games

In v35 it's not listed as a gun game, therefore the Sinden won't work (no white frame). I've tried with forcing the use_guns and it works but controls are inversed. v36 it should be fixed (I've tested my precalibration and the fixed gun games list for arcades).

lazzer2000 commented 1 year ago

I connected a Wiimote for use as a light gun. It worked fine. But in dolphin my nunchuck seemed to stop responding after a few seconds. I think I tried setting the Wiigun into gamepad mode to test.

Now the Wii mote shows up as a light gun, but won't respond in mame (Area 51) and I don't see the menu option to select gun mode or gamepad mode.

I set use guns on duck hunt and that works.

I am on the latest beta as of last night.

Tovarichtch commented 1 year ago

For Dolphin, as written in the wiki, always sync inside Dolphin, after launching the game. If you do this before, it is emulating the wiimote instead of using it as a real wiimote. Otherwise, retry by removing your wiimote from the blutooth list (forget the device) and unplug the Nunchuk.

Tovarichtch commented 4 months ago

I'm fixing a lot of issues, slowly.

If people find any light gun issues in Batocera, please report in this thread.

zack06007 commented 4 months ago

Slt comme vu sur le groupe batocera, la gamelist des jeux de lightgun est incomplète.

Les jeux Windows et daphné ne peuvent plus être ajouté à la liste des jeux ''aux pistolet'' même en manuel. Merci pour votre travail gigantesque ;)

goldenegg commented 4 months ago

Using a Sinden gun and it doesn't seem to register with lr-mame, but works with the other MAME cores. This is using v39 on a PC. Using the common remap file.

Tovarichtch commented 4 months ago

Using a Sinden gun and it doesn't seem to register with lr-mame, but works with the other MAME cores. This is using v39 on a PC. Using the common remap file.

Already fixed in v40-dev

Sush1Jedi commented 3 months ago

Hi, I'm using 2 Guncon3 lightguns with Batocera v39, and I'm having a lot of trouble getting the second lightgun (with the pink crosshair) to calibrate properly using Batocera's global calibration. The first gun (with the blue crosshair) calibrates perfectly, but the second after calibration is unable to aim towards the edges of the tv, whereas the first gun can, very accurately. Only once I managed to calibrate them both perfectly, by calibrating them both together at the same time. But I have not been able to replicate this since that one time. I've tried multiple things such as swapping the lightgun usb ports, using other usb ports, for example one on the back of the motherboard io shield, and the other gun on the front usb hub, etc... But nothing seems to fix the second lightguns calibration. Any ideas for what I should try next? Or am I missing something? Any help \ advice will be greatly appreciated. PS this issue is also present on v40.

Thanks

nadenislamarre commented 3 months ago

@Sush1Jedi you should come on the discord. we can try to help you (ask susan34)

Sush1Jedi commented 3 months ago

Ok I'll do that. I have to join Discord first. Is there a particular server I should join?

Tovarichtch commented 3 months ago

Ok I'll do that. I have to join Discord first. Is there a particular server I should join?

lightguns

Someone else has the same issue there too. Both of your feedbacks will help us debug this

Sush1Jedi commented 3 months ago

Ok I'm more than happy to help, can you provide the name of the server? Is it Sinden Lightgun?

Tovarichtch commented 3 months ago

https://discord.com/invite/UFr6QVNd

Sush1Jedi commented 3 months ago

Awesome, thanks.

valessert commented 2 months ago

Hello all,

I have a problem with model 2 lightgun games for off-screen shooting, which is necessary for reloading in games like Virtua Cop 1/2. It seems that when aiming off-screen, the cursor gets stuck on the edge of the screen, registering the shot inside the screen instead of outside, making reloading impossible.

Has anyone been able to fix this problem with specific settings?

I am using Guncon 3 with Batocera V39.

Tovarichtch commented 2 months ago

Hello all,

I have a problem with model 2 lightgun games for off-screen shooting, which is necessary for reloading in games like Virtua Cop 1/2. It seems that when aiming off-screen, the cursor gets stuck on the edge of the screen, registering the shot inside the screen instead of outside, making reloading impossible.

Has anyone been able to fix this problem with specific settings?

I am using Guncon 3 with Batocera V39.

Like I wrote on discord, you can't reload off screen in model2emu. There's a workaround for Windows users that is not compatible under Wine, in Linux. model2emu is a dead, old, closed-source emulator with extreme limitations.

rishooty commented 9 hours ago

Hello all, I have a problem with model 2 lightgun games for off-screen shooting, which is necessary for reloading in games like Virtua Cop 1/2. It seems that when aiming off-screen, the cursor gets stuck on the edge of the screen, registering the shot inside the screen instead of outside, making reloading impossible. Has anyone been able to fix this problem with specific settings? I am using Guncon 3 with Batocera V39.

Like I wrote on discord, you can't reload off screen in model2emu. There's a workaround for Windows users that is not compatible under Wine, in Linux. model2emu is a dead, old, closed-source emulator with extreme limitations.

I remember suggesting in the discord in the past to use gamescope.

But developing for rocknix again, I just realized that sway is extremely flexible:

  1. Start a model 2 game
  2. Run swaymsg -t get_tree | jq '.. | select(.focused?) | .app_id'
  3. In sway's config: for_window [app_id="whatever_id_you_got_above"] floating enable, resize set ${FBWIDTH} ${FBHEIGHT}, move position center, border none

Maybe try a centered sway window that's a little smaller than the current framebuffer? like -2% width and -2% height?