# pro2hook: Pro 2 This readme covers any matters that are relevant for this hook, only. Anything that applies to **all** hooks is covered in a [main hook readme file](../hook.md) including general data setup and a quick start guide. ## Versions supported All known versions supported as long as it uses fully unpacked assets and a nodongle executable. ## Dependencies Make sure to read the different methods of dependency resolution available in the [main hook readme file](../hook.md), first. Note: Game is 32-bit, so you need to install the 32-bit versions of the dependencies! The following **direct** dependencies (cmd: `readelf -d piu`) are required: * libXtst.so.6 * libXrandr.so.2 * libGL.so.1 * libGLU.so.1 * libdl.so.2 * libavformat.so.51 * libavcodec.so.51 * libavutil.so.49 * libusb-0.1.so.4 * libpthread.so.0 * librt.so.1 * libstdc++.so.5 * libm.so.6 * libgcc_s.so.1 * libc.so.6 * libX11.so.6 As for method 1, when using Ubuntu, the dependencies can be found in the following packages: * libc-bin (or gcc-multilib on a 64-bit platform) * libx11-6 * libusb-0.1-4 * libasound2 * ffmpeg Further indirect dependencies are needed but should be taken care of automatically when using a package manager to install the direct dependencies. ## Data setup A clean set of data won't work here. You need the dumped and unpacked/decrypted data and a patched executable that runs either on plain zip or files. All access to files and folders are detoured to one folder, the `game` folder, which makes setting up everything easier. The `game` folder contains the typical StepMania folders: * BGAnimations * BackgroundEffects * BackgroundTransitions * Characters * Courses * Data * Logs * NoteSkins * RandomMovies * Save * SongMovies * Songs * Themes Each folder with the content from the dump. ## USB thumb drive/profile support See instructions on the [prohook readme](prohook.md#usb-thumb-driveprofile-support). When using `pro2hook.so`, make sure your `hook.conf` contains the same USB profile keys used by Pro 1: ```text patch.usb_profile.p1.bus_port=2-1 patch.usb_profile.p2.bus_port=2-2 patch.usb_profile.dev_nodes=sdb,sdc ``` Additionally these settings in `Static.ini` must be set as follows: ```text MemoryCardProfiles=1 MemoryCardUsbBusP1=-1 MemoryCardUsbBusP2=-1 MemoryCardUsbLevelP1=1 MemoryCardUsbLevelP2=1 MemoryCardUsbPortP1=2 MemoryCardUsbPortP2=1 ``` The file is located in `game/Data/Static.ini`. When this is not set, the first plugged USB thumb drive will always be connected to Player 1, no matter what port it is connected into. ## Troubleshooting and FAQ Since the game is based on Pro 1, have a look at the [troubleshooting section there](19-pro.md#troubleshooting-and-faq). Most of the things listed there apply to Pro 2 as well (or are very similar). Further Pro 2 exclusive items are listed in this section.