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: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)  (Read 168132 times)

0 Members and 2 Guests are viewing this topic.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #160 on: November 21, 2014, 09:12:38 am »
Try moving that Last INPUT section (at the very end of the file) up above the <SYSTEM> section.

Mame can sometimes be very sensitive to the position of elements in the XML (shouldn't be, but I seem to recall having issues with that in the past).

I don't have time to test right now, but I'll take a look this weekend.

If that turns out to be the case, I think I might add logic to always FORCE the system element to the end of the file.

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #161 on: November 22, 2014, 06:44:52 pm »
moved it up and still no dice arghhh I realize that the controller remap.exe file gets run but never actually grabs the xml according to the hyperspin logs

it only reads it when I actually test

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #162 on: November 22, 2014, 08:33:11 pm »
moved it up and still no dice arghhh I realize that the controller remap.exe file gets run but never actually grabs the xml according to the hyperspin logs

it only reads it when I actually test
Maybe you need to specify the full path to the file whereever you have ControllerRemap.exe being run inside Hyperspin. The default dir might not be what you think it is.

That's the only thing I can think of.

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #163 on: November 22, 2014, 08:34:26 pm »
i actually moved it to the c: directory and it still wont read it at all any other ideas?

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #164 on: November 22, 2014, 08:38:52 pm »
i actually moved it to the c: directory and it still wont read it at all any other ideas?

That won't help because even if ControllerRemap could read it, mame won't find the cfg file.

In Hyperspin, where you've added config to run controllerRemap, you'll need it to look something like

c:\mame\utilities\ControllerRemap.exe /remap:c:\mame\ctrlr\mycontroller.cfg

Ie specify the full path to where you've got controllerremap and where the CFG file is.




bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #165 on: November 29, 2014, 08:01:44 pm »
okay so after a lot of tinkering i got to this point

hyperspin is loading the file  and i see the controllerremap is saving the right cfg according to the log

2014-11-29T16:51:54
ControllerRemap Utility v0.0.11.0 - For Mame
(c) 2011 drventure Enterprises

2014-11-29T16:51:54 Scanning and processing files in C:\Hyperspin\emulators\Mame\ctrlr\myConfig.cfg
2014-11-29T16:51:54 Processing file C:\Hyperspin\emulators\Mame\ctrlr\myConfig.cfg
2014-11-29T16:51:54    Treating as a Mame cfg file...
2014-11-29T16:51:54    No changes.

the UI controls do work and i able to navigate around and start a game

now the only problem lies in actually getting the game controls to work it seems like none of the buttons are mapped within the game

here is my XML file
Code: [Select]
<!--
Configuration Remap file
-->
<mameconfig version="10">
  <!--
    ############################################################
    Define controller aliases, This just makes the controller names
    a little easier to deal with for the rest of the file.
    ############################################################
    -->
  <controlleralias>
    <id>ATRAK Device #1</id>
    <alias>"Lightgun_Player1_joystickbuttons"</alias>
  </controlleralias>
  <controlleralias>
    <id>ATRAK Device #2</id>
    <alias>"Lightgun_Player2_joystickbuttons"</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#VID_D209_PID_1601_MI_02#9_375eebb1_0_0000#</id>
    <alias>Lightgun_Player2</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#VID_D209_PID_1602_MI_02#9_2f312172_0_0000#</id>
    <alias>Lightgun_Player1</alias>
  </controlleralias>
  <!--
    ############################################################
    This is the System Default section
    It generally should be the FIRST system section in the cfg file
    ############################################################
    -->
  <system name="default">
    <controller id="keyboard">
      <input>
        <port type="UI_UP">
          <newseq type="standard">
                    KEYCODE_8PAD OR KEYCODE_UP
                </newseq>
        </port>
        <port type="UI_DOWN">
          <newseq type="standard">
                    KEYCODE_2PAD OR KEYCODE_DOWN
                </newseq>
        </port>
        <port type="UI_LEFT">
          <newseq type="standard">
                    KEYCODE_4PAD OR KEYCODE_LEFT
                </newseq>
        </port>
        <port type="UI_RIGHT">
          <newseq type="standard">
                    KEYCODE_6PAD OR KEYCODE_RIGHT
                </newseq>
        </port>
        <port type="UI_SELECT">
          <newseq type="standard">
                    KEYCODE_ENTER
                </newseq>
        </port>
        <port type="UI_CONFIGURE">
          <newseq type="standard">
                    KEYCODE_TAB
                </newseq>
        </port>
        <port type="UI_CANCEL">
          <newseq type="standard">
                    KEYCODE_ESC
                </newseq>
        </port>
        <port type="UI_START1">
          <newseq type="standard">
                    KEYCODE_1
                </newseq>
        </port>
        <port type="UI_START2">
          <newseq type="standard">
                    KEYCODE_2
                </newseq>
        </port>
        <port type="UI_COIN1">
          <newseq type="standard">
                    KEYCODE_5
                </newseq>
        </port>
        <port type="UI_COIN2">
          <newseq type="standard">
                    KEYCODE_6
                </newseq>
        </port>
        <port type="P1_JOYSTICK_UP">
          <newseq type="standard">
                    KEYCODE_8PAD
                </newseq>
        </port>
        <port type="P1_JOYSTICK_DOWN">
          <newseq type="standard">
                    KEYCODE_2PAD
                </newseq>
        </port>
        <port type="P1_JOYSTICK_LEFT">
          <newseq type="standard">
                    KEYCODE_4PAD
                </newseq>
        </port>
        <port type="P1_JOYSTICK_RIGHT">
          <newseq type="standard">
                    KEYCODE_6PAD
                </newseq>
        </port>
        <port type="P1_JOYSTICKRIGHT_UP">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKRIGHT_DOWN">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKRIGHT_LEFT">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKRIGHT_RIGHT">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKLEFT_UP">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKLEFT_DOWN">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKLEFT_LEFT">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_JOYSTICKLEFT_RIGHT">
          <newseq type="standard">
                    NONE
                </newseq>
        </port>
        <port type="P1_BUTTON1">
          <newseq type="standard">
                    KEYCODE_Q
                </newseq>
        </port>
        <port type="P1_BUTTON2">
          <newseq type="standard">
                    KEYCODE_W
                </newseq>
        </port>
        <port type="P1_BUTTON3">
          <newseq type="standard">
                    KEYCODE_E
                </newseq>
        </port>
        <port type="P1_BUTTON4">
          <newseq type="standard">
                    KEYCODE_R
                </newseq>
        </port>
        <port type="P1_BUTTON5">
          <newseq type="standard">
                    KEYCODE_T
                </newseq>
        </port>
        <port type="P1_BUTTON6">
          <newseq type="standard">
                    KEYCODE_Y
                </newseq>
        </port>
        <port type="P1_START">
          <newseq type="standard">
                    KEYCODE_1
                </newseq>
        </port>
        <port type="P2_JOYSTICK_UP">
          <newseq type="standard">
                    KEYCODE_UP
                </newseq>
        </port>
        <port type="P2_JOYSTICK_DOWN">
          <newseq type="standard">
                    KEYCODE_DOWN
                </newseq>
        </port>
        <port type="P2_JOYSTICK_LEFT">
          <newseq type="standard">
                    KEYCODE_LEFT
                </newseq>
        </port>
        <port type="P2_JOYSTICK_RIGHT">
          <newseq type="standard">
                    KEYCODE_RIGHT
                </newseq>
        </port>
        <port type="P2_BUTTON1">
          <newseq type="standard">
                    KEYCODE_A
                </newseq>
        </port>
        <port type="P2_BUTTON2">
          <newseq type="standard">
                    KEYCODE_S
                </newseq>
        </port>
        <port type="P2_BUTTON3">
          <newseq type="standard">
                    KEYCODE_D
                </newseq>
        </port>
        <port type="P2_BUTTON4">
          <newseq type="standard">
                    KEYCODE_F
                </newseq>
        </port>
        <port type="P2_BUTTON5">
          <newseq type="standard">
                    KEYCODE_G
                </newseq>
        </port>
        <port type="P2_BUTTON6">
          <newseq type="standard">
                    KEYCODE_H
                </newseq>
        </port>
        <port type="P2_START">
          <newseq type="standard">
                    KEYCODE_2
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="Lightgun_Player1">
      <input>
        <port type="P1_BUTTON1">
          <newseq type="standard">
                        JOYCODE_2_BUTTON0
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_X">
          <newseq type="standard">
                        GUNCODE_2_XAXIS
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_Y">
          <newseq type="standard">
                        GUNCODE_2_YAXIS
                    </newseq>
        </port>
        <port type="P1_AD_STICK_X">
          <newseq type="standard">
                    GUNCODE_2_XAXIS
                </newseq>
        </port>
        <port type="P1_AD_STICK_Y">
          <newseq type="standard">
                    GUNCODE_2_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="Lightgun_Player2">
      <input>
        <port type="P2_BUTTON1">
          <newseq type="standard">
                        JOYCODE_1_BUTTON1
                    </newseq>
        </port>
        <port type="P2_LIGHTGUN_X">
          <newseq type="standard">
                        GUNCODE_1_XAXIS
                    </newseq>
        </port>
        <port type="P2_LIGHTGUN_Y">
          <newseq type="standard">
                        GUNCODE_1_YAXIS
                    </newseq>
        </port>
        <port type="P2_AD_STICK_X">
          <newseq type="standard">
                    GUNCODE_1_XAXIS
                </newseq>
        </port>
        <port type="P2_AD_STICK_Y">
          <newseq type="standard">
                    GUNCODE_1_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <!--
        ###################################################
        ACTUAL INPUT MAPPING STARTS HERE
        DO NOT actually put anything in this section.
        It is completely cleared and regenerated!
        ###################################################
        -->
    <input>
      <port type="UI_UP">
        <newseq type="standard">
                    KEYCODE_8PAD OR KEYCODE_UP
                </newseq>
      </port>
      <port type="UI_DOWN">
        <newseq type="standard">
                    KEYCODE_2PAD OR KEYCODE_DOWN
                </newseq>
      </port>
      <port type="UI_LEFT">
        <newseq type="standard">
                    KEYCODE_4PAD OR KEYCODE_LEFT
                </newseq>
      </port>
      <port type="UI_RIGHT">
        <newseq type="standard">
                    KEYCODE_6PAD OR KEYCODE_RIGHT
                </newseq>
      </port>
      <port type="UI_SELECT">
        <newseq type="standard">
                    KEYCODE_ENTER
                </newseq>
      </port>
      <port type="UI_CONFIGURE">
        <newseq type="standard">
                    KEYCODE_TAB
                </newseq>
      </port>
      <port type="UI_CANCEL">
        <newseq type="standard">
                    KEYCODE_ESC
                </newseq>
      </port>
      <port type="UI_START1">
        <newseq type="standard">
                    KEYCODE_1
                </newseq>
      </port>
      <port type="UI_START2">
        <newseq type="standard">
                    KEYCODE_2
                </newseq>
      </port>
      <port type="UI_COIN1">
        <newseq type="standard">
                    KEYCODE_5
                </newseq>
      </port>
      <port type="UI_COIN2">
        <newseq type="standard">
                    KEYCODE_6
                </newseq>
      </port>
      <port type="P1_JOYSTICK_UP">
        <newseq type="standard">
                    KEYCODE_8PAD
                </newseq>
      </port>
      <port type="P1_JOYSTICK_DOWN">
        <newseq type="standard">
                    KEYCODE_2PAD
                </newseq>
      </port>
      <port type="P1_JOYSTICK_LEFT">
        <newseq type="standard">
                    KEYCODE_4PAD
                </newseq>
      </port>
      <port type="P1_JOYSTICK_RIGHT">
        <newseq type="standard">
                    KEYCODE_6PAD
                </newseq>
      </port>
      <port type="P1_JOYSTICKRIGHT_UP">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKRIGHT_DOWN">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKRIGHT_LEFT">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKRIGHT_RIGHT">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKLEFT_UP">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKLEFT_DOWN">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKLEFT_LEFT">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_JOYSTICKLEFT_RIGHT">
        <newseq type="standard">
                    NONE
                </newseq>
      </port>
      <port type="P1_BUTTON1">
        <newseq type="standard">
                    KEYCODE_Q
                 OR
                        JOYCODE_1_BUTTON0
                    </newseq>
      </port>
      <port type="P1_BUTTON2">
        <newseq type="standard">
                    KEYCODE_W
                </newseq>
      </port>
      <port type="P1_BUTTON3">
        <newseq type="standard">
                    KEYCODE_E
                </newseq>
      </port>
      <port type="P1_BUTTON4">
        <newseq type="standard">
                    KEYCODE_R
                </newseq>
      </port>
      <port type="P1_BUTTON5">
        <newseq type="standard">
                    KEYCODE_T
                </newseq>
      </port>
      <port type="P1_BUTTON6">
        <newseq type="standard">
                    KEYCODE_Y
                </newseq>
      </port>
      <port type="P1_START">
        <newseq type="standard">
                    KEYCODE_1
                </newseq>
      </port>
      <port type="P2_JOYSTICK_UP">
        <newseq type="standard">
                    KEYCODE_UP
                </newseq>
      </port>
      <port type="P2_JOYSTICK_DOWN">
        <newseq type="standard">
                    KEYCODE_DOWN
                </newseq>
      </port>
      <port type="P2_JOYSTICK_LEFT">
        <newseq type="standard">
                    KEYCODE_LEFT
                </newseq>
      </port>
      <port type="P2_JOYSTICK_RIGHT">
        <newseq type="standard">
                    KEYCODE_RIGHT
                </newseq>
      </port>
      <port type="P2_BUTTON1">
        <newseq type="standard">
                    KEYCODE_A
                 OR
                        JOYCODE_2_BUTTON1
                    </newseq>
      </port>
      <port type="P2_BUTTON2">
        <newseq type="standard">
                    KEYCODE_S
                </newseq>
      </port>
      <port type="P2_BUTTON3">
        <newseq type="standard">
                    KEYCODE_D
                </newseq>
      </port>
      <port type="P2_BUTTON4">
        <newseq type="standard">
                    KEYCODE_F
                </newseq>
      </port>
      <port type="P2_BUTTON5">
        <newseq type="standard">
                    KEYCODE_G
                </newseq>
      </port>
      <port type="P2_BUTTON6">
        <newseq type="standard">
                    KEYCODE_H
                </newseq>
      </port>
      <port type="P2_START">
        <newseq type="standard">
                    KEYCODE_2
                </newseq>
      </port>
      <port type="P1_LIGHTGUN_X">
        <newseq type="standard">
                        GUNCODE_1_XAXIS
                    </newseq>
      </port>
      <port type="P1_LIGHTGUN_Y">
        <newseq type="standard">
                        GUNCODE_1_YAXIS
                    </newseq>
      </port>
      <port type="P1_AD_STICK_X">
        <newseq type="standard">
                    GUNCODE_1_XAXIS
                </newseq>
      </port>
      <port type="P1_AD_STICK_Y">
        <newseq type="standard">
                    GUNCODE_1_YAXIS
                </newseq>
      </port>
      <port type="P2_LIGHTGUN_X">
        <newseq type="standard">
                        GUNCODE_2_XAXIS
                    </newseq>
      </port>
      <port type="P2_LIGHTGUN_Y">
        <newseq type="standard">
                        GUNCODE_2_YAXIS
                    </newseq>
      </port>
      <port type="P2_AD_STICK_X">
        <newseq type="standard">
                    GUNCODE_2_XAXIS
                </newseq>
      </port>
      <port type="P2_AD_STICK_Y">
        <newseq type="standard">
                    GUNCODE_2_YAXIS
                </newseq>
      </port>
    </input>
  </system>
  <!--
    ###################################################
    This is a GAME specific section
    Add additional <controller> sections here
    to define how those controllers should map for this
    particular game
    ###################################################
        -->
</mameconfig>


thanks for the help in advance




bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #166 on: December 05, 2014, 01:07:49 pm »
anyone have any ideas?

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #167 on: December 05, 2014, 02:52:39 pm »
Can you run controllerremap /list and post the results here?

I might be able to figure what's wrong from that and your remap file.

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #168 on: December 05, 2014, 09:43:17 pm »
ControllerRemap Utility v0.0.11.0 - For Mame
(c) 2011 drventure Enterprises


Joystick Device List (Devices are in enumeration order) ...

   1.  'ATRAK Device #2', ID=1
   2.  'ATRAK Device #1', ID=0

Mouse Device List (Devices are in enumeration order) ...

   1.  'HID#VID_D209_PID_1602_MI_02#9_2f312172_0_0000#'
   2.  'HID#VID_D209_PID_1601_MI_02#9_375eebb1_0_0000#'
   3.  'HID#VID_046D_PID_C52B_MI_01_Col01#7_9ffb40b_0_0000#'

End of list

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #169 on: December 06, 2014, 11:30:59 am »
I apologize. I mispoke.

I need you to run

ControllerRemap.exe /save

This will create a controllerremap.map file in the current dir.

If you can post THAT file, I should be able to tell what's up.

Thanks

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #170 on: December 06, 2014, 12:15:41 pm »
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfControllerEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControllerRemap">
  <ControllerEntry>
    <DeviceID>1</DeviceID>
    <EnumerationPos>1</EnumerationPos>
    <IsJoystick>true</IsJoystick>
    <IsMouse>false</IsMouse>
    <Name>ATRAK Device #2</Name>
  </ControllerEntry>
  <ControllerEntry>
    <DeviceID>0</DeviceID>
    <EnumerationPos>2</EnumerationPos>
    <IsJoystick>true</IsJoystick>
    <IsMouse>false</IsMouse>
    <Name>ATRAK Device #1</Name>
  </ControllerEntry>
  <ControllerEntry>
    <DeviceID>0</DeviceID>
    <EnumerationPos>3</EnumerationPos>
    <IsJoystick>false</IsJoystick>
    <IsMouse>true</IsMouse>
    <Name>HID#VID_046D_PID_C52B_MI_01_Col01#7_9ffb40b_0_0000#</Name>
  </ControllerEntry>
  <ControllerEntry>
    <DeviceID>0</DeviceID>
    <EnumerationPos>2</EnumerationPos>
    <IsJoystick>false</IsJoystick>
    <IsMouse>true</IsMouse>
    <Name>HID#VID_D209_PID_1601_MI_02#9_375eebb1_0_0000#</Name>
  </ControllerEntry>
  <ControllerEntry>
    <DeviceID>0</DeviceID>
    <EnumerationPos>1</EnumerationPos>
    <IsJoystick>false</IsJoystick>
    <IsMouse>true</IsMouse>
    <Name>HID#VID_D209_PID_1602_MI_02#9_2f312172_0_0000#</Name>
  </ControllerEntry>
</ArrayOfControllerEntry>

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #171 on: December 06, 2014, 12:49:09 pm »
Cool. I'll take a look and let you know. I've got a lot going on this weekend. Might be next week, but I'll figure it out.

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #172 on: December 06, 2014, 12:50:38 pm »
awesome this thing has been driving me nuts

lebronfaling

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 4
  • Last login:December 07, 2014, 10:36:39 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #173 on: December 07, 2014, 10:35:11 pm »
I am currenty setting up my remap cfg. It is possible to post a working config of your aimtrak guns with controleralias?
Many thanks
Find me here and my hobby site for safe wipe

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #174 on: December 10, 2014, 02:12:23 pm »
drventure, any luck ?

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #175 on: December 10, 2014, 03:21:51 pm »

zero_koop

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 34
  • Last login:January 19, 2015, 07:49:41 pm
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #176 on: January 19, 2015, 05:20:10 pm »
Hi, I think I'm getting close to figuring this out, but I'm having trouble with the -ctrlr command with MAME.  Anytime I add the "-ctrlr MyArcade" command to the command line (along with other commands I'm using) MAME just refuses to start.  Even if I point it to one of the preexisting controller files (e.g. "-ctrlr xarcade").  So this isn't necessarily a problem with the controller remap utility, but I was wondering if anyone knew what to do with this?  Thanks.

milhouse

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 177
  • Last login:March 02, 2023, 08:03:32 pm
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #177 on: January 19, 2015, 11:14:41 pm »
Hi,

I am trying to get this working but am having trouble right off the bat.  I am getting XML/Java errors, even when I try to remap the sample.cfg file without any changes.

Thoughts?

Code: [Select]
2015-01-19T23:12:59
ControllerRemap Utility v0.0.11.0 - For Mame
(c) 2011 drventure Enterprises

2015-01-19T23:12:59 Scanning and processing files in D:\emulators\mame\ctrlr\Sample.CFG
2015-01-19T23:12:59 Processing file D:\emulators\mame\ctrlr\Sample.CFG
2015-01-19T23:12:59    Treating as a Mame cfg file...
2015-01-19T23:12:59
2015-01-19T23:12:59 Unexpected problem encountered. System.NullReferenceException: Object reference not set to an instance of an object.
   at ControllerRemap.ControllerEntries._Closure$__4._Lambda$__12(ControllerEntry j)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at ControllerRemap.ControllerEntries.get_InternalFindByID(String index, Boolean IgnoreInstance)
   at ControllerRemap.CFGFileMame.Scan()
   at ControllerRemap.CFGFiles.Scan()
   at ControllerRemap.Program.Main()

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #178 on: January 26, 2015, 03:13:53 pm »
can anyone help us?

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #179 on: February 12, 2015, 03:01:42 pm »
My apologies
Lot of crap going on personally.

I'll try to take a look this weekend.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #180 on: March 01, 2015, 03:57:22 pm »
Finally getting to a few of these posts. Sorry for the long delay.

@Zero_Koop

I think the command line needs the file ext, like this

Mame ribbit –ctrlr MyArcade.cfg

Also, keep in mind that if there's ANYTHING wrong with the xml formatting in the CFG file, mame won't load it or will lock up.

If in doubt, there's tons of XML verifiers online you can upload your file to to verify the format.



stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #181 on: March 01, 2015, 04:05:41 pm »
Maybe my guide was a bit too long for consumption....
Up to me neck in another project atm, but as soon as clear of this and have moved house - I'll look at knocking together a GUI for this. Thinking summer. In the mean-time... persist fellas! I nearly gave up, but once it clicks, it's a doddle (although you gotta be very meticulous).


drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #182 on: March 01, 2015, 04:08:10 pm »
@Milhouse

Unless, I'm misunderstanding you, that won't work.

The Sample.cfg file that comes with mame wouldn't have any controller remap entries in it to begin with, so there wouldn't be anything that ControllerRemap could do. To be honest, I'm not sure what it would do, so it throwing an error in that case might be "by design" (Heh, yeah, I'll go with that! :) )

At any rate, grab the download and read through the first part. I know it's not the easiest utility to work with, but I just didn't feel like completely reinventing Mame's controller configuration UI (and that's pretty much what I'd have to do to create even a remotely decent UI for it.)

Just take it one step at a time. If you have a specific stick you want to get working, concentrate on just that one device at first, get it mapping the way you expect, then move on.

Pay particular attention to getting a LIST of your devices at first. the /LIST command will ID your devices and let you know what you've got to work with.

Pipe that to a file, and you can copy an paste device id's, makes that a lot easier.


And definitely check out Stigzler's info. As soon as I get the time, I was going to incorporate his info into the main readme.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #183 on: March 01, 2015, 05:58:51 pm »
@Bsong

I loaded up your test files and tried it out. Everything appears to get rewritten the way I'd expect it to.

Check out the /system/input section in the CFG file (actually, the verion you posted has the rewritten entries.

When you say it doesn't work, are you referring to from MAME or when MAME is run via hyperspin?

I'd first try running MAME directly from the command line.

It almost sounds like you just don't quite have Hyperspin configured properly to execute MAME with the right command to tell it the proper CFG file to use.

be sure to specify

-ctrlr myconfig.cfg

(ie make sure you add the file extension as I believe it's required by MAME).

Let me know how it goes!

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #184 on: March 01, 2015, 06:57:10 pm »
thanks for checking drventure is there a specific version of mame i should be using its strange that its not working im thinking of starting to rebuild everything from scratch again
« Last Edit: March 01, 2015, 07:00:43 pm by bsong »

bsong

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19
  • Last login:September 27, 2018, 06:28:53 pm
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #185 on: March 15, 2015, 12:36:00 pm »
I finally got it working, i think it was because i had to specify in MAME which CFG file it should be reading, now works like a charm THANKS!

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #186 on: March 15, 2015, 03:38:16 pm »
Great! Glad to hear it.

Yeah, you have to configure the mame command line right or it won't know to read your config file.

the various frontends are all a little different in how you specify command line options for mame, so it can sometimes be trial and error to get things just right.

magic_touch

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:April 11, 2015, 09:41:50 am
  • I want to build my own arcade controls!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #187 on: April 11, 2015, 09:20:08 am »
Dr.Venture,
thanks for your great idea and implementation. However, I am currently having problems running the tool on my WinXP64 cabinet.

System: XP64 Professional Version 2003, SP2, Installed is .Net 3.5.21022.08

"ControllerRemap.exe /list" in the command line works fine.
"ControllerRemap.exe /save" results in a popup saying: "ControllerRemap has encountered a problem and needs to close. We are sorry for the inconvenience." and a nonspecific error report is made available for sending to MS.

Any ideas, has anyone tested the tool under XP64? Win7x64 works fine, BTW.

Maybe an older version would be working?

EDIT 2015-04-11 15:40 - Updated to .NET Framework 3.5 Service Pack 1 (3.5.30729.1) and everything is working fine now! ;D
« Last Edit: April 11, 2015, 09:42:31 am by magic_touch »

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #188 on: April 11, 2015, 01:17:22 pm »
I was just going to ask about theframework version installed.

Glad to hear you get it going

I actually still have xp on my cabinet,  so I was pretty sure it worked.

Have fun!

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Hope you don't mind Dr Venture, but made a GUI add-on for your fab application. More details here:
https://controllerremapgui.codeplex.com/
or BYOAC thread, here:
http://forum.arcadecontrols.com/index.php/topic,145636.0.html

MydknyteStyrm

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 331
  • Last login:March 20, 2024, 12:19:41 pm
  • Makeup FX Gamer
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #190 on: June 06, 2015, 10:13:28 pm »
This app is amazing. I was able to set up my four player cp in under a hour. Thanks so much!

A question, though. If I wanted to change the controls for a specific game, can I do that through Mame with the Input (game) option, or do I make a new Map for the game only, and have it load up. Right now I use Hyperspin parameters to load my CRG_MyRemap file and it works perfectly.  For games like MK and Tron, where I might want to use different controllers on my CP instead of the default settings I made. Thoughts?


Sent from my iPhone using Tapatalk

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #191 on: June 07, 2015, 02:20:05 am »
Thanks chap.

Have recently updated to 0.6 and this deals with per-game settings. No need to mess about with multiple CRemap .cfg files - it stores them all in your default one. Maybe download this and go from there? You should just be able to point it at your existing CRG_MyRemap file.

See here for more info:

https://controllerremapgui.codeplex.com/wikipage?title=Setting%20up%20Per-Game%20Settings&referringTitle=Documentation

MydknyteStyrm

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 331
  • Last login:March 20, 2024, 12:19:41 pm
  • Makeup FX Gamer
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #192 on: July 08, 2015, 08:24:37 pm »
Hi Stigzler

I'm having a weird issue with my cabinet. ControllerRemap GUI works, I can set all of my controls, write a CRG_MyRemap, and all is good. Then I shut off the cabinet.
Come back an hour later and of course the IDs are now different in Mame, and nothing works. It is still loading CRG_MyRemap, but still nothing.
Yesterday I set up my controls via the GUI, and it worked fine. Today I started it up, and had to reconfigure all of the controls via GUI again.

So my question is, what did I miss? My thinking was that ControllerRemap keeps the raw code of each control so Mame will have to use it no matter what the ID is. Any insight you can provide would save me from banging my head against the wall. I would hate to have to set my controls every time I turn the machine on.


Sent from my iPhone using Tapatalk

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #193 on: July 09, 2015, 02:33:28 am »
Ok. Firstly, post your myremap file after the first setup and then at then at the time of fail. Secondly, if you can do this in the specific ctrlremapgui thread refd above as were cluttering dr ventures thread.

EDIT: oh. Another thought. Make sure there are no controls in the default.cfg or any game specific cfg files in your mame/cfg folder.
« Last Edit: July 09, 2015, 02:45:24 am by stigzler »

AnX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 21, 2019, 05:02:48 am
  • Drop. Your. Sword.
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #194 on: September 20, 2015, 05:37:25 am »
Hi drventure and stigzler,

I'd like to thank you for your stellar work on the controllerRemap Utility and the GUI respectively.  It's saving me all sorts of hassle with my aimtrak setup.
One question though.  Does the remap allow for more than one input for a particular mame funtction?

For example the start button.  My cab has a keywiz encoder which emulates the keyboard.  It maps to the '1' key for player 1.  When i try and also map my aimtrak pad Button 3 to start it seems to override the '1' key for when i play a standard joystick game. 

This is obviously a small issue with no real ramifications apart from my outright laziness at not wanting to reach forward and push my start button but i thought i'd ask in any case.

Once again thanks for your efforts  :applaud:

AnX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 21, 2019, 05:02:48 am
  • Drop. Your. Sword.
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #195 on: September 20, 2015, 08:54:03 am »
So it turns out i was just screwing it up.  I was setting up the buttons in the GUI but doing each controller individually rather than setting all my buttons at once like you usually would. 
Foolish  :-\

stigzler

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 979
  • Last login:October 28, 2024, 05:35:27 pm
  • It seemed like a good idea at the time....
    • Mago Arcade
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #196 on: September 20, 2015, 09:29:51 am »
I wouldn't worry - it's a bit of a complex do all this - easily done. Glad you got it sorted.  :applaud:

AnX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 21, 2019, 05:02:48 am
  • Drop. Your. Sword.
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #197 on: September 24, 2015, 09:59:07 pm »
Has anyone managed to get this utility to play nice with RocketLauncher?  Everything works great from the gui but i can't get Rocket Launcher or Hyperspin to pick it up. 

I tried out MydknyteStyrm's method to no avail.  Though i expect this is due to rocketlauncher driving the hyperspin front end.

Can anyone give me a clue?

Thanks

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #198 on: September 24, 2015, 10:07:16 pm »
Is it possible to have Rocketlauncher launch a BAT file instead of the mame EXE?

If so, put the controllerremap command and Mame launch in there.

With this technique, you can also put

ECHO on
ECHO Worked!

etc...

in there to be able to see what's actually happening.

AnX

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:February 21, 2019, 05:02:48 am
  • Drop. Your. Sword.
Re: New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)
« Reply #199 on: September 24, 2015, 10:10:41 pm »
Yeah that's possible. I'll give it a try thanks drventure.  I'll let you know how i get on.