Krakerman Posted June 22, 2013 Share Posted June 22, 2013 I am trying to use the following command for mame launch before:"C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe" -wallpaperloadprofile ""[ROM]""Launch After:"C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe" -wallpaperloadprofile "Default Profile"Doesn't work however it works if I use it in my emulator configs just not if I use the PluginLaunch plugin.Any idea? Quote Link to comment Share on other sites More sharing options...
Krakerman Posted June 23, 2013 Author Share Posted June 23, 2013 I will try Adultery's MAME Commander 2 and see if I have better luck. Maybe not crashes right away.See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object. at Configuration.Check_Enable_Emu_Override_CheckedChanged(Object sender, EventArgs e) at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e) at System.Windows.Forms.CheckBox.set_CheckState(CheckState value) at System.Windows.Forms.CheckBox.OnClick(EventArgs e) at System.Windows.Forms.CheckBox.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)----------------------------------------PluginManager Assembly Version: 1.0.3266.29832 Win32 Version: 1.0.3266.29832----------------------------------------System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)----------------------------------------System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)----------------------------------------System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)----------------------------------------CursorHider Assembly Version: 1.0.3416.17500 Win32 Version: 1.0.3416.17500----------------------------------------Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------DT Loader Assembly Version: 1.0.4797.25802 Win32 Version: 1.0.4797.25802----------------------------------------System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5456 (Win7SP1GDR.050727-5400)----------------------------------------Exocortex.DSP Assembly Version: 2.0.2584.40793 Win32 Version: 2.0.2584.40793----------------------------------------Game Info Plugin Assembly Version: 1.0.4903.39613 Win32 Version: 1.0.4903.39613----------------------------------------Interop.SpeechLib Assembly Version: 5.0.0.0 Win32 Version: 5.0.0.0----------------------------------------MAME Commander 2 Assembly Version: 2.0.4831.29935 Win32 Version: 2.1.0.0----------------------------------------PlugInCallerID Assembly Version: 1.0.2584.42633 Win32 Version: 1.0.2584.42633----------------------------------------PlugInDigDug Assembly Version: 1.0.3165.10968 Win32 Version: 1.0.3165.10968----------------------------------------PlugInExit Assembly Version: 1.0.2584.42966 Win32 Version: 1.0.2584.42966----------------------------------------PlugInLaunch Assembly Version: 1.4.0.0 Win32 Version: 1.4.0.0----------------------------------------PlugInLCD Assembly Version: 1.0.3429.15039 Win32 Version: 1.0.3429.15039----------------------------------------PlugInRotate Assembly Version: 1.3.0.0 Win32 Version: 1.3.0.0----------------------------------------PlugInSpeech Assembly Version: 1.0.3432.404 Win32 Version: 1.0.3432.404----------------------------------------PlugInUltraStik Assembly Version: 1.3.0.0 Win32 Version: 1.3.0.0----------------------------------------RandomArcadeSound Assembly Version: 1.0.3432.3424 Win32 Version: 1.0.3432.3424----------------------------------------System.Data.SQLite Assembly Version: 1.0.86.0 Win32 Version: 1.0.86.0----------------------------------------Tapi2Lib Assembly Version: 1.0.2.5 Win32 Version: 1.0.2.5----------------------------------------VPinball Plugin Assembly Version: 1.0.4817.21333 Win32 Version: 1.0.4817.21333----------------------------------------Xpadder Plugin Assembly Version: 1.0.4901.25975 Win32 Version: 1.0.4901.25975----------------------------------------System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)----------------------------------------System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration> <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box. Quote Link to comment Share on other sites More sharing options...
Krakerman Posted June 23, 2013 Author Share Posted June 23, 2013 I'm only using MAME64 0.149 nogui version that I compiled using the MAME Compiler 64. Crahes as soon as I check the emulator override box in MAME Commander 2.Log:6/22/2013 5:16:44 PM : MAME Commander 2 (Version: 2.1.4)6/22/2013 5:16:44 PM : Settings loaded OK!6/22/2013 5:16:44 PM : Loading search types...6/22/2013 5:16:44 PM : Loading command-line switches...6/22/2013 5:16:44 PM : Getting switch data...6/22/2013 5:16:44 PM : Loading switches...6/22/2013 5:16:44 PM : Populating switch data...6/22/2013 5:16:44 PM : Switch data populated OK!6/22/2013 5:16:44 PM : Switches loaded OK!6/22/2013 5:16:44 PM : Getting GameEx info...6/22/2013 5:16:44 PM : Loading GameEx ini...6/22/2013 5:16:44 PM : Getting global switches...6/22/2013 5:16:44 PM : Setting up variables...6/22/2013 5:16:44 PM : GameEx ini loaded OK!6/22/2013 5:16:44 PM : Configuration initialized OK!6/22/2013 5:16:44 PM : Building available game list...6/22/2013 5:16:44 PM : Getting MAME version...6/22/2013 5:16:44 PM : Getting XML version...6/22/2013 5:16:44 PM : Checking versions for update...6/22/2013 5:16:44 PM : No update was available! Proceeding...6/22/2013 5:16:54 PM : Successfully loaded MAME.XML!6/22/2013 5:16:54 PM : Getting game count...6/22/2013 5:16:54 PM : Finished loading!6/22/2013 5:17:42 PM : Saving configuration...6/22/2013 5:17:42 PM : Saved OK!6/22/2013 5:17:42 PM : C-Ya! Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 I can get this command line to work in the Launch before and after in the MAME settings but when I set it up using Ben's PluginLaunch plugin it doesn't work.I tried every possible combination and no go so this is leading me to believe that this plugin in broken. Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 I think it may be an issue with quotes. I'll look into it. Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 So as I look at the code, I right away take notice of the following:[ROM] isn't even a supported variable. You need to use [ROMNAME] if you're attempting to sub in the rom's file name without the extension. I put this version together, not Tom. So, in a nutshell, Tom and I don't do everything exactly the same. Next time, make sure you RTFM! Lol!In case you were unaware, there is also a HELP button on the form that shows a description of each supported variable as well: Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 I already did that and took the [ROM] out and used [ROMNAME] and still no go. Also took the quotes out and it doesn't work.I saw the Help button and used that. Thanks for looking into it my friend I guess I need Ben to look at it and maybe there is something I'm doing wrong but I have tried about everything.Unless of course you want to take a stab at creating a multi-launch plugin! (hint hint) Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 I have the source for this, so I might still be able to fix this. I'll need to do some debugging to see what is going wrong where. Hold on. Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 Thanks! Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 Could you post up the log file and the ini for me to use in testing? Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 The strange thing is it says can't find file but that same command line works in the launch before? So I'm confused but here you go. Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 One thing to note is DisplayFusion needs the " (quotes) in the command line to work. So it needs to look like:C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand.exe -wallpaperloadprofile "pacman"That might be the problem since PluginLaunch isn't passing the quotes in the command line it. So when using double quotes it just ignores them I guess where as Launch Before/After doesn't. Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 I'm working on something new. I can't maintain Ben's code like I can my own. I am going to approach this a little differently and see if I can't come up with a better solution to this plugin (maybe not better per se, but in a way I can more easily manage/maintain the code).Nothing on Ben, but his stuff is just too fierce for an amateur like me (see way out of my league). Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 Thanks for having a look at it and looking forward to seeing what you come up with. You don't give yourself enuff credit as I thing your work is beyond amateurish my friend. Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 14, 2013 Share Posted July 14, 2013 Nice try! Flattery will get you everywhere! I was thinking something like this perhaps... Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 14, 2013 Author Share Posted July 14, 2013 Very nice indeed! Love it can't wait to give it a test run! Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 15, 2013 Share Posted July 15, 2013 Well, you don't have to wait anymore Krak. http://www.gameex.info/forums/files/file/39-quicklaunch/ Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 15, 2013 Author Share Posted July 15, 2013 I got instant crash when I try to setup:See the end of this message for details on invokingjust-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************System.NullReferenceException: Object reference not set to an instance of an object. at Config.Button_Edit_Process_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)************** Loaded Assemblies **************mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)----------------------------------------PluginManager Assembly Version: 1.0.3266.29832 Win32 Version: 1.0.3266.29832----------------------------------------System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)----------------------------------------System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)----------------------------------------System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)----------------------------------------CursorHider Assembly Version: 1.0.3416.17500 Win32 Version: 1.0.3416.17500----------------------------------------Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------DT Loader Assembly Version: 1.0.4942.4705 Win32 Version: 1.0.4942.4705----------------------------------------System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5473 (Win7SP1GDR.050727-5400)----------------------------------------System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5471 (Win7SP1GDR.050727-5400)----------------------------------------Exocortex.DSP Assembly Version: 2.0.2584.40793 Win32 Version: 2.0.2584.40793----------------------------------------Game Info Plugin Assembly Version: 1.0.4910.1761 Win32 Version: 1.0.4910.1761----------------------------------------System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)----------------------------------------Interop.SpeechLib Assembly Version: 5.0.0.0 Win32 Version: 5.0.0.0----------------------------------------MAME Commander 2 Assembly Version: 2.0.4831.29935 Win32 Version: 2.1.0.0----------------------------------------PlugInCallerID Assembly Version: 1.0.2584.42633 Win32 Version: 1.0.2584.42633----------------------------------------PlugInDigDug Assembly Version: 1.0.3165.10968 Win32 Version: 1.0.3165.10968----------------------------------------PlugInExit Assembly Version: 1.0.2584.42966 Win32 Version: 1.0.2584.42966----------------------------------------PlugInLaunch Assembly Version: 1.4.0.0 Win32 Version: 1.4.0.0----------------------------------------PlugInLCD Assembly Version: 1.0.3429.15039 Win32 Version: 1.0.3429.15039----------------------------------------PlugInRotate Assembly Version: 1.3.0.0 Win32 Version: 1.3.0.0----------------------------------------PlugInSpeech Assembly Version: 1.0.3432.404 Win32 Version: 1.0.3432.404----------------------------------------PlugInUltraStik Assembly Version: 1.3.0.0 Win32 Version: 1.3.0.0----------------------------------------QuickLaunch Assembly Version: 1.0.4944.4092 Win32 Version: 1.0.4944.4092----------------------------------------RandomArcadeSound Assembly Version: 1.0.3432.3424 Win32 Version: 1.0.3432.3424----------------------------------------System.Data.SQLite Assembly Version: 1.0.86.0 Win32 Version: 1.0.86.0----------------------------------------Tapi2Lib Assembly Version: 1.0.2.5 Win32 Version: 1.0.2.5----------------------------------------VPinball Plugin Assembly Version: 1.0.4587.20373 Win32 Version: 1.0.4587.20373----------------------------------------Xpadder Plugin Assembly Version: 1.0.4901.25975 Win32 Version: 1.0.4901.25975----------------------------------------System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.5473 (Win7SP1GDR.050727-5400)----------------------------------------************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.For example:<configuration> <system.windows.forms jitDebugging="true" /></configuration>When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box. Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 15, 2013 Author Share Posted July 15, 2013 That error happened when I clicked on Edit before I clicked Add ... Oops sorry! Maybe needs a trap there just in case someone does that so it pops up a box saying you need to Add before you can start or something to that effect. But it is working great so far as I tested Display Fusion with MAME and it's running good.Love it thanks Adultery!! Quote Link to comment Share on other sites More sharing options...
Krakerman Posted July 16, 2013 Author Share Posted July 16, 2013 So can we have more than 1(multiple) Launch Before/After for the same emulator I take it? Quote Link to comment Share on other sites More sharing options...
Adultery Posted July 16, 2013 Share Posted July 16, 2013 Yup, you can have as many as you want as long as the names are different. Yeah that was a start to finish plugin in >12 hours. I still want to do some finishing touches on it like tab stops. I'll fix that edit button and the remove button issue tonight probably.Glad it's working for you. Let me know if you hit any other snags. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.