Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] LF2 v2.0a on Linux + LF2 Lobby + Multiserver 2.0 + AI + LF2 Dashboard
How to play LF2 v2.0a on Linux (w/ examples for Ubuntu)

Update: Lutris method (easier)
Update: PlayOnLinux method (easier) currently not working

Step 1 - Install Wine and Winetricks latest versions

Note: Code below is outdated (wine version keeps updating). Google "Install wine ubuntu" and check the latest articles.

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7
sudo apt-get install winetricks

Step 2 - Set Wine to run in 32-bit-only mode

Unfortunately this step is required for bgm to work because Windows Media Player 9 won't install on a 64-bit environment. Maybe this will change in the future. Or maybe there is a workaround for this already.

Important: If you have Wine already installed in 64-bit mode, the following example will delete all your wine programs.
It is possible to have a 32-bit Wine environment just for LF2 however, while keeping your other 64-bit environment, read here.

rm -rf $HOME/.wine
rm -f $HOME/.config/menus/applications-merged/wine*
rm -rf $HOME/.local/share/applications/wine
rm -f $HOME/.local/share/desktop-directories/wine*
rm -f $HOME/.local/share/icons/????_*.xpm
export WINEARCH=win32

Step 3 - Install mono and Visual C++ 2005 Redistributable

sudo apt install mono-complete
winetricks -q vcrun2005

By now, LF2 should work, but without background music.
The usual error message "could not create a filter graph for this file".

Step 4 - Install 32-bit versions of GStreamer Base Plugins, mpg123 and GStreamer libav

sudo apt install gstreamer1.0-plugins-base:i386 mpg123:i386 gstreamer1.0-libav:i386

Step 5 - Install Windows Media Player 9, Quartz and Devenum

winetricks -q wmp9 quartz devenum

Why each is necessary:
  • Windows Media Player 9 contains the necessary codecs that LF2 uses for the music;
  • Quartz is a library with functions for DirectShow, a part of DirectX. LF2 uses DirectShow for the background music, and quartz is needed.
  • Devenum is a module that functions for the DirectShow API which enables the generation of dynamic information for a number of devices. This means that details on waveIN and waveOUT devices will be provided by this DLL. More info here. It is also needed by LF2.

Note: It is very important that WMP9 is installed. A window  should open during installation. If you get a message at the end (after you click "Finish") saying WMP9 was not installed correctly, you can ignore it.

Step 6 - Download and Install Little Fighter 2 (if you haven't already)

You can download LF2 v2.0a from here. If you don't see the check-boxes while installing, press back and next again.

LF2 Lobby on Linux (w/ examples for Ubuntu)

Assuming you already installed LF2 v2.0a with the above steps.

Step 1 - Install Visual Basic 6.0 Run-time

winetricks -q vb6run

Step 2 - Download and Install LF2 Lobby (if you haven't already)

You can download LF2 Lobby from here.

Multiserver 2.0 and AI on Linux (w/ examples for Ubuntu)

Step 1 (AI + Multiserver 2.0) - Configure Wine to use the "native, builtin" ddraw.dll


Go to "libraries" tab. On the "New override for library:" text box, type in "ddraw.dll" and click Add. You will get a warning "Changing the load order of this library is not recommended. Are you sure you want to do this?", click Yes. Click Apply and click Ok.

Now LF2 will load the ddraw.dll that is placed in its directory, and AI and Multiserver 2.0 shall work.

Step 2 (Multiserver 2.0) - Download Multiserver 2.0 and Install mono complete

Download Multiserver 2.0 from here. Install mono complete:

sudo apt-get install mono-complete

Place the Multiserver's ddraw.dll in the LF2 directory (located at hidden folder ~/.wine perhaps). To run Multiserver type in the following command where the Multiserver's executable is located:

mono LF2\ Multi\ Server\ v2.0.exe

Alternatively you may get the C++ version of MultiServer and compile it yourself, so you can run the application natively instead of using Mono.

LF2 Dashboard on Linux (w/ examples for Ubuntu)

The original executable doesn't work under Wine. You must use an alternative executable that can be found here.

Known issues:
  • At installation phase, sometimes after clicking 'Next' nothing appears on the window. Just click 'Back' and 'Next' again to fix.
  • The 'control settings' screen is a bit buggy, but still works.
  • If you get error message "Couldn't create art surface", Wine may not know how much memory your
    graphics card has. In this case:
    • Find how much VRAM do you have (how to)
    • On terminal: $ wine regedit.exe
    • Find the HKEY_CURRENT_USER → Software → Wine → Direct3D → VideoMemorySize and set it to the value of VRAM that your card has. If the "Direct3D" directory does not exist, create it yourself.

If you have any problems let me know.

Simoneon edited this post 08-16-2015 12:21 AM because:
sticked ;)
[Image: random.php?pic=random]
The meaning of life is to give life a meaning.
Stop existing. Start living.

Users browsing this thread: 1 Guest(s)