Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Anyone using 2 light guns with M2 Emulator?  (Read 39739 times)

0 Members and 1 Guest are viewing this topic.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Anyone using 2 light guns with M2 Emulator?
« on: July 28, 2010, 11:34:18 am »
I picked up a 2nd Act Labs TV light gun (old ray-gun style).
The 2nd gun works like a charm in MAME, but I'm having no luck with M2 emulator (hotd, vcop, vcop2).

Anyone know if this emulator even supports a 2nd gun?

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #1 on: July 28, 2010, 01:15:33 pm »
How did you get the actlabs guns to work in M2 Emulator?  Been dying to know.  I have 2 actlabs guns working in MAME, but can't get either to work in Model 2 Emulator.  I'd love to know!!!

Please let me know the steps you did!

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #2 on: July 28, 2010, 04:17:01 pm »
How did you get the actlabs guns to work in M2 Emulator? Please let me know the steps you did!

I honestly don't know!  I don't remember having to do anything special aside from calibrating the gun in the service menu of each game once and disabling the crosshairs in the cfg file.
I think it was pretty much plug and play.  I have a version 0.9 of M2.

I'm at work right now.
I'll look at my settings when I get home and see what I did.
There aren't any settings in the cfg file besides hiding the crosshairs.
I honestly don't even remember having to map the fire & reload buttons,
which is the reason that I don't know what to do with gun #2. 
There just aren't any settings to tinker with!?!

Gun # 2 is doing something though...the game exits when I hit the trigger or reload button (can't remember which right now).
I  only had a few minutes to mess with it.  I was hoping someone here would tell me whether it was possible or not to use 2 guns, so I wouldn't have to spend a bunch of time finding out for myself.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #3 on: July 28, 2010, 07:10:36 pm »
How did you get the actlabs guns to work in M2 Emulator? Please let me know the steps you did!

Got home and checked all my settings.  
There are no special settings for the light gun to work.
You don't even map the fire and reload buttons, yet both the side button and shooting offscreen work to reload.
ElSemi must have had an Act-Labs gun.  ;D
Just make sure that you have the newest version 0.9 M2 emulator from Nebula.

In trying to get the 2nd light gun to work, I played around with the UseRawInput settings since windows sees the light guns as usb mice and that setting allows for the use of multiple mice.  I didn't know how to figure out what device number the guns were, so I tried 0-6.
I only have the two guns, trackball, & x-arcade w/keyboard attached; no other input devices.

Neither of the guns worked at all with raw input enabled, probably because I didn't know how to find the device ID.

Just make sure UseRawInput=0 in the EMULATOR cfg file.

I gave up on getting the 2nd light gun to work; disabled P2 coin & start buttons.
(then I lost a half hour playing)

Time to move on to my many other unfinished projects.

Post again if you get it working...it does work!
« Last Edit: July 28, 2010, 07:15:22 pm by BadMouth »

bertthedefender

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 31
  • Last login:January 10, 2017, 07:37:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #4 on: July 28, 2010, 08:44:12 pm »
Slightly off-topic, but have you noticed that if you shoot at the top left of the screen while running a Model2 light gun game (when in full screen mode) the emulator reverts back to a window, as if you'd clicked the close icon?

Or is that just my setup?  :dizzy:

romshark

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 389
  • Last login:October 16, 2023, 02:50:59 pm
  • Arcade and Robotics enthusiast
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #5 on: July 28, 2010, 09:17:55 pm »
I have this problem as well. It's something that most likely has to be fixed in the emulator.
You see, in MAME and real light gun games, you point the gun at the screen, it reports back it's X and Y coordinates. This would be called absolute position data (or something like that).
Some software, like Model 2 emulator, don't work like that. It expects a regular computer mouse. So your cursor would start at a point on the screen, and you move the mouse. The software interprets this as "go up 20 pixels, and left 8 pixels." Try to feed the absolute data type into that (like the Aimtrak, Act Labs, or LCD Topgun) and it goes all screwy.

Note that Model 2 only uses this when RawInput = on. When RawInput is off, Windows itself handles the inputs before passing the converted data to the program, allowing a gun to work. Two drawbacks to this are:
1.) Windows sets all the pointing devices (guns, mice, trackballs, spinners) to control one "software mouse" that it sends to the program. So, only one gun.
2.) The "software mouse" can interact outside the program.  Bertthedefender, your question is actually related. Model 2, when full screen, is really still in a window, but changes the resolution to "zoom in" on the window. If you play HOTD, and click and hold the mouse all the way to the side, sometimes the emulator will pause and you get the window resize cursor, just like Notepad or most other software. That's with RawInput off. If it were on, the cursor can't interact with anything outside what Model 2 allows it to.

Sorry for the long post, but this problem has annoyed me for a long time. I even posted on their forum here, but got no responses. I hope this gets fixed on the next version!

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #6 on: July 28, 2010, 10:16:59 pm »
Slightly off-topic, but have you noticed that if you shoot at the top left of the screen while running a Model2 light gun game (when in full screen mode) the emulator reverts back to a window, as if you'd clicked the close icon?

Or is that just my setup?  :dizzy:

I haven't had that happen.  But when the switch is slid all the way forward to the GUN2 position, the trigger seems to have the same effect as the ESC key.
That happened no matter where the gun was pointed though and only in M2Emulator.

Just tried it on my main pc with the mouse and it does it, so it's not a light gun issue, its a M2 Emulator issue....
The crosshairs have to be absolutely all the way to the left and almost to the top.  The window doesn't shrink, but the game disappears and doesn't come back until I click on the toolbar button to switch the focus back to M2, then press ESC to shrink it.  Kind of an odd thing...the crosshairs stop when the hit the right side of the screen, but on the left side, M2 emulator lets them hang halfway off and doesn't stop them until the center of them touches the edge of the screen.  I think Romshark is right.  I think what is happening is that we are essentially clicking off the edge of the application and changing the focus in windows (even though the app is running full screen).

I've never had that happen on my arcade setup.  It could be that I have the screen stretched slightly beyond the boundaries of the tv, so the light gun can't hit the edge.


:dunno

« Last Edit: July 28, 2010, 10:20:48 pm by BadMouth »

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #7 on: August 02, 2010, 12:55:42 pm »
I gotta say thanks for the tips!  I now have my actlab gun working great in the model 2 emulator!

Still like you guys, no luck on getting the 2nd gun to work though.

swamprat96

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 241
  • Last login:January 10, 2012, 03:29:46 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #8 on: August 02, 2010, 06:58:50 pm »
I have two guns working in M2. As it is at a friends house this is from memory but I'm sure I used
http://thetroubleshooter.home.mindspring.com/index.htm to make it work. See the long topic http://forum.arcadecontrols.com/index.php?topic=91588.40 and read the whole thing. Cananas screen shots solve it I think

romshark

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 389
  • Last login:October 16, 2023, 02:50:59 pm
  • Arcade and Robotics enthusiast
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #9 on: August 03, 2010, 08:47:13 am »
I read through it, but it looks like you got it working for the PC version. But I'll reread it after some breakfast.
Even then, maybe I'll drop a line to the Troubleshooter auther about M2 Emulator support.

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #10 on: August 04, 2010, 10:29:47 am »
I got House of the Dead, Virtua Cop 1, and Virtua Cop 2 working like a champ.

However, I couldn't get Rail Chase 2, Behind Enemy Lines, or Gunblade NY configured properly with the actlabs gun.  Any ideas?

Are those games working for you guys with the guns?


I have a feeling it's not going to work due to the guns being like the image below and not handguns style.

« Last Edit: August 04, 2010, 10:32:42 am by nickynooch »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #11 on: August 04, 2010, 11:08:36 am »
I got House of the Dead, Virtua Cop 1, and Virtua Cop 2 working like a champ.

However, I couldn't get Rail Chase 2, Behind Enemy Lines, or Gunblade NY configured properly with the actlabs gun.  Any ideas?

Are those games working for you guys with the guns?


I have a feeling it's not going to work due to the guns being like the image below and not handguns style.

Yep, you got it.  As with most games where you are meant to keep the trigger pulled in and spray bullets, they weren't really light gun games.

If you were able to get the dual mice working in M2, AIM-Trak guns would probably work since they track the gun constantly, not just the instant you pull the trigger.

Those other games can be played with joysticks, but it's just not the same.
I've thought about trying to make a "joystick" gun setup, but I have too many projects already.

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #12 on: August 04, 2010, 11:24:33 am »
I got House of the Dead, Virtua Cop 1, and Virtua Cop 2 working like a champ.

However, I couldn't get Rail Chase 2, Behind Enemy Lines, or Gunblade NY configured properly with the actlabs gun.  Any ideas?

Are those games working for you guys with the guns?


I have a feeling it's not going to work due to the guns being like the image below and not handguns style.

Yep, you got it.  As with most games where you are meant to keep the trigger pulled in and spray bullets, they weren't really light gun games.

If you were able to get the dual mice working in M2, AIM-Trak guns would probably work since they track the gun constantly, not just the instant you pull the trigger.

Those other games can be played with joysticks, but it's just not the same.
I've thought about trying to make a "joystick" gun setup, but I have too many projects already.

Thanks!  It's not that I care much on having those 3 games.  I was just curious anyway.

Stoked to have HOTD, Virtua Cop 1 and 2 working in model2 with my actlabs guns!!!! Thanks for all the help!

Now my next task is in the works, NES and SNES games with my actlabs guns.

I am VERY, VERY happy to have guns on my cab.  So much fun.
« Last Edit: August 04, 2010, 11:29:59 am by nickynooch »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #13 on: August 04, 2010, 01:38:25 pm »
It is possible to get the act labs guns working in some of the "joystick" gun games, but I decided it wasn't worth it.

From ACT-Labs website http://www.act-labs.com/gun_gamelisting.htm:
(This is an old page.  Newer pages just say the game isn't a real light gun game & isn't supported)

Terminator 2 - will not work for Windows 98SE
- press "1" to reach calibration screen
- press "TAB" key and choose "Input (General)" and press "Enter" key
- find the keyboard controls for Up/Down/Left/Right and Button 1 for Players 1-2
- for Player 1, move the cursor, using keyboard, as close to position x=0, y=0 then press Button 1
- move the cusor as close to position x=128, y=128 then press Button 1
- then move cursor as close to position x=255, y=255 and press Button 1
- repeat for Player 2 and you will see "Calibratin Successful" screen
- when title screen appears, calibrate the light gun as you normally would
- now you are ready to play the game as Player 1

I did this when I first got a light gun, but as I said before, you are meant to spray bullets in these games and a true light gun just doesn't work for that (if you hold the trigger in, all shots will go to the spot that registered when you first pulled the trigger).  Your trigger finger will get tired very fast and you won't get very far in the game.   :-\
« Last Edit: August 04, 2010, 02:04:04 pm by BadMouth »

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #14 on: August 05, 2010, 08:56:47 am »
It is possible to get the act labs guns working in some of the "joystick" gun games, but I decided it wasn't worth it.

From ACT-Labs website http://www.act-labs.com/gun_gamelisting.htm:
(This is an old page.  Newer pages just say the game isn't a real light gun game & isn't supported)

Terminator 2 - will not work for Windows 98SE
- press "1" to reach calibration screen
- press "TAB" key and choose "Input (General)" and press "Enter" key
- find the keyboard controls for Up/Down/Left/Right and Button 1 for Players 1-2
- for Player 1, move the cursor, using keyboard, as close to position x=0, y=0 then press Button 1
- move the cusor as close to position x=128, y=128 then press Button 1
- then move cursor as close to position x=255, y=255 and press Button 1
- repeat for Player 2 and you will see "Calibratin Successful" screen
- when title screen appears, calibrate the light gun as you normally would
- now you are ready to play the game as Player 1

I did this when I first got a light gun, but as I said before, you are meant to spray bullets in these games and a true light gun just doesn't work for that (if you hold the trigger in, all shots will go to the spot that registered when you first pulled the trigger).  Your trigger finger will get tired very fast and you won't get very far in the game.   :-\


I got Terminator, Revolution X and some other game like that (I think, forgetting off the top of my head) running great on my cab. However, as far as Model 2 emulator goes, I'm sure it's a no go on those type of games.
« Last Edit: August 05, 2010, 09:47:41 am by nickynooch »

cquealy

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 2
  • Last login:December 02, 2019, 04:26:43 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #15 on: December 03, 2010, 08:12:56 pm »
Sorry to bring this topic back, but trying to see if I read this right and nicky nooch got BOTH guns working in M2 emulator. If so, can you shar your config files setup?

laggerific

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 57
  • Last login:February 21, 2014, 09:40:42 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #16 on: January 01, 2011, 06:45:27 am »
Sorry to bring this topic back, but trying to see if I read this right and nicky nooch got BOTH guns working in M2 emulator. If so, can you shar your config files setup?

Yeah, same here...setting it to raw input mode makes it so it at least recognizes the two guns triggers independently, but still the cursors never do work properly, they just flail away at the sides of the screen...soon as I leave the emulator the cursors are right where I expect to see them.

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #17 on: January 10, 2011, 05:17:04 pm »
Anyone at all have 2 aimtracks working with model 2?

Hituro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 149
  • Last login:September 04, 2016, 01:12:43 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #18 on: January 20, 2011, 04:39:30 am »
If I leave Rawinput off I can see both mouse cursors, and Player 1 works.  However, Player two, when I fire, uses Player 1's amo.  So it's like I'm playing with two player 1 :/  Not sure how to really get player 2 to work in M2 Gun games

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #19 on: January 20, 2011, 11:46:58 am »
CURSES!!!!

Did you figure out the issue where you shoot off screen and the screen minimizes?  Or do you just use a reload button?

nickynooch

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 318
  • Last login:August 29, 2020, 02:54:00 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #20 on: January 20, 2011, 12:01:46 pm »
 :)
« Last Edit: May 07, 2020, 02:46:04 pm by nickynooch »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #21 on: April 09, 2011, 03:58:04 pm »
 :bump

I haven't messed with this issue for a while since I have act labs guns and nobody else seemed to get any 2nd player gun working.
BUT.....

I was working on a different gun project and that got me thinking about this issue again.  
The option for multiple mice is in there.  It has to friggin' work.  :cry:
So I hooked up another usb wireless mouse & set M2 to use raw input.
First try - same as usual, P1 works, P2 doesn't.
Second try - decided to change the P2 device ID to 0, which is what I originally had for the first, to see if it would make the P2 gun work.
                       changed the P1 device ID to 2, 'cause that hadn't been used yet.

'lo and behold, both mice work.  Both track correctly.  Left click fires for the proper player, right click reloads for the proper player.

I think I had tried this with a usb mouse and a ps2 mouse long ago and never got it working.
I also used M2 version 1.0

At any rate, if two mice work, two aim-tracks have to work don't they?

I don't have aim-tracks, so I can't test it.  But I know those of you with them would love to get P2 working.   ;D

Here's what's in my EMULATOR.cfg file:
UseRawInput=1         
RawDevP1=2
RawDevP2=0

Of course, your device numbers could vary.  
I don't have anything but a wireless mouse/keyboard & the extra mouse hooked up to this computer.
Just thought I'd let people know that the multiple mouse option does work.
« Last Edit: April 09, 2011, 06:54:29 pm by BadMouth »

isucamper

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 633
  • Last login:November 25, 2019, 05:13:08 pm
  • I'm a slasher... of prices!!
    • my project arcade blog
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #22 on: April 10, 2011, 10:16:19 am »
I have spent more time than I care to mention trying to get M2 working with both my aimtraks.  I've gotten 2 mice to work but not 2 aimtraks.  From what I understand the devices cannot work because they use "absolute" input, and M2 only works with multiple mice that use "relative" input. 

I tried to bring this up on the spanish M2 dev site, but I got yelled at. 
THE SYSTEM          Popeye

romshark

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 389
  • Last login:October 16, 2023, 02:50:59 pm
  • Arcade and Robotics enthusiast
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #23 on: April 10, 2011, 09:15:42 pm »
I tried to bring this up on the spanish M2 dev site, but I got yelled at. 

I brought it up there too, and basically got ignored.

Donkbaca

  • Our reptillian overlords would be pleased
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2648
  • Last login:May 09, 2012, 06:28:10 pm
    • Slim built MAME/Xbox cab
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #24 on: April 10, 2011, 10:28:51 pm »
It seems to me that most people on the M2 boards are more focused on driving games.  Hopefully they fix it at some point

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #25 on: June 28, 2012, 08:16:17 pm »
Hi all,

I know it's an old thread, but I've been working on my 70" Virtua Cop1/2 party setup for a week or so and put in some effort to solve and fix M2E's losing focus when clicking off the edge problem.

I have my setup working with a single Wiimote using WiiMouse home.exetel.com.au/amurgshere/wiimouse.phtml to create the mouse pointer. It works for dual Mic'ies? moose's? Meese? Mice? anywho... Has anyone noticed the aim drift further off the cursor at the edges of the screen and is there a fix for that? Otherwise this setup is good to go?

Anyone interested in trying my window override app too can click here... https://docs.google.com/open?id=0B-P3wlCiYEm3SGM5T1RYMEN0QWc

It currently works with vcop and vcop2 as the basic tester program... I haven't written a Readme yet, so here are the basics below....

When launched (from anywhere, doesn't matter where but I dropped mine into the m2emulator folder) it will auto minimise to the task tray. It should have the little Vcop icon. What it does is simple, it just waits to see the window title Virtua Cop (and 2) then reads the title ID, sets the window style to remove borders and expand to corner to corner. If you launch your M2E in full screen, you won't see a thing change. In window mode, it will remove the min/max/X button border.

Exiting the M2E is just as normal Alt-F4 or click Emulator>exit

You can shoot anywhere on the screen/off the screen and it shouldn't alt-tab or minimize at all. Hope it works for you too. Let me know if it doesn't.

Now all I need to do is align the cursor to the shot and it's a winner.

Ramjet :)
Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 566
  • Last login:June 07, 2025, 06:42:47 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #26 on: June 28, 2012, 08:58:04 pm »
So far it's working great.  I will play around with it some more this weekend but for now I can't get it to minimize.  Much appreciated.

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #27 on: June 28, 2012, 10:37:05 pm »
Oh yeah, once the title bar is removed. Then it can't be moved as there is nothing to click on... which is ironically the reason why it would minimize....

Not much I can do about that... but it's not bad for a couple hours of work and coming up with something that worked.

I'm still struggling with the accuracy. I really don't want to go down the path of writing an external calibration program for matching the onscreen cursor to where the bullet should hit. Thats going to be tricky....

Oh, I should add HOTD support too whilst I think of it.
Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 566
  • Last login:June 07, 2025, 06:42:47 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #28 on: June 29, 2012, 01:28:53 pm »
Oh, I should add HOTD support too whilst I think of it.

Might as well add support for all the gun games if it's not too much trouble (Rail Chase 2, Behind Enemy Lines, Gunblade, etc).  I played some more Virtual Cop 2 last night and it worked flawlessly with my constant off-screen reloading.

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #29 on: June 30, 2012, 07:08:35 am »
Oh, I should add HOTD support too whilst I think of it.

Might as well add support for all the gun games if it's not too much trouble (Rail Chase 2, Behind Enemy Lines, Gunblade, etc).  I played some more Virtual Cop 2 last night and it worked flawlessly with my constant off-screen reloading.

No problemo... glad to hear it's working well! I've spent the last few days renovating so I haven't really had a chance to test it. I did however figure out my calibration problem, it was right under my nose in the service menu! LOL, oh well... at least the Wiimotes are shooting straight now.

I have HOTD included now, with a cool little function where it changes the icon in the task bar depending on which game is running. It's kinda funky. I'll add the rest of the games tomorrow.

It turns out that someone on speksnk is also making a program to do this also. It's always the case isn't it? When you think your doing something new, someone else is thinking the exact same thing...

I'll post the new version here? or make a new thread?

Ramjet
Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 566
  • Last login:June 07, 2025, 06:42:47 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #30 on: June 30, 2012, 08:59:40 am »

It turns out that someone on speksnk is also making a program to do this also. It's always the case isn't it? When you think your doing something new, someone else is thinking the exact same thing...

I'll post the new version here? or make a new thread?

Ramjet

I tried the program posted at the Model 2 forums and it didn't seem to do anything for me. I still had minimizing all the time. It's certainly worth continuing with your program. Perhaps a new thread would make more sense since it's technically a different issue than the title of this thread.

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #31 on: July 01, 2012, 03:15:46 am »
I managed to get M2E working with one Wiimote, but since I've packed up the laptop, took it home from work... removed the wired mouse. I cannot for the life of me figure out what my wiimotes raw input ID's are to configure up for twin mote's... anyone got a little utility to reveal HID inputs and their ID's?

Otherwise, it's back to the AHK help page to go learn how to make one...  ::)
Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #32 on: July 02, 2012, 01:41:32 am »
OK, so I cannot get 2 Wiimotes working again in M2 Emulator... god know why... I'm sure I had this working a while ago. Driving me insane. I'm sure I have to setup something like PPJoy but having x64 is killin me for PPJoy goodness... I'll try a WinXP install later in the week and try it out. It may be my only chance.

Any recommendations on light guns for 2player usage or is everyone having the same issues with device ID's on their Aim Tracks, Top Guns, Act Labs etc etc? Which ones work and with what? and how did you do it?

On a brighter note, latest version of my RamjetM2Borderless is now 0.3 and works for HOTD, VC1 and VC2, RC2 and Gunblade NY.

Linky is here... click file, download...

https://docs.google.com/open?id=0B-P3wlCiYEm3cHNRaTZfem90ZVE

Let me know if anyone has any major problems... and of course I take no responsibility for anyone have any trouble of any kind, including Girlfriend/wife trouble.

Code: [Select]
Welcome to the - RamjetM2Borderless -  support for Sega Model 2 Emulator.
--------------------------------------------------------------------------

This is a readme file on how to use this software

This program will enable users to run their favourite lightgun shooter on Nebula's Model 2 Emulator and off screen reload without the program Alt-Tabbing or
accidently minimizing to desktop.

Games (ROMS) supported
----------------------

Virtua Cop 1/2
House of the Dead
Rail Chase 2
Gunblade NY

I have only included support for the 4 major games I have intended to run on my own arcade project. If there are other requests for future support for other
games, please visit my youtube channel and make contact with me there.


-----------------------------------
http://www.youtube.com/user/ramjetr
-----------------------------------

---------------------------------------
Contents of RamjetM2Borderless_V0.3.zip
---------------------------------------

RamjetM2Borderless0.3.exe - The main program that monitors and sets borderless only the active Model 2 Emulator games below
gunbladeNY.ico - The following icons are loaded into the task bar when the game has been detected and running.
HOTD.ico
RailChase2.ico
Sega2.ico
VCop1.ico

RamjetM2Borderless V0.3 Beta

Installation
------------

Extract the contents of this zip file into the root folder of your model2 emulator.


What do I run? and What will this program do?
---------------------------------------------

This program is very simple... and also beta... so more functions may come as I play with the code a bit more.

Run the RamjetM2Borderless0.3.exe program

You'll see a new little White/Blue Sega icon appear in your task bar next to the clock.This will change icon depending on which game is detected to be running

It will constantly scan for a one of the above games to run and then force the active title bar matching that name to run without a border. This will remove
the Min,Max,X buttons from the active window.

How to exit this program.... Right click on the icon in the task bar and select exit. Done.
How to exit the emulator... Well escape still works back to window mode, but Emulator>Exit or Alt-F4 closes the program nicely.


Changelog;

   Updated By Mark 'Ramjet' Gallon 1/7/2012
   Since I didn't do a ReadMe for the first test program... here is the total changelog
Code and test borderless concept - Working!
Added more game support (see top of txt) with auto detection
Created Icons for the task bar on game detect (for fun)
Wrote this ReadMe.txt


Whats left to do;

Maximise/Window Detection to work correctly... I'll explain, I'm trying to detect when the game is full screen to remove border's and reapply them when back in a window mode
But it appears that the Model 2 Emulator doesn't set this flag correctly and hence it won't detect the transition from window to fullscreen. Working on that.... For now it
will remove the borders from the window with the active title bar that matches the name of the game and keeps them gone for as long as the progam is running.

Working on making sure that the correct window has it's borders removed... if you accidently remove the border from something (see bug below) alt-f4 and re-open it.

Known bug
---------

It will sometimes detect a window with the same title as the game as being the game running. ie watch a youtube video of "Virtua Cop" and internet explorer changes its
title to that name and tricks my program into thinking it's running and removes the title bar. Took me ages to figure out why it was doing that! Turned out I was
watching a youtube video whilst writing the code. Anyway, it's a feature... not a fault :) And not a bloody thing I can do to stop it... and it should restore itself when the
program is Alt-F4'd (windows shortcut for close) and restarted. Don't panic, it's not the end of the world.



Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 05:28:29 pm
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #33 on: July 02, 2012, 09:43:03 am »
Any recommendations on light guns for 2player usage or is everyone having the same issues with device ID's on their Aim Tracks, Top Guns, Act Labs etc etc? Which ones work and with what? and how did you do it?

Nobody else has been able to get 2 guns working with M2 Emulator as far as I know.
I hope you did have them working (or will) because I just dropped a lot of money on Amazon Germany for a pair of the Walther P99 replica controllers.
  :lol
(god I hope they make it through customs ok  :-\ )

I was really going to miss the light gun games on my new LCD cab.
Hopefully now I won't have to.   :cheers:

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #34 on: July 02, 2012, 06:17:00 pm »
Any recommendations on light guns for 2player usage or is everyone having the same issues with device ID's on their Aim Tracks, Top Guns, Act Labs etc etc? Which ones work and with what? and how did you do it?

Nobody else has been able to get 2 guns working with M2 Emulator as far as I know.
I hope you did have them working (or will) because I just dropped a lot of money on Amazon Germany for a pair of the Walther P99 replica controllers.
  :lol
(god I hope they make it through customs ok  :-\ )

I was really going to miss the light gun games on my new LCD cab.
Hopefully now I won't have to.   :cheers:

Hi Badmouth.... thats going to look great when you have them working!

I've been chatting to the author of WiiMouse (known as "TheToid") and been discussing how we can get HeadKaze's VJoy program support included to create multiple joystick RawInput devices with wiimotes. It's possible, and hopefully it can come together soon. Theoretically, if your not running an x64 OS and you can use PPJoy right now. Then WiiMouse will already make 2 Wiimotes work with M2Emulator just fine through PPJoy. It's entirely possible that's how I did it way back mid last year? Since I'm running Win7 Ultimate on all of my PC's though, it's a problem trying to test it without using the driver signing override program. Which in itself isn't a problem, but does leave that message in the corner that my PC is in test mode :( I'll put together a WinXP test rig this weekend and test it out from a fresh start.

I was wondering though how the various Light Gun technologies work? Do Top Guns present to windows as a mouse? or a joystick? or something else? same with Aim Track... Since those guns have driver support for windows, and must have a HID device number assigned to them, perhaps I can write something in AHK or GlovePie to present 2 virtual raw input mice? I mean it's going to be a huge learning curve, but since I don't know how the gun tech works, then I'm not sure where I should be starting. Hopefully I've got the ball rolling with WiiMotes anyway, and failing that, I was going to buy a couple of Top Guns?

Has anyone tried my utility above? I'm keen to see if it works for everyone. Especially those with actual light guns. DarthMarino mentioned that it worked for off screen reloading. If so, then that's a very happy side effect since I didn't know if it'd do that since my mouse cannot leave the screen to do that. For mouse (topguns etc) users, I was going to write a pixel border around the screen to emulate an off screen reload since you'll not really going to know if shot off screen or on screen by a couple of pixels at the edge. That should be pretty easy to do. With a mouse, I can click in any extreme edge of the window and it does not alt-tab out to desktop... I'd love some feedback when people get a chance to try it.

Thanks
Ramjet


Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 566
  • Last login:June 07, 2025, 06:42:47 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #35 on: July 02, 2012, 10:49:53 pm »
Has anyone tried my utility above? I'm keen to see if it works for everyone. Especially those with actual light guns. DarthMarino mentioned that it worked for off screen reloading. If so, then that's a very happy side effect since I didn't know if it'd do that since my mouse cannot leave the screen to do that. For mouse (topguns etc) users, I was going to write a pixel border around the screen to emulate an off screen reload since you'll not really going to know if shot off screen or on screen by a couple of pixels at the edge. That should be pretty easy to do. With a mouse, I can click in any extreme edge of the window and it does not alt-tab out to desktop... I'd love some feedback when people get a chance to try it.

I tried all 5 supported games on the new version and had no issues with any on my Aimtrak.  Offscreen reload was fine on the games that use it.  Great little program.  Can you also add Behind Enemy Lines?  I finally got it working on the latest version of the emulator.

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #36 on: July 03, 2012, 12:43:30 am »
Has anyone tried my utility above? I'm keen to see if it works for everyone. Especially those with actual light guns. DarthMarino mentioned that it worked for off screen reloading. If so, then that's a very happy side effect since I didn't know if it'd do that since my mouse cannot leave the screen to do that. For mouse (topguns etc) users, I was going to write a pixel border around the screen to emulate an off screen reload since you'll not really going to know if shot off screen or on screen by a couple of pixels at the edge. That should be pretty easy to do. With a mouse, I can click in any extreme edge of the window and it does not alt-tab out to desktop... I'd love some feedback when people get a chance to try it.

I tried all 5 supported games on the new version and had no issues with any on my Aimtrak.  Offscreen reload was fine on the games that use it.  Great little program.  Can you also add Behind Enemy Lines?  I finally got it working on the latest version of the emulator.

lol, crap I knew there was one I was missing... I'll add that tonight when I get home from work. I don't have all the Roms, so you can tell me if it's working :D

Could you post a Youtube video of it working with your gun setup for me? I'm looking to buy a couple of guns for my mame'd TMNT cabinet and would love feedback and setup of your cabinet? Plus I really wanna see the off screen reload working :)

I had 15mins spare at the office so I remote desktop logged in to home and added the support and re-uploaded it.

Here is V0.4 with Behind Enemy Lines added to the rest of the list above. Click File>download...
https://docs.google.com/open?id=0B-P3wlCiYEm3dml1b0M3U2ZPdzQ

Ramjet
« Last Edit: July 03, 2012, 01:05:50 am by RamjetR »
Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

ABACABB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 224
  • Last login:August 26, 2023, 12:37:07 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #37 on: July 03, 2012, 08:36:55 am »
Hey Ramjet, excellent work.  Just some feedback for you.  The Aimtrak guns do register as a mouse, or since I have 2 of them I guess it is mice.  In model2 shooting offscreen to reload has always worked for me, you just really had to be aiming way off screen when you pulled the trigger.  The problem for me always came when I was rushed.  If you were in a hurry with lots of bad guys/zombies on the screen and you didn't get the gun far enough away from the screen (too close to the border) when trying to reload, the screen would minimize and it was basically game over.  I am excited about adding your program.  I might actually get to finish one of these games now!!  Thanks.

EDIT:  I have it installed and it plays flawlessly.  I purposely tried shooting the edges of my screen and I could not get it to fail.  Excellent work Ramjet!!

Now one additional question about this.  Would there be a command you could enter to close this?  I would like to have my front end send the command to close this when I close the M2 emulator.
« Last Edit: July 03, 2012, 01:59:10 pm by ABACABB »

RamjetR

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 144
  • Last login:July 04, 2021, 03:27:58 am
    • My Youtube Channel
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #38 on: July 03, 2012, 09:18:13 pm »
Hey Ramjet, excellent work.  Just some feedback for you.  The Aimtrak guns do register as a mouse, or since I have 2 of them I guess it is mice.  In model2 shooting offscreen to reload has always worked for me, you just really had to be aiming way off screen when you pulled the trigger.  The problem for me always came when I was rushed.  If you were in a hurry with lots of bad guys/zombies on the screen and you didn't get the gun far enough away from the screen (too close to the border) when trying to reload, the screen would minimize and it was basically game over.  I am excited about adding your program.  I might actually get to finish one of these games now!!  Thanks.

EDIT:  I have it installed and it plays flawlessly.  I purposely tried shooting the edges of my screen and I could not get it to fail.  Excellent work Ramjet!!

Now one additional question about this.  Would there be a command you could enter to close this?  I would like to have my front end send the command to close this when I close the M2 emulator.

That's excellent feedback Abacabb. I'm really happy it's working for everyone and appears to be a robust solution. Do you have both Aim Tracks set up to be 2 players in M2?

I haven't setup my front end I'm going to use yet, so I'm still struggling like a newb trying to get my head around Hyperspin. So I haven't yet coded anything into the program to deal with how it may be launched. I've written some basic LUA scripts for M2Emulator to automatically launch the RamjetM2Borderless program on the start of the game which works great... then have my program auto close when it no longer see's M2Emulator as an running process. It actually used to autoclose when I originally wrote it, but in testing I had to keep double clicking it manually till I wrote the LUA script to launch it for me. I'm happy to do this and add the funtions if you can help me test it. Like I say, I don't yet use a front end. I've been looking for a complete hard drive dump of a Custom WinXP with Hyperspin and roms already setup online for me to just clone and go.... I'm actually putting together some old hardware (Intel Pentium D 3Ghz, 4Gb Ram and a 7900GT 512Mb) to use for my mame cabinet right now.

Ramjet


Gentlemen.... Start your engines!
My Youtube Channel http://www.youtube.com/user/ramjetr?feature=mhee
Try my RamjetM2Borderless V0.7 utility for your M2Emulator shooting games here https://docs.google.com/open?id=0B-P3wlCiYEm3RzhCZk1NcFR3blE
Try my Sega Model 2 Output Utility RamjetVR V1.4 https://docs.google.com/file/d/0B-P3wlCiYEm3VHhBMXNxZGVIQk0/edit

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 566
  • Last login:June 07, 2025, 06:42:47 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #39 on: July 03, 2012, 10:10:14 pm »

Could you post a Youtube video of it working with your gun setup for me? I'm looking to buy a couple of guns for my mame'd TMNT cabinet and would love feedback and setup of your cabinet? Plus I really wanna see the off screen reload working :)

Here you go.



I still haven't had a single issue with extensive play.  I tried without it and almost immediately I would run into issues.  Again, excellent work.

 
« Last Edit: July 04, 2012, 10:42:04 am by DarthMarino »