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 - In Need Of Help  (Read 3066 times)

0 Members and 1 Guest are viewing this topic.

Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
CPWizard - In Need Of Help
« on: July 10, 2011, 06:06:18 pm »
I am so lost with this program.

I can install it, I can create a custom CP that looks like mine.  I can label it and keycode it.  But that is about it.

I tried to follow shatteredsouls CP Wizard for dummies guide, however it's not really for dummies.

It doesn't explain where to get a Mame.ini file that he mentions.

It doesn't explain how he got his shatteredsoulsarcade file to point to in the mame.ini.  Where did this file come from?  How did he create it?

That being said, I took a step back and decided to just load up the default CP in CPWizard and point to my mame folder in the mame setup.

I then tested dkong with it.  Dkong launches just fine, then when I press "L" the CPWizard ui comes up.  All of this works.  BUT when I press exit from the CPWizard ui, it exits mame completely.

Also, it will not come up when I press "P" for pause in game.

There has to be something I'm missing here.  It can't be this hard to setup CPWizard



Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
Re: CPWizard - In Need Of Help
« Reply #1 on: July 11, 2011, 01:26:42 pm »
I don't know what I did.  But now it appears to work as intended running Mame via cmd line and in Hyperspin.
I installed and uninstalled about 4 times.  The final time I installed it in D:\CPWizard instead of Program Files (x86).
Maybe it is a Windows 7 thing?

I still don't know how to make a custom ctrlr file other than the game by game ones that mame spits out.

Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
Re: CPWizard - In Need Of Help
« Reply #2 on: July 11, 2011, 09:18:59 pm »
My woes continue.  I love this program because of what I've seen others do with it.  But it just isn't wanting to run on my system.   :banghead:

Hopeing Headkaze can take a look here.  My symptoms are:

#1 - CPWizard will not come up when I press "P" (default pause for mame)
#2 - It will come up when I press "L", but I'd like to just have 1 pause button on my control panel.
#3 - when I scroll down to the "exit" option of the CPWizard menu, it exits and then mame crashes.

I've attached the log file here.
Code: [Select]
[4464] 7/11/2011 9:13:35 PM: SendMessage (InterComm) -> IPC_Server Succeeded To Recieve Message Id:FirstRun Str:
[4464] 7/11/2011 9:13:35 PM: SendMessage (InterComm) -> IPC_Server Succeeded To Recieve Message Id:CmdLine Str:
[4464] 7/11/2011 9:13:35 PM: SendMessage (InterComm) -> IPC_Server Succeeded To Send Message Id:Exit Str:
[4464] 7/11/2011 9:13:41 PM: OnMameStart (MameManager) -> OnMameStart
[4464] 7/11/2011 9:13:41 PM: OnMameStart (MameManager) -> GameName: dkong
[4464] 7/11/2011 9:13:41 PM: OnMameOutput (MameManager) -> OnMameOutput: Orientation(\\.\DISPLAY1),0
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Show
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Mame Running
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Searching for Mame
[4464] 7/11/2011 9:13:47 PM: FindMame (MameManager) -> Mame Running hWnd: 0x2950112
[4464] 7/11/2011 9:13:47 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=1920,Height=1080}
[4464] 7/11/2011 9:13:47 PM: FindMame (MameManager) -> Command Line: mame.exe  dkong
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Game Found: dkong
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Getting Game Details
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Sending Pause Key
[4464] 7/11/2011 9:13:47 PM: PauseMame (MameManager) -> Sending Pause Message to Mame
[4464] 7/11/2011 9:13:47 PM: TakeScreenshot (ProgramManager) -> Taking Screenshot
[4464] 7/11/2011 9:13:47 PM: Show (ProgramManager) -> Minimizing Mame
[4464] 7/11/2011 9:13:47 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x2950112
[4464] 7/11/2011 9:13:48 PM: MinimizeMame (MameManager) -> Minimizing Mame Console hWnd: 0x1246290
[4464] 7/11/2011 9:13:48 PM: Show (ProgramManager) -> Showing Layout Form
[4464] 7/11/2011 9:13:48 PM: Show (frmLayout) -> frmLayout hWnd: 0x4328732
[4464] 7/11/2011 9:13:48 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x4328732
[4464] 7/11/2011 9:13:48 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x4328732 (Preview)
[4464] 7/11/2011 9:13:48 PM: Show (ProgramManager) -> Show CP Only is False
[4464] 7/11/2011 9:13:48 PM: Show (ProgramManager) -> Exit To Menu is True
[4464] 7/11/2011 9:13:48 PM: Show (ProgramManager) -> Display Mode is MainMenu
[4464] 7/11/2011 9:13:48 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
[4464] 7/11/2011 9:13:48 PM: ShowScreen (ProgramManager) -> Resetting Menu
[4464] 7/11/2011 9:13:48 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu True
[4464] 7/11/2011 9:13:48 PM: ShowScreen (ProgramManager) -> Showing MainMenu
[4464] 7/11/2011 9:13:52 PM: CPForm_FormClosing (frmLayout) -> Closing
[4464] 7/11/2011 9:13:52 PM: RestoreMame (MameManager) -> Restoring Mame Console hWnd: 0x1246290
[4464] 7/11/2011 9:13:52 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x2950112
[4464] 7/11/2011 9:13:52 PM: UnPauseMame (MameManager) -> Sending UnPause Message to Mame
[4464] 7/11/2011 9:13:52 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard - In Need Of Help
« Reply #3 on: July 11, 2011, 11:08:03 pm »
There is an explaination of the 3 methods CPWizard can use to pause MAME and show your CP here

If you are using Method 1 you will note

Quote
Using this method you cannot set the Show Key to be the same as Mame's pause key.

This is because CPWizard sends a pause message to MAME and then it will also interpret your pause as an unpause. You can change MAME's default to something else and then set CPWizard's pause key to 'p'.

Method 2 is not recommended anymore because it requires a patch of the MAME executable and most likely it will not work with newer versions of MAME. That being said I haven't tested CPWizard on the latest versions of MAME either so I have no idea if Method 1 still pauses MAME correctly.

You haven't posted the entire log which would tell me the MAME version you're using.

Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
Re: CPWizard - In Need Of Help
« Reply #4 on: July 11, 2011, 11:15:36 pm »
Thanks for the reply!

I have the default Mame Pause as "P"

In the input tab of CPWizard I haven't changed any of the settings.  The Show Key is still set to "L"

It will show the CPWizard menu when I press "L" in game.  But it crashes when I Exit the Menu.

Sorry about the log file.  I must have missed copied it.  Here is that info:
Code: [Select]
[1984] 7/11/2011 11:12:05 PM: CPWizard v2.35
[1984] 7/11/2011 11:12:05 PM: OS: Microsoft Windows 7 Home Premium
[1984] 7/11/2011 11:12:05 PM: Version: 6.1.7601
[1984] 7/11/2011 11:12:05 PM: Build: 7601
[1984] 7/11/2011 11:12:05 PM: RAM Total: 8192 MB
[1984] 7/11/2011 11:12:05 PM: RAM Used: 1828 MB
[1984] 7/11/2011 11:12:06 PM: CPU: AMD Phenom(tm) II X4 965 Processor
[1984] 7/11/2011 11:12:06 PM: Video Card: NVIDIA GeForce GTX 275
[1984] 7/11/2011 11:12:06 PM: Video Driver: 8.17.12.6658
[1984] 7/11/2011 11:12:06 PM: Video RAM: 896 MB
[1984] 7/11/2011 11:12:06 PM: Sound Card: Realtek High Definition Audio
[1984] 7/11/2011 11:12:06 PM: .NET: .NET Framework 1.1 Installed
[1984] 7/11/2011 11:12:06 PM: .NET: .NET Framework 2.0 Installed
[1984] 7/11/2011 11:12:06 PM: Initializing Display Manager
[1984] 7/11/2011 11:12:06 PM: Initializing Program Manager
[1984] 7/11/2011 11:12:06 PM: Reading Config
[1984] 7/11/2011 11:12:06 PM: Initializing Main Menu
[1984] 7/11/2011 11:12:06 PM: Initializing Layout Manager
[1984] 7/11/2011 11:12:06 PM: Initializing Controls Data
[1984] 7/11/2011 11:12:06 PM: Initializing Input Codes
[1984] 7/11/2011 11:12:06 PM: Initializing Layout Maps
[1984] 7/11/2011 11:12:06 PM: Initializing Game Info
[1984] 7/11/2011 11:12:06 PM: Initializing History Dat
[1984] 7/11/2011 11:12:06 PM: Initializing MameInfo Dat
[1984] 7/11/2011 11:12:06 PM: Initializing Command Dat
[1984] 7/11/2011 11:12:07 PM: Initializing Story Dat
[1984] 7/11/2011 11:12:07 PM: Initializing HiToText
[1984] 7/11/2011 11:12:07 PM: Initializing Artwork Manager
[1984] 7/11/2011 11:12:07 PM: Initializing Mame Manuals
[1984] 7/11/2011 11:12:07 PM: Initializing Emulator Manuals
[1984] 7/11/2011 11:12:07 PM: Initializing Emulator OpCard
[1984] 7/11/2011 11:12:07 PM: Initializing NFO Viewer
[1984] 7/11/2011 11:12:07 PM: Initializing IRC
[1984] 7/11/2011 11:12:07 PM: Initializing SendKeys
[1984] 7/11/2011 11:12:07 PM: Initializing Mame Interop
[1984] 7/11/2011 11:12:07 PM: Initializing Mame Manager
[1984] 7/11/2011 11:12:07 PM: Initializing Emulator Manager
[1984] 7/11/2011 11:12:07 PM: Initializing Keyboard Hook
[1984] 7/11/2011 11:12:07 PM: Initializing Direct Input
[1984] 7/11/2011 11:12:08 PM: Initializing MCE Remote
[1984] 7/11/2011 11:12:08 PM: Initializing Input Manager
[1984] 7/11/2011 11:12:08 PM: Initializing Profiles
[1984] 7/11/2011 11:12:08 PM: Initializing Bezel
[1984] 7/11/2011 11:12:08 PM: Reading Mame Data
[1984] 7/11/2011 11:12:08 PM: Reading MiniInfo Xml
[1984] 7/11/2011 11:12:09 PM: Mame Version 0.143
[1984] 7/11/2011 11:12:09 PM: Reading Mame Ini
[1984] 7/11/2011 11:12:09 PM: Initializing Mame Cfg
[1984] 7/11/2011 11:12:09 PM: Initializing Mame Command Line
[1984] 7/11/2011 11:12:09 PM: Reading History Dat
[1984] 7/11/2011 11:12:09 PM: Reading MameInfo Dat
[1984] 7/11/2011 11:12:10 PM: Reading Command Dat
[1984] 7/11/2011 11:12:10 PM: Reading Story Dat
[1984] 7/11/2011 11:12:10 PM: Reading All Mame Cfg's
[1984] 7/11/2011 11:12:10 PM: Reading Mame Ctrlr File
[1984] 7/11/2011 11:12:11 PM: Creating MainBitmap
[1984] 7/11/2011 11:12:11 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:
[1984] 7/11/2011 11:12:11 PM: Starting Mame Interop
[1984] 7/11/2011 11:12:18 PM: OnMameStart (MameManager) -> OnMameStart
[1984] 7/11/2011 11:12:18 PM: OnMameStart (MameManager) -> GameName: dkong
[1984] 7/11/2011 11:12:18 PM: OnMameOutput (MameManager) -> OnMameOutput: Orientation(\\.\DISPLAY1),0
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Show
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Mame Running
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Searching for Mame
[1984] 7/11/2011 11:12:21 PM: FindMame (MameManager) -> Mame Running hWnd: 0x328034
[1984] 7/11/2011 11:12:21 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=1920,Height=1080}
[1984] 7/11/2011 11:12:21 PM: FindMame (MameManager) -> Command Line: mame.exe  dkong
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Game Found: dkong
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Getting Game Details
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Sending Pause Key
[1984] 7/11/2011 11:12:21 PM: PauseMame (MameManager) -> Sending Pause Message to Mame
[1984] 7/11/2011 11:12:21 PM: TakeScreenshot (ProgramManager) -> Taking Screenshot
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Minimizing Mame
[1984] 7/11/2011 11:12:21 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x328034
[1984] 7/11/2011 11:12:21 PM: MinimizeMame (MameManager) -> Minimizing Mame Console hWnd: 0x263088
[1984] 7/11/2011 11:12:21 PM: Show (ProgramManager) -> Showing Layout Form
[1984] 7/11/2011 11:12:21 PM: Show (frmLayout) -> frmLayout hWnd: 0x394156
[1984] 7/11/2011 11:12:22 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x394156
[1984] 7/11/2011 11:12:22 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x394156 (Preview)
[1984] 7/11/2011 11:12:22 PM: Show (ProgramManager) -> Show CP Only is False
[1984] 7/11/2011 11:12:22 PM: Show (ProgramManager) -> Exit To Menu is True
[1984] 7/11/2011 11:12:22 PM: Show (ProgramManager) -> Display Mode is MainMenu
[1984] 7/11/2011 11:12:22 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
[1984] 7/11/2011 11:12:22 PM: ShowScreen (ProgramManager) -> Resetting Menu
[1984] 7/11/2011 11:12:22 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu True
[1984] 7/11/2011 11:12:22 PM: ShowScreen (ProgramManager) -> Showing MainMenu
[1984] 7/11/2011 11:12:22 PM: SystemEvents_DisplaySettingsChanged (ProgramManager) -> Display Settings Changed
[1984] 7/11/2011 11:12:24 PM: DisplaySettingsChangedTimer_Elapsed (ProgramManager) -> Display Settings Changed
[1984] 7/11/2011 11:12:30 PM: CPForm_FormClosing (frmLayout) -> Closing
[1984] 7/11/2011 11:12:30 PM: RestoreMame (MameManager) -> Restoring Mame Console hWnd: 0x263088
[1984] 7/11/2011 11:12:30 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x328034
[1984] 7/11/2011 11:12:30 PM: UnPauseMame (MameManager) -> Sending UnPause Message to Mame
[1984] 7/11/2011 11:12:30 PM: SendMessage (InterComm) -> IPC_Server Failed To Send Message Id:Exit Str:

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard - In Need Of Help
« Reply #5 on: July 12, 2011, 01:14:54 am »
I had a look into this for you and you're right about the first problem being a Windows 7 issue. I have modified the installer so that should be fixed now.

Now for your other issue of MAME closing down, I think I may have found the problem. Go to your MAME folder and open mame.ini (if it's not there you need to run "mame.exe -cc" from command line). Find the following line

Code: [Select]
d3dversion                9
and change it to

Code: [Select]
d3dversion                8
That seems to have stopped the crashing for me on my Windows 7 machine. Let me know if it works for you.

If you want CPWizard to show when you pause MAME turn off "Send Pause" and turn on "Detect Pause". The only down side to this is when you exit CPWizard MAME will remain paused so you have to press the pause key again to unpause the game.
« Last Edit: July 12, 2011, 01:46:58 am by headkaze »

Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
Re: CPWizard - In Need Of Help
« Reply #6 on: July 12, 2011, 08:11:21 am »
I had a look into this for you and you're right about the first problem being a Windows 7 issue. I have modified the installer so that should be fixed now.



What did you find here?  Should I re download the installer?

Also,  the mame.ini changing of the directx from 9 to 8 seemed to work!

I tried it briefly before heading off to work this morning. I'll check it more this evening.

Thanks! 

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: CPWizard - In Need Of Help
« Reply #7 on: July 12, 2011, 11:52:53 am »
What did you find here?  Should I re download the installer?

Originally I made CPWizard.exe automatically run as administrator by creating a registry key but that seemed to prevent it from detecting MAME. Removing that it started working again (or you can simply copy the CPWizard folder to another drive like you did). So it's up to you can try to install it again but it should be fine leaving it the way you have it.

Also,  the mame.ini changing of the directx from 9 to 8 seemed to work!

Great news!  :cheers:

Indyplumber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 50
  • Last login:November 19, 2012, 09:46:03 pm
Re: CPWizard - In Need Of Help
« Reply #8 on: July 12, 2011, 08:12:35 pm »
Thanks again for your help headkaze.  This program is a hit here at the house!