Absolute Force Online on Linux

Jean David TECHER



Table of Contents

1. Settings
2. Instructions

Note

Test was done on a virtual machine running on Xen 4.3 unstable. VGA passthrough feature is used so the domU has acces to the graphic card.

1. Settings

  • Linux OS = Ubuntu 12.04 32-Bit

  • Wine version = 1.5.29

  • Wine has to be patched = YES

  • Winetricks is required = YES

  • CPU = Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz

  • RAM = 8GB

  • Graphic Card = Sapphire HD 7970 3GB

  • Graphic Driver = AMD/ATI 13.4

2. Instructions

  • Download wine sources (http://www.winehq.org) for 1.5.29 and decompress

    tar xvjf wine-1.5.29.tar.bz2
  • Wine has to be patched using the patch http://dl.dropbox.com/u/6901628/disable-dynamic-vertex-buffers.patch

    cd wine-1.5.29
    wget -q "http://dl.dropbox.com/u/6901628/disable-dynamic-vertex-buffers.patch" -O - | patch -p1
  • Build Wine in a new folder (so you can keep safe your current wine installation)

    ./configure --prefix=/opt/wine/apps/Absolute_Force_Online/ && make -j4 && sudo make install
  • Generate a fresh WINEPREFIX

    sudo mkdir pv /opt/wine/datas/
    
    # Replace david in the command line below by your current user
    sudo chown david:david /opt/wine/datas/
    
    export PATH=/opt/wine/apps/Absolute_Force_Online/bin/:$PATH
    export LD_LIBRARY_PATH=/opt/wine/apps/Absolute_Force_Online/lib:${LD_LIBRARY_PATH}
    export WINEPREFIX="/opt/wine/datas/Absolute_Force_Online"
    
    winecfg
  • TIme to use winetricks

    winetricks vcrun2008 xact_jun2010 
  • For DirectD3D I use

    REGEDIT4
    
    [HKEY_CURRENT_USER\Software\Wine\Direct3D]
    "AlwaysOffScreen"="enabled"
    "Multisampling"="disabled"
    "OffscreenRenderingMode"="fbo"
    "RenderTargetLockMode"="readdraw"
    "StrictDrawOrdering"="disabled"
    "UseGLSL"="enabled"
    "VideoMemorySize"="3072"
    "VideoPciDeviceID"="0x6798"
    "VideoPciVendorID"="0x1002"

    Note

    Don't forget that values for VideoMemorySize, VideoPciDeviceID, VideoPciVendorID depend on your graphic card.

  • Go to afo.91.com and register and download the installer for AFO

  • Install the installer using wine

    wine AFO_V1017.exe
  • Each tme you play and in order to boost performance use

    WINEDEBUG=-all wine Play.exe

    Note

    IMPORTANT DON'T LET THE WINDOW LAUNCHED BY THE PLAYER BE MINIMIZED OR ELSE YOU WILL LOST YOUR RESOLTUTION SCREEN.