Skip to content

ferzkopp/RB4InstrumentMapper

Repository files navigation

RB4InstrumentMapper

A utility that connects up to three Xbox One Rock Band 4 instruments (2 guitars and 1 drumkit) for use in Clone Hero.

RB4InstrumentMapper Application Screenshot

Almost all features for guitars and drums are supported.

Requirements

  • Xbox One Wireless Receiver
  • Xbox One RB4 Guitars (up to 2)
  • Xbox One RB4 Drums
    • Note that PDP drums don't seem to work, they turn off after syncing to the receiver.
  • Windows 10 64-bit
  • Npcap in WinPcap compatibility mode, or WinPcap
  • USBPcap
  • vJoy or ViGEmBus

Installation

  1. Install WinPCap (recommended), or Npcap in WinPCap compatibility mode.
    • Make sure you only install one or the other. Installing both at the same time may cause issues.
  2. Install USBPCap.
  3. Install ViGEmBus (recommended) or vJoy.
    • If you installed vJoy, configure it:
      1. Open your Start menu, find the vJoy folder, and open the Configure vJoy program inside it.
      2. Configure devices 1, 2, and 3 with these settings:
        • Number of Buttons: 16
        • POV Hat Switch: Continuous, POVs: 1
        • Axes: X, Y, Z
      3. Click Apply.
        vJoy Configuration Screenshot
    • If you installed ViGEmBus, there's no configuration required. Outputs for guitars and drums will match that of their Xbox 360 counterparts.
  4. Restart your PC.
  5. Download the latest release from the Releases tab and install it.
  6. Install Pcap.Net dependencies

Usage

  1. Configure the selected Pcap device:
    • Click the Auto-Detect Pcap button and follow its instructions.
    • If that doesn't work, then if you installed WinPcap, try installing Npcap instead, or vice versa.
  2. Configure the selected controller device for each guitar and drumkit:
    • If you installed vJoy:
      • Pick one of the vJoy devices that you configured for each instrument you will be using.
    • If you installed ViGEmBus:
      • Pick the ViGEmBus Device item in the dropdown for each instrument you will be using. One emulated Xbox 360 controller will be created for each instrument that has this selected.
  3. Connect your instruments if you haven't yet.
  4. Assign the instrument ID for each instrument:
    • Click the Auto-Detect ID button next to each ID field.
      • Guitars should auto-detect automatically as they are constantly sending packets. Retry if duplicate IDs were detected (and rejected).
      • Drums require an action such as a button press on the instrument you are assigning within 2 seconds after 'Auto-Detect' was clicked.
  5. Click the Start button.
    • Note: launch joy.cpl to check Controller inputs.
  6. Map the controls for each instrument in Clone Hero:
    1. Press Space on the main menu.
    2. Click the Assign Controller button and do an action on the instrument to be assigned.
    3. Click the slots in the Controller column to map the controls for one of the instruments.
    4. Repeat for Player 2 and 3.
    5. Click Done.

Selections and IDs are saved and should persist across program sessions.

Error Logs

In the case that the program crashes, an error log is saved to a RB4InstrumentMapper > Logs folder inside your Documents folder. Make sure to include it when creating an issue report for a crash or when getting help for a crash.

Other Versions

A fork of this code with an updated interface, 64bit version and other improvements is available at: https://github.com/TheNathannator/RB4InstrumentMapper

References

Packet Data:

Build Tools

Compile was done with Visual Studio 2019 Community edition.

Installer was created using the following tools:

License

Copyright (c) 2021 Andreas Schiffler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.