• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Aimtrak Light gun and Mame2003

Scheduled Pinned Locked Moved Help and Support
aimtraklight gunmame2003mame 2003lightgun
44 Posts 9 Posters 18.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bigphildogg86
    last edited by 29 Nov 2016, 15:57

    Awesome thanks so much!
    Yeah Andy had responded with the following to my query:
    Phil,

    For the gun to work, Mame needs to explicitly support the mouse as a light gun device. The gun appears as a mouse and sends “absolute” XY data. This is a standard type of device on a PC and is the same as a touch screen. Standard mice send relative data, ie movement from the previous location.

    So I don’t know if that version does interpret mouse XY data as light gun data unfortunately. It seems it does not, if the data is getting through and the game is configured but not working.

    Andy

    D 1 Reply Last reply 29 Nov 2016, 16:01 Reply Quote 0
    • D
      dankcushions Global Moderator @bigphildogg86
      last edited by 29 Nov 2016, 16:01

      @bigphildogg86 said in Aimtrak Light gun and Mame2003:

      Awesome thanks so much!
      Yeah Andy had responded with the following to my query:
      Phil,

      For the gun to work, Mame needs to explicitly support the mouse as a light gun device. The gun appears as a mouse and sends “absolute” XY data. This is a standard type of device on a PC and is the same as a touch screen. Standard mice send relative data, ie movement from the previous location.

      So I don’t know if that version does interpret mouse XY data as light gun data unfortunately. It seems it does not, if the data is getting through and the game is configured but not working.

      Andy

      so mame2003 actually does support relative devices (pointer), but our issue is that it's not actually getting any readings :) that's why the cursor isn't moving at all rather than moving around crazily.

      B 2 Replies Last reply 29 Nov 2016, 16:09 Reply Quote 0
      • B
        bigphildogg86 @dankcushions
        last edited by 29 Nov 2016, 16:09

        @dankcushions Ahh right. If it was sending any kind of XY coordinates the cursor should be moving, if it was an absolute versus relative issue the XY coordinates would just be misinterpreted and make the cursor go all around the screen. Yeah if we can get that tool to show us the real time results maybe I can take that to Andy and see if he has any ideas.

        1 Reply Last reply Reply Quote 0
        • B
          bigphildogg86 @dankcushions
          last edited by bigphildogg86 30 Nov 2016, 04:25

          @dankcushions So I didn't make any progress with SDL. BUT I found a Vs. Duckhunt that would work on AdvanceMame 0.94. And in AdvanceMame the light gun is moving the cursor and I was able to map the x and y motion to the cursor motion. It is still acting a little funny jumping from corner to corner and not really giving me much but it seems that the gun is interacting with AdvanceMame. Maybe it is just Mame2003 and udev. Not sure if AdvanceMame uses udev also or not.

          Maybe it's also that when I'm mapping in AdvanceMame it says it's joy2. So the actual input isn't coming from mouse0?

          D 1 Reply Last reply 30 Nov 2016, 10:38 Reply Quote 0
          • D
            dankcushions Global Moderator @bigphildogg86
            last edited by 30 Nov 2016, 10:38

            @bigphildogg86 did you try input driver linuxraw?

            unfortunately the udevadm monitor tool doesn't give a real-time readout of coords, only if things are connected.

            1 Reply Last reply Reply Quote 0
            • S
              sadamson
              last edited by 22 Feb 2017, 07:20

              Hi, any movement on this?

              im eager to add a light gun to my bartop.

              fingers crossed

              1 Reply Last reply Reply Quote 0
              • H
                HurricaneFan
                last edited by 14 Mar 2017, 16:20

                AdvanceMame 1.4 light gun games are working for me using a wii mote and sensor bar. I've tested Aliens 3, Lethal Enforcer and Police Trainer successfully.

                G U 2 Replies Last reply 22 Mar 2017, 13:19 Reply Quote 0
                • G
                  gunpadawan @HurricaneFan
                  last edited by gunpadawan 22 Mar 2017, 13:19

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • G
                    gunpadawan
                    last edited by 22 Mar 2017, 13:22

                    Hi,

                    I am currently working on a configuration tool for the aimtrak guns.
                    aimtrak works for me on retropie with advmame 3.4 on the few games I have tested so far.

                    see https://github.com/gunpadawan/gunconf
                    Best,
                    GP

                    H 1 Reply Last reply 22 Mar 2017, 19:22 Reply Quote 0
                    • H
                      HurricaneFan @gunpadawan
                      last edited by 22 Mar 2017, 19:22

                      @gunpadawan Super cool! Does this work directly on the pi?

                      G 1 Reply Last reply 23 Mar 2017, 10:44 Reply Quote 0
                      • U
                        UDb23 @HurricaneFan
                        last edited by 22 Mar 2017, 19:48

                        @HurricaneFan I'm going to buy dolphin bar soon (and already borrowed a wii remote plus from a collegue... that's the most expensive component... over 40 euro here in Italy) to try your config. Any specific suggestion on how to set it up with advmame?

                        H 1 Reply Last reply 22 Mar 2017, 19:57 Reply Quote 0
                        • H
                          HurricaneFan @UDb23
                          last edited by 22 Mar 2017, 19:57

                          @UDb23 I think all I did was setup the wiimote in the emulationstation controller setup. And my advancemame 1.4 settings were default settings out of the box.

                          So the number 5 on my keyboard inserted a coin, and number 1 started the game. The dolphin bar recognizes the wiimote in mode 2 and you get a crosshairs that shows you what your pointing at. The trigger button shoots.

                          B U 2 Replies Last reply 22 Mar 2017, 21:36 Reply Quote 1
                          • B
                            BGallagherLA @HurricaneFan
                            last edited by 22 Mar 2017, 21:36

                            @HurricaneFan I have the same setup, Wiimote and Dolphinbar on Advmame 1.4. I currently have Lethal Enforcers, Beast Busters, Operation Wolf, Operation Thunder, Police Trainer, Space Gun, Zero Point, Zero Point 2 and Zombie Raid, among a few other old trap/clay shooting games working with this, but I have my Dolphinbar set on the first setting. But yeah, if you have the right games in Advmame, you don't have to set up anything. The crosshairs show up right away. That being said, with arcade games that had more than one button other than the trigger, you'll have to map it. I had to map my Wiimote A button as the grenade button in the settings. Before, the trigger would just fire all the grenades until they were done, then it would fire the regular bullets. So, there's some tweaking that needs to be done, but only for some games, and way less than i thought!

                            H 1 Reply Last reply 22 Mar 2017, 21:37 Reply Quote 0
                            • H
                              HurricaneFan @BGallagherLA
                              last edited by 22 Mar 2017, 21:37

                              @BGallagherLA Does your police trainer game sound weird before you insert a coin? I noticed mine did. After the coin insert, everything sounded like it should.

                              B 2 Replies Last reply 22 Mar 2017, 21:39 Reply Quote 0
                              • B
                                BGallagherLA @HurricaneFan
                                last edited by 22 Mar 2017, 21:39

                                @HurricaneFan Actually I dont think sound works on mine at all. I played it the other day and sound wasnt working. Sometimes sound just randomly cuts out on everything though, so I think it's more of some weird pi issue than a game issue. I still haven't upgraded to a Pi 3 yet. Since they were coming out once a year, I was gonna wait for the 4, but now I hear the 4 might not be out till 2019, so guess I'm gonna have to get a 3...

                                1 Reply Last reply Reply Quote 0
                                • B
                                  BGallagherLA @HurricaneFan
                                  last edited by 22 Mar 2017, 21:42

                                  @HurricaneFan What I really wanna do is figure out how to use this setup on consoles like SMS/NES/Genesis. There are a few crappy emulators (DGEN, Osmose) that it half works on. I can fire, but crosshairs wont move.

                                  H 1 Reply Last reply 23 Mar 2017, 02:23 Reply Quote 0
                                  • H
                                    HurricaneFan @BGallagherLA
                                    last edited by 23 Mar 2017, 02:23

                                    @BGallagherLA I think the issue with other emulators is it reads the mouse movement differently. I thought I saw something that the emulators need to be able to use absolute positioning and a lot of them use relative positioning.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      gunpadawan @HurricaneFan
                                      last edited by gunpadawan 23 Mar 2017, 10:44

                                      @HurricaneFan yes it does, which is useful to make sure the gun can see the IR led and also reconfigure between games (mouse or joystick for instance)

                                      1 Reply Last reply Reply Quote 0
                                      • U
                                        UDb23 @HurricaneFan
                                        last edited by UDb23 26 Mar 2017, 11:05

                                        @HurricaneFan said in Aimtrak Light gun and Mame2003:

                                        So the number 5 on my keyboard inserted a coin, and number 1 started the game. The dolphin bar recognizes the wiimote in mode 2 and you get a crosshairs that shows you what your pointing at. The trigger button shoots.

                                        First test results are not really great (using wiiremote plus & mode 2, tried both advmame 3.x and 1.4):

                                        • will act as mouse only if really near (1m) to the sensorbar
                                        • pointing area limited at the bottom (regardless of top o bottom setting of the switch on the bar); can't aim at the lower part.

                                        Any suggestions ?

                                        H 1 Reply Last reply 26 Mar 2017, 15:22 Reply Quote 0
                                        • H
                                          HurricaneFan @UDb23
                                          last edited by 26 Mar 2017, 15:22

                                          @UDb23 I use my wiimote about 3 1/2 to 4 feet from my sensor bar. I don't think I've seen an issue with pointing at the bottom. What game did you test?

                                          U 2 Replies Last reply 26 Mar 2017, 17:34 Reply Quote 1
                                          • First post
                                            Last post

                                          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.

                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]