Main > Lightguns

Mame32 and lightgun / dual Lightgun Support or lackoff

<< < (2/3) > >>

Optics:
I've been reading over this thread but it left me a bit confused - I'm hoping to buy two lightguns for an arcade system i'm building but if mame cannot support them I don't want to waste my money.  Is the case that mame doesn't "offically" support lightguns but you map the lightgun to a mouse?  That's what I seemed to have gathered from this thread, correct me if i'm wrong. Thanks - and sorry to the orginal poster for hijacking but I felt it was better to ask here then start a whole new thread.

Green Giant:

--- Quote from: Optics on December 13, 2007, 04:19:42 pm ---I've been reading over this thread but it left me a bit confused - I'm hoping to buy two lightguns for an arcade system i'm building but if mame cannot support them I don't want to waste my money.  Is the case that mame doesn't "offically" support lightguns but you map the lightgun to a mouse?  That's what I seemed to have gathered from this thread, correct me if i'm wrong. Thanks - and sorry to the orginal poster for hijacking but I felt it was better to ask here then start a whole new thread.

--- End quote ---

Mame does officially support lightguns.  Mame sees a lightgun as a type of mouse, but unlike the way it sees a trackball.  Dual lightguns work but don't ever expect the exact gameplay you had on house of the dead.  For example, you typically have to stand 5-6 feet from the screen when using the lcdtopguns, most popular lightguns for cabs.  Tracking is suprisingly good for the number of games that have to be supported, but not everything is supported as many lightgun games are still in use and required special hardware to run, mame isn't setup fast enough yet.

Rob L:
I am using Mame32 and have dual act labs light guns and after installing them and testing out one I could not get the offscreen reload to work.

I will spend more time this weekend with them since I didn't have much time when I installed them. Hopefully I can just uncheck that offscreen reload thing and just have the back button on the gun do the reloading.

u_rebelscum:
There's often some confusion on what the -offscreen_reload option does.  Mame uses it to translate from the PC "standard" of an offscreen shot to the arcade "standard".  Offscreen in PC lightguns: button 2 + location of last onscreen shot.  Offscreen in arcade: trigger (button 1) + location of (0,MaxY).

If the original game did not have a reload button, neither will mame.  In this case, you couldn't do a simple map a button to reload, and need the -offscreen_reload to reload (and it's not buggy).



--- Quote from: Cananas on December 13, 2007, 04:13:33 pm ---
--- Quote from: u_rebelscum on December 13, 2007, 03:04:49 pm ---So in practice (currently), -lightgun and -mouse options are the same, and so the -lightgun option is redundant and can be ignored.  I don't know if that's what/why MameUI devs are graying out lightgun options, :dunno but it doesn't matter AFAICT.  Just enable mouse and you're fine. Edit: see below for how it sort of works, AFAIK.

--- End quote ---

It is not exactly the same. If you enable mouse you can not reload shooting off screen even if shotofscreen _reload is enabled, because Aaron considered that this is a hack for mice.

But if you enabled lightgun and have a lightgun (obvious) and (not sure) a mouse working with absolute coordinates, you can reload shooting off the screen if the proper option is enabled. 
--- End quote ---

Ah, I see what you're saying, but mame's code seems halfway between what you & I said.  (I can't test my lightgun machine because it's, um, hiding under a pile of other stuff; what small games are good to test reload on?)

From my tests, it seems the remapping (tab) is influenced by what option is selected, much like you mentioned:

  -mouse 
  enabled    -lightgun 
  enabled    Input 
  hardware    Remaps 
  as  YesNomousemouseNoYesmouselightgunYesYesmousemouseYesNolightgun?mouse?NoYeslightgunlightgun?YesYeslightgun???*the lightgun hardware was NOT tested, just my guesses.

However, mame's source code seems to look at the code type, mouse or gun, for if offscreen reload works. (FWIW, mame has four code types: key, joy, mouse, & gun.)  And if either -lightgun or -mouse is enabled, both code types are enabled.  So if the input is mapped to the gun and not the mouse code type, it seems that the hardware doesn't matter.  I'd not sure what happens if both types are mapped (the default), nor am I sure what happens with lightgun hardware, nor was I able to actually test how well the reload works with a mouse.

Rob L:
Well I was playing around with my lightguns saturday and I can't get the reload to work. I have tried:

-enable off screen reload checked on (and in the mame32.ini have it with a value of 1) and nothing

-enable offscreen reload off and nothing

-turning off the enable mouse option in mame32 and the gun won't even register a shot on screen when I shoot

I have no clue how to get this working. Since the back button on the lightgun is used as a reload thing I notice when I press it the cursor goes to the bottom left corner and the screen flashes but again, no reload. If i just point the gun off the screen and press the trigger then I think the cursor doesn't move and the screen just flashes.

I really wish I knew how to get this working.

Oh and in the controller mapping section I have "lightgun" selected under lightgun. I havent tried selecting mouse in that dropdown menu...wondering if maybe I should.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version