Monday, October 24, 2016

HOW TO: PIUIO with Stepmania 5 or OpenITG in Linux and Windows



Please follow this guide to install PIUIO before continuing...

Once you have installed the drivers for PIUIO on your system, you will need the software to be able to interact with your PIU drivers.


In Windows

1. Download and install IO2Key here:
https://mega.nz/#!INFUDBqa!Br-zZexEgOaVCDNqUzPQmoVi3jg0X5X4ZNSKxm-P1GQ
Video Help: https://www.youtube.com/watch?v=xo5m9dlNFfY

IO2Key maps the inputs from PIUIO to standard keyboard keys. You can then easily map the keyboard keys in Stepmania or OpenITG.



Linux - Stepmania 5

1. Open the following file:

Preferences.ini
(Located in the users home directory. NOTE: Stepmania needs to be ran for the first time for these files to appear!)

TIP: Make sure Static.ini does NOT contain this line as it'll override the setting if so. Alternatively, you can place the following in static.ini to override this. Your choice!

2. Find the line that begins with: "InputDrivers=". Modify this line so that the value is empty (auto-probe).

I.e.
"InputDrivers=XXXXXXX" should now read:
"InputDrivers=". (No spaces and case sensitive)


3. Still within this file, find the line that begins with: "LightsDriver=" Modify this line so that it begins with PIUIO_Leds after the equal sign.

I.e.
"LightsDriver=" should now read:
"LightsDriver=PIUIO_Leds". (No spaces and case sensitive)


This tells Stepmania that we want to use PIUIO to manage the lights for the arcade cabinet.


Linux - OpenITG

As OpenITG supports PIUIO out of the box, the complete setup is rather simple...

1. Open the following file:


Stepmania.ini (Located in the Data folder)

TIP: Make sure Static.ini does NOT contain this line as it'll override the setting if so. Alternatively, you can place the following in static.ini to override this. Your choice!

2. Find the line that begins with: "InputDrivers=". Modify this line so that it includes PIUIO.

I.e.
"InputDrivers=x11" should now read:
"InputDrivers=x11,PIUIO". (No spaces and case sensitive)

This tells OpenITG that we want to add PIUIO as an optional input driver IN ADDITION to x11 (A standard linux keyboard) 

3. Still within this file, find the line that begins with: "LightsDriver=" Modify this line so that it begins with PIUIO after the equal sign.

I.e.
"LightsDriver=" should now read:
"LightsDriver=PIUIO". (No spaces and case sensitive)

This tells OpenITG that we want to use PIUIO to manage the lights for the arcade cabinet.



BONUS ANNOYANCE: Disable Floor Panels from Selecting Songs in the Song Menu Screen

1. Open the following file depending on your engine:
OpenITG - Stepmania.ini (Located in the Data folder)
Stepmania 5 - Preferences.ini (Located in AppData for the current user)

TIP: Make sure Static.ini does NOT contain this line as it'll override the setting if so. Alternatively, you can place the following in static.ini to override this. Your choice!

2. Find the line that begins with: "OnlyDedicatedMenuButtons="

Modify this line so that it reads: "OnlyDedicatedMenuButtons=1"

4 comments:

  1. Thank you for you help.
    OpenITG work fine,But Stepmania 5 failed.
    Which SM5 can use it?or i lack some file?

    ReplyDelete
    Replies
    1. sm5 has no support of PIUIO on windows, only on linux using a kernel driver

      Delete
    2. You can use IO2Key to get PIUIO working with SM5 on windows, no problem.

      Delete
    3. I have updated the guide with instructions for BOTH Linux and Windows using Stepmania OR OpenITG

      Delete