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 33921 times)

0 Members and 1 Guest are viewing this topic.

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 #40 on: July 04, 2012, 12:27:13 am »

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.

Oh that is just wicked! It looks great seeing it in action. It's convinced me buy a couple of lightguns now!

Thanks for editing and posting that video!

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

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 #41 on: July 04, 2012, 07:48:12 am »

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.



Great video Darth.  Sorry to get off topic but I have to ask a question.....  When using M2 emu with my arcadeguns the button on the grip of the guns seems to cause various problems if I'm holding it in.  Do you notice this too?  In Vcop1 it seems to make the game skip a few sections with bad guys.  In Vcop2 if I touch the button at all I lose focus of my main screen and cannot longer play.  I like the button for playing Time Crisis but I would like to disable it for M2.  I might hack a gun and see if I can add a small on/off slider switch on the bottom of the gun to disable that grip switch.
 
« Last Edit: July 04, 2012, 07:49:53 am by ABACABB »

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 565
  • Last login:April 23, 2024, 02:16:09 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #42 on: July 04, 2012, 08:59:50 am »

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.



Great video Darth.  Sorry to get off topic but I have to ask a question.....  When using M2 emu with my arcadeguns the button on the grip of the guns seems to cause various problems if I'm holding it in.  Do you notice this too?  In Vcop1 it seems to make the game skip a few sections with bad guys.  In Vcop2 if I touch the button at all I lose focus of my main screen and cannot longer play.  I like the button for playing Time Crisis but I would like to disable it for M2.  I might hack a gun and see if I can add a small on/off slider switch on the bottom of the gun to disable that grip switch.
 

What do you have that button mapped to in your AimTrak Utility? I have mine set to right mouse click for both on and offsceen.  If I hit it by accident it will just reload.  I've never had any issues like you are describing (and I can now retire that button for Vcop since offscreen reload works with Ramjets program).

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 565
  • Last login:April 23, 2024, 02:16:09 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #43 on: July 04, 2012, 10:41:31 am »
I'll probably post these in one of the many "is getting a gun on my cabinet worth it" threads when I finish a few more but for now I'll dump it here:


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 #44 on: July 04, 2012, 01:18:00 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.



Great video Darth.  Sorry to get off topic but I have to ask a question.....  When using M2 emu with my arcadeguns the button on the grip of the guns seems to cause various problems if I'm holding it in.  Do you notice this too?  In Vcop1 it seems to make the game skip a few sections with bad guys.  In Vcop2 if I touch the button at all I lose focus of my main screen and cannot longer play.  I like the button for playing Time Crisis but I would like to disable it for M2.  I might hack a gun and see if I can add a small on/off slider switch on the bottom of the gun to disable that grip switch.
 

What do you have that button mapped to in your AimTrak Utility? I have mine set to right mouse click for both on and offsceen.  If I hit it by accident it will just reload.  I've never had any issues like you are describing (and I can now retire that button for Vcop since offscreen reload works with Ramjets program).

Ahhhhh.. that may be my problem.  I have never changed it in the Aimtrak utility, it is still on it's default setting which is something like Joy2 button 3.  When I get a chance over the holiday I will fire up my cab and play with the settings for that to see if I can map it to a different button.  Thanks for the info.

UPDATE: I didn't have the Aimtrak utility on my pc for some reason.  I put it on and mapped that button to nothing.  My problems are gone!!  Not sure why whatever button that was mapped to had adverse effects but it did.  Now since that is fixed together with Ramjet's screen fix these Model2 gun games work great!  Now when someone figures out how to get 2 guns working, it will be like 2 unicorns mating under a rainbow.  Pure bliss!!
« Last Edit: July 04, 2012, 01:57:06 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 #45 on: July 05, 2012, 08:44:51 pm »
Ok, so I've got an LUA script in Model 2 auto launching the utility (which is great if you don't want it running all the time) and I now have the borderless program auto exiting on Model 2 closing.

Is this the feature you need for your front end to auto launch and close that app when running those games? I'm now delving into MS's multitouch API to see if I can get multi mice to register as dual mice in M2. Otherwise using virtual joysticks is the way to go for 2 players in the emulator.

Just built a WinXP PC and WiiMouse is crashing to desktop on TinyXP... But the pairing of Wiimotes is easier and PPJoy works to create dual Mice for M2 games. I just need to get Wiimouse working on TinyXP or perhaps glovepie... I'll look into GlovePie for multi Aim Tracks/Wiimotes as PPJoysticks which should work in WinXP just fine.

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

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 #46 on: July 05, 2012, 09:12:05 pm »
Ok, so I've got an LUA script in Model 2 auto launching the utility (which is great if you don't want it running all the time) and I now have the borderless program auto exiting on Model 2 closing.

Is this the feature you need for your front end to auto launch and close that app when running those games? I'm now delving into MS's multitouch API to see if I can get multi mice to register as dual mice in M2. Otherwise using virtual joysticks is the way to go for 2 players in the emulator.

Just built a WinXP PC and WiiMouse is crashing to desktop on TinyXP... But the pairing of Wiimotes is easier and PPJoy works to create dual Mice for M2 games. I just need to get Wiimouse working on TinyXP or perhaps glovepie... I'll look into GlovePie for multi Aim Tracks/Wiimotes as PPJoysticks which should work in WinXP just fine.

Ramjet.

Absolutely Ramjet. Brilliant. Thanks for your hard work and dedication to this project.  OKAY now to show my ignorance.....I don't know how to use the LUA scripts.  Will this be built into your next release of your app it will we need to modify version 0.4?

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 #47 on: July 05, 2012, 10:13:55 pm »
I'll just include the scripts in the next release of the borderless program...

Using scripts in M2 is as simple as having them the same name as the ROM in the Scripts directory and it will just run with the Emulator when the game starts. It's like .srt subtitle files to avi movies... they just work.

Compiling a new version now to do exactly as described with the lua scripts in the correct folder and auto launching the borderless utility. It works on my PC, let me know how it goes for you.

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

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 #48 on: July 05, 2012, 11:12:26 pm »
Ok, here is probably the final version of RamjetM2Borderless. Since there isn't really much more I can add to this. It launches automatically when you load the ROM and exits automatically when you close the emulator. It's as seamless as it can possibly get. I could theoretically get rid of the icons too if I wanted too, but they look so pretty!

Here is V0.5, usual google drive hosting. Click File>Download.

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

Here is the contents of the Readme.txt

Code: [Select]
Welcome to the - RamjetM2Borderless V0.5 -  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 shooters 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
Virtua Cop 2
House of the Dead
Rail Chase 2
Gunblade NY
Behind Enemy Lines



My Youtube Channel - please visit my youtube channel and make contact with me there.
-----------------------------------
http://www.youtube.com/user/ramjetr
-----------------------------------

or visit the active forum where this is currently being discussed

--------------------------------------------------------
http://forum.arcadecontrols.com/index.php?topic=104484.0
--------------------------------------------------------

Sega Model 2 Emulator can be found here

------------------------------
http://nebula.emulatronia.com/
------------------------------

---------------------------------------
Contents of RamjetM2Borderless V0.5.zip
---------------------------------------

RamjetM2Borderless.exe - The main program that monitors and sets borderless only the active Model 2 Emulator games below. Version number is removed for ease of LUA launching
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
behindenemylines.ico
\Scripts - LUA scripts to be ran by the Model2Emulator, This will automatically launch the RamjetM2Borderless program for you when the game is launched.
bel.lua
vcop.lua
vcop2.lua
hotd.lua
rchase2.lua
gunblade.lua




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?
---------------------------------------------

*** Updated ***

In this release there is a slight change for the usage of this program since.

Now included in the Zip file is a \Scripts folder with LUA scripts which will be auto executed by M2 Emulator when the ROM is launched. Within the script, it calls a command window
and launches the RamjetM2Borderless.exe to run in background. Unfortunately the M2 Emulator LUA script cannot hide the cmd window, however it will only appear very briefly as the
RamjetM2Bordlerless program will actively close the cmd window for you in the background once it's executed.

When running with a Front End, hopefully you won't see any of this happening behind the scene. Depending on how the Front End handles the blanking of the screen between launching and
showing the emulator, your milage may vary.

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. Once running it will kill the cmd window that was opened by M2 Emulator and minimize.

This app will now auto close when Model2Emulator is closed. Since it's being launched directly by the Model 2 emulator via the LUA scripts, there is no need to manually start this
program.


Changelog;
V0.5 - Updated by Mark 'Ramjet' Gallon 6/7/2012
  Added LUA scripts to Autolaunch RamjetM2Borderless for all shooting games.
  Automated the cmd window closure from M2 Emulators LUA script which launched this program automatically.
  Automated the exit of this app when M2 Emulator is no longer running.
  Added right-click to the taskbar icons for an Exit and About information.
  General clean up of old test code which had become distracting.
     

V0.4 - Updated by Mark 'Ramjet' Gallon 3/7/2012
  Added support for Behind Enemy Lines with icon in tasktray

V0.3 - 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
---------

**** Update : The bug below may only occur if you've manually launched the program and it's running whilst your doing other things with your PC. If the program is launched by
M2Emulator as it should be with the scripts, then the active window should only be the emulator and exited automatically. The occurance of the below mentioned bug should be all
but practically eliminated. ****

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.


Thanks
------

Big Thanks go out to elsemi and all who've worked so hard to bring Model 2 Memories to the home. The Model 2 Emulator is the inspiration to all of us to create and develope and
restore the fond memories of a gaming era past.

Thankyou!

Ramjet :D


Please let me know how this performs on your Front End's. If the cmd window is hidden or not? Does the program auto close it for you? General performance and any bugs.

Thanks to Badmouth and the rest forum for not complaining on the partial thread hijack (although it wasn't intended to be this way, I was just trying to get 2 wiimote mice to work lol) and thanks to DarthMarino and ABACABB for testing and giving feedback.
« Last Edit: July 06, 2012, 02:38:41 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

Mark Thomas

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 150
  • Last login:August 16, 2014, 07:41:56 am
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #49 on: July 08, 2012, 12:41:26 pm »
So can 2 guns now be used with M2?

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:July 11, 2020, 06:57:33 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #50 on: July 08, 2012, 03:34:12 pm »
Hey RamjetR, I just tried this today and it works great.
I have one problem though, the command window that pops up when you load a game seems to hang the emulator.
If I close the command window, the emulator starts up with the borderless app running, stops the m2 emulator from losing focus and allows off screen shooting.

Is there anything I am missing that would be causing the command window to stay open?
Work In Progress:
Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete
Pac-Man Cabaret scratch build: & BYOAC Project thread

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #51 on: July 08, 2012, 03:59:27 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.

Hmm, im using the AimTrak and Windows 7 and whenever i tried to play Virtua Cop or House of the dead in full screen mode after a few times of shooting off screen to reloaded the gun cause the game to minimise and go back to windows desktop! How did you stop that from happening with your set up??, is there a new version of M2 out...it was about 8 months ago last time i tried to get it to work?

DarthMarino

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 565
  • Last login:April 23, 2024, 02:16:09 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #52 on: July 08, 2012, 04:14:34 pm »


Hmm, im using the AimTrak and Windows 7 and whenever i tried to play Virtua Cop or House of the dead in full screen mode after a few times of shooting off screen to reloaded the gun cause the game to minimise and go back to windows desktop! How did you stop that from happening with your set up??, is there a new version of M2 out...it was about 8 months ago last time i tried to get it to work?

Lettuce, you might want to check out some of the posts by Ramjet in 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 #53 on: July 08, 2012, 11:07:28 pm »
Hey RamjetR, I just tried this today and it works great.
I have one problem though, the command window that pops up when you load a game seems to hang the emulator.
If I close the command window, the emulator starts up with the borderless app running, stops the m2 emulator from losing focus and allows off screen shooting.

Is there anything I am missing that would be causing the command window to stay open?

Hi Shun,

I couldn't imagine that you'd have missed any steps. It's pretty much just dump and run with the zip. The M2 Emulator waits for the command window to close and it's part of how LUA scripts are supported in the emulator to interface with the operating system. I've been looking around the internet to find a way to make it do it on the quiet without the command window, alas that's how it just seems to work.

Once closed, Model 2 should just run as per normal. Does the borderless program run after closing the command window? i.e is the Sega (whiteblue) logo in the task tray whilst the model 2 emulator is still running?

Whats supposed to happen (and this is how it actually works on my PC) is this,

Run emulator>Rom.  (eg vcop)
vcop calls and runs the lua script called vcop.lua in the scirpt folder.
vcop.lua calls os.execute to run the RamjetM2Borderless.exe (which it should fine in the same folder as the emulator.exe or emulator_multicpu.exe) in a command window
RamjetM2Borderless will do the following in this order;
- Minimise and load the sega.ico in the task tray
- Check for the cmd.exe (command window) and send it a gracefull shutdown command with a PostMessage from the Windows API..... ooooh this may be the difference?! What OS are your running. I'm using Windows 7 and this may be different on a WinXP PC... I'll check on this with the WinXP PC I'm building right now...
- Once the cmd.exe window is closed, then it scans the active title bar of the windows looking for any of the games titled in the supported game list
- Once it finds one, it removes the active window borders for that game and waits....
- it continues to wait until it no longer see the process running (i.e. you've exited the emulator) and then shuts down the RamjetM2Borderless app (closes completely) ready for the next time it's launched from the M2Emulator.

The critical part is the bits where the windows are active, I'll try on other configurations... but this worked on my Win7 PC fine with Hyperspin. Perhaps the Postmessage command being used isn't the same in WinXP as it is in Win7.

Again, I'll check on a WinXP config and let you know what I find. However, it's probably nothing you haven't done, so all good there.

Tell me though, When the command window is open and you closed it to continue with the M2 game. Were you running autoswitched to fullscreen or windowed? Was the command window the active window? When the game was running and you hit escape back to window mode, can you see a icon of the game in the Task Tray. i.e was the RamjetM2Borderless still running? Does this happen with everyone?

It's not the end of the world and probably just a little tweak at my end to solve it...

Thanks for the testing, maybe a little tweak left to do and it's pretty much done then. The Auto launching was a request to make it easier with front ends.


Quote
Hmm, im using the AimTrak and Windows 7 and whenever i tried to play Virtua Cop or House of the dead in full screen mode after a few times of shooting off screen to reloaded the gun cause the game to minimise and go back to windows desktop! How did you stop that from happening with your set up??, is there a new version of M2 out...it was about 8 months ago last time i tried to get it to work?

There isn't a new version of M2 (yet) and who knows if another one will ever grace us... (here's hoping for better 2 gun support). I've written an app that gets round the issue your having. Download my RamjetM2Borderless in my signature and try it out. Let me know how it goes for you.

So can 2 guns now be used with M2?

2 Guns can be used as long as they can be seen as two joysticks for now. I've been doing a rediculous amount of research into HID and capturing data under Win7's new multitouch API and the changes from WinXP Rawinput.

You have a better chance of making it work by default in WinXP as it can support 2 mice raw inputs with an app of which the name escapes me at present... I'm experimenting with some code in the HID multitouch api, but that's not as easy to do as it is to say since I'm learning it all from scratch.

I have had on Win7 2 x Wiimotes working using WiiMouse (mouse pointers) which directly sent their raw data to ppjoy for 2 joysticks. It does work, and it's possible to do the same thing with Glovepie and ppjoy (so long as your not x64 bit). Its a work in progress and I'll share anything I have with the community once I think I have something reliable to test out.

:D

Please try out my app and give feedback so that I can be assured that it's a worker for everyone and I can focus on the 2 Guns thing :P

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

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:July 11, 2020, 06:57:33 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #54 on: July 09, 2012, 07:50:52 am »

Hi Shun,

I couldn't imagine that you'd have missed any steps. It's pretty much just dump and run with the zip. The M2 Emulator waits for the command window to close and it's part of how LUA scripts are supported in the emulator to interface with the operating system. I've been looking around the internet to find a way to make it do it on the quiet without the command window, alas that's how it just seems to work.

Once closed, Model 2 should just run as per normal. Does the borderless program run after closing the command window? i.e is the Sega (whiteblue) logo in the task tray whilst the model 2 emulator is still running?

Whats supposed to happen (and this is how it actually works on my PC) is this,

Run emulator>Rom.  (eg vcop)
vcop calls and runs the lua script called vcop.lua in the scirpt folder.
vcop.lua calls os.execute to run the RamjetM2Borderless.exe (which it should fine in the same folder as the emulator.exe or emulator_multicpu.exe) in a command window
RamjetM2Borderless will do the following in this order;
- Minimise and load the sega.ico in the task tray
- Check for the cmd.exe (command window) and send it a gracefull shutdown command with a PostMessage from the Windows API..... ooooh this may be the difference?! What OS are your running. I'm using Windows 7 and this may be different on a WinXP PC... I'll check on this with the WinXP PC I'm building right now...
- Once the cmd.exe window is closed, then it scans the active title bar of the windows looking for any of the games titled in the supported game list
- Once it finds one, it removes the active window borders for that game and waits....
- it continues to wait until it no longer see the process running (i.e. you've exited the emulator) and then shuts down the RamjetM2Borderless app (closes completely) ready for the next time it's launched from the M2Emulator.

The critical part is the bits where the windows are active, I'll try on other configurations... but this worked on my Win7 PC fine with Hyperspin. Perhaps the Postmessage command being used isn't the same in WinXP as it is in Win7.

Again, I'll check on a WinXP config and let you know what I find. However, it's probably nothing you haven't done, so all good there.

Tell me though, When the command window is open and you closed it to continue with the M2 game. Were you running autoswitched to fullscreen or windowed? Was the command window the active window? When the game was running and you hit escape back to window mode, can you see a icon of the game in the Task Tray. i.e was the RamjetM2Borderless still running? Does this happen with everyone?

It's not the end of the world and probably just a little tweak at my end to solve it...

Thanks for the testing, maybe a little tweak left to do and it's pretty much done then. The Auto launching was a request to make it easier with front ends.

RamjetR,

Thanks for the quick response. Yes I get the Sega logo in the task tray and the command window pops up. Nothing happens until I close the command window down manually and then the M2 emulator auto switches to full screen and runs the borderless program perfectly (no minimising and also working with off screen shooting!). I think you may be right, I am using Windows XP and so the call to close the command window maybe different on Windows 7. Hopefully its a small tweak that needs to be made :D
Work In Progress:
Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete
Pac-Man Cabaret scratch build: & BYOAC Project 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 #55 on: July 09, 2012, 08:21:44 pm »
RamjetR,

Thanks for the quick response. Yes I get the Sega logo in the task tray and the command window pops up. Nothing happens until I close the command window down manually and then the M2 emulator auto switches to full screen and runs the borderless program perfectly (no minimising and also working with off screen shooting!). I think you may be right, I am using Windows XP and so the call to close the command window maybe different on Windows 7. Hopefully its a small tweak that needs to be made :D

No problem Shun,

The more people who test it on their cabinet and setups then the more universal I can make it.

Ok, so what I've done is change how I tell the cmd window to close. I was using a Postmessage to send the window close command through the windows message API. That's fine and for the most part it works. I've changed it back to basics and used the WinWait command to tell my program to wait until the command window exists, then tell it to close with WinClose. I tested it with both my WinXP PC and Win7. Worked fine for me... but that said, so did the last one... Depending on your front end however, it's possible that it could hide the cmd window from my program since I don't use Detecthiddenwindows. Maybe I should if this version 0.6 does the same thing for you. What front end are you using?

Appologies to BadMouth, sorry about hijacking your thread... I should start a new one, but most of the conversation has happened here now :S  I'll start a new one for the final release so it can be stickied?

******************************************************************
Version 0.6 is available here with the above (hopefully) fix. Click File>Download

Link Removed - .... Because, well... it didn't work lol ... fixed issue in V0.7

******************************************************************

Only the readme.txt and RamjetM2Borderless.exe has changed. Everything else is the same.

Code: [Select]
Changelog;
V0.6 - Updated by Mark 'Ramjet' Gallon 10/7/2012
 Changed how RamjetM2Borderless detects and close's the M2emulator cmd window that is opened when the game ROM launches it. Previously used a Postmessage to close a
 particular cmd window (which was kinda cool and tricky), but may have had problems on WinXP? Took it back to basics and used WinWait to check for the cmd window and
 WinClose to close down the cmd window. Worked on my WinXP and Win7 machines. Visit the forum above to comment and give feedback.

If you can try it out and give me some feedback, I'd be mega happy.

Thanks
:)
Ramjet

Oh and I did find that if your running multimonitors. The minimize problem can happen again when you shoot/click adjacent to the next monitor border. This is a Windows thing, and nothing I can do about it...  and I don't really want to capture and hold the mouse to the main game window just yet incase it breaks off screen reloading. For most if not everyone, You'll be playing this on a single screen anyway. So it's not a problem, but something I found when testing on my eyefinity setup at home. If you have multi monitors, you may still experience problems. The fix? unplug or disable the second/third screen...
« Last Edit: July 10, 2012, 07:24:38 pm 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

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:July 11, 2020, 06:57:33 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #56 on: July 10, 2012, 07:38:04 am »
Great news, can't wait to try it out later  :applaud:

I'll test it when I get home from work tonight.
I'll make sure I keep the testing outside of my front end at first and if those tests are successful I'll try it with Maximus Arcade.  :cheers:
Work In Progress:
Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete
Pac-Man Cabaret scratch build: & BYOAC Project thread

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:July 11, 2020, 06:57:33 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #57 on: July 10, 2012, 04:07:22 pm »
Hmmm, perhaps there is something wrong with the way my PC handles this program.  :(
I tried the new version and the command window still doesn't close automatically and also the sega exe that is minimised to the task tray also stays open when the M2 emulator is closed.

Do I need any specific software like .Net installed on my system for this to work?
It's odd, because the program works great but its just the auto closing that isn't working for me on my system  :'(
Work In Progress:
Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete
Pac-Man Cabaret scratch build: & BYOAC Project 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 #58 on: July 10, 2012, 05:58:17 pm »
Hmmm, perhaps there is something wrong with the way my PC handles this program.  :(
I tried the new version and the command window still doesn't close automatically and also the sega exe that is minimised to the task tray also stays open when the M2 emulator is closed.

Do I need any specific software like .Net installed on my system for this to work?
It's odd, because the program works great but its just the auto closing that isn't working for me on my system  :'(

Yeah I got home late last night after seeing "Ted" at the cinema's (great movie btw!) and tried it on my native XP rig and it did the same thing. Although it worked on my vmware XP at work... I'm looking into it right now with a coffee and brought a clone of my XP machine from home to work with me to test. I'll figure this out today... for now though... just run Version 0.5 if you still have it. Link is further up in this thread. I think it's because WinXP names the title bar differently.. but I couldn't check that at work yesterday (buggers expect me to do work for some reason?).

You don't need anything specific installed... it's just running a compiled version of AutoHotKey. When compiled, it should include everything in the exe you need to run it. That's why the script skyrockets from 20kb to 1MB after being compiled. Still, it's small enough...

*** See below for update ***

Ramjet
« Last Edit: July 10, 2012, 07:12:52 pm 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

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 #59 on: July 10, 2012, 07:22:08 pm »
OK, nailed it this time...

Here is Version 0.7 (and yes this one will auto close the cmd window in all Win OS): Click File>Download

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

Update in the changelog;
Code: [Select]
Changelog;

V0.7 - Updated by Mark 'Ramjet' Gallon 11/7/2012
  Found solution to not autoclosing in WinXP in this forum thread. Many Thanks go to 'Serenity' for sharing his/her solution.
  http://www.autohotkey.com/community/viewtopic.php?t=35438
  Program should now actively close the M2Emulator cmd window in all Windows OS correctly now :)

The problem appeared that in Win7 it would accept a Postmessage to close the cmd window, but WinXP wouldn't and since the cmd window also wouldn't accept an Alt-F4 (which the postmessage and winclose was sending) it wouldn't work in XP. After running a clone of my XP machine and some additional time to test (the coffee helped ALOT!) and good ol' google on my side, the autohotkey community never fail to help. Process,Close,cmd.exe was the answer.

It should work as advertised now, and unless there is significant issues or other options people would like to add. This should be the final release? Please test and give feedback :)

Also note, that this will work with almost any program. So if you have another in mind and have the same problem of incorrect minimizing during game play. It's really just adding a line of code to make it work with that game.
:D
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

Shun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 100
  • Last login:July 11, 2020, 06:57:33 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #60 on: July 11, 2012, 05:19:01 pm »
I tried version 0.7 out with my Aimtrak and IR slider bar and it works perfectly now (in maximus arcade and run normally)!  :applaud:
Thank you so much RamjetR, I can now play M2 games without having to worry about the emulator minimising and freezing!  :cheers:
Work In Progress:
Two Phase Bartop With Flush Mounted Dreamcast. 75% Complete
Pac-Man Cabaret scratch build: & BYOAC Project 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 #61 on: July 11, 2012, 07:51:48 pm »
I tried version 0.7 out with my Aimtrak and IR slider bar and it works perfectly now (in maximus arcade and run normally)!  :applaud:
Thank you so much RamjetR, I can now play M2 games without having to worry about the emulator minimising and freezing!  :cheers:


That is great news! Thankyou for testing it for me. I'm pretty confident that it should be finished now and I can probably focus more on the Dual Light gun issue. Under Windows 7, as I read up on it more and more. The Raw Input system was replaced with a HID system which does not seemingly distinguish the difference between mice. I've been playing with some tricky scripting which for the most part above my head in programming (I only started with windows programming in January, so I'm still pretty noob). Been taking apart others HID code to see if I can expose the mice separately as raw inputs. But I fear that under Win7, Mice won't show up as Raw Inputs. But Joysticks will (since they occupy a different HID page and usage catagory). So at this stage, I'm expecting the use of a PPJoy or VJoy to still be the answer and possibly having to create the interface to those.

PPJoy will still work with unsigned drivers in Windows test mode. And there is a mod to remove the Test Mode watermark left in the corner of the screen if that is an issue. But since the PC will be offline and stand alone. Running unsigned drivers for PPJoy shouldn't be much of a problem for alot of people in a cabinet.

Do AimTracks solely appear as a mouse? I have been reading that they can be used as a Gamepad also? or is that just the buttons? If they can appear as a gamepad with an X Y coordinate (like a joystick) then I can't see why it won't just work?

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: 565
  • Last login:April 23, 2024, 02:16:09 pm
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #62 on: July 11, 2012, 08:36:30 pm »
Do AimTracks solely appear as a mouse? I have been reading that they can be used as a Gamepad also? or is that just the buttons? If they can appear as a gamepad with an X Y coordinate (like a joystick) then I can't see why it won't just work?

The software does give you the option to "Emulate Mouse" or "Emulate Joystick".

Andy wrote this when he released the firmware supporting it:

"This version adds an option to emulate an analog joystick instead of mouse. This is selectable in the config utility. This causes the analog X and Y axes to follow the aim of the gun so the full screen area is mapped to the full analog joystick travel.

Some PC games require this as they do not support mouse control."

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9226
  • Last login:April 22, 2024, 09:54:06 am
  • ...
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #63 on: July 11, 2012, 11:25:29 pm »
From the discussion, it sounds like analogue joysticks can be used for the gun games in Model 2 emulator.
I didn't think this was an option.
  
Are you using some other software to convert joystick to mouse movement or does M2 emulator support joysticks directly?
If directly, where can that option be set?

I have a positional gun I'd like to use, but the few joy-to-mouse programs I tried resulted in the crosshairs not moving smoothly.
It was like they were on a grid, snapping from point to point. 
« Last Edit: July 11, 2012, 11:41:12 pm by BadMouth »

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 #64 on: July 12, 2012, 12:05:52 am »
I have wiimouse detecting both wiimotes and outputting the data to ppjoy successfully.

Then configured the vcop game settings to use the ppjoysticks by actually moving the wiimote across the screen. So the program actually see's the wiimotes via ppjoy without issue.

Then when it comes to playing, I don't have any cursors move when moving wiimotes or even two cursors without enabling raw input.

I have to wait till I get home to plug in a joystick to see if the emulator actually recognises a joystick for shooters when configured in the game settings... but it does let me configure them in the menu. Weird.

I'm getting close though... Has anyone got AimTrack to work as a single joystick on the screen yet?
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

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #65 on: July 15, 2012, 04:56:50 pm »
There isn't a new version of M2 (yet) and who knows if another one will ever grace us... (here's hoping for better 2 gun support). I've written an app that gets round the issue your having. Download my RamjetM2Borderless in my signature and try it out. Let me know how it goes for you.

Ramjet

Works a treat mate thanks.

Now im not sure if this does it when not usuing your program or not, but in house of the dead on the cut scene parts there seems to be a graphical glitch on the right side of the screen where the 4:3 display ends

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 #66 on: July 16, 2012, 06:06:04 pm »
There isn't a new version of M2 (yet) and who knows if another one will ever grace us... (here's hoping for better 2 gun support). I've written an app that gets round the issue your having. Download my RamjetM2Borderless in my signature and try it out. Let me know how it goes for you.

Ramjet

Works a treat mate thanks.

Now im not sure if this does it when not usuing your program or not, but in house of the dead on the cut scene parts there seems to be a graphical glitch on the right side of the screen where the 4:3 display ends

I haven't a clue mate sorry... I don't have any lightguns and as yet haven't played much more than 2 mins of any of the light gun games in Model 2 because of that. I spent more time on being able to run them than actually play them lol...

I'll check, but I doubt it's something caused by my program. Mine just removes the titlebar from Model 2 so that you can't accidently click on with your lightgun/mouse.

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

vandale

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 409
  • Last login:April 06, 2024, 06:15:03 am
  • Id 10 and t error
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #67 on: January 11, 2013, 03:17:29 am »
Hi everyone.

I cant find any other topics about 2 guns in M2 so will revivie this old post.

I have sucessfully got 2 wiimotes running in M2, firing there own bullets respectively using the following:

Macbook pro bootcamp windows 7 Ultimate 32 bit
Standard microsoft Bluetooth stack (auto connects to wiimotes)
Glovepie free
MAME Wii Lightgun Glovepie Script by HowardC Version 1.5
PP joy (takes wiimote input and converts to windows gamepads)
M2 v1.0
Virtua Cop
M2 Ini set as:
[Input]
XInput=0         ;Enable support for Xbox360 compatible devices
EnableFF=0         ;Enable Force Feedback Effects
HoldGears=0         ;Set to 1 to return to Neutral in driving games when the gear shift key is released
UseRawInput=1         ;Read mouse through Rawinput, allowing 2 mice
RawDevP1=3         ;Assign specific RawInput devices to players. If you have more than 2 mice
RawDevP2=4         ;set which one is assigned to each player (0-based)

Now I am happy that I have them working seperate to each other and its playable but the way the game interprets the joystick movement via the PPjoy and Wiimote script is not ideal, its hard to explain but the cross hair doesnt track directly back to the wiimote, it lags somewhat.
I use the identical setup in MAME and it works sweet.

FYI its not the actual game config as I have pressed F2 and calibrated the guns.

My question is, does M2 raw input look for mouse input or gamepad x/y?

If anyones still interested and wants to help, Ramjet? then let me be the guinue pig.

Thanks

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 #68 on: January 21, 2013, 06:37:52 pm »
Hi everyone.

I cant find any other topics about 2 guns in M2 so will revivie this old post.

I have sucessfully got 2 wiimotes running in M2, firing there own bullets respectively using the following:

Macbook pro bootcamp windows 7 Ultimate 32 bit
Standard microsoft Bluetooth stack (auto connects to wiimotes)
Glovepie free
MAME Wii Lightgun Glovepie Script by HowardC Version 1.5
PP joy (takes wiimote input and converts to windows gamepads)
M2 v1.0
Virtua Cop
M2 Ini set as:
[Input]
XInput=0         ;Enable support for Xbox360 compatible devices
EnableFF=0         ;Enable Force Feedback Effects
HoldGears=0         ;Set to 1 to return to Neutral in driving games when the gear shift key is released
UseRawInput=1         ;Read mouse through Rawinput, allowing 2 mice
RawDevP1=3         ;Assign specific RawInput devices to players. If you have more than 2 mice
RawDevP2=4         ;set which one is assigned to each player (0-based)

Now I am happy that I have them working seperate to each other and its playable but the way the game interprets the joystick movement via the PPjoy and Wiimote script is not ideal, its hard to explain but the cross hair doesnt track directly back to the wiimote, it lags somewhat.
I use the identical setup in MAME and it works sweet.

FYI its not the actual game config as I have pressed F2 and calibrated the guns.

My question is, does M2 raw input look for mouse input or gamepad x/y?

If anyones still interested and wants to help, Ramjet? then let me be the guinue pig.

Thanks

Haha that's great news Vandale. I managed to get it working a year ago and for the life of me when I disconnected everything and put it back to being a normal laptop it wouldn't ever work again. Glad to see I wasn't going mad and making it up in my head :)

I presume the Glovepie script your using outputs the Wii data to Joystick X/Y with PPJoy, So it must be getting it's data from the joystick X/Y as a Raw input device. Oddly enough, in all the discussion over the years. I haven't seen anyone try installing 2 joysticks and trying to prove that it would work from standard joystick X/Y on it's own right let alone trying to emulate it.

I have a program (somewhere, I'll have to look it up again) which lists all the devices connected and their Raw input ID for ease of setting the ini file correctly.

Wii Motes do lag though. They've always lagged, even on the Wii itself. Changing Glovepie scripts to up the sample rate to 100fps helps but it's still a laggy setup. But it works and it's cheap.

A youtube video of your setup and perhaps all of your settings would go along way to help others :)

Did you get the calibration to work nicely for you? If not, the trick I found was the manual calibration and manually set the shot to the crosshair to overcome the 4:3 to 16:9 miscalibration that I get on a laptop screen.

Anywho, if I can help I will but sounds like you've got it sorted out as well as a Wiimote solution will ever work for you... Youtube it too! Give everyone else hope that it can be done! :)
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

blin

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:May 07, 2014, 05:48:31 am
  • I want to build my own arcade controls!
Re: Anyone using 2 light guns with M2 Emulator?
« Reply #69 on: March 17, 2014, 01:20:20 pm »
sorry for my english and revive this old post.

i try  have 2 wiimote in m2 but i can't get
i follow the step of vandale and nothing.

i use Script #2 Quad Wiimote Lightguns for MAME 1.5 (mwg1.5.zip) of Howard_Casto
i can see two mice but when i open m2 i can't move

i can play with 2 mouse or with one wiimote as mouse, but i can`t play with 2 wiimote as joystick

thanks