Jump to content
LaunchBox Community Forums

xarcade xinput on 4 player cabinet


Seph1roth

Recommended Posts

Hello,

I am looking to see if anyone has a walkthrough video or guide out there to help set up xarcade xinput on an arcade cab. I have seen others successfully do this on 4 player cabinets but I have not found any tutorial videos yet. I have downloaded xarcade xinput and set it as an additional app to run in launchbox for the pc game but I don't believe that it is recognizing my keyboard/joystick&buttons as a 360 controller. I am using a recroommasters 4 player controller. I am guessing im missing some steps on how to set up all the keyboard buttons to the xbox commands for all 4 players. I also do not have a kill command to end xarcade xinput after exiting the game. This would be a perfect solution to games like shredders revenge and SOR4 where I can currently only play one player on the arcade cabinet controls. Any help on this is appreciated as I have found information very hard to come by. 

Thank you,

Link to comment
Share on other sites

Thank you! This is exactly what I needed. So I now have everything working except for the kill script after exiting the game. I tried the method in the link above but that is not closing xarcade xinput when I exit. Right now I am trying the below script I received online that others appear to be using effectively as the kill xinput exe file. Running both xarcade xinput and kill xinput as additional apps in the game. xinput running before main application and kill xinput to run after main application. It loads up with all 4 controls working perfectly as xbox 360 controllers but again when I exit the game it is not closing xinput. Any ideas?

 SendRaw 5
{
Winclose, ahk_exe XArcade XInput.exe
process, close, kill xinput.exe
}

Additional Apps.PNG

Xinput.PNG

kill xinput.PNG

Link to comment
Share on other sites

Quick update. Myself and some very helpful people on the Facebook group have been looking at this. Some have it working just fine loading from the exe. This kind of works for me and others as it will load xinput fine and close it after exiting but when loading from the exe rather than a shortcut or through steam import, the game runs horribly slow and choppy and will often crash with an error making it unplayable.

Link to comment
Share on other sites

update for anyone still having trouble with this we were able to get it to close properly with the below ahk script. Again a huge thank you to Scott and Alberto for helping with this. You may want to try the above method and script with additional apps first as that has worked for some. If that does not work for you as it did not for me and others we were able to get it to close with a dedicated exit (escape) key on the arcade cabinet. If you go through the exit prompts in the game and close it that way it will not kill the xinput xarcade for you automatically and you will have to close it yourself after exiting the game. If you use the dedicated Escape key (exit key) it will work. You will want to use this as an auto hot key script and launch the game directly from this ahk script with no additional apps listed. this script is also for steam games (Shredder's Revenge in the example below) and you will need to adjust your drive/folder path to match where your xinput xarcade is located as well as the exe and steam game id for the game you are doing this for when creating your ahk script. Hopefully this helps others as it was quite the headache for me.

 

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
Run, D:\Launchbox\Tools\XArcade XInput\XArcade XInput.exe --skip-ui
Run, steam://rungameid/1361510
Escape::
Process,Close,XArcade XInput.exe
Run,taskkill /im "XArcade XInput.exe" /F
Process,Close,TMNT.exe
Run,taskkill /im "TMNT.exe" /F
ExitApp
return

 

Edited by brgruett50
  • Like 1
Link to comment
Share on other sites

  • 1 year later...
Posted (edited)

I'm struggling with this.  I am trying to get this to work for a 4 player arcade cabinet.  Looks so simple and I thought this would be flawless but 4 hours later and I'm stuck.  I installed the driver's and edited the .json file so that it maps my arcade controls to XInput (I'm running IPac ultimates).  I run the app and also run the UI, I switch the mapping file to the one I created.  Everything appears like it's working but when I test the controls they are not mapped correctly.  It doesn't even map the programs default buttons right.  When I press coin for player 1 it affects some random control on player 3 for example.  I cannot figure out how to run the --debug flag and am at a loss for what I can do to diagnose further.  Any help is appreciated.  Screenshots attached, the file I am using currently for keymapping is named "new text document" (I have just not renamed yet).  Thanks 

 

20240504_144310.jpg

20240504_144303.jpg

Edited by AceEsCloud
Link to comment
Share on other sites

On 5/9/2024 at 3:09 PM, jboyette7 said:

I am having issue as well. I can get xiput working just fine but I am not understanding how to create the kill xinput file. Any help or place to download the kill xinput file.

 

kill xinput.exekill xinput.ahk

Here are the ahk and exe files I tried for a kill script a couple of years ago that others were having success with.  Again though it did not work for me and many others so I create a new ahk script for each steam game that I add to launchbox and use the script to exit out of everything using the dedicated Exit button on my arcade.

Link to comment
Share on other sites

On 5/4/2024 at 2:45 PM, AceEsCloud said:

I'm struggling with this.  I am trying to get this to work for a 4 player arcade cabinet.  Looks so simple and I thought this would be flawless but 4 hours later and I'm stuck.  I installed the driver's and edited the .json file so that it maps my arcade controls to XInput (I'm running IPac ultimates).  I run the app and also run the UI, I switch the mapping file to the one I created.  Everything appears like it's working but when I test the controls they are not mapped correctly.  It doesn't even map the programs default buttons right.  When I press coin for player 1 it affects some random control on player 3 for example.  I cannot figure out how to run the --debug flag and am at a loss for what I can do to diagnose further.  Any help is appreciated.  Screenshots attached, the file I am using currently for keymapping is named "new text document" (I have just not renamed yet).  Thanks 

 

20240504_144310.jpgimage.thumb.jpeg.7584a21b6b1fb681c44bc0956ee72bc6.jpeg

20240504_144303.jpg

It's been a couple years since I did the button mapping but I have attached my json file and a picture of my layout in case that helps at all. I don't believe I have used any steam games yet where I have used the coin button but I have not had any issues with this setup. One thing that will mess mine up is if I use the "Enter" button next to the trackball to skip screens while the game is loading. The way mine is setup it will think I am trying to use my keyboard inputs instead of xinput and will switch to that so none of my xinput configuration will work once the game fully loads. I always use my A button (Player 1, Shift) on my mapping to skip those beginning loading screens.

X-Arcade 4 Player Analog Bumpers.JSON

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...