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

Light gun issues #6709

Open
1 of 21 tasks
Tovarichtch opened this issue Jul 22, 2022 · 26 comments
Open
1 of 21 tasks

Light gun issues #6709

Tovarichtch opened this issue Jul 22, 2022 · 26 comments
Assignees
Labels

Comments

@Tovarichtch
Copy link
Collaborator

Tovarichtch commented Jul 22, 2022

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

  • Ignore one leds group on the IR sensor or make it able to track both of them for Wiimotes.
  • Standalone emulators (DuckStation, Model2, Flycast) detect any light gun as input 1.
  • Off-screen values on the wiimote seem wrong.
  • GunCon 2 white flash shader for libretro cores is not enabled by default and can't be saved after enabling it in RA menu. Maybe find an alternative with MangoHUD? -> [v36] Retroarch custom shaders not saving setting with Gun connected.  #8070
  • Retro Shooter light guns are taking a lot of bandwidth without their USB hub.
  • GunCon3 calibration script isn't working with more than one light gun.
  • GunCon3 calibration is not working properly (ES buttons are triggered even when calibrating).
  • ES white border for Sinden lightgun is inconsistent with emulators/cores (either thicker or thinner than in ES)
  • v41 and Sinden : X axis is forced to 4/3 instead of fullscreen (e.g.: 16/9)

System / core issues (including rom / gun specificity)

3DO:

  • (Input) Two player mode is unsupported for now. More info here.

Daphne:

MAME family:

  • (Light gun) In MAME standalone, games with other than true 4:3 video ratio are not tracking the aim correctly (ex.: Police Trainer)

Master System:

  • (Rom) Laser Ghost needs the gamepad (south button) on port 2 to start. It won't work if you start with light gun trigger.

Model2 (and Wine in general):

  • Since v39, Sinden lightgun camera stops after exiting a game in Wine. Forcing an instance in the background and playing in a second stops this behavior for some reason.
  • v41 : X axis is forced to 4/3 instead of fullscreen (e.g.: 16/9)

Model3:

  • GunCon3 accuracy ratio is 4:3 instead of 16:9 (stretched x axis)

Naomi, Atomiswave, Dreamcast:

Naomi 2x6:

  • Everything.

PSX:

  • (Rom) The following games must have gamepad in port 1 and Guncon in port 2 :
  1. Die Hard Trilogy 2
  2. Policenauts.

PS3:

Saturn:

  • (Rom) Policenauts requires the light gun to be on port 2. Gamepad on port 1.

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

  • (Rom) M.A.C.S. Multipurpose Arcade Combat Simulator : light gun M.A.C.S. Rifle on port 2 (Snes9x only).

Wii:

  • Dead Space : Extraction missing the MELEE attack (which is shake on the nunchuk).

Wine:

  • Everything.
@Tovarichtch Tovarichtch changed the title [v35-dev] Lightgun support Lightgun issues Aug 15, 2022
@Tovarichtch
Copy link
Collaborator Author

Tovarichtch commented Aug 27, 2022

Issues that were fixed :

  • Gungames.xml is incomplete.
  • Having too many events at once (keyboard, RGBs, touchpad, mouse, etc.) crash RA cores.
  • (Sinden) Thining the white frame or give the choice to a thinner one.
  • Some reports of the Sinden Lightgun frame not showing on 4:3 screen.
  • (All) Possibility to use the light gun as a controller on ES.
  • Have one controller for all light guns connected instead of one per light gun (in some emulators).
  • (Possible bug for RPI4) Mouse indexes are not loading up on launch on cores. Only player 1.
  • (Sinden) Add settings in ES for custom exposure, contrast and brightness.
  • Foot pedal. Suggestion: KEY_C for player 1; KEY_V for player 2. (some standalone emulators missing)

C64:

  • (Rom) The following roms require light gun controller value as Stack Light Rifle :
  1. Cosmic Commando
  2. Grouse Shoot (aka Glorious 12th)
  3. High Noon Shootout
  4. Indian Attack
  5. Shooting Gallery
  6. Starbase Defence

Daphne:

  • (Light gun) Gun sight is inaccurate.
  • (ES) Add adv. opt. in ES to enable / disable the Use Light Guns.
  • (ES) Completing gun games list (some community HD versions are missing).
  • (ES) Add -set_overlay full option for HD assets with Singe2 gun games (v2.10.1). (-> Added Sinden border color options to daphne (singe) gun games #7763)
  • Change Sinden border thickness : from 1 2 3 to 3 6 9.
  • Disable MangoHUD for this emulator.
  • (ES) Add various colors for the border ((w)hite, (r)ed, (g)reen, (b)lue).
  • All non-Sinden not tracking correctly.
  • Rpi4/rpi5: no movement tracking, dpad controls the crosshair

FBNeo:

  • (Rom) Add Must Shoot TV in gungames.xml list.
  • (Input) AimTrak and Sinden have secondary trigger problem.
  • (Rom) Mobile Suite Gundam Final Shooting : the dipswitch value of Light gun in Retroarch must be ON.

MAME Family:

  • (Input) lr-MAME has no buttons mapped. Only first light gun detected. (bump to 0.246 will fix this)
  • (Light gun) Sinden is not working on RA cores. Only in MAME (standalone).
  • (Light gun) Nine roms are using offscreen to reload. In MAME, AimTrak triggers mouse 2. Wiimote crosshair gets stuck before touching the edge of the screen. Sinden is OK. Workaround made -> MAME Offscreen Reload #6704
  • (Light gun) In MAME (standalone), the X axis has a problem when playing on a resolution ratio beyond 4/3 without stretching to full screen. Y axis is fine.
  • (Rom) Add Must Shoot TV in gungames.xml.
  • (Input) lr-mame2003-plus uses wrong X-Y Device in Input of Core options. Fix: change mouse to lightgun.
  • (Input) lr-MAME is not loading light gun setup (buttons & trigger), only its axis.
  • (Bug? Input) lr-MAME & lr-mame2003-plus take anything as light gun since v36. Workaround: connect only guns and one controller or keyboard, nothing else.
  • Second player Sinden Lightgun is not loading the gun config on adstick games (ex.: Revolution X, Jurassic Park)
  • (Input) Player 1 Sinden Lightgun has START for player 1 and 2. Must be mapped separately per gun.
  • (ES) Add Use Crosshair option (done for all except MAME standalone).

Model2:

  • (Input) The select (coins) and start are mapped on the controller. Must preferably be on the light gun directly.
  • (Light gun) White frame for Sinden vanishes after the first launch. Bezels and LUA scripts given by Sinden wiki fix this problem as temporary workaround.
  • (ES) Add Use Crosshair option (currently default at ON, no way to turn it OFF in ES).

Model3:

  • (Input) The select (coins) and start are mapped on the controller. Must preferably be on the light gun directly.
  • (Input) Star Wars Trilogy broken light gun support in v37.
  • (Input) Offscreen reload not working in Lost World : Jurassic Park. (workaround: enable offscreen aiming automatic reload in template)
  • This f*cking annoying bug affecting USB devices
  • No white border on rpi4/rpi5 for Sindens (rpi4 is too weak)

Naomi, Atomiswave, Dreamcast:

  • (Input) On lr-Flycast, secondary trigger is incorrectly or not mapped.
  • (Input) Sinden is not loading the Light Gun configuration in Dreamcast ROMs (lr-Flycast). (ex.: HotD2).
  • (Input) Flycast (standalone) select (coins) is mapped on the controller. Must preferably be on the light gun directly.
  • Crosshairs are not showing at all.

NES:

  • (Rom) Space Shadow : playable only with the Hyper Shot light gun on port 5.

PSX:

  • (Light gun) Sinden has a secondary button triggering problem for games like Time Crisis and Gunfighter in lr-SwanStation and lr-pcsxreARMed. Buttons A and B can't be pressed to get out of cover and shoot.
  • A and B are not mapped on GUN4IR in PCSX-ReARMed.
  • (Light gun) BACK/O and START are unmapped. Required for some games.
  • PCSX-reARMed : A and B and not working, only the trigger (BETA V37)
  • (Light gun) lr-SwanStation and lr-Mednafen have no sight / aim. Triggers are working.
  • (Input) Must change controller type to Namco Guncon on port 1 (and port 2 for multiplayer) for DuckStation.
  • (Input) Primary and secondary triggers are working on DuckStation. Buttons A and B are not, even if mapped by default on light gun. They are required to start the game. Workaround : map them on controller.
  • Add adv. opt. in ES to enable / disable the crosshair (on by default) for DuckStation.
  • GUN4IR is not mapped at all in DuckStation

PS3:

  • (Input) Remap all guns, mainly for O, X, START, SELECT, T (fire), MOVE (reload). Use combination for (T+SELECT) and (MOVE+SELECT). Current mapping only works in HotD3.
  • Add adv. opt. in ES to enable / disable the crosshair (off by default).

SEGA Saturn:

  • (Input) Virtua Gun must be in port 1. Port 2 for multiplayer.

SNES:

  • (Rom) Lethal Enforcers : light gun Justifiers must be in port 2. For multiplayer, Justifier (2P) in port 3. Multiplayer is only supported with Snes9x core for now.
  • (Rom) Operation Thunderbolt and T2 - The Arcade Game only : In Options - Light gun, the option Super Scope Reverse Trigger Buttons should be on.
  • (Light gun/Map) AimTrak triggers mouse 2 when shooting offscreen. Therefore reloading and grenades are impossibles.

Wii:

  • (Input) Dpad (required for several games).
  • (Input) Use relative axis coordinates instead of absolutes (Dolphin thinks the game resolution is ES resolution; if forcing video mode to game ratio, it's all good).
  • (Input) Enable and map nunchuck buttons emulation.

@Tovarichtch
Copy link
Collaborator Author

Tovarichtch commented Aug 29, 2022

Tracking cores with feature request for light gun support :

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

Atari:
Atari 7800
Atari 800

Commodore:
Amiga

DosBox:
DosBox-Pure

Microsoft:
Xbox
MSX (openMSX) - (blueMSX)

Sony:
PlayStation 2

Sinclair:
ZX Spectrum

@Tovarichtch Tovarichtch changed the title Lightgun issues Light gun issues Sep 13, 2022
@Hew-ux
Copy link

Hew-ux commented Oct 10, 2022

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.

@nadenislamarre
Copy link
Collaborator

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
Copy link

Hew-ux commented Oct 10, 2022

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
Copy link
Collaborator

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

@Vissari8
Copy link

Vissari8 commented Nov 4, 2022

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
Copy link
Collaborator Author

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
Copy link

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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

I'm fixing a lot of issues, slowly.

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

@zack06007
Copy link

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
Copy link

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
Copy link
Collaborator Author

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
Copy link

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
Copy link
Collaborator

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

@Sush1Jedi
Copy link

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

@Tovarichtch
Copy link
Collaborator Author

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
Copy link

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

@Tovarichtch
Copy link
Collaborator Author

@Sush1Jedi
Copy link

Awesome, thanks.

@valessert
Copy link

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
Copy link
Collaborator Author

Tovarichtch commented May 4, 2024

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
Copy link

rishooty commented Jul 25, 2024

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?

@rsn8887
Copy link

rsn8887 commented Sep 7, 2024

I found an issue with Guncon 3 using Batocera 41-dev (and 40) on RPi5:

After initializing the calibration in ES by holding C2 on the gun, when I shoot at the calibration targets, the ES menu also advances. On second shot, it therefore starts a game. A workaround is to press A2 after every shot to go back one step in the ES menu.

I had some other issues on v40 with ES crashing after the last calibration shot, but those disappeared when I updated to v41-dev.

@rsn8887
Copy link

rsn8887 commented Sep 7, 2024

More GunCon 3 issues, tested with v41-dev on Pi5:

FBNeo:

  • In Space Gun, pedal is mapped to long press of trigger instead of a separate button.

Mame:

  • In libretro-mame the Guncon 3 trigger button doesn't work. The cross hair moves correctly (can only disable cross hair via Mame Tab menu), but I cannot shoot.
  • in libretro-mame0139, GunCon 3 works perfectly at first, but looses calibration over time, it drifts away from good calibration.
  • In libretro-mame078plus, GunCon 3 doesn't work at all, no cross hair, no motion, no shooting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests