Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

ok, I found a cheap wiimote and decided to try glovepie for a quasi-lightgun.

I have it working really well, minus the obvious problems associated with doing this. I want to be able to launch glove pie from a command line before it starts an EMU or app so I can specify which profile to use. This works from a command line:

D:\SYS_Apps\GlovePIE\glovepie.exe -D:\SYS_Apps\GlovePIE\WiimoteScripts\MAME_IR_PPJoy_x2.PIE

and I use this to close after it closes,and it works from Gameex:

TASKKILL /F /IM glovepie.exe /T

My problem is, whenever I try to launch mame with the launch before, it comes up to a black screen for a few minutes and then mame closes and goes back to Gameex. If I remove the launch before, and manually start GlovePIE, I am able to play a game and then GlovePIE closes when I close back to gameex. If I use the launch before option, it launches GlovePIE, stalls, closes back to gameex and GlovePIE is still open, so it looks like MAME isn't even launching!

I tried to use a bat to launch it instead using:

@echo off

start /MIN D:\SYS_Apps\GlovePIE\glovepie.exe -D:\SYS_Apps\GlovePIE\WiimoteScripts\MAME_IR_PPJoy_x2.PIE

but the result is the same. Is there something I need to do to my MAME command line?

I'm stumped, Thank you guys in advance for the help on this one!

Posted

same result, It just stalls on a black screen unless I manually close glovepie after initializing from gameex, then it will launch the mame rom.

if it helps, I noticed in the taskbar, there is a command window for gameex.lnk, up until I close glovepie, then one immediately opens for mame and gameex.lnk closes.

Posted

Thanks bkenobi, using a modified ahk script seems to do the trick. Also, thanks for the info on specifying EMUs on a per rom basis. I hadn't thought that far ahead =). It's no good having the TTS voice come up and say wiimote lightgun intialized when starting the smurfs game! LOL

So this leads me to another question. In

mameemumap.ini, it says:

# The following settings tell GameEx when to use an emulator to launch

# instead of MAME. To specifcally specify MAME use 0. To specify Daphne

# use 1000

is this relative to the EMU's number in my Gameex emu list? I'm assuming so..

So now I just need to figure out how to pull a list of romnames for only lightgun games and I should be set!

Thanks again you guys, and Headkaze, thanks for that launcher app, I have something else in mind to use it for where i know it will work better than using &&s and having a mile long command line ;)

Posted

Yup. Whatever the emulator number is in GameEx, that's what you put in the mameemumap.ini file. So, if you have a lightgun version of MAME set up in emulator slot 10 for instance, you would use 10.

There are a number of lists out there already, but if you want to create your own (those others might be outdated anyway), try using Rom Lister. It's an awesome little app that gives you the ability to generate many different kinds of list outputs with a wide variety of input criteria. Remember that there are 2 kinds of gun games though...true light gun and positional (joystick) guns. You will likely need to treat them differently in the emu (or at least make different configs for them in MAME).

  • 1 month later...
Posted

There has been practically no testing or feedback but I wrote a plugin for GameEx called Launch. Give it a try and let me know if it works for you.

Hk, I tried this today, but no luck. Am I doing something wrong?

PluginLaunch.ini

; PlugInLaunch v1.0 for GameEx By HeadKaze

; ========================================

;

; You can have up to 8 different command lines to launch.

;

; To create a custom section for an emulator use the "TitleText" property from an emulator config.

;

; [CATEGORY], [YEAR], [DEVELOPER], [DESCRIPTION]

; [PLAYERS], [CONTROL], [CLONEOF], [ORIENTATION], [videoWIDTH], [videoHEIGHT], [COCKTAIL]

; [EMUNUM], [EMUNAME], [GAMENAME], [ROMPATH], [ROMNAME], [ROMFILTER], [sNAPPATH], [TITLEPATH], [CMDLINE]

[General]

Debug=true

[MAME]

LaunchBefore1= "C:\Users\Matt\Desktop\My Marquee Magician\Marquee Magician1.37.exe" "MAME Games" "[RomName]"

LaunchBefore2=

LaunchBefore3=

LaunchBefore4=

LaunchBefore5=

LaunchBefore6=

LaunchBefore7=

LaunchBefore8=

LaunchAfter1= "C:\Users\Matt\Desktop\My Marquee Magician\Marquee Magician1.37.exe" "GameEx"

LaunchAfter2=

LaunchAfter3=

LaunchAfter4=

LaunchAfter5=

LaunchAfter6=

LaunchAfter7=

LaunchAfter8=

As you can see, I set debug = true, and all I got for the PluginLaunch.log is:

11/10/2009 1:31:01 PM: Launch 1.0

11/10/2009 1:31:01 PM: OS: Microsoft® Windows Vista Home Basic

11/10/2009 1:31:01 PM: Version: 6.0.6000

11/10/2009 1:31:01 PM: Build: 6000

11/10/2009 1:31:01 PM: RAM Total: 2038 MB

11/10/2009 1:31:01 PM: RAM Used: 1013 MB

11/10/2009 1:31:02 PM: CPU: Intel® Celeron® M CPU 420 @ 1.60GHz

11/10/2009 1:31:02 PM: Video Card: Mobile Intel® 945 Express Chipset Family

11/10/2009 1:31:02 PM: Video Driver: 7.14.10.1504

11/10/2009 1:31:02 PM: Video RAM: 256 MB

11/10/2009 1:31:02 PM: Video Card: Mobile Intel® 945 Express Chipset Family

11/10/2009 1:31:02 PM: Video Driver: 7.14.10.1504

11/10/2009 1:31:02 PM: Sound Card: Realtek High Definition Audio

11/10/2009 1:31:02 PM: .NET: .NET Framework 2.0 Installed

I appreciate any help that you may give.

Edit: I found this in my GameEx Log

13:45:20.5 11/10/2009: PlugIn: "Launch" caused an exception and is being disabled.

13:45:20.5 11/10/2009: Exception has been thrown by the target of an invocation.

13:45:20.5 11/10/2009: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

13:45:20.5 11/10/2009: at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

13:45:20.5 11/10/2009: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

13:45:20.5 11/10/2009: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

13:45:20.5 11/10/2009: at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

13:45:20.5 11/10/2009: at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)

13:45:20.5 11/10/2009: at af.a(Object A_0, String A_1, Object A_2)

13:45:20.5 11/10/2009: at af.a(b A_0, String A_1)

13:45:20.9 11/10/2009: Running: cmd.exe /c C: C:\Emulators\Mame64\mame.exe mrdo -rompath C:\Emulators\Mame64\roms

13:45:35.2 11/10/2009: Exiting GameEx!

Guest
This topic is now closed to further replies.
×
×
  • Create New...