Main > Software Forum
GunCon2 driver here!!! (Bacon is tasty)
zaktallica:
ya it uses it as a mouse but not sure of it "sees" it as a mouse..Using chris's settings off screen reload worked fine with 1 gun but seems to be messing up with 2..Then again that may be my error when I was changing stuff
swamprat96:
what I also found helpful was going into a game in Mame and playing with the in game settings. You can work out what each mouse is doing and what number it is seen as. Using mame129 :
With your mame.ini set lightgun to 1, mouse to 0, multimouse to 1 and offscreenreload to 1 - Leave everything else as default - run lethal enforcers hit tab and select tab once the game is running. Go into Input this game find P1 Button 1 and select enter. Press the trigger on Gun 1 - it should show Gun1 B0 or maybe Gun2 B0 -this is the number assigned to the gun. Repeat this for Gun 2 on the setting P2 Button 1. Now you know what numbers the guns are assigned. This is important as once you know you might need to set x and Y analog valuers for each gun. If the guns come up as Gun 1 and Gun 2 then the defaults should be correct.
If it comes up with Gun 2 and Gun 3 you will need to assign X and Y values for Gun3- Gun 2 seems to run ok on the default values. The settings are saved in mame\cfg\lethalen.cfg. To set the x and Y analog values follow that lightgun link I posted earlier - ingame settings and start where it assigns the x and Y values. You will most likely get Gun_1_x and Gun_1_Y. Dont woryy leave it and do this for each Lightgun X analog and Lightgun y analog using the correct gun for each. Then exit the game and open lethalen.cfg in notepad. Edit the cfg. For Player 1 the setting to change is P1_LIGHTGUN_X where the value might read GUNCODE_1_YAXIS GUNCODE_1_XAXIS. Delete the GUNCODE_1_YAXIS. Now do this for the next three entries so that only the relevant value is left.
Derrick Renaud:
Better yet, just setup a ctrlr file. Copy the code below to a file gun.cfg and put it in your ctrlr\ directory. Change the settings to match your configuration. On mine the mouse is 1, then I have guns 2, 3, 4. You could set it up so that the Player 1, 2 are guns 2, 3 and player 3 is mouse, etc.
Then include this in the game's ini file:
--- Code: ---ctrlr gun
--- End code ---
ctrlr\gun.cfg:
--- Code: ---<mameconfig version="10">
<system name="default">
<!-- My Gun Version 1.0 input configuration file -->
<input>
<port type="COIN1">
<newseq type="standard">
KEYCODE_5 OR GUNCODE_2_BUTTON4
</newseq>
</port>
<port type="COIN2">
<newseq type="standard">
KEYCODE_6 OR GUNCODE_3_BUTTON4
</newseq>
</port>
<port type="COIN3">
<newseq type="standard">
KEYCODE_7 OR GUNCODE_4_BUTTON4
</newseq>
</port>
<port type="START1">
<newseq type="standard">
KEYCODE_1 OR GUNCODE_2_BUTTON5
</newseq>
</port>
<port type="START2">
<newseq type="standard">
KEYCODE_2 OR GUNCODE_3_BUTTON5
</newseq>
</port>
<port type="START3">
<newseq type="standard">
KEYCODE_3 OR GUNCODE_4_BUTTON5
</newseq>
</port>
<port type="P1_BUTTON1">
<newseq type="standard">
GUNCODE_2_BUTTON1
</newseq>
</port>
<port type="P2_BUTTON1">
<newseq type="standard">
GUNCODE_3_BUTTON1
</newseq>
</port>
<port type="P3_BUTTON1">
<newseq type="standard">
GUNCODE_4_BUTTON1
</newseq>
</port>
<port type="P1_BUTTON2">
<newseq type="standard">
GUNCODE_2_BUTTON3
</newseq>
</port>
<port type="P2_BUTTON2">
<newseq type="standard">
GUNCODE_3_BUTTON3
</newseq>
</port>
<port type="P3_BUTTON2">
<newseq type="standard">
GUNCODE_4_BUTTON3
</newseq>
</port>
<port type="P1_LIGHTGUN_X">
<newseq type="standard">
GUNCODE_2_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P1_LIGHTGUN_Y">
<newseq type="standard">
GUNCODE_2_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P2_LIGHTGUN_X">
<newseq type="standard">
GUNCODE_3_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P2_LIGHTGUN_Y">
<newseq type="standard">
GUNCODE_3_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P3_LIGHTGUN_X">
<newseq type="standard">
GUNCODE_4_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P3_LIGHTGUN_Y">
<newseq type="standard">
GUNCODE_4_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P1_AD_STICK_X">
<newseq type="standard">
GUNCODE_2_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P1_AD_STICK_Y">
<newseq type="standard">
GUNCODE_2_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P2_AD_STICK_X">
<newseq type="standard">
GUNCODE_3_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P2_AD_STICK_Y">
<newseq type="standard">
GUNCODE_3_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P3_AD_STICK_X">
<newseq type="standard">
GUNCODE_4_XAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
<port type="P3_AD_STICK_Y">
<newseq type="standard">
GUNCODE_4_YAXIS
</newseq>
<newseq type="decrement">
NONE
</newseq>
<newseq type="increment">
NONE
</newseq>
</port>
</input>
</system>
</mameconfig>
--- End code ---
swamprat96:
I did not know this was possible- Thanks again Derrick. I'll try this over the weekend
zaktallica:
What settings do you use in mame after you set this up?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version