Main > Project Announcements
Multi Lightgun Game Arcade : USB2Gun with Recoil
<< < (10/19) > >>
Howard_Casto:
Well it was because you hadn't used it yet. 

Well edit ini for current rom only works while an emulator is running (it reads the current rom and opens the ini file) so yeah it won't work without an emulator running and even then really only works reliably on mame and supermodel.  Edit specific ini works well for "unsupported" emulators and stuff running via troubleshooter. 
Jollywest:
Ok first chance I've had tonight to try Mamehooker again.

The vector and product ID's of the board I have are different to the manual.
They are;
Vector ID = &H1AB7
Product ID = &H6570

I've put the command into the test function box under the Generic HID send data heading using the info posted, apart from the Hardware ID's obviously, which I've changed to the above.

I'm not getting anything though still.

I've tried different device ID's all the way up to 16, not sure what else to try. Any ideas?
Jollywest:
I've finally found a program that emulates the guns as a mouse accurately to within a few pixels.
It's called JoystickMouseTool, I had to use it in absolute mode and disable enhance pointer precision in mouse settings in the windows control panel.

It's working great for player 1 in Demul, some of the games need to be calibrated in the Service menu for extra accuracy but other games work fine at default.

I've also tested it on American Laser Game, Mad Dog McCree direct from the CD-Rom and through the Daphne-Singe emulator and it works great.

It should work in any mouse controllable game/emulator as well using the JoystickMouseTool program.
Jollywest:
I've had quite a lot of time on the project over the last 2 nights and its definitely been worth it as we now have Recoil!!  ;D

Big thanks to Howard for helping with this, without Mamehooker this wouldn't have been possible.  :applaud:

So the manual wasn't very accurate with the version of board I'm using but Howard still managed to pull plenty of info from it for me to trial and error things.

As well as the Recoil there are a few other commands that may come in use.

One thing that may vary with the commands is the VID and PID, depending on which version of board is used. On the version I'm using the VID is &H1AB7 and the PID is &H6570. To find out this go to Device Manager, expand Human Interface Devices, right-click HID Game Controller, select Properties, click on the Details tab, select Hardware ID's from the drop down menu and they are in there. Adapt the following commands to suit.

The commands found are as follows and can be entered into the Mamehooker test box for global use or into a specific rom ini using the Mamehooker Script Editor drop down menu;

Player 1 Auto-Recoil:  This command makes the recoil stay on and fires a single tap on a on-screen trigger press until Windows shuts down or until another recoil command is sent to the player 1 gun. This is useful for games that use a single-shot function.
ghd 1 &H1AB7 &H6570 8 &h04:&h00:&h01:&h00:&h00:&h00:&h00:&h00

Player 2 Auto-Recoil:
ghd 2 &H1AB7 &H6570 8 &h04:&h00:&h01:&h00:&h00:&h00:&h00:&h00

Player 1 Manual-Recoil: This command is useful for games that use a multi-shot function (for eg, T2) and can be put into a specific rom ini through the MameHooker script editor drop down menu, when Mamehooker finds a recoil output in a MAME game.
ghd 1 &H1AB7 &H6570 8 &h04:&h01:&h01:&h00:&h00:&h00:&h00:&h00

Player 2 Manual-Recoil:
ghd 2 &H1AB7 &H6570 8 &h04:&h01:&h01:&h00:&h00:&h00:&h00:&h00

Player 1 Turn-off flash: This command is only really useful in games where the screen tracks the guns movements accurately, these games are only games that have a high brightness colour scheme throughout the game on every part of the screen, for eg. NY Captor.
ghd 1 &H1AB7 &H6570 8 &h03:&h01:&h00:&h00:&h00:&h00:&h00:&h00

Player 2 Turn off flash:
ghd 2 &H1AB7 &H6570 8 &h03:&h01:&h00:&h00:&h00:&h00:&h00:&h00

Player 1 Turn on flash (1ms Duration): The third byte, &h01 in the case below changes the duration of the flash in milliseconds. For example, changing &h01 to &h05 will make the flash last for 5ms, &h010 = 10ms and so on. I'm not sure what the default is but I've set it to 1ms and its quicker and the gun still functions properly.
ghd 1 &H1AB7 &H6570 8 &h03:&h00:&h01:&h00:&h00:&h00:&h00:&h00

Player 2 Turn on flash (1ms Duration):
ghd 2 &H1AB7 &H6570 8 &h03:&h00:&h01:&h00:&h00:&h00:&h00:&h00
BadMouth:
 :applaud:  This is as big as discovering the guns work to begin with.
Finally a complete interface that utilizes original guns!
(which is no longer in production and in limited supply  :lol  )

Navigation
Message Index
Next page
Previous page

Go to full version