Main > Main Forum

Dual LCD Topgun Setup

Pages: << < (2/2)

weisshaupt:


--- Quote from: deoblo85 on April 11, 2008, 04:16:05 pm ---man please tell me how you did it i've been trying for three days now i cant get it to fire or even move the target im lost i got the act labs gun to work easy but the top guns are way cooler. please help before my mind explodes!!!!!!!!!!!!!

--- End quote ---

I finally got Area51 working this morning...

I have mouse set to 1, multi mouse set to 1, and light gun set to 1 in MAME ini. I then had to modify the DEFAULT.CFG and NOT the game ini to get Area 51 to work.  You need to set both the player 1 lightgun settings to use the gun AND set the player 1 MOUSE settings to use the gun. Then do the same for player 2. If you just set the settings in the games config file, you get odd behavior with Smogs drivers, the most irriating of which is being unable to fire the gun. YOU MUST CHANGE THE DEFAULT SETTINGS FOR ALL OF MAME. Unfortunate, but I was able to get it to work.

This is dual TOPGUN setup with plain-jane mame .124.  Mame was detecting the dual guns correctly ( I was using my laptop so I had an external mouse and internal touch pad in there as well)  but simply would not map the mouse button input correctly. I think this is because SMOPGS drivers were sending inputs for BOTH guns to Mouse 1, while simultaneously sending them to mouse 3 and mouse 4 and light gun 3 and light gun 4.. Mame was obviously confused by this, so you have to take Mouse 1 out of the picture my making the defaults look at mouse 3 (or whatever) 

lanman31337:


--- Quote from: weisshaupt on April 13, 2008, 06:31:05 pm ---
--- Quote from: deoblo85 on April 11, 2008, 04:16:05 pm ---man please tell me how you did it i've been trying for three days now i cant get it to fire or even move the target im lost i got the act labs gun to work easy but the top guns are way cooler. please help before my mind explodes!!!!!!!!!!!!!

--- End quote ---

I finally got Area51 working this morning...

I have mouse set to 1, multi mouse set to 1, and light gun set to 1 in MAME ini. I then had to modify the DEFAULT.CFG and NOT the game ini to get Area 51 to work.  You need to set both the player 1 lightgun settings to use the gun AND set the player 1 MOUSE settings to use the gun. Then do the same for player 2. If you just set the settings in the games config file, you get odd behavior with Smogs drivers, the most irriating of which is being unable to fire the gun. YOU MUST CHANGE THE DEFAULT SETTINGS FOR ALL OF MAME. Unfortunate, but I was able to get it to work.

This is dual TOPGUN setup with plain-jane mame .124.  Mame was detecting the dual guns correctly ( I was using my laptop so I had an external mouse and internal touch pad in there as well)  but simply would not map the mouse button input correctly. I think this is because SMOPGS drivers were sending inputs for BOTH guns to Mouse 1, while simultaneously sending them to mouse 3 and mouse 4 and light gun 3 and light gun 4.. Mame was obviously confused by this, so you have to take Mouse 1 out of the picture my making the defaults look at mouse 3 (or whatever) 

--- End quote ---

Ok, that sorta makes sense.  Both guns would track simultaneously with player 1, but not work with player 2.  With the triggers on the guns, they come up gun 3 for player 1 and gun 4 for player 2, but for movement they come up as gun 1 and gun 2 respectively.  So I can change default.cfg to mouse 2 and mouse 3 for the guns and it'll work?  do you have an example of how the sections of default.cfg should look with dual guns for .124 by chance?

weisshaupt:


--- Quote from: lanman31337 on April 14, 2008, 04:34:29 pm ---[ do you have an example of how the sections of default.cfg should look with dual guns for .124 by chance?

--- End quote ---

Mame.ini:### Input device options ###
mouse                   1
multimouse              1
lightgun                1
dual_lightgun           0
lightgun_device         mouse
joystick                0
steadykey               0
keyboard_leds           1
a2d_deadzone            0.30
# ctrlr                 <NULL> (not set)


default.cfg:<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
    <system name="default">
        <input>
            <port type="P1_BUTTON1">
                <newseq type="standard">
                    GUNCODE_3_BUTTON1
                </newseq>
            </port>
            <port type="P1_BUTTON2">
                <newseq type="standard">
                    GUNCODE_3_BUTTON2
                </newseq>
            </port>
            <port type="P2_BUTTON1">
                <newseq type="standard">
                    GUNCODE_4_BUTTON1
                </newseq>
            </port>
            <port type="P2_BUTTON2">
                <newseq type="standard">
                    GUNCODE_4_BUTTON2
                </newseq>
            </port>
            <port type="START1">
                <newseq type="standard">
                    MOUSECODE_3_BUTTON5 GUNCODE_3_BUTTON5 OR KEYCODE_1
                </newseq>
            </port>
            <port type="COIN1">
                <newseq type="standard">
                    MOUSECODE_3_BUTTON4 GUNCODE_3_BUTTON4 OR KEYCODE_5
                </newseq>
            </port>
            <port type="P1_LIGHTGUN_X">
                <newseq type="standard">
                    GUNCODE_3_XAXIS
                </newseq>
            </port>
            <port type="P2_LIGHTGUN_X">
                <newseq type="standard">
                    GUNCODE_4_XAXIS
                </newseq>
            </port>
            <port type="P1_LIGHTGUN_Y">
                <newseq type="standard">
                    GUNCODE_3_YAXIS
                </newseq>
            </port>
            <port type="P2_LIGHTGUN_Y">
                <newseq type="standard">
                    GUNCODE_4_YAXIS
                </newseq>
            </port>
            <port type="P1_MOUSE_X">
                <newseq type="standard">
                    GUNCODE_3_XAXIS
                </newseq>
            </port>
            <port type="P2_MOUSE_X">
                <newseq type="standard">
                    GUNCODE_4_XAXIS
                </newseq>
            </port>
            <port type="P1_MOUSE_Y">
                <newseq type="standard">
                    GUNCODE_3_YAXIS
                </newseq>
            </port>
            <port type="P2_MOUSE_Y">
                <newseq type="standard">
                    GUNCODE_4_YAXIS
                </newseq>
            </port>
        </input>
    </system>
</mameconfig>


My Cursors are the wrong color and there may be a better way to do this, but I tried all sorts of different setting and this was the first combination that came up playable...


lanman31337:

I tried that, no luck, so I tried lightgun, dual_lightgun, mouse, every combination.  So in mame32, get this, I enabled Dual Keyboard.  believe it or not, that fixed it.  both guns fire, both guns track.  quick way to tell if the guns are going to work or not right off the bat.  open up a light gun game.  if both cursors are side by side dead center, they won't work.  if you start the game and they're both towards the upper left corner, then you're golden :)

dennis808:

Thanks for your lengthy rply kingdomkz!
A friend of mine has a lot of trouble geting his gun sto work properly, hopefully this will help him.

Pages: << < (2/2)

Go to full version