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: CPWizard Question  (Read 4185 times)

0 Members and 1 Guest are viewing this topic.

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
CPWizard Question
« on: November 15, 2009, 01:15:24 pm »
CPWizard is an awesome tool. And now that the controls dat project is being working on again, it will continue to get awesomer. But I am wondering the following... I realize CPWizard gets its button label information from the controls.xml file, and reads the .cfg files from mame, right? Some games have inputs that are labeled in MAME - by this I mean they show up in the MAME config menu with names. sfrush for example lists the inputs as View 1, View 2, Track 1, etc. instead of Button1 Button2, etc. So why can't CPWizard see these input labels if there is not an entry for sfrush in controls.xml?

For now, I realize that I can use another awesome tool by Headkaze to create my own entry to the controls.xml file - but I am wondering if this is necessary or if there is another way?

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard Question
« Reply #1 on: November 15, 2009, 01:27:25 pm »
You're correct CPW uses Controls.xml and reads in the ctrlr, cfg and ListInfo.xml. The ListInfo.xml file is generated by the MAME executable and contains info about every game such as number of buttons, display info, cpu etc. I use this info to guess labels by numbering them from 1 to x. The "View 1", "View 2" is probably hard coded in the driver and not info available from ListInfo.xml.

Here is the sfrush entry for example, as you can see no mention of "View x" or "Track x"..

Code: [Select]
<game name="sfrush" sourcefile="seattle.c">
<description>San Francisco Rush</description>
<year>1996</year>
<manufacturer>Atari Games</manufacturer>
<rom name="hdboot.u32" size="524288" crc="39a35f1b" sha1="c46d83448399205d38e6e41dd56abbc362254254" region="user1" offset="0"/>
<rom name="sndboot.u69" size="524288" crc="7e52cdc7" sha1="f735063e19d2ca672cef6d761a2a47df272e8c59" region="cageboot" offset="0"/>
<rom name="sfrush.u62" size="2097152" crc="5d66490e" sha1="bd39ea3b45d44cae6ca5890f365653326bbecd2d" region="cage" offset="400000"/>
<rom name="sfrush.u61" size="2097152" crc="f3a00ee8" sha1="c1ac780efc32b2e30522d7cc3e6d92e7daaadddd" region="cage" offset="400002"/>
<rom name="sfrush.u53" size="2097152" crc="71f8ddb0" sha1="c24bef801f43bae68fda043c4356e8cf1298ca97" region="cage" offset="800000"/>
<rom name="sfrush.u49" size="2097152" crc="dfb0a54c" sha1="ed34f9485f7a7e5bb73bf5c6428b27548e12db12" region="cage" offset="800002"/>
<disk name="sfrush" sha1="e2db0270a707fb2115207f988d5751081d6b4994" region="ide" index="0"/>
<chip type="cpu" tag="maincpu" name="R5000 (little)" clock="200000000"/>
<chip type="cpu" tag="cage" name="TMS32031" clock="33868800"/>
<chip type="audio" tag="dac1" name="DMA-driven DAC"/>
<chip type="audio" tag="dac2" name="DMA-driven DAC"/>
<chip type="audio" tag="dac3" name="DMA-driven DAC"/>
<chip type="audio" tag="dac4" name="DMA-driven DAC"/>
<display type="raster" rotate="0" width="640" height="480" refresh="57.000000" pixclock="17510400" htotal="640" hbend="0" hbstart="640" vtotal="480" vbend="0" vbstart="480" />
<sound channels="2"/>
<input players="1" buttons="16" coins="4" service="yes" tilt="yes">
<control type="paddle" minimum="16" maximum="240" sensitivity="25" keydelta="5"/>
<control type="pedal" minimum="0" maximum="255" sensitivity="25" keydelta="100"/>
</input>
<dipswitch name="Boot ROM Test">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0004">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0008">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0010">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0020">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0040">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0080">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0100">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0200">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0400">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown0800">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown1000">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown2000">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown4000">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<dipswitch name="Unknown8000">
<dipvalue name="Off" default="yes"/>
<dipvalue name="On"/>
</dipswitch>
<driver status="good" emulation="good" color="good" sound="good" graphic="good" savestate="supported" palettesize="0"/>
</game>

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: CPWizard Question
« Reply #2 on: November 16, 2009, 12:47:46 pm »
Are there any known issues with using CPWizard on a Windows XP x64 install? I am having some weird issues, and it seems to be persistent in various combinations of CPWizard Pause and MAME Output options.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard Question
« Reply #3 on: November 17, 2009, 02:36:15 am »
Are there any known issues with using CPWizard on a Windows XP x64 install? I am having some weird issues, and it seems to be persistent in various combinations of CPWizard Pause and MAME Output options.

My development machine where I code and test CPW is XP 64 so it should be working fine. I haven't done as much testing on some of the new features as I had hoped but the general display and everything should work okay. You can always turn on Verbose Logging and post your log file here for me to take a look. Any more detail on the problems you're experiencing? Also the version of Mame used does make a difference and I generally test CPW the most with the latest version, although I have tested it with older versions of Mame too.

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: CPWizard Question
« Reply #4 on: December 01, 2009, 11:28:51 am »
I finally had a chance to look at this issue again. It appears to be related to CPWizards interaction with MaLa. Here's what I tested last night:
Set CPWizard per this screenshot:

From MaLa launch a game and hit the "L" key to show the CP layout. The MAME window hides, briefly showing the MaLa layout window, and then CPWizrd shows its screen. Hitting the Ctrl key hides CPWizard and returns to MAME in a paused state. Great.
But when I exit the MAME game, it returns to MaLa with a blank layout - in other words the background is in front of the menus. I can hear the video playing from my MaLa menu, but can't see it until I change lists in the MaLa tree (Escape to the previous list).

So this is a MaLa issue, right? If I use the "Reorder Layouts" checkbox, it causes other problems.

Edit:
OK, strange things afoot. Here is what I am experiencing:
CPWizard set as above, but with Detect Pause checked.
MaLa NOT set to reorder layout. I launch game from MaLa, then pause MAME. MAME hides, CPWizard shows after a very brief pause. I click Ctrl to hide CPWizard, and MAME resumes (still paused). I can exit MAME and MaLa returns as described above.

Now I set MaLa to reorder layout. I launch a game, then pause MAME. MAME hieds, but this time CPWizard takes about 12-14 sec to show. When I click Ctrl, I can then exit MAME and MaLa reorganizes itself nicely. Rinse and repeat.

Now is where things get weird. I set MaLa NOT to reorder layout again. This time after MAME hides CPWizard takes 12-14 seconds to show again, but when I exit MAME I can no longer return to MaLa - although I can hear it running. I need to right-click on the window in the Taskbar and close it.

No changes were made to CPWizard between any of these attempts. So where can I begin trouble-shooting? I will try to take some video tonight to show what is going on.
« Last Edit: December 01, 2009, 04:02:12 pm by Neverending Project »

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard Question
« Reply #5 on: December 01, 2009, 07:52:58 pm »
First thing I would try is to update CPW to the latest version.

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: CPWizard Question
« Reply #6 on: December 02, 2009, 02:36:12 am »
OK, I updated to 2.31 (was on 2.3) and the only issue remaining is the fact that it takes 12 seconds to show every time except the first time. I am using the CPW settings above except set to Detect Pause. In the video below, basically I launch a game from Mala, then pause it, then hit Ctrl to exit the CP display, then unpause MAME and exit. I repeated this three times. The first time was quick, subsequent times took 12 seconds. Also below is the log file with the verbose log turned on.



Code: [Select]
[184] 12/1/2009 10:10:52 PM: CPWizard v2.31
[184] 12/1/2009 10:10:52 PM: OS: Microsoft(R) Windows(R) XP Professional x64 Edition
[184] 12/1/2009 10:10:52 PM: Version: 5.2.3790
[184] 12/1/2009 10:10:52 PM: Build: 3790
[184] 12/1/2009 10:10:52 PM: RAM Total: 2047 MB
[184] 12/1/2009 10:10:52 PM: RAM Used: 376 MB
[184] 12/1/2009 10:10:54 PM: CPU: Intel(R) Pentium(R) III Xeon processor
[184] 12/1/2009 10:10:54 PM: CPU: Intel(R) Pentium(R) III Xeon processor
[184] 12/1/2009 10:10:54 PM: Video Card: ATI Radeon HD 4350
[184] 12/1/2009 10:10:54 PM: Video Driver: 6.14.10.6999
[184] 12/1/2009 10:10:54 PM: Video RAM: 512 MB
[184] 12/1/2009 10:10:54 PM: Sound Card: ATI Function Driver for High Definition Audio - ATI AA01
[184] 12/1/2009 10:10:54 PM: Sound Card: Realtek High Definition Audio
[184] 12/1/2009 10:10:54 PM: .NET: .NET Framework 2.0 Installed
[184] 12/1/2009 10:10:54 PM: Initializing Display Manager
[184] 12/1/2009 10:10:54 PM: Initializing Program Manager
[184] 12/1/2009 10:10:54 PM: Reading Config
[184] 12/1/2009 10:10:54 PM: Initializing Main Menu
[184] 12/1/2009 10:10:54 PM: Initializing Layout Manager
[184] 12/1/2009 10:10:54 PM: Initializing Controls Data
[184] 12/1/2009 10:10:54 PM: Initializing Input Codes
[184] 12/1/2009 10:10:54 PM: Initializing Layout Maps
[184] 12/1/2009 10:10:54 PM: Initializing Game Info
[184] 12/1/2009 10:10:54 PM: Initializing History Dat
[184] 12/1/2009 10:10:54 PM: Initializing MameInfo Dat
[184] 12/1/2009 10:10:54 PM: Initializing Command Dat
[184] 12/1/2009 10:10:55 PM: Initializing Story Dat
[184] 12/1/2009 10:10:55 PM: Initializing HiToText
[184] 12/1/2009 10:10:55 PM: Initializing Artwork Manager
[184] 12/1/2009 10:10:55 PM: Initializing Mame Manuals
[184] 12/1/2009 10:10:55 PM: Initializing Emulator Manuals
[184] 12/1/2009 10:10:55 PM: Initializing Emulator OpCard
[184] 12/1/2009 10:10:55 PM: Initializing NFO Viewer
[184] 12/1/2009 10:10:55 PM: Initializing IRC
[184] 12/1/2009 10:10:55 PM: Initializing SendKeys
[184] 12/1/2009 10:10:55 PM: Initializing Mame Interop
[184] 12/1/2009 10:10:55 PM: Initializing Mame Manager
[184] 12/1/2009 10:10:55 PM: Initializing Emulator Manager
[184] 12/1/2009 10:10:55 PM: Initializing Keyboard Hook
[184] 12/1/2009 10:10:55 PM: Initializing Direct Input
[184] 12/1/2009 10:10:55 PM: Joystick 1: Ultimarc Ultra-Stik Player 1
[184] 12/1/2009 10:10:55 PM: Joystick 2: Ultimarc Ultra-Stik Player 2
[184] 12/1/2009 10:10:55 PM: Initializing MCE Remote
[184] 12/1/2009 10:10:55 PM: Initializing Input Manager
[184] 12/1/2009 10:10:55 PM: Initializing Profiles
[184] 12/1/2009 10:10:55 PM: Initializing Bezel
[184] 12/1/2009 10:10:55 PM: Reading Mame Data
[184] 12/1/2009 10:10:55 PM: Reading MiniInfo Xml
[184] 12/1/2009 10:10:55 PM: Mame Version 0.134
[184] 12/1/2009 10:10:55 PM: Reading Mame Ini
[184] 12/1/2009 10:10:55 PM: Initializing Mame Cfg
[184] 12/1/2009 10:10:55 PM: Initializing Mame Command Line
[184] 12/1/2009 10:10:55 PM: Reading History Dat
[184] 12/1/2009 10:10:56 PM: Reading MameInfo Dat
[184] 12/1/2009 10:10:56 PM: Reading Command Dat
[184] 12/1/2009 10:10:56 PM: Reading All Mame Cfg's
[184] 12/1/2009 10:10:56 PM: Creating MainBitmap
[184] 12/1/2009 10:10:56 PM: CmdArg: -minimized Value:
[184] 12/1/2009 10:10:56 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:
[184] 12/1/2009 10:10:56 PM: Starting Mame Interop
[184] 12/1/2009 10:12:37 PM: OnMameStart (MameManager) -> OnMameStart
[184] 12/1/2009 10:12:37 PM: OnMameStart (MameManager) -> GameName: missile
[184] 12/1/2009 10:12:37 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,1
[184] 12/1/2009 10:12:37 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,1
[184] 12/1/2009 10:12:37 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,0
[184] 12/1/2009 10:12:37 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,0
[184] 12/1/2009 10:12:39 PM: OnMamePaused (MameManager) -> OnMamePaused
[184] 12/1/2009 10:12:39 PM: OnMamePaused (MameManager) -> Showing Mame
[184] 12/1/2009 10:12:39 PM: Show (ProgramManager) -> Show
[184] 12/1/2009 10:12:39 PM: Show (ProgramManager) -> Mame Running
[184] 12/1/2009 10:12:39 PM: Show (ProgramManager) -> Searching for Mame
[184] 12/1/2009 10:12:39 PM: FindMame (MameManager) -> Mame Running hWnd: 0x66128
[184] 12/1/2009 10:12:39 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=640,Height=480}
[184] 12/1/2009 10:12:40 PM: FindMame (MameManager) -> Command Line: vmame.exe missile
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Game Found: missile
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Getting Game Details
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Sending Pause Key
[184] 12/1/2009 10:12:40 PM: PauseMame (MameManager) -> Sending Pause Message to Mame
[184] 12/1/2009 10:12:40 PM: TakeScreenshot (ProgramManager) -> Taking Screenshot
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Minimizing Mame
[184] 12/1/2009 10:12:40 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x66128
[184] 12/1/2009 10:12:40 PM: MinimizeMame (MameManager) -> Minimizing Mame Console hWnd: 0x66098
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Showing Layout Form
[184] 12/1/2009 10:12:40 PM: Show (frmLayout) -> frmLayout hWnd: 0x66140
[184] 12/1/2009 10:12:40 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x66140
[184] 12/1/2009 10:12:40 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x66140 (Preview)
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Show CP Only is True
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Exit To Menu is False
[184] 12/1/2009 10:12:40 PM: Show (ProgramManager) -> Display Mode is Layout
[184] 12/1/2009 10:12:40 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
[184] 12/1/2009 10:12:40 PM: ShowScreen (ProgramManager) -> Resetting Menu
[184] 12/1/2009 10:12:40 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu False
[184] 12/1/2009 10:12:40 PM: ShowScreen (ProgramManager) -> Showing Layout
[184] 12/1/2009 10:12:44 PM: CPForm_FormClosing (frmLayout) -> Closing
[184] 12/1/2009 10:12:44 PM: RestoreMame (MameManager) -> Restoring Mame Console hWnd: 0x66098
[184] 12/1/2009 10:12:46 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x66128
[184] 12/1/2009 10:12:46 PM: UnPauseMame (MameManager) -> Sending UnPause Message to Mame
[184] 12/1/2009 10:12:46 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:
[184] 12/1/2009 10:12:48 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
[184] 12/1/2009 10:12:50 PM: OnMameStop (MameManager) -> OnMameStop
[184] 12/1/2009 10:12:50 PM: OnMameStop (MameManager) -> Success
[184] 12/1/2009 10:12:56 PM: OnMameStart (MameManager) -> OnMameStart
[184] 12/1/2009 10:12:56 PM: OnMameStart (MameManager) -> GameName: missile
[184] 12/1/2009 10:12:56 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,1
[184] 12/1/2009 10:12:56 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,1
[184] 12/1/2009 10:12:56 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,0
[184] 12/1/2009 10:12:56 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,0
[184] 12/1/2009 10:12:59 PM: OnMamePaused (MameManager) -> OnMamePaused
[184] 12/1/2009 10:12:59 PM: OnMamePaused (MameManager) -> Showing Mame
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Show
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Mame Running
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Searching for Mame
[184] 12/1/2009 10:12:59 PM: FindMame (MameManager) -> Mame Running hWnd: 0x983628
[184] 12/1/2009 10:12:59 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=640,Height=480}
[184] 12/1/2009 10:12:59 PM: FindMame (MameManager) -> Command Line: vmame.exe missile
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Game Found: missile
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Getting Game Details
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Sending Pause Key
[184] 12/1/2009 10:12:59 PM: PauseMame (MameManager) -> Sending Pause Message to Mame
[184] 12/1/2009 10:12:59 PM: TakeScreenshot (ProgramManager) -> Taking Screenshot
[184] 12/1/2009 10:12:59 PM: Show (ProgramManager) -> Minimizing Mame
[184] 12/1/2009 10:12:59 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x983628
[184] 12/1/2009 10:12:59 PM: MinimizeMame (MameManager) -> Minimizing Mame Console hWnd: 0x66098
[184] 12/1/2009 10:13:00 PM: Show (ProgramManager) -> Showing Layout Form
[184] 12/1/2009 10:13:00 PM: Show (frmLayout) -> frmLayout hWnd: 0x131676
[184] 12/1/2009 10:13:15 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x131676
[184] 12/1/2009 10:13:15 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x131676 (Preview)
[184] 12/1/2009 10:13:15 PM: Show (ProgramManager) -> Show CP Only is True
[184] 12/1/2009 10:13:15 PM: Show (ProgramManager) -> Exit To Menu is False
[184] 12/1/2009 10:13:15 PM: Show (ProgramManager) -> Display Mode is Layout
[184] 12/1/2009 10:13:15 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
[184] 12/1/2009 10:13:15 PM: ShowScreen (ProgramManager) -> Resetting Menu
[184] 12/1/2009 10:13:15 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu False
[184] 12/1/2009 10:13:15 PM: ShowScreen (ProgramManager) -> Showing Layout
[184] 12/1/2009 10:13:20 PM: CPForm_FormClosing (frmLayout) -> Closing
[184] 12/1/2009 10:13:20 PM: RestoreMame (MameManager) -> Restoring Mame Console hWnd: 0x66098
[184] 12/1/2009 10:13:20 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x983628
[184] 12/1/2009 10:13:20 PM: UnPauseMame (MameManager) -> Sending UnPause Message to Mame
[184] 12/1/2009 10:13:20 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:
[184] 12/1/2009 10:13:23 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
[184] 12/1/2009 10:13:24 PM: OnMameStop (MameManager) -> OnMameStop
[184] 12/1/2009 10:13:24 PM: OnMameStop (MameManager) -> Success
[184] 12/1/2009 10:13:31 PM: OnMameStart (MameManager) -> OnMameStart
[184] 12/1/2009 10:13:31 PM: OnMameStart (MameManager) -> GameName: shootbul
[184] 12/1/2009 10:13:36 PM: OnMamePaused (MameManager) -> OnMamePaused
[184] 12/1/2009 10:13:36 PM: OnMamePaused (MameManager) -> Showing Mame
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Show
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Mame Running
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Searching for Mame
[184] 12/1/2009 10:13:36 PM: FindMame (MameManager) -> Mame Running hWnd: 0x2228812
[184] 12/1/2009 10:13:36 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=640,Height=480}
[184] 12/1/2009 10:13:36 PM: FindMame (MameManager) -> Command Line: vmame.exe shootbul
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Game Found: shootbul
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Getting Game Details
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Sending Pause Key
[184] 12/1/2009 10:13:36 PM: PauseMame (MameManager) -> Sending Pause Message to Mame
[184] 12/1/2009 10:13:36 PM: TakeScreenshot (ProgramManager) -> Taking Screenshot
[184] 12/1/2009 10:13:36 PM: Show (ProgramManager) -> Minimizing Mame
[184] 12/1/2009 10:13:36 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x2228812
[184] 12/1/2009 10:13:36 PM: MinimizeMame (MameManager) -> Minimizing Mame Console hWnd: 0x66098
[184] 12/1/2009 10:13:37 PM: Show (ProgramManager) -> Showing Layout Form
[184] 12/1/2009 10:13:37 PM: Show (frmLayout) -> frmLayout hWnd: 0x197212
[184] 12/1/2009 10:13:52 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x197212
[184] 12/1/2009 10:13:52 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x197212 (Preview)
[184] 12/1/2009 10:13:52 PM: Show (ProgramManager) -> Show CP Only is True
[184] 12/1/2009 10:13:52 PM: Show (ProgramManager) -> Exit To Menu is False
[184] 12/1/2009 10:13:52 PM: Show (ProgramManager) -> Display Mode is Layout
[184] 12/1/2009 10:13:52 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
[184] 12/1/2009 10:13:52 PM: ShowScreen (ProgramManager) -> Resetting Menu
[184] 12/1/2009 10:13:52 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu False
[184] 12/1/2009 10:13:52 PM: ShowScreen (ProgramManager) -> Showing Layout
[184] 12/1/2009 10:13:56 PM: CPForm_FormClosing (frmLayout) -> Closing
[184] 12/1/2009 10:13:56 PM: RestoreMame (MameManager) -> Restoring Mame Console hWnd: 0x66098
[184] 12/1/2009 10:13:56 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x2228812
[184] 12/1/2009 10:13:56 PM: UnPauseMame (MameManager) -> Sending UnPause Message to Mame
[184] 12/1/2009 10:13:56 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:
[184] 12/1/2009 10:13:57 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
[184] 12/1/2009 10:14:00 PM: OnMameStop (MameManager) -> OnMameStop
[184] 12/1/2009 10:14:00 PM: OnMameStop (MameManager) -> Success
[184] 12/1/2009 10:20:03 PM: Shutting Down Program Manager
[184] 12/1/2009 10:20:03 PM: Writing Config
[184] 12/1/2009 10:20:03 PM: Exiting

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard Question
« Reply #7 on: December 02, 2009, 06:14:57 am »
What if you set up a bunch of shortcuts to some MAME games and run them while CPW is running in the background and MaLa isn't running. Does it take time to show then?

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: CPWizard Question
« Reply #8 on: December 03, 2009, 12:05:43 am »
If I launch MAME from a command line without MaLa running, it works perfectly. When I try to launch in from MaLa again I get the same results.

Should I take this over to loadman to try to troubleshoot? Did the log file give any clues where I should look? Thanks!

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard Question
« Reply #9 on: December 03, 2009, 01:34:40 am »
Sounds to me like a MaLa issue then. Hmm. It could be that MaLa is stealing focus for some reason. I'm just wondering why doesn't MaLa minimize when it launches a game? Seems silly to have it displaying in the background like that. I would ask loadman and if I need to do anything to improve compatibility let me know.

Neverending Project

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 851
  • Last login:April 06, 2015, 10:07:43 pm
    • Arcade Fixer
Re: CPWizard Question
« Reply #10 on: December 07, 2009, 12:47:06 pm »
Well, I tried it in AtomicFE, and could not get it working there either (similar results - delay, and after exiting MAME it was all screwed up). And loadman doesn't use it, so I don't really have any leads on using it with MaLa. So is there another way I can use CPW so it won't have this focus issue with MaLa?