ssokolow: Are you running it on a 64-bit version of Wine? I know there are certain limitations to 64-bit wineprefixes (which are what 64-bit Wine creates by default) as a side-effect of what putting the processor in long mode entails.
Trubaduuri: Yeah, it's 64 bit. I kinda gave up on this, hoping that some future version would make things easier.
OTOH, someone posted to appdb recently that they managed to hex edit the settings file so that the pad buttons are mapped to enter menu and exit menu, making it possible to get to the keybindings menu and properly bind the keys.
As of Wine 1.6.x (current stable), it doesn't require a 32-bit prefix anymore. (Though you can easily force one by setting WINEARCH=win32 before creating the prefix)
Here's a detailed, step-by-step setup guide for use with a gamepad and PlayOnLinux 4.0.x (as provided by Ubuntu 12.04 LTS): 0. Make sure you have a gamepad with at least two axes (one stick or D-pad) and 10 buttons. (La Mulana lets you configure 14 button bindings but 4 of them are menu-only and can overlap with the others.)
- I normally use a Playstation 2 controller with a
$3 eBay dual-port USB adapter.
- It also works with an
XBox 360 Controller (but I prefer the Playstation's D-pad)
- It works with a
DualShock 3 SixAxis (Playstation 3) controller but you have to use the left analog stick because the driver doesn't currently label the D-Pad's axes for auto-recognition the way the PS2 controller adapter does.
- It must be your first joystick. (I've included instructions for hiding joysticks from La Mulana)
-
Warning: Having both my dual-port PS2 adapter and my DualShock 3 visible to La Mulana at the same time causes it to crash on startup. (But the PS2 and XBox controllers at the same time are fine, as is just the DualShock 3 alone.)
1. Install Wine 1.6.x and PlayOnLinux 4.0.x (I use PlayOnLinux as an easy way to manage multiple separate WINEPREFIXes.)
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6 playonlinux"
2. Start PlayOnLinux, click "Install", and then "Install a non-listed program"
3. When you see "Install some libraries", check it.
4. When presented with the next list, install xact ("POL_install_xact") so XAudio2 will be available to play the music.
5. If the installer crashes, the game should still be installed but you'll be missing the registry entries needed for the update patcher to find it. It's your choice whether you want to re-run it once or twice so it'll complete successfully.
6. If the installer doesn't crash, click "Exit",
NOT "Launch game". (We still need to tweak something)
7. Select "LaMulanaWin.exe" from the list and give the shortcut a name, then select "I don't want to make another shortcut"
8. Right-click your La Mulana shortcut in the PlayOnLinux window and choose "Configure Wine"
9. Select Desktop Integration > Folders > My Documents and uncheck "Link to" (This prevents the game from cluttering up your homedir with a NIGORO folder). Then, click OK.
10. Select the game and click "Run" so La Mulana will create the NIGORO folder. (You can Alt+F4 out of it as soon as it displays "Long ago..." in the opening cutscene. At that point, lamu.dat will exist.)
11. Start up a hex editor like [url=http://apt://ghex]GHex[/url] or [url=http://apt://wxhexeditor]wxHexEditor[/url] and open "~/.PlayOnLinux/wineprefix/foo/drive_c/users/
<YourUsername>/My Documents/NIGORO/La-Mulana/save/lamu.dat"
12. Edit bytes 12 and 13 (0C and 0D) from FF FF to 00 01 (In wxHexEditor, you'll know your editing cursor is over the right one when the status bar says "Cursor Offset: 12") and save the file. (This sets your gamepad's first and second buttons as select and cancel so you can do the rest of the configuration using the GUI in the game.)
Depending on what hardware you've got connected, you may also need to hide some joysticks from La Mulana:
13. Select the La Mulana entry in PlayOnLinux.
14. Click "Configure", then click the Wine tab, then the "Command prompt" button.
15. Type "control" and press Enter.
16. Open the "Game Controllers" control panel and then select and click "Disable" for any entries which La Mulana shouldn't see. (I've got a 3DConnexion Space Navigator which wins the race to be considered "first joystick" but isn't usable as one.)
17. Click "OK", then close the control panel and command prompt windows.
La Mulana should now work perfectly (aside from ignoring keyboard input) and you should be able to configure your gamepad using the following method:
18. Use the D-pad or left stick to select "option" from the menu.
19. Fiddle around with the buttons until you figure out which ones your hex-editing set to be OK and Cancel. (Triangle and Circle, respectively, on my PS2-USB controller adapter.)
20. Press "OK" to enter the options panel
21. Select "Button Config" and press "OK"
22. Select "Open Settings" and press "OK"
23. Press each button when prompted. (Note: You can only bind Select and Cancel to one thing each, so I suggest binding them to what, on an XBox 360 controller, would be A and X (X and Square on a Playstation Controller).
24. You're done. Select "Back", press OK, Select "Exit", and press OK to get back to the title screen. Enjoy playing.
If you want to install the update patch:
25. If the La Mulana installer crashed, retry until it completes or the patcher won't find it.
26. Select La Mulana in PlayOnLinux and click "Configure"
27. Select the Miscellaneous tab and click "Run a .exe in this virtual drive"
28. Select the patcher and click "Update"
Note: On occasion you may have to rotate an analog stick before La Mulana will let you navigate the title screen. I'm not sure what causes it to get confused about the location of the stick's centred position but my guess is that I was accidentally pressing it slightly off centre while La Mulana was starting.
If I can find the time, I'll try writing a PlayOnLinux script to automate most of this so you just have to point it at the installer EXE and follow the prompts.