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: Ipac 4 Default Keycode Problems  (Read 7611 times)

0 Members and 1 Guest are viewing this topic.

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Ipac 4 Default Keycode Problems
« on: September 05, 2013, 03:44:26 pm »
I have a 4 player cabinet with 6 buttons on each player.  I noticed this problem when I was playing TMNT on Mame.  When I press buttons 5 & 6 for player 2, it moves player 3 up & down.  I realize 6 buttons aren't needed for TMNT and most other games, but it still shouldn't be doing this.  I went to a game that requires at least 5 buttons (MK3), and tested out button 5 on player 2 and it didn't work.

So I checked the default keycodes at http://www.ultimarc.com/ipac2.html and found that input 2 SW 5 and 2 SW 6 are mapped with the same keys as 3 UP and 3 DOWN.  Does this not interfere with games that require 3 or 4 players and 5 or 6 buttons?

I have emulators for Atari, Nes, Snes, Sega, and of course Mame. 

What's the best way of going about this?

blacketj

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 27
  • Last login:August 29, 2018, 01:00:07 am
Re: Ipac 4 Default Keycode Problems
« Reply #1 on: September 05, 2013, 04:29:11 pm »
Interesting.  Maybe this is set up this way because it is defaulted for MAME, and you should not have a reason to be using the 5&6 buttons when playing a game that has more than two players.

In any case, I would just use Ultimarc's software reprogram the controller.  Shouldn't take you too long to figure out, it is fairly straight forward with decent documentation.  You just need to find a couple more keys to use on the keyboard for player 3's up and down.  Then make the appropriate changes in the input settings of your emulators.

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #2 on: September 05, 2013, 04:34:17 pm »
Alright, but why does button 5 & 6 not work when I'm playing a two player only game?

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Ipac 4 Default Keycode Problems
« Reply #3 on: September 05, 2013, 04:36:07 pm »
By default, MAME doesn't map buttons 5 and 6 for player two.
***Build what you dig, bro. Build what you dig.***

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 03:43:39 pm
  • Designated spam hunter
Re: Ipac 4 Default Keycode Problems
« Reply #4 on: September 05, 2013, 04:39:51 pm »
There are actually two more overlapping keys -- both Player 2 Button 5-8 and Player 3 directional default keys use I, K, J, and L.

Pretty sure the overlap started with Andy choosing default buttons for the IPac2 which became accepted as pseudo-defaults.

Just reprogram the IPac to "deconflict" the overlaps.


Scott
« Last Edit: September 05, 2013, 04:45:36 pm by PL1 »

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #5 on: September 05, 2013, 04:52:27 pm »
There are actually two more overlapping keys -- both Player 2 Button 5-8 and Player 3 directional default keys use I, K, J, and L.

Pretty sure the overlap started with Andy choosing default buttons for the IPac2 which became accepted as pseudo-defaults.

Just reprogram the IPac to "deconflict" the overlaps.


Scott

Ok, this is making more sense.  However, in that link you posted, RandyT said "It's all relative anyway, as MAME doesn't care.  It doesn't even look at the definitions for Player 3 unless Player 3 is actually playing."

If this is the case, why does my button 5 for player 2 not work when I'm only playing a two player game?

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Ipac 4 Default Keycode Problems
« Reply #6 on: September 05, 2013, 04:56:26 pm »
If this is the case, why does my button 5 for player 2 not work when I'm only playing a two player game?

By default, MAME doesn't map buttons 5 and 6 for player two.
***Build what you dig, bro. Build what you dig.***

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #7 on: September 05, 2013, 04:59:46 pm »
I understand that, but I have gone into Mame and mapped those two buttons to match the ipac default keycodes, and they still don't work...

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Ipac 4 Default Keycode Problems
« Reply #8 on: September 05, 2013, 10:56:14 pm »
the truth of the matter is that the default keymap for the ipac sucks.  personally, i remap pretty much the entire thing using ultimarc's software.  i don't like to use the shift/alt/ctrl keys because they have a tendency if causing other windows related issues....just reprogram it and save yourself the headaches.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 03:43:39 pm
  • Designated spam hunter
Re: Ipac 4 Default Keycode Problems
« Reply #9 on: September 05, 2013, 11:31:00 pm »
I understand that, but I have gone into Mame and mapped those two buttons to match the ipac default keycodes, and they still don't work...

So you used the WinIPac software to reprogram the IPac and changed the settings in MAME and it doesn't work?

When you open Notepad and press the P2 buttons and P3 joystick, does it type the desired keystrokes?

If the right keystrokes show up in Notepad, pull up the "Input (general)" menu -- verify the settings there are correct/change them as needed.

Next pull up the "Input (this Game)" menu in any game that you had previously changed settings -- verify the settings there are correct/change them as needed.


Scott

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #10 on: September 06, 2013, 01:34:26 pm »
I understand that, but I have gone into Mame and mapped those two buttons to match the ipac default keycodes, and they still don't work...

So you used the WinIPac software to reprogram the IPac and changed the settings in MAME and it doesn't work?

When you open Notepad and press the P2 buttons and P3 joystick, does it type the desired keystrokes?

If the right keystrokes show up in Notepad, pull up the "Input (general)" menu -- verify the settings there are correct/change them as needed.

Next pull up the "Input (this Game)" menu in any game that you had previously changed settings -- verify the settings there are correct/change them as needed.


Scott

No, I hadn't changed the key codes on the ipac 4.  I had only changed the Mame settings to match the ipac.  When I tried to change the ipac key codes, I'm having another problem:

When I click "Program" in the bottom right, it says "Driver Installed OK", but then it says "Could not load program, try reinstall and or reboot with the board connected."  I have tried all of this, and still no luck.  I am running the program as Administrator.  I'm also using a PS/2 to USB converter to connect to the PC.  I have "USB" selected under options (and I've tried it with PS/2 selected). 

Any ideas why I'm getting this error?

I have searches the forum, but found no solution.  And I've also emailed Andy with no response...

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Ipac 4 Default Keycode Problems
« Reply #11 on: September 06, 2013, 01:52:27 pm »
Connect a keyboard as well. I had a similar issue.
***Build what you dig, bro. Build what you dig.***

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #12 on: September 06, 2013, 03:04:30 pm »
It's a laptop.

But I can try it anyways!
« Last Edit: September 06, 2013, 03:09:49 pm by xer0s »

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #13 on: September 06, 2013, 04:41:21 pm »
Alright, the only keyboard I have is PS/2, and the laptop doesn't have an input (which is why I'm using a converter for the ipac).  Is there any way around this without buying another converter?  Who knows if connecting a keyboard will even fix my problem?

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Ipac 4 Default Keycode Problems
« Reply #14 on: September 06, 2013, 05:00:01 pm »
Are you using the ultimarc usb cable? Or a 3rd party ps2 to usb adapter?

I don't think it will work using a 3rd party adapter.

Try connecting the ps2 keyboard into the pass through port on the ipac.

 You may need to reprogram it on a different pc that you can connect it directly to.
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #15 on: September 06, 2013, 05:09:32 pm »
I'm using a 3rd party PS/2 to USB adapter.  I don't remember it coming with an ultimarc USB cable (it's been 8 years since I bought it).

I'll try the pass through port, then on a different computer if it doesn't work...

yotsuya

  • Trade Count: (+21)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19960
  • Last login:July 27, 2025, 08:34:04 pm
  • 2014 UCA Winner, 2014, 2015, 2016 ZapCon Winner
    • forum.arcadecontrols.com/index.php/topic,137636.msg1420628.html
Re: Ipac 4 Default Keycode Problems
« Reply #16 on: September 06, 2013, 05:35:09 pm »
I think serverdhed's advice is sound.
***Build what you dig, bro. Build what you dig.***

xer0s

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 56
  • Last login:October 03, 2016, 10:29:55 pm
  • Trying to get the bugs out...
Re: Ipac 4 Default Keycode Problems
« Reply #17 on: September 06, 2013, 07:19:26 pm »
I went ahead and hooked it up to my old PC and programmed it.  Not really the best solution, but it got the job done. 

Thanks everyone...

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: Ipac 4 Default Keycode Problems
« Reply #18 on: September 07, 2013, 05:02:11 pm »
the truth of the matter is that the default keymap for the ipac sucks. 

We use the Mame default map. If we were to ship out boards with a different map to the Mame defaults, this would cause massive confusion for many users.

A third party PS/2 to USB converter cant be used with the I-PAC (or other PS/2 encoders) for the reasons explained on
www.ultimarc.com/ipacusb.html

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: Ipac 4 Default Keycode Problems
« Reply #19 on: September 08, 2013, 12:28:18 am »
Didn't mean any disrespect Andy, the ipac is an awesome product. I understand why it is that way, but it is a bit confusing at first until you understand what it happening....not really your fault as much as it is whoever decided on that lame default mame config. I bought an ipac 4 for my new pedestal cab I'm building, I can't wait to install and use it. (I did reprogram it already)
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9674
  • Last login:Today at 03:43:39 pm
  • Designated spam hunter
Re: Ipac 4 Default Keycode Problems
« Reply #20 on: September 08, 2013, 01:53:46 am »
We use the Mame default map.

The parts of the map that MAME defines work fine and make sense.

The curious (and slightly bothersome) part is with P2 buttons 5-8 which are currently undefined in MAME defaults.

When you released the IPac2, you chose to use I, J, K, and L for those buttons -- the MAME defaults for P3 joystick directions.

My guess is that one of these three is the reason:
1. The default keys for MAME changed after you released the IPac2.
2. There was a reason that we don't know for that choice.  (Can you tell us, please? ;D)
3. You pulled those four keys out of thin air when you designed the IPac map.

Not asking you to change the maps -- just wondering if you could clarify how/why those keystrokes were chosen for P2 buttons 5-8.

Thanks in advance for any insight you can provide on this.   ;D


Scott