Main > Software Forum

New ControllerRemap utility, 7/11/13 update available (Version 0.0.11)

<< < (23/47) > >>

drventure:
Very strange. I tried downloading the attachment and I too got a warning from NOD32. So I went back to my dev folder and scanned the original 0.0.9 build that I uploaded (I keep all the old ZIPs) and it was clean.

I've rebuilt, scanned with NOD32 (and a couple online scanners) and posted into a ZIP renamed with a TXT extension, just in case.

Just download, remove the TXT extension and unzip. Please scan the file locally, and let me know if this new build causes virus alerts.

Applekid:
Looks like it's coming in clean now. Very odd! Another thing contributing to someday being able to claim I've "seen it all"!

FWIW, I previously disabled the anti-virus and was able to unpack it, but the exe itself was marked with a trojan.

Thanks! :angel:

MydknyteStyrm:
Wonderful app, thanks for taking the time to put it together!

I have a small issue, which I'm not sure how to fix. I have one Aimtrak lightgun, and was testing it out with ControllerRemap. I think I did everything right, and I was wondering, when I load up Mame with the -ctrlr MyArcade command, shouldnt I see my settings when i hit TAB in Mame?

I dont, and I wasnt sure how to correct this. My two test games are Lethal Enforcers (1 button game) and Termiator 2 (2 button game). Here is what my MyArcade.cfg looks like.
--- Code: ---<!--
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>Logitech Dual Action</id>
    <alias>Logitech</alias>
  </controlleralias>
  <controlleralias>
    <id>ATRAK Device#3</id>
    <alias>ATRAK</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#VID_D209_PID_1603_MI_02#7_27d3a5f8_0_0000#</id>
    <alias>Lightgun</alias>
  </controlleralias>
  <!--
    ############################################################
    This is the System Default section
    It generally should be the FIRST system section in the cfg file
    ############################################################
    -->
  <system name="default">
    <!-- put a controller element here to have it copied into ONLY this particular
         system element
    -->
    <controller id="Lightgun">
      <input>
        <port type="P1_BUTTON1">
          <newseq type="standard">
                        GUNCODE_BUTTON1
                    </newseq>
        </port>
        <port type="P1_BUTTON2">
          <newseq type="standard">
                        GUNCODE_BUTTON2
                    </newseq>
        </port>
        <port type="P1_BUTTON3">
          <newseq type="standard">
                        MOUSECODE_1_BUTTON2
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_X">
          <newseq type="standard">
                        MOUSECODE_XAXIS
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_Y">
          <newseq type="standard">
                        MOUSECODE_YAXIS
                    </newseq>
        </port>
      </input>
    </controller>
    <controller id="ATRAK">
      <input>
        <port type="P1_BUTTON1">
          <newseq type="standard">
                        GUNCODE_BUTTON1
                    </newseq>
        </port>
        <port type="P1_BUTTON2">
          <newseq type="standard">
                        GUNCODE_BUTTON2
                    </newseq>
        </port>
        <port type="P1_BUTTON3">
          <newseq type="standard">
                        MOUSECODE_1_BUTTON2
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_X">
          <newseq type="standard">
                        MOUSECODE_XAXIS
                    </newseq>
        </port>
        <port type="P1_LIGHTGUN_Y">
          <newseq type="standard">
                        MOUSECODE_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="P1_BUTTON1">
        <newseq type="standard">
                        GUNCODE_3_BUTTON1
                     OR
                        GUNCODE_2_BUTTON1
                    </newseq>
      </port>
      <port type="P1_BUTTON2">
        <newseq type="standard">
                        GUNCODE_3_BUTTON2
                     OR
                        GUNCODE_2_BUTTON2
                    </newseq>
      </port>
      <port type="P1_BUTTON3">
        <newseq type="standard">
                        MOUSECODE_3_BUTTON2
                     OR
                        MOUSECODE_2_BUTTON2
                    </newseq>
      </port>
      <port type="P1_LIGHTGUN_X">
        <newseq type="standard">
                        MOUSECODE_3_XAXIS
                     OR
                        MOUSECODE_2_XAXIS
                    </newseq>
      </port>
      <port type="P1_LIGHTGUN_Y">
        <newseq type="standard">
                        MOUSECODE_3_YAXIS
                     OR
                        MOUSECODE_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
    ###################################################
    -->
  <system name="ribbit">
    <!-- This would be stupid to actually use, but as an example
         For this game ("Ribbit"), reverse the UP and DOWN directions
         on the joystick -->
    <controller id="U360 Player1">
      <input>
        <port type="P1_JOYSTICK_UP">
          <newseq type="standard">
                        JOYCODE_YAXIS_DOWN_SWITCH
                    </newseq>
        </port>
        <port type="P1_JOYSTICK_DOWN">
          <newseq type="standard">
                        JOYCODE_YAXIS_UP_SWITCH
                    </newseq>
        </port>
      </input>
    </controller>
    <!--
        ###################################################
        ACTUAL INPUT MAPPING STARTS HERE
        DO NOT actually put anything in this section.
        It is completely cleared and regenerated!
        ###################################################
        -->
    <input></input>
  </system>
</mameconfig>
--- End code ---

Any help you can provide would be wonderful. The other question is, should I leave my default.cfg blank in these sections for Lightgun?

drventure:
Hey MydknyteStyrm

I'm gonna be out of town all next week, and don't have a ton of time to check into this completely right now.

As I recall, you +do not+ see the ctlr mapping, even the static ones (ie when you don't use ctlrremap), from within the mame ui. ctlr files are kinda of the red-headed stepchild of config stuff in mame from what I understand.

That doesn't mean it doesn't work, you just can config or see the config from the ui.

I also believe you normally want the default.cfg blank for those elements you'll use controllerremap for. I generally put ALL the config in the ctlr file.  This means, if I map something via the ui, i'll get it working, then move those entries to my ctlr file, and remove them from the cfg file. Check the docs for controllerremap for more details on that.

I can take a longer look at it in a couple weeks.

thurmansevolution:
Hello! :)

I understand and really appreciate the concept of ControllerRemap Utility, but I'm having a huge problem with it.  I've done all I could do, and I still can't get it to work.  I know a little with xml and understand what to do, but after writing the cfg file, etc...to loading the mame game, the lightguns will still be assigned another # by mame if they are unplugged (outside of mame...not while the game is running of course lol)

Here is my setup:

1 trackball (ultimarc of course ;) )
2 lightguns (Aimtrak)

Front End - GameEx
Mame Version - MameUI32 1.32

Here is a copy of the config file I created:


--- Code: ---<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
  <controlleralias>
    <id>HID#Vid_d209_PID_1604_MI_02#7_37a156_0_0000#</id>
    <alias>Lightgun2</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#Vid_d209_PID_1603_MI_02#7_16ec4b4a_0_0000#</id>
    <alias>Lightgun1</alias>
  </controlleralias>
  <controlleralias>
    <id>HID#Vid_d209_PID_15a1#7_315062fa_0_0000#</id>
    <alias>Trackball</alias>
  </controlleralias>
  <system name="default">
    <controller id="LIghtgun1">
      <input>
        <port type="P1_BUTTON1">
          <newseq type="standard">
                    GUNCODE_BUTTON1
                </newseq>
        </port>
        <port type="P1_BUTTON2">
          <newseq type="standard">
                    JOYCODE_BUTTON3
                </newseq>
        </port>
        <port type="P1_BUTTON3">
          <newseq type="standard">
                    JOYCODE_BUTTON4
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="LIghtgun2">
      <input>
        <port type="P2_BUTTON1">
          <newseq type="standard">
                    GUNCODE_BUTTON1
                </newseq>
        </port>
        <port type="P2_BUTTON2">
          <newseq type="standard">
                    JOYCODE_BUTTON2
                </newseq>
        </port>
        <port type="P2_BUTTON3">
          <newseq type="standard">
                    JOYCODE_BUTTON1
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="Trackball">
      <input>
        <port type="P1_TRACKBALL_X">
          <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
        </port>
        <port type="P2_TRACKBALL_X">
          <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
        </port>
        <port type="P1_TRACKBALL_Y">
          <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
        </port>
        <port type="P2_TRACKBALL_Y">
          <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="LIghtgun1">
      <input>
        <port type="P1_LIGHTGUN_X">
          <newseq type="standard">
                    GUNCODE_XAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="LIghtgun2">
      <input>
        <port type="P2_LIGHTGUN_X">
          <newseq type="standard">
                    GUNCODE_XAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="LIghtgun1">
      <input>
        <port type="P1_LIGHTGUN_Y">
          <newseq type="standard">
                    GUNCODE_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="LIghtgun2">
      <input>
        <port type="P2_LIGHTGUN_Y">
          <newseq type="standard">
                    GUNCODE_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <controller id="Trackball">
      <input>
        <port type="P2_MOUSE_X">
          <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
        </port>
        <port type="P2_MOUSE_Y">
          <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
        </port>
      </input>
    </controller>
    <input>
      <port type="P1_BUTTON1">
        <newseq type="standard">
                    GUNCODE_BUTTON1
                </newseq>
      </port>
      <port type="P1_BUTTON2">
        <newseq type="standard">
                    JOYCODE_BUTTON3
                </newseq>
      </port>
      <port type="P1_BUTTON3">
        <newseq type="standard">
                    JOYCODE_BUTTON4
                </newseq>
      </port>
      <port type="P2_BUTTON1">
        <newseq type="standard">
                    GUNCODE_BUTTON1
                </newseq>
      </port>
      <port type="P2_BUTTON2">
        <newseq type="standard">
                    JOYCODE_BUTTON2
                </newseq>
      </port>
      <port type="P2_BUTTON3">
        <newseq type="standard">
                    JOYCODE_BUTTON1
                </newseq>
      </port>
      <port type="P1_TRACKBALL_X">
        <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
      </port>
      <port type="P2_TRACKBALL_X">
        <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
      </port>
      <port type="P1_TRACKBALL_Y">
        <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
      </port>
      <port type="P2_TRACKBALL_Y">
        <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
      </port>
      <port type="P1_LIGHTGUN_X">
        <newseq type="standard">
                    GUNCODE_XAXIS
                </newseq>
      </port>
      <port type="P2_LIGHTGUN_X">
        <newseq type="standard">
                    GUNCODE_XAXIS
                </newseq>
      </port>
      <port type="P1_LIGHTGUN_Y">
        <newseq type="standard">
                    GUNCODE_YAXIS
                </newseq>
      </port>
      <port type="P2_LIGHTGUN_Y">
        <newseq type="standard">
                    GUNCODE_YAXIS
                </newseq>
      </port>
      <port type="P2_MOUSE_X">
        <newseq type="standard">
                    MOUSECODE_XAXIS
                </newseq>
      </port>
      <port type="P2_MOUSE_Y">
        <newseq type="standard">
                    MOUSECODE_YAXIS
                </newseq>
      </port>
    </input>
  </system>
</mameconfig>

--- End code ---

I'm close to pulling the rest of my hair out with this lol....if someone - anyone - would be able to take a few minutes and tell me what I'm doing wrong, I will appreciate it greatly!! :) 

(which I also tried using batch files, but the iffy-iffy thing is the way GameEx Launches mame games...by command line)


Thanks in advance!



LC  :afro:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version