Main > Driving & Racing Cabinets

SOLVED: Need help with U-hid nano and Pole Position

<< < (2/2)

Kid Raster:
Scott thanks a lot for your help here.  So I have an update-

I have the opti-pac working (I think, because I can move the mouse pointer left and right on the windows desktop with the steering wheel) but it doesn't seem to steer the car in-game.  :dunno
I also followed your instructions on wiring the pedal with the U-hid nano, and it seems to work, but for whatever reason, when I press the pedal, the car rotates left/right (what the wheel should be doing).

So, I'm guessing there is just some sort of setup in MAME that I am missing.  I'm running MAME32Plus! 0.105.  Should I be using a different emulator for Pole Position?

I appreciate your help so far.  I was completely lost before.

PL1:

--- Quote from: Kid Raster on March 27, 2024, 10:14:14 pm ---I'm running MAME32Plus! 0.105.  Should I be using a different emulator for Pole Position?

--- End quote ---
That's a REALLY ancient version of MAME.

You might want a more recent version, especially if changing the shifter output to a gamepad button doesn't work for you.

https://forum.arcadecontrols.com/index.php/topic,161022.0.html


--- Quote from: Kid Raster on March 27, 2024, 10:14:14 pm ---I have the opti-pac working (I think, because I can move the mouse pointer left and right on the windows desktop with the steering wheel) but it doesn't seem to steer the car in-game.  :dunno

--- End quote ---
Windows recognizes the steering wheel as mouse X-axis.  That is good.


--- Quote from: Kid Raster on March 27, 2024, 10:14:14 pm ---I also followed your instructions on wiring the pedal with the U-hid nano, and it seems to work, but for whatever reason, when I press the pedal, the car rotates left/right (what the wheel should be doing).

--- End quote ---
Mame accepts analog input from the pedal.  That is good, but you might want to consider changing the U-HID configuration for that input from X-axis (left/right) to Y-axis. (up/down)


--- Quote from: Kid Raster on March 27, 2024, 10:14:14 pm ---So, I'm guessing there is just some sort of setup in MAME that I am missing.  I'm running MAME32Plus! 0.105.

--- End quote ---
1.) Do you already have mame.ini in your installation?
- if not, you'll need to launch mame one time with the "-cc" (create config) software switch to create a mame.ini file. (i.e. "mame.exe -cc")

2.) Edit mame.ini using notepad.
- Under "CORE INPUT OPTIONS", you want both mouse and joystick to be enabled (1) not disabled. (0)
- Save file and exit.


--- Code: ---#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     1
joystick                  1
lightgun                  0

--- End code ---

3.) Map the controls in MAME.
- Start Pole Position in MAME.
- Hit TAB to bring up the MAME menu system.
- Go to the "Inputs (this Game)" menu.

- Highlight "P1 Pedal 1 Analog".
- Press ENTER. (Tells MAME to remap this input)
- Step on the pedal. (MAME should see the change and map the pedal to this input)

- Highlight "P1 Pedal 1 Analog DEC". (The DEC and INC inputs are used to generate fake analog/mouse inputs using button presses -- you've got real analog and mouse inputs so you don't want these inputs active)
- Press ENTER.
- Press ESC. (MAME should map this input to "none")  NOTE: In some releases of MAME, you'll need to press DELETE to set the input to "none".

- Highlight "P1 Pedal 1 Analog INC".
- Press ENTER.
- Press ESC. (MAME should map this input to "none")

- Highlight "Dial Analog".
- Press ENTER.
- Turn the steering wheel. (MAME should see the change and map the steering wheel to this input)

- Highlight "Dial Analog DEC".
- Press ENTER.
- Press ESC. (MAME should map this input to "none")

- Highlight "Dial Analog INC".
- Press ENTER.
- Press ESC. (MAME should map this input to "none")

That should get you pretty close to running right, other than configuring the shifter as a gamepad button and remapping that input in MAME. (see link at the beginning of the post)


Scott

Kid Raster:
Scott-

I can't thank you enough man...really just over the mountain.  IT WORKS!  I'll just have to figure out the shifter, it works but I think the mechanics of it are wonky.
When I assign it as gamepad key in the U-hid nano, I can't get it to detect at all.  There are choices for "down action" and "up action"- pic attached- I'm not sure what to choose in those fields.  Setting it as a key (ie spacebar) seems to work, but I've gotta shift up AND down each time I want it to change gears, instead of just shifting up OR down.  Again not sure what to choose in the up action/down action fields. :dunno
But your top tier level support has been really great.  PM me your Paypal addy and I'll buy you a few beers, or coffees, or Big Gulps!!!

PL1:

--- Quote from: Kid Raster on March 28, 2024, 10:52:49 am ---When I assign it as gamepad key in the U-hid nano, I can't get it to detect at all.  There are choices for "down action" and "up action"- pic attached- I'm not sure what to choose in those fields.

--- End quote ---
There's a description of the various action choices at https://www.u-hid.com/home/u_config_utils.php, but I'd recommend trying "Normal Primary" for down and "Clear" for up with a gamepad button and shifter toggling disabled in MAME.

To disable toggling, upgrade to MAME v0.151 (or newer) and manually edit the polepos.cfg file using Notepad.

http://forum.arcadecontrols.com/index.php/topic,135345.0.html

Tested and confirmed working in MAME v0.262 and MAMEUIFX 0.152.  Just add the text in red to the port tag=":IN0L" (shifter) line.


--- Quote ---. . .
        <input>
            <port tag=":IN0L" type="P1_BUTTON1" mask="2" defvalue="2" value="0" toggle="no" />
            <port tag=":BRAKE" type="P1_PEDAL2" mask="255" defvalue="0">
                <newseq type="standard">
. . .

--- End quote ---

If the shifter switch works backward, edit the .cfg file to map the control to "NOT".

https://forum.arcadecontrols.com/index.php/topic,165173.msg1741846.html#msg1741846

If the steps in this post don't work for you, check out this thread for some other options.

https://forum.arcadecontrols.com/index.php/topic,165173.0.html


Scott
EDIT: ROMnames for Pole Position changed in v0.150 so you'll need to update the ROM too.  Easiest way is to find a known version ROMset first then download the matching version of MAME.

Kid Raster:
Scott thanks.  I'll start heading that way.  The offer for some beverages stands eternal.  :notworthy:

Navigation

[0] Message Index

[*] Previous page

Go to full version