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.
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.
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
Ramjet