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
Yep, it could very well be an Id problem. Also Quixote Quest can I suggest you download my UltraStikTest program from here and see if you can program your joysticks with that. It's using the same library as my plugin so it should make it easier to test rather than launching GameEx.

HK: I see your "PlugInUltraStik.zip" at that link but not your UltraStikTest program, nor at your Soul Caliber site. (Cool cab and nice GameEx skin, BTW.)

  • Replies 78
  • Created
  • Last Reply

Top Posters In This Topic

Posted
HK: I see your "PlugInUltraStik.zip" at that link but not your UltraStikTest program, nor at your Soul Caliber site. (Cool cab and nice GameEx skin, BTW.)

That link should take you to the 4th post in this thread. It's definately there!

Posted
Andy suggests that the PID for my Stik #1 is likely corrupted, so it looks like I'll have to mess around with regedit this weekend and see if that resolves things.

Cheers!

Yeah, I forgot about that! I had the same problem... If you are using USB devices, always make sure to plug each device into the same port everytime. Andy has directions on how to edit the registry to fix this (which I'm sure he gave you). I had to do the same thing before... It's not a big deal, but make a backup of your registry first just in case. ;)

Posted
Yeah, I forgot about that! I had the same problem... If you are using USB devices, always make sure to plug each device into the same port everytime. Andy has directions on how to edit the registry to fix this (which I'm sure he gave you). I had to do the same thing before... It's not a big deal, but make a backup of your registry first just in case. ;)

There is a utility hosed here on the main page that will let you designate diffrent pid's for the same joystick hardware.

Dont know if that will work but I thought Id throw it out there

Posted
That link should take you to the 4th post in this thread. It's definately there!

Okay, I found your test app by just clicking the thread tree. Anyhow: an update first: I used REGEDT to delete the PID for my Stiks, replugged them and now they are both working great. Ultramap 1.19 is working too. Firmware IDs at v2.3.

Now as to your test app: I'm not sure exactly how it is supposed to work, but here is what I did: I chose ID 1 in the ID field; Chose "joy4way" in the Map drop down list; clicked the "Set Map" button at its right. Then, in the Map File directory field I browsed to set the path to your UltraStikTest "4-Way.um" file and clicked "open"; this filled the path field in your UltraStikTest app interface; Lastly, I clicked the "Set Map File" button at its right.

I did not do anything with the "Set Flash" and "Set RAM" buttons.

Then I ran Pac-Man directly via MAME3264 (v.111) app but not via GameEx. It definitely was not playing as the 4-way. I quit MAME.

Does that mean that your plugin is not/will not be working? Something different I should be doing?

Thanks

Posted
Okay, I found your test app by just clicking the thread tree. Anyhow: an update first: I used REGEDT to delete the PID for my Stiks, replugged them and now they are both working great. Ultramap 1.19 is working too. Firmware IDs at v2.3.

Now as to your test app: I'm not sure exactly how it is supposed to work, but here is what I did: I chose ID 1 in the ID field; Chose "joy4way" in the Map drop down list; clicked the "Set Map" button at its right. Then, in the Map File directory field I browsed to set the path to your UltraStikTest "4-Way.um" file and clicked "open"; this filled the path field in your UltraStikTest app interface; Lastly, I clicked the "Set Map File" button at its right.

I did not do anything with the "Set Flash" and "Set RAM" buttons.

Then I ran Pac-Man directly via MAME3264 (v.111) app but not via GameEx. It definitely was not playing as the 4-way. I quit MAME.

Does that mean that your plugin is not/will not be working? Something different I should be doing?

Thanks

No that's not what your supposed to do. Don't use any of the Id stuff, that is supposed to set the Id of the joystick, not something you want to do. You want to test the programming of the joysticks.

It says "Select Joystick:" above the list of devices it's found. So, you must select a joystick first by clicking it and hilighting it in the list, then try programming it by (A) Selecting a map from the drop down list and using the "Set Map" button and (B ) Browsing to a map file and using the "Set Map File" button.

Don't worry about the Set Flash or Set RAM buttons. Also you can run UltraMap at the same time as my test program to view the + cursor to see if the maps are being programmed okay. You can tell it's a 4way when the little + only moves up, down, left or right. If you program 8 way it should move in 8 directions and analog should move anywhere etc. You don't need to run Mame to see if the programming of the joysticks is working.

  • 3 weeks later...
Posted

After struggling with this plugin for a few days, I was about to come on here and plead for help, but I think a last ditch effort paid off. . .

In order for this plugin to work, I have to start GameEx using "Run as Administrator" (I'm running Vista obviously). Same with the test program attached to this thread. I need to do some more testing but that *seems* to have resolved my problems (previously, the plugin did not appear to ever successfully change the map)

Hope this helps anyone with a similar problem.

Thanks for the plugin HeadKaze! Just one suggestion: Please add the path/filename of the mapfile that was loaded to the log, and any file access errors. Even after reading the docs, I spent some time guessing as to which path it was trying to read the map from, whether or not I was supposed to include the .um extension in the .ini file, and whether there were any permission errors reading the file. For example, if I instruct the plugin to load a map that I know doesn't exist, the log shows that it has selected that map, but no error messages when it tries to read the file :)

  • 6 months later...
Posted

Version 1.2 Released

- You can now change the map when Mame is paused so you can browse the menus in CPWizard.

I really need feedback on this if it works or not as I have not done any testing!

You can specify the map to use when Mame is paused in PlugInUltraStik.ini

Eg.

[Mame]
pause=joy4way

Posted

Yes..but...no..but...

Intsalled both the new version of CPWizard and this Ultrastik plugin last night. In case it has any bearing on the issue I'll say now that I'm just one level behind the latest version of GameEx just recently released.

I unzip into the appropriate place the new version of the plugin and try running an 8-way game (Do Don Pachi)... no problems (other thasn that discussed in my separate post about my CPWizard issues)... played a four-way game (Frogger) also okay, then tried so two-way horizontal games. Circus Charlie and Moon Patrol (as well as the others) both worked okay both in the game and navigating the CPWizard menu... i.e. I had vertical movement in the CPWizard pause menu when playing these two-way horizontal games.

However I then loaded Galaga (also a two-way horizontal game) and as the game was going through its attract sequence GameEX aborted (i.e. I didn't even reach for the pause button) Attached you can see a screenshot of the resultant screen.

If I go and turn the Ultrastik plugin off, Galaga runs okay under GameEx... turn it back on, it aborts. Doesn't seem to be anything of value inside the GameEx or CPwizard log but I'll post a snippet here of a similar rerun anyway.

GameEx log:

19:35:06.3  28/01/2009:  Restoring Emulator Database From Cache
19:35:06.4 28/01/2009: Restoring Emulator from Cache
19:35:06.4 28/01/2009: Restoring Emulator Database From Cache
19:35:09.4 28/01/2009: Running: cmd.exe /c C: C:\mame\mame.exe ddonpach -rompath C:\mame\roms -nowindow -joy -skip_gameinfo
19:35:45.8 28/01/2009: Running: cmd.exe /c C: C:\mame\mame.exe mpatrol -rompath C:\mame\roms -nowindow -joy -skip_gameinfo
19:35:45.8 28/01/2009: Launching CPWizard: "C:\Program Files\CPWizard\CPWizard.exe" -emu mame -game mpatrol -timeout 9000
19:36:33.3 28/01/2009: Running: cmd.exe /c C: C:\mame\mame.exe galaga -rompath C:\mame\roms -nowindow -joy -skip_gameinfo
19:36:33.3 28/01/2009: Launching CPWizard: "C:\Program Files\CPWizard\CPWizard.exe" -emu mame -game galaga -timeout 9000

CpWizard log:

28/01/2009 7:34:35 PM: CPWizard v2.11
28/01/2009 7:34:35 PM: OS: Microsoft Windows XP Home Edition
28/01/2009 7:34:35 PM: Version: 5.1.2600
28/01/2009 7:34:35 PM: Build: 2600
28/01/2009 7:34:35 PM: RAM Total: 3072 MB
28/01/2009 7:34:35 PM: RAM Used: 392 MB
28/01/2009 7:34:36 PM: CPU: Intel® Core(tm)2 Duo CPU E6850 @ 3.00GHz
28/01/2009 7:34:36 PM: Video Card: NVIDIA GeForce 8600 GT
28/01/2009 7:34:36 PM: Video Driver: 6.14.11.7516
28/01/2009 7:34:36 PM: Video RAM: 512 MB
28/01/2009 7:34:36 PM: Sound Card: Realtek High Definition Audio
28/01/2009 7:34:36 PM: .NET: .NET Framework 2.0 Installed
28/01/2009 7:34:36 PM: Initializing InterComm Manager
28/01/2009 7:34:36 PM: Initializing Cmd Line Watcher
28/01/2009 7:34:36 PM: Starting InterComm Manager
28/01/2009 7:34:36 PM: Initializing Display Manager
28/01/2009 7:34:36 PM: Initializing Program Manager
28/01/2009 7:34:36 PM: Reading Config
28/01/2009 7:34:36 PM: Initializing Main Menu
28/01/2009 7:34:36 PM: Initializing Layout Manager
28/01/2009 7:34:36 PM: Initializing Controls Data
28/01/2009 7:34:36 PM: Initializing Input Codes
28/01/2009 7:34:36 PM: Initializing Layout Maps
28/01/2009 7:34:36 PM: Initializing Game Info
28/01/2009 7:34:36 PM: Initializing History Dat
28/01/2009 7:34:36 PM: Initializing MameInfo Dat
28/01/2009 7:34:36 PM: Initializing Command Dat
28/01/2009 7:34:37 PM: Initializing Story Dat
28/01/2009 7:34:37 PM: Initializing HiToText
28/01/2009 7:34:37 PM: Initializing Artwork Manager
28/01/2009 7:34:37 PM: Initializing Mame Manuals
28/01/2009 7:34:37 PM: Initializing Emulator Manuals
28/01/2009 7:34:37 PM: Initializing Emulator OpCard
28/01/2009 7:34:37 PM: Initializing NFO Viewer
28/01/2009 7:34:37 PM: Initializing IRC
28/01/2009 7:34:37 PM: Initializing SendKeys
28/01/2009 7:34:37 PM: Initializing Mame Interop
28/01/2009 7:34:37 PM: Initializing Mame Manager
28/01/2009 7:34:37 PM: Initializing Emulator Manager
28/01/2009 7:34:37 PM: Initializing Keyboard Hook
28/01/2009 7:34:37 PM: Initializing Direct Input
28/01/2009 7:34:37 PM: Joystick 1: Ultimarc Ultra-Stik Player 1
28/01/2009 7:34:37 PM: Joystick 2: Ultimarc Ultra-Stik Player 2
28/01/2009 7:34:37 PM: Initializing MCE Remote
28/01/2009 7:34:37 PM: Initializing Input Manager
28/01/2009 7:34:37 PM: Initializing Profiles
28/01/2009 7:34:37 PM: Initializing Bezel
28/01/2009 7:34:37 PM: Reading Mame Data
28/01/2009 7:34:37 PM: Reading MiniInfo Xml
28/01/2009 7:34:38 PM: Mame Version 0.129
28/01/2009 7:34:38 PM: Reading Mame Ini
28/01/2009 7:34:38 PM: Initializing Mame Cfg
28/01/2009 7:34:38 PM: Initializing Mame Command Line
28/01/2009 7:34:38 PM: Reading History Dat
28/01/2009 7:34:38 PM: Reading MameInfo Dat
28/01/2009 7:34:38 PM: Reading Command Dat
28/01/2009 7:34:39 PM: Reading All Mame Cfg's
28/01/2009 7:34:39 PM: Reading Mame Ctrlr File
28/01/2009 7:34:40 PM: Creating MainBitmap
28/01/2009 7:34:40 PM: Starting Mame Interop
28/01/2009 7:35:12 PM: OnMameStart (MameManager) -> OnMameStart
28/01/2009 7:35:12 PM: OnMameStart (MameManager) -> GameName: ddonpach
28/01/2009 7:35:20 PM: OnMamePaused (MameManager) -> OnMamePaused
28/01/2009 7:35:20 PM: OnMamePaused (MameManager) -> Showing Mame
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Show
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Mame Running
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Searching for Mame
28/01/2009 7:35:20 PM: FindMame (MameManager) -> Mame Running hWnd: 0x2359496
28/01/2009 7:35:20 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=1920,Height=1200}
28/01/2009 7:35:20 PM: FindMame (MameManager) -> Command Line: mame.exe ddonpach -rompath "C:\mame\roms" -nowindow -joy -skip_gameinfo
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Game Found: ddonpach
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Getting Game Details
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Taking Screenshot
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Minimizing Mame
28/01/2009 7:35:20 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x2359496
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Showing Loading Screens
28/01/2009 7:35:20 PM: ShowLoading (ProgramManager) -> Showing Loading Form: 0
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Showing Layout Form
28/01/2009 7:35:20 PM: Show (frmLayout) -> frmLayout hWnd: 0x66126
28/01/2009 7:35:20 PM: ForceForegroundWindow (HideDesktop) -> Already Foreground hWnd: 0x66126
28/01/2009 7:35:20 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x66126 (Preview)
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Show CP Only is False
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Exit To Menu is True
28/01/2009 7:35:20 PM: Show (ProgramManager) -> Display Mode is MainMenu
28/01/2009 7:35:20 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
28/01/2009 7:35:20 PM: ShowScreen (ProgramManager) -> Resetting Menu
28/01/2009 7:35:20 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu True
28/01/2009 7:35:20 PM: ShowScreen (ProgramManager) -> Showing MainMenu
28/01/2009 7:35:32 PM: CPForm_FormClosing (frmLayout) -> Closing
28/01/2009 7:35:32 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x2359496
28/01/2009 7:35:32 PM: Show (ProgramManager) -> Closing Loading Screens
28/01/2009 7:35:33 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
28/01/2009 7:35:35 PM: OnMameStop (MameManager) -> OnMameStop
28/01/2009 7:35:35 PM: OnMameStop (MameManager) -> Success
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> ShowScreen: Layout (Display Mode) False (Layout Override) False (Exit To Menu) False (Dynamic Load)
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Mame Mode
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Getting Game Details
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Showing Layout Form
28/01/2009 7:35:46 PM: Show (frmLayout) -> frmLayout hWnd: 0x2949320
28/01/2009 7:35:46 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x0
28/01/2009 7:35:46 PM: Show (frmLayout) -> Failed! Foreground hWnd: 0x0 ()
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Display Mode is Layout
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Resetting Menu
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu False
28/01/2009 7:35:46 PM: ShowScreen (ProgramManager) -> Showing Layout
28/01/2009 7:35:48 PM: Show (frmLayout) -> frmLayout hWnd: 0x2949320
28/01/2009 7:35:48 PM: Show (frmLayout) -> Attempting Try 3
28/01/2009 7:35:48 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x2949320
28/01/2009 7:35:48 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x2949320 (Preview)
28/01/2009 7:35:49 PM: CPForm_FormClosing (frmLayout) -> Closing
28/01/2009 7:35:49 PM: Show (ProgramManager) -> Closing Loading Screens
28/01/2009 7:35:50 PM: OnMameStart (MameManager) -> OnMameStart
28/01/2009 7:35:50 PM: OnMameStart (MameManager) -> GameName: mpatrol
28/01/2009 7:36:02 PM: OnMamePaused (MameManager) -> OnMamePaused
28/01/2009 7:36:02 PM: OnMamePaused (MameManager) -> Showing Mame
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Show
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Mame Running
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Searching for Mame
28/01/2009 7:36:02 PM: FindMame (MameManager) -> Mame Running hWnd: 0x3014856
28/01/2009 7:36:02 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=1920,Height=1200}
28/01/2009 7:36:02 PM: FindMame (MameManager) -> Command Line: mame.exe mpatrol -rompath "C:\mame\roms" -nowindow -joy -skip_gameinfo
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Game Found: mpatrol
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Getting Game Details
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Taking Screenshot
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Minimizing Mame
28/01/2009 7:36:02 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x3014856
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Showing Loading Screens
28/01/2009 7:36:02 PM: ShowLoading (ProgramManager) -> Showing Loading Form: 0
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Showing Layout Form
28/01/2009 7:36:02 PM: Show (frmLayout) -> frmLayout hWnd: 0x131692
28/01/2009 7:36:02 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x131692
28/01/2009 7:36:02 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x131692 (Preview)
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Show CP Only is False
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Exit To Menu is True
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Display Mode is MainMenu
28/01/2009 7:36:02 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
28/01/2009 7:36:02 PM: ShowScreen (ProgramManager) -> Resetting Menu
28/01/2009 7:36:02 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu True
28/01/2009 7:36:02 PM: ShowScreen (ProgramManager) -> Showing MainMenu
28/01/2009 7:36:02 PM: CPForm_FormClosing (frmLayout) -> Closing
28/01/2009 7:36:02 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x3014856
28/01/2009 7:36:02 PM: Show (ProgramManager) -> Closing Loading Screens
28/01/2009 7:36:11 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
28/01/2009 7:36:14 PM: OnMamePaused (MameManager) -> OnMamePaused
28/01/2009 7:36:14 PM: OnMamePaused (MameManager) -> Showing Mame
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Show
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Mame Running
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Searching for Mame
28/01/2009 7:36:14 PM: FindMame (MameManager) -> Mame Running hWnd: 0x3014856
28/01/2009 7:36:14 PM: FindMame (MameManager) -> Window Rect: {X=0,Y=0,Width=1920,Height=1200}
28/01/2009 7:36:14 PM: FindMame (MameManager) -> Command Line: mame.exe mpatrol -rompath "C:\mame\roms" -nowindow -joy -skip_gameinfo
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Game Found: mpatrol
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Getting Game Details
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Taking Screenshot
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Minimizing Mame
28/01/2009 7:36:14 PM: MinimizeMame (MameManager) -> Minimizing Mame hWnd: 0x3014856
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Showing Loading Screens
28/01/2009 7:36:14 PM: ShowLoading (ProgramManager) -> Showing Loading Form: 0
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Showing Layout Form
28/01/2009 7:36:14 PM: Show (frmLayout) -> frmLayout hWnd: 0x328296
28/01/2009 7:36:14 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x328296
28/01/2009 7:36:14 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x328296 (Preview)
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Show CP Only is False
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Exit To Menu is True
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Display Mode is MainMenu
28/01/2009 7:36:14 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
28/01/2009 7:36:14 PM: ShowScreen (ProgramManager) -> Resetting Menu
28/01/2009 7:36:14 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu True
28/01/2009 7:36:14 PM: ShowScreen (ProgramManager) -> Showing MainMenu
28/01/2009 7:36:14 PM: CPForm_FormClosing (frmLayout) -> Closing
28/01/2009 7:36:14 PM: RestoreMame (MameManager) -> Restoring Mame hWnd: 0x3014856
28/01/2009 7:36:14 PM: Show (ProgramManager) -> Closing Loading Screens
28/01/2009 7:36:20 PM: OnMameUnPaused (MameManager) -> OnMameUnPaused
28/01/2009 7:36:24 PM: OnMameStop (MameManager) -> OnMameStop
28/01/2009 7:36:24 PM: OnMameStop (MameManager) -> Success
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> ShowScreen: Layout (Display Mode) False (Layout Override) False (Exit To Menu) False (Dynamic Load)
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Mame Mode
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Getting Game Details
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Showing Layout Form
28/01/2009 7:36:33 PM: Show (frmLayout) -> frmLayout hWnd: 0x3604680
28/01/2009 7:36:33 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x0
28/01/2009 7:36:33 PM: Show (frmLayout) -> Failed! Foreground hWnd: 0x0 ()
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Display Mode is Layout
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Hiding Main Menu
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Resetting Menu
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Setting Exit To Menu False
28/01/2009 7:36:33 PM: ShowScreen (ProgramManager) -> Showing Layout
28/01/2009 7:36:35 PM: Show (frmLayout) -> frmLayout hWnd: 0x3604680
28/01/2009 7:36:35 PM: Show (frmLayout) -> Attempting Try 3
28/01/2009 7:36:35 PM: ForceForegroundWindow (HideDesktop) -> Foreground hWnd: 0x3604680
28/01/2009 7:36:35 PM: Show (frmLayout) -> Success! Foreground hWnd: 0x3604680 (Preview)
28/01/2009 7:36:39 PM: CPForm_FormClosing (frmLayout) -> Closing
28/01/2009 7:36:39 PM: Show (ProgramManager) -> Closing Loading Screens
28/01/2009 7:36:40 PM: OnMameStart (MameManager) -> OnMameStart
28/01/2009 7:36:40 PM: OnMameStart (MameManager) -> GameName: galaga
28/01/2009 7:36:55 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,0
28/01/2009 7:36:55 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,0
28/01/2009 7:37:10 PM: OnMameStop (MameManager) -> OnMameStop
28/01/2009 7:37:10 PM: OnMameStop (MameManager) -> Success

Hmm...now that I look again at that log what are the two lines that say:

28/01/2009 7:36:55 PM: OnMameOutput (MameManager) -> OnMameOutput: led1,0

28/01/2009 7:36:55 PM: OnMameOutput (MameManager) -> OnMameOutput: led0,0

I don't have LEDs on my panel nor did I think I activated any option/plugin for them... Why do they only appear in the Galaga section?

post-3293-1233193240_thumb.jpg

Posted

Believe it or not from the info you gave me I think I fixed the bug. Those led outputs are sent from Mame, you don't need to worry about them, nothing is done when they are sent to CPWizard and in Verbose debug mode they are outputted to the log file. But you gave me a clue because in the UltraStik plugin I don't do anything when outputs are sent. So what happened is Mame sent the outputs and the UltraStik plugin wasn't checking to see if nothing was supposed to happen. Hence the NullReference exception. It was one line of code. So please download Version 1.21 and try again.

If it fails again please edit the PlugInUltraStik.ini and uncomment out Debug=true then post PlugInUltraStik.log. Apart from that little bug it seems like it's working okay.

Posted

Tried about 20 of my favourite MAME games on the weekend, including a lot with two-way movement. So far, so good.... all worked wonderfully and up/down navigation in CPWizard pause menu was possible. Thanks Headkaze!

  • 5 months later...
Posted

I just finished building my new control panel with 2 ultrastiks and I thought I'd give your plugin a try but I can't seem to get it to initialize

Here's the interesting bit of the log:

15:56:26.1  28/07/2009:  Loading PlugIns
15:56:26.1 28/07/2009: Loaded Plugin:"Cursor Hider" Version 1.01 By Stu
15:56:26.1 28/07/2009: PlugIn: "Cursor Hider" Initialized OK
15:56:26.1 28/07/2009: Using Plugin System Version: 1.3
15:56:26.1 28/07/2009: Loaded Plugin:"LCD/LED Plugin" Version 2.87 By Ben Baker
15:56:27.8 28/07/2009: PlugIn: "LCD/LED Plugin" Initialized OK
15:56:27.8 28/07/2009: Using Plugin System Version: 1.3
15:56:27.8 28/07/2009: Could Not Load Plugin: 8
15:56:27.8 28/07/2009: Checking for applications to Launch On Startup

And here is the full log:

15:56:26.1  28/07/2009:  GameEx: Version 10.18: Starting Log
15:56:26.1 28/07/2009: Operating System Platform: Win32NT
15:56:26.1 28/07/2009: Operating System Name: Windows Vista
15:56:26.1 28/07/2009: Operating System Version: 6.0.6001
15:56:26.1 28/07/2009: Vista Aero NOT running
15:56:26.1 28/07/2009: Initializing Vista volume control
15:56:26.1 28/07/2009: Checking for versions of .net Framework installed
15:56:26.1 28/07/2009: .net Framework 2.0 Installed
15:56:26.1 28/07/2009: Intel® Core(tm)2 Duo CPU E8500 @ 3.16GHz, 4094MB
15:56:26.1 28/07/2009: 3.17Ghz - 2 Cores or CPU's
15:56:26.1 28/07/2009: Running Randomize()
15:56:26.1 28/07/2009: Loading PlugIns
15:56:26.1 28/07/2009: Loaded Plugin:"Cursor Hider" Version 1.01 By Stu
15:56:26.1 28/07/2009: PlugIn: "Cursor Hider" Initialized OK
15:56:26.1 28/07/2009: Using Plugin System Version: 1.3
15:56:26.1 28/07/2009: Loaded Plugin:"LCD/LED Plugin" Version 2.87 By Ben Baker
15:56:27.8 28/07/2009: PlugIn: "LCD/LED Plugin" Initialized OK
15:56:27.8 28/07/2009: Using Plugin System Version: 1.3
15:56:27.8 28/07/2009: Could Not Load Plugin: 8
15:56:27.8 28/07/2009: Checking for applications to Launch On Startup
15:56:27.8 28/07/2009: Launching and not waiting: E:\GameEx\Utilities\RunB4.bat
15:56:27.8 28/07/2009: Running Misc startup tasks
15:56:27.8 28/07/2009: Setting Menu types
15:56:27.8 28/07/2009: Opening Configuration File
15:56:27.8 28/07/2009: Getting Configuration Values
15:56:27.8 28/07/2009: Using Theme: Future Retro v4
15:56:27.8 28/07/2009: Checking for alternate Image Directory for Theme: Future Retro v4
15:56:27.8 28/07/2009: Launching HideOS.exe
15:56:27.8 28/07/2009: Initialising Video/MNG DLL's
15:56:27.9 28/07/2009: GameEx will check for media insertion (may affect performance)
15:56:27.9 28/07/2009: Hiding Taskbar
15:56:27.9 28/07/2009: Is Media Center running?
15:56:27.9 28/07/2009: Checking/Creating LCD Registry values
15:56:27.9 28/07/2009: Check Media Center Exit/Start Mode
15:56:27.9 28/07/2009: Media Center Mode 0
15:56:27.9 28/07/2009: Video previews on. Warning: Only recommended on modern systems
15:56:27.9 28/07/2009: Custom Keyboard Input enabled: Getting custom codes
15:56:27.9 28/07/2009: Custom Game Device Input enabled: Getting custom codes
15:56:27.9 28/07/2009: Snap Delay set to: 4
15:56:27.9 28/07/2009: Get other settings
15:56:27.9 28/07/2009: Mouse Input is disabled
15:56:27.9 28/07/2009: Desktop set to Hide ICONS and set Background to Black
15:56:27.9 28/07/2009: SlikStik support enabled
15:56:27.9 28/07/2009: Using DirectInput for keyboard input
15:56:27.9 28/07/2009: Start work for Form
15:56:27.9 28/07/2009: Getting Original Screen Size
15:56:27.9 28/07/2009: Opening Database Connection
15:56:27.9 28/07/2009: Initializing Component
15:56:27.9 28/07/2009: Retrieving resolution setting
15:56:27.9 28/07/2009: MAME Path is: E:\Mame
15:56:27.9 28/07/2009: Model 2 Path Path is: E:\Sega Model 2
15:56:27.9 28/07/2009: Multi Core/Hyper Threading detected. Looking for emulator_multicpu.exe
15:56:27.9 28/07/2009: Model 2 EXE file is: emulator_multicpu.exe
15:56:27.9 28/07/2009: Model 2 emulator with command line support detected
15:56:27.9 28/07/2009: Use Model 2 on. emulator_multicpu.exe will launch Sega Model 2 games
15:56:27.9 28/07/2009: MAME EXE file is: mame64.exe
15:56:27.9 28/07/2009: ROM Path is: E:\Mame\roms
15:56:27.9 28/07/2009: Catver.ini is located at: E:\Mame\catver.ini
15:56:27.9 28/07/2009: History.dat is located at: E:\Mame\history.dat
15:56:27.9 28/07/2009: nplayers.ini is located at: E:\Mame\nplayers.ini
15:56:28.0 28/07/2009: MAMEinfo.dat is located at: E:\Mame\mameinfo.dat
15:56:28.0 28/07/2009: Loading Controls.ini map file
15:56:28.0 28/07/2009: Snap Path is: E:\Mame\snap
15:56:28.0 28/07/2009: AVI Snap Path is: E:\Mame\avisnap
15:56:28.0 28/07/2009: Flyer Path is: E:\Mame\flyers
15:56:28.0 28/07/2009: Cabinet Path is: E:\Mame\cabinets
15:56:28.0 28/07/2009: Title Path is: E:\Mame\titles
15:56:28.0 28/07/2009: PCB Path is: E:\Mame\pcb
15:56:28.0 28/07/2009: Artwork Preview Path is: E:\Mame\artwork
15:56:28.0 28/07/2009: Panel Path is: E:\Mame\cpanel
15:56:28.0 28/07/2009: Manual Path is: E:\Mame\Manuals
15:56:28.0 28/07/2009: Icon Path: Not Found
15:56:28.0 28/07/2009: Marquee Path is: E:\Mame\marquees
15:56:28.0 28/07/2009: Loading Custom Emulators
15:56:28.0 28/07/2009: Loading Emulator 8: Nintendo GameBoy Mono & Color
15:56:28.0 28/07/2009: Loading Emulator 9: Nintendo GameBoy Advance
15:56:28.0 28/07/2009: Loading Emulator 11: Nintendo NES
15:56:28.0 28/07/2009: Loading Emulator 12: Nintendo SNES
15:56:28.1 28/07/2009: Loading Emulator 13: Nintendo N64
15:56:28.1 28/07/2009: Loading Emulator 30: Nintendo GameBoy Advance
15:56:28.1 28/07/2009: Loading Emulator 31: Nintendo GameBoy Mono & Color
15:56:28.1 28/07/2009: Loading Emulator 32: Nintendo Virtual Boy
15:56:28.1 28/07/2009: Loading Emulator 33: Nintendo NES
15:56:28.2 28/07/2009: Loading Emulator 34: Nintendo SNES
15:56:28.2 28/07/2009: Loading Emulator 35: Nintendo N64
15:56:28.2 28/07/2009: Loading Emulator 36: Nintendo GameCube
15:56:28.2 28/07/2009: Loading Emulator 40: Sega Game Gear
15:56:28.3 28/07/2009: Loading Emulator 41: Sega Master System
15:56:28.3 28/07/2009: Loading Emulator 42: Sega Mega Drive
15:56:28.3 28/07/2009: Loading Emulator 43: Sega Saturn
15:56:28.3 28/07/2009: Loading Emulator 44: Sega Dreamcast
15:56:28.4 28/07/2009: Loading Emulator 50: Atari 5200
15:56:28.4 28/07/2009: Loading Emulator 51: Atari 7800
15:56:28.4 28/07/2009: Loading Emulator 52: Atari Jaguar
15:56:28.5 28/07/2009: Loading Emulator Group 1: Sega
15:56:28.5 28/07/2009: Loading Emulator Group 2: Nintendo
15:56:28.5 28/07/2009: Loading Emulator Group 3: Atari
15:56:28.5 28/07/2009: Using 3D Alpha Blended Animations. This could be slow
15:56:28.5 28/07/2009: Using General Font: Alien League
15:56:28.5 28/07/2009: Using Title Font: Microsoft Sans Serif
15:56:28.5 28/07/2009: Initialising DirectDraw
15:56:28.6 28/07/2009: Creating DirectDraw Device
15:56:28.6 28/07/2009: Using Device: Ultimarc ArcadeVGA2
15:56:28.7 28/07/2009: 2042mb video memory available
15:56:28.7 28/07/2009: Setting Resolution to 640x480 32 bit color
15:56:28.7 28/07/2009: Creating DirectDraw Surfaces
15:56:28.7 28/07/2009: Creating Primary Surface - Full Screen Mode
15:56:28.7 28/07/2009: Creating Back Buffer
15:56:28.7 28/07/2009: Version 2 Theme being used. Loading.
15:56:28.7 28/07/2009: Loading Button Data
15:56:28.7 28/07/2009: Loading Font Data
15:56:28.7 28/07/2009: Loading Layout Data
15:56:28.7 28/07/2009: Loading Taskbar Data
15:56:28.8 28/07/2009: Loading graphic Surfaces
15:56:28.8 28/07/2009: Display is running at: 640x480 32bit color, 58hz
15:56:28.8 28/07/2009: Creating Surfaces Flags
15:56:28.8 28/07/2009: Creating Surfaces Misc and Dialogs
15:56:28.8 28/07/2009: Creating Surfaces Volume
15:56:28.8 28/07/2009: Creating Surfaces Arrows
15:56:28.8 28/07/2009: Creating Surfaces GameEXlogo Text
15:56:28.8 28/07/2009: Creating Surfaces Toolbar
15:56:28.8 28/07/2009: Creating Surfaces Backgrounds
15:56:28.9 28/07/2009: Creating Surfaces Toolbar Controls
15:56:28.9 28/07/2009: Creating Surfaces GameEx Logo
15:56:28.9 28/07/2009: Creating Surface Unselected
15:56:28.9 28/07/2009: Creating Surfaces Snaps
15:56:28.9 28/07/2009: Creating Surfaces Menu and List Bars
15:56:28.9 28/07/2009: Creating Fonts
15:56:28.9 28/07/2009: Creating Game Font
15:56:29.0 28/07/2009: Creating Game Font Faded
15:56:29.0 28/07/2009: Creating Title Font
15:56:29.0 28/07/2009: Restoring Title Font From Cache
15:56:29.1 28/07/2009: Creating Font Black
15:56:29.1 28/07/2009: Creating Font Black Small
15:56:29.2 28/07/2009: Fonts Created Succesfully
15:56:29.2 28/07/2009: 2006mb video memory left available
15:56:29.2 28/07/2009: Creating instance of global keyboard hook
15:56:29.2 28/07/2009: Attempting to load game list
15:56:29.3 28/07/2009: Starting GameExtender Publisher
15:56:29.3 28/07/2009: Text/Language: English
15:56:29.3 28/07/2009: Applying Language/Text
15:56:29.3 28/07/2009: Initialising Bass Audio Library
15:56:29.4 28/07/2009: MAME CMD options:
15:56:29.4 28/07/2009: Loading last used Game List
15:56:29.5 28/07/2009: Loading Start Page
15:56:29.6 28/07/2009: Setting Music Volume
15:56:29.6 28/07/2009: Creating DirectSound Device
15:56:29.6 28/07/2009: Trying: Primary Sound Driver
15:56:29.6 28/07/2009: Loading Sound Files
15:56:29.6 28/07/2009: DirectSound Device Created Successfully
15:56:29.6 28/07/2009: Initialising DirectInput for Gamepad support
15:56:29.6 28/07/2009: Using Device Ultimarc Ultra-Stik Player 1
15:56:29.6 28/07/2009: Using Device Ultimarc Ultra-Stik Player 2
15:56:29.6 28/07/2009: Initialising DirectInput for Keyboard support
15:56:29.7 28/07/2009: Initializing MCE Remote
15:56:29.7 28/07/2009: Playing intro sound file
15:56:29.7 28/07/2009: Initialization OK! Starting GameEx!
15:56:29.7 28/07/2009: Testing Main Loop Once: Processing Frame
15:56:30.0 28/07/2009: Testing Main Loop Once: Main Loop ran successfully
15:56:51.4 28/07/2009: Exiting GameEx!
15:56:51.4 28/07/2009: Saving Settings
15:56:52.4 28/07/2009: Disposing Plugins
15:56:52.4 28/07/2009: Closing database connection
15:56:52.5 28/07/2009: Checking for applications to Launch On Exit
15:56:52.5 28/07/2009: Launching and waiting: E:\GameEx\Utilities\RunAfter.bat

I tried your test program from the 3rd or 4th post in this thread and it's working fine

Any ideas? I'm running Vista x64

Thanks

Stu

Posted

Sorry Stu I have no idea and "Could Not Load Plugin" doesn't tell me much. I do know that it's been tested on Vista 64 before. Perhaps Tom could give us some ideas?

Posted

Not the best error message I agree! This is actually an exception when trying to call the initializiation funtion within the plugin.

EDIT: Thats not correct, I see this is the UltraStik plugin, and not the LCD one erroring. I dont really know what is causing this. GameEx is just failing loading the DLL assembly itself. Perhaps a .net framework version issue?

Posted

I just realised that I did add logging to the UltraStik plugin. Stu take a look in GameEx's PLUGINS folder for PlugInUltraStik.log and if it contains any errors that might help out.

Posted

Seemingly it hasn't even managed to create the log file before erroring

I have up to dot net 3.5 installed

Thanks

Stu

Posted

I hadn't tried a reboot but just done one there now but now difference

Is there supposed to be a config window for this pluggin? Although it lists in the manager when I click config nothing happens

Stu

**Update**

Just tried it on another PC and I can see the about screen after click the config button in the manager.

So what would cause that window to not appear on my cabinet pc?

Stu

Posted

Any chance I could get a look at your code headkaze so I can try work this out myself?

I really can't see what would be causing the about window not to appear, I've reinstalled dot net but hasn't made any difference

Stu

Posted

All I have for the Configure method is the following

public void Configure()
{
using(Configuration config = new Configuration())
{
config.ShowDialog(null);
}
}

And the Configuration form is basically empty. There is nothing that could cause an exception there, so IMHO there is a problem instanciating the plugin, not something in the plugin itself. So I take it other plugins are running fine? Have you tried downloading the version from my website and copying it manually into GameEx's PLUGINS folder?

Attached it an x86 compiled version but it really shouldn't make a difference. My dev machine is XP 64 and it runs fine, and from memory we had the plugin tested by a few Vista 64 users.

PlugInUltraStik.zip

Posted

Yeah I had already tried the one from your site but it didn't make a difference and the new one you posted above didn't help either.

It's really odd because all the other plugin config screens appear fine I even tried your rotate plugin which is your most recent, I think.

If I had your code I was going to go through commenting out section by section until I can get it to load.

My other PC is also Vista x64 and it works on it so thats not the problem.

Stu

Posted

Are you running at 640x480 ? Maybe the low screen resolution could have something to do with the issue.

:)

Posted
My other PC is also Vista x64 and it works on it so thats not the problem.

When you run the Plugin Manager, the only method invoked is "Configure" so I don't see how going through the code will help. There is nothing to comment out apart from the lines I showed you above. I can make you up a debug version with message boxes etc. but I think the plugin is failing initialization, which means it doesn't even get to call a method. What shall we try now?

Posted
When you run the Plugin Manager, the only method invoked is "Configure" so I don't see how going through the code will help. There is nothing to comment out apart from the lines I showed you above. I can make you up a debug version with message boxes etc. but I think the plugin is failing initialization, which means it doesn't even get to call a method. What shall we try now?

I've had bother before when I was making a plugin and it turned out it was code further on down the plugin that was causing it break.

I was goona go with the opposite approach and start by commenting out pretty much everything apart from the config button code and see if just that would work by itself, then start adding the code back in until it fails to initialise.

I am running 640x480 but I can't see this being an issue as all the other plugin about screen appear, I have a fully configured LCD/LED Plugin that was all configured at 640x480.

Stu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...