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: AHK and Bang Bang Racing can't use direction and action button simultaneously  (Read 2676 times)

0 Members and 1 Guest are viewing this topic.

Celsius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 81
  • Last login:May 10, 2015, 11:40:41 am
    • Rcade project
So I installed Bang Bang Racing on my cab and noticed that you can't change the controls...no problem, lets remap the buttons with ahk.  :cheers:
After some tries, I got every button to work for player 1 & 2, but noticed 1 big problem...if I hold the accelerate (or nitro or brake) button, I can't steer left or right. So I actually have to release the button first to be able to steer...pl2 works just fine   :banghead:
Noticed the same problem with some other pc games (even 1player only games) I installed on the cab where I had to use ahk to remap.

so here's the setup...I'm using a xarcade encoder (I know, I know,...) and this is its layout:


the controls for Bang Bang Racing are:


and this is my ahk script:

setworkingdir, D:\pc\Bang Bang Racing
run BangBangRacing

#IfWinActive ahk_class TachyonClass
Numpad2::Down
Down::Numpad2
a::Numpad4
d::Left
1::Enter
4::Space
LCtrl::z
z::LCtrl
LShift::w
x::LShift
Numpad4::a
Numpad6::d
c::esc
]::esc
Left::d
g::Right
Right::g
e::RCtrl
RCtrl::e
w::Up
[::RShift
RShift::[

Mbutton::
send !{F4}
exitapp

So for pl1 joy left and right is for steering, Lshift=accelerate, z=brake and x=nitro
Any help or ideas are welcome
« Last Edit: June 27, 2012, 04:13:18 am by Celsius »

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Not at all familiar with this game, but I do a lot of AHK stuff, and that script looks like it should work. :-\

Try playing the game on your keyboard with the script running just to make sure this isn't something weird happening with the X-Arcade. If you get the same result, then we'll have to think about what could be wrong with that script.

Celsius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 81
  • Last login:May 10, 2015, 11:40:41 am
    • Rcade project
nope same problem  :'(

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
I experimented a bit with your script. I don't have the game, but I just tried it out in a Snes emulator and everything works as expected - you can press buttons at the same time and they both work. I'm guessing there is some sort of conflict between the game and AHK. ???

I'm not sure what to tell you. Your best bet is to ask about this on the AHK forum. Those guys really know their stuff. If they can't help you, then this probably isn't fixable.

Good luck!