Lightgun support added to PCSX-Rearmed
-
I haven't used my dolphinbar in a while so maybe I'm doing something wrong. I'm trying elemental gearbolt on my pi4. I can't aim at all. Most wiimote buttons work in normal pad mode but all buttons stop responding when changing pad to guncon. Wiimote aiming works with fceumm and duck hunt. I tried mode1,2, and 3 on the dolphinbar, though not sure which is preferred.
Update: Well, buttons work on my pi3 with stretch. Though, it looks like this "guncon" mode removes the crosshair in the game. I guess the emulator needs a real mouse mode so the wiimote can be used properly.
-
@MrLightgun ok so I feel like I am almost there. When I have a game pad plugged in with the dolphin bar /wiimote also, the configuration screen on time crisis does not appear but gun shots register and I can see the bullet mark appear on the select game screen with various positions as I move the gun and shoot it which is great. Problem is the shot marks only appear in the top left quadrant of the screen so I cannot “reach” the place I would need to shoot to select “arcade.” Saving the configuration settings, exiting, removing the game pad and keeping the dolphin bar /wiimote only brings up the guncon config screen when I restart but because there is no cursor and the dolphin bar is not “line of sight” accurate I can hear shots when I pull the trigger but can’t get past the configuration screen where I am supposed to shoot the target in the middle of the screen.
Seems best bet is to go with option 1 because that same “left quadrant only” with the dolphin bar appears in another emulator previously (maybe it was nes?) and I think some setting in retroarch made that work; I forget which though. Do you think something in the guncon configuration settings would expand the available window to shoot in beyond the left quadrant? I am not sure what the new guncon config settings mean though I found where they are.
-
@BJRetro upon further testing using “option 1” and timecrisis rom, Gamepad plus dolphin bar/wiimote, adjusting the guncon settings to 25, 25, 1.25 and 1.25 I have a bigger window to shoot in so can start the game and can confirm I can shoot some bad guys! Yay. Progress. Still can’t shoot in the right third of the screen though. Is there any way to give me a higher value than 25 in the first two settings? Seems if that went up to 50 or even 75 and the second two setting went up to 2 I might be in. (For what it’s worth I also tried messing with various combos of “touchscreen support” and “mouse support” in the user interface retroarch menu and various input driver settings in the retroarch menu and none expanded the shooting zone as far as I can tell).
(Also, gun is working fine in advmame 1.4 and fc-ucem nes emulator).
Thanks for all the hard work!
-
Hi
Thanks so much for testing, you've given me some ideas to check. I've just realised that retroarch has been updated with the touchscreen lightgun and so has lr-fceumm which might make a difference.
Can you confirm 3 things for me please, what version of RetroArch / RetroPie you have, what version of lr-fceumm you have and finally what setting do you have for the lightgun in lr-fceumm in options, its usually mouse, pointer or lightgun.
We will get there because I've done the hardest part, just need to hook into the correct libretro interface.
I can increase that guncon adjustment range but it's not meant to fix a controller input, it's meant for when the emulator is misaligning where the shots are. So would just be masking the true solution.
Thanks
Andy
-
@MrLightgun ok so retroarch is 1.7.6, my Lr-FCEUM says at the bottom of the retroarch screen the following:
1.7.6 - FCEUmm (SVN) 02840d9
As for relevant retroarch settings in LR-FCEUM
-
Quick menu - controls - User 1 device type auto, user 2 device type auto
-
Quick menu - options - zapper mode: mouse; show crosshairs: enabled
-
main menu - settings - input - User 1 binds - user 1 shows:
-device type of “auto”
-analog to digital of “left analog”
-device index of “Xiaoji gamesir-G3w” (which is the additional controller I have plugged in)
-mouse index “0” -
main menu - settings - input - user 2 binds - user2 shows:
-device type of “auto”
-analog to digital of “left analog”
-user 2 device index of “disabled”
-user 2 mouse index of “0” -
main menu, drivers, shows input as “udev” and joypad as “udev”
-
main menu, user interface, shows “mouse support: ON” and shows “touch support: ON”
-
Also For what it’s worth, my dolphin bar is set up so the wiimote has lights 1 and 4 lit up. It is connected to the pi by the dolphin bar (not independently using the wiimote Bluetooth). I configured the wiimote as a controller in the EmulationStation controller config using the GUI menu in EmulationStation.
Hope this helps somewhat! My system is kind of like a Frankenstein at this point because it was a fresh install like almost 2 years ago now and I have done everything myself in terms of tweaking and updating and I don’t know very much.
-
-
I'm trying this tonight on my test pi. I'm currently testing some Fruitbox skins on this and it has been updated a week ago. I have the dolphin bar and will report back tonight! I'm very excited about this!
-
I tried Duck hunt, 2 and 1 duck hunt with Mario and Time Crisis with the PSX. All with the dolphin bar and original wii motes with no luck.
In Time Crisis, I changed to guncon and I tried changing the mouse indexes number, but with no luck. I also tried adjusting the ranges, with varying extremes for each one, but same result.
Duck hunt and 2 and 1, I changed the controller to lightgun and mouse, but no movement on the screen. If I hit any buttons on the wiimote, the system would freeze. Since I can only have the directional pad, 1, 2 and the home key work, I'm guessing this is what's freezing my retropie.
Am I missing something?
It's getting late and I can try this with advancemame tomorrow just to see if that works, but the wiimote was working on my computer last night.Retroarch 1.7.6
Retropie 4.5.1 -
@allahandro said in Lightgun support added to PCSX-Rearmed:
Duck hunt and 2 and 1, I changed the controller to lightgun and mouse, but no movement on the screen. If I hit any buttons on the wiimote, the system would freeze. Since I can only have the directional pad, 1, 2 and the home key work, I'm guessing this is what's freezing my retropie.
There's a known bug in RetroArch when using the mouse with bezels enabled - it freezes the emulator. It's fixed in 1.7.7, but not in 1.7.6.
-
Speaking of light guns, do you guys recommend any light gun shells for the Wiimote, or should I just wait for the sinden light gun?
-
@mitu Thanks. I'll turn off the bezels for these games tonight. I'm guessing I would also need to map the buttons as well?
-
@Brigane if you were already planning on the sinden or did the Kickstarter I would honestly save the money and wait for that in a few months because of the limited capacity right now in retropie (only NES and mame games) and because with the Wii mote the shooting games are kind of more of a gimmick since you have to move the cursor around the screen to shoot, it’s not really exactly what you are pointing at. But if you have like $25 - $30 you don’t care about spending and understand that I will edit this post later with the one I got. It has been worth it for me despite all of the above because my son really likes playing the old Jurassic Park game and is young enough (4) that he probably couldn’t play the game without the cursor anyhow and doesn’t know what the “real” games were like before . Also some nostalgia for myself at least being able to load up and play lethal enforcers, duck hunt and Area 51 at least in some capacity feeling like I am shooting somewhat.
-
@mitu said in Lightgun support added to PCSX-Rearmed:
@allahandro said in Lightgun support added to PCSX-Rearmed:
Duck hunt and 2 and 1, I changed the controller to lightgun and mouse, but no movement on the screen. If I hit any buttons on the wiimote, the system would freeze. Since I can only have the directional pad, 1, 2 and the home key work, I'm guessing this is what's freezing my retropie.
There's a known bug in RetroArch when using the mouse with bezels enabled - it freezes the emulator. It's fixed in 1.7.7, but not in 1.7.6.
Alright. I got this far where the wiimote is moving the cursor in the screen for duck hunt, but nothing in time crisis. In duck hunt though, when I press a button, it stalls the cursor but no action. No shot.
I had to use mouse index 2 and changed the controller to zapper and light gun with no change.
I feel like I've done this before and don't remember any of this.
-
Hi All
Thanks for the information, I didn't realise people were using their Wii Remotes using the "mouse" setting in lr-fceumm which is relative. I thought they would be using Pointer or Lightgun which is absolute. Does anyone do calibration for line of sight? Do you still use "mouse" in lr-fceumm?
I'll copy the lr-fceumm options of mouse, lightgun and pointer and do 3 libretro interfaces controlled by that option. At that point it should be if it works in lr-fceumm then it will work in lr-pcsx-rearmed.
If you are reliant on a cursor the whole time then you will struggle with this, I haven't added a crosshair although this could be done in future.
Do we have anyone with Aimtrak that can test? Can you confirm whether you can do line of sight in lr-fceumm and then what zapper option you have set of mouse, lightgun or pointer.
Thanks guys, we will get there.
Andy
-
@allahandro said in Lightgun support added to PCSX-Rearmed:
@mitu said in Lightgun support added to PCSX-Rearmed:
@allahandro said in Lightgun support added to PCSX-Rearmed:
Duck hunt and 2 and 1, I changed the controller to lightgun and mouse, but no movement on the screen. If I hit any buttons on the wiimote, the system would freeze. Since I can only have the directional pad, 1, 2 and the home key work, I'm guessing this is what's freezing my retropie.
There's a known bug in RetroArch when using the mouse with bezels enabled - it freezes the emulator. It's fixed in 1.7.7, but not in 1.7.6.
Alright. I got this far where the wiimote is moving the cursor in the screen for duck hunt, but nothing in time crisis. In duck hunt though, when I press a button, it stalls the cursor but no action. No shot.
I had to use mouse index 2 and changed the controller to zapper and light gun with no change.
I feel like I've done this before and don't remember any of this.
Hi @allahandro is this with a dolphin bar? what option did you have on the physical dolphin bar please?
-
@allahandro hi also did you configure the wiimote as a controller in emulation station? I can’t remmeber exactly but I think I configured the wiimote trigger as button a and the wiimote a button as button b or vice versa. If you didn’t that could be why the cursor is moving but not registering a button press.
The other thing I have found in general (not necessarily specific to this issue) with the pi and my dolphin bar/wiimote is that it seems to screw up way more when I have an additional controller in instead of just the “lightgun” setup. I think it has to do with how the pi seems to randomly assign controller ids at startup. So if you have any sort of static settings assigned to what mouse index the lightgun is at they can get all screwy when you have other controllers (or even a keyboard with a built in mouse/trackball) attached at the same time as the “lightgun” setup.
@MrLightgun yeah sorry about the confusion I don’t think you can configure the wiimote/dolphinbar to be line of sight. Aimtrak you can in theory but from vociferously reading this forum over time I see a lot of people saying it is hard or it loses calibration easily. That being said at least in time crisis you see your bullet hole so you can kind of calibrate yourself from that. Anyhow I am helping with testing not really so the wiimote works as much but so this can be all set when I get my sinden :)
-
@MrLightgun Option 1.
-
@BJRetro I tried assigning buttons in emulation station but the a and b buttons wouldn't register. The wilmote also showed up as a keyboard.
-
@allahandro do you also have lights 1 and 4 lit up on the wiimote? If not try that mode and see if it works.
-
No just 1 and 2. I'll try this tonight. Thanks guys.
-
@BJRetro I have mode 1 on the light bar and can only get 1 and 2 lights on the wiimote and 1 and 3. Can't get 1 and 4. Tried to set it up with both combination of lights and wouldn't register the A And B buttons on the wiimote. I tried changing the mode on the dolphin bar but only had emulation station crash when configuring the controller.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.