WineHQ

Battlefield 2

The latest version from steam.

Application Details:

Version: Steam
License: Retail
URL: http://www.eagames.com/officia...
Votes: 0
Latest Rating: Silver
Latest Wine Version Tested: 2.15-staging

Maintainers: About Maintainership

Test Results

Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results

What works

Used Wine Virtual Desktop mode (see Workarounds section).

  • Steam installation for Battlefield 2 works 100%.
  • Intro Videos Menus/overlay mouse cursor.
  • Sound is clear.
    High w/EAX Staging enabled
    Microphone Input test works.
  • Video.
    Terrain @ Low (avoid black hexagonal glitching in landscape textures)
    All other settings @High / On, Draw Distance 100%
  • Punkbuster.
  • Single Player & Online Multiplayer (using Battlelog Servers).
  • Gameplay is smooth ~100 fps (with every setting turned up in the nvidia-settings utility:AA 16x, FXAA 16x).
  • Rebinding keys in the Main Menu / Controls tab.
  • Weapon unlocks appear to work on some Multiplayer Servers (may be a Battlelog.co Server issue).
  • Mods tested: vanilla BF2, SPX mod, Special forces mod. All of these work 100%.



What does not

  • Battlelog.co Revive Installer (see Workarounds section)
  • Video
    Terrain @ Medium/High (leads to black hexagonal glitching in landscape textures)
    Apply Terrain texture mesh fix results in inability to stay connected to online Multiplayer Servers (Punkbuster kick)


Workarounds

  • Must start the game in Wine Virtual Desktop - due to the hard requirement to switch to 800x600 @85Hz resolution.
  • Manual extraction of Battlelog Revive Launcher installer:
    winetricks win7
    winetricks 7zip dotnet452
    cd "${WINEPREFIX}/drive_c"
    mkdir -p Battlelog.co
    cd Battlelog.co/
    mv ~/Downloads/Setup.exe .
    wine 'C:\Program Files\7-Zip/7z.exe' x Setup.exe
    wine 'C:\Program Files\7-Zip/7z.exe' x bf2battlelog-*-full.nupkg
    
  • 32-bit WINEPREFIX - to support Punkbuster and .Net 4.5.2 (required for Battlelog Revive Launcher).
  • Fix installation location that the Battlelog Revive Launcher uses for BF2:
    export STEAM_WPATH="$( wine reg QUERY 'HKEY_LOCAL_MACHINE\Software\Valve\Steam' /v 'InstallPath' 2>/dev/null | awk '{if (sub("InstallPath","",$1) && sub("REG_SZ","",$2)) { sub("^[[:blank:]]+|[[:blank:]]+$",""); printf("%s\0", $0); exit 0 } }' )"
    export STEAM_UPATH="$( winepath -u "${STEAM_WPATH}" 2>/dev/null | dos2unix  )"
    export BF2_PATH="$( find "${STEAM_UPATH}" -type d -iname "Battlefield 2" -print0 | xargs -0 winepath -w 2>/dev/null )"
    export APPLICATION_DATA="$( wine reg.exe query 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders' /v 'AppData' | awk '{if (sub("AppData","",$1) && sub("REG_SZ","",$2)) { sub("^[[:blank:]]+|[[:blank:]]+$",""); printf("%s\0", $0); exit 0 } }' | xargs -0 winepath -u 2>/dev/null | dos2unix )"
    export DIRS_BF2="$( find "${APPLICATION_DATA}" -type f -ipath '*bf2battlelog/dirs_bf2.json' )"
    sed -i -e 's|{"gameDir":"[^"]*|{"gameDir":"'"${BF2_PATH//\\/\\\\\\\\}"'|' "${DIRS_BF2}"
    

What was not tested

  • Extended online play

Hardware tested

Graphics:

  • GPU: Nvidia
  • Driver: proprietary

Additional Comments

Rating due to instability of Battlelog Revive Launcher and Terrain texture issues.

wine --version
wine-2.15-151-ge06b7693d6 (Staging)
glxinfo | grep 'OpenGL'
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970M/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 384.69
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 384.69
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 384.69
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
System Software
===============
uname -r
4.12.9-gentoo
emerge -pv1 sys-devel/gcc kde-plasma/plasma-desktop media-libs/mesa x11-base/xorg-server x11-drivers/nvidia-drivers =app-emulation/wine-staging-9999
[ebuild R ~] sys-devel/gcc-6.4.0:6.4.0::gentoo USE="cxx doc fortran go mpx (multilib) nls nptl openmp pch sanitize ssp vtv (-altivec) (-awt) -cilk -debug (-fixed-point) (-gcj) -graphite (-hardened) (-jit) (-libssp) -objc -objc++ -objc-gc (-pie) -regression-test -vanilla" 74,379 KiB
[ebuild R ~] kde-plasma/plasma-desktop-5.10.5:5::gentoo USE="debug fontconfig gtk2 handbook legacy-systray pulseaudio semantic-desktop -appstream -gtk3 -ibus -qt4 -scim {-test}" INPUT_DEVICES="evdev synaptics" 0 KiB
[ebuild R #] media-libs/mesa-17.1.7::bobwya USE="classic egl gbm nptl osmesa wayland xvmc -bindist -d3d9 -debug -dri3 -gallium -gles1 -gles2 -llvm -opencl -openmax -pax_kernel -pic (-selinux) -unwind -vaapi -valgrind -vdpau -vulkan -xa" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="(-freedreno) -i915 -i965 -imx -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) (-vivante) -vmware" 9,672 KiB
[ebuild R #] x11-base/xorg-server-1.19.3-r2:0/1.19.3::bobwya USE="ipv6 kdrive suid systemd udev xephyr xorg -debug -dmx -doc -fop -glamor -libressl -minimal (-selinux) -static-libs -tslib -unwind -wayland -xcsecurity -xnest -xvfb" 5,909 KiB
[ebuild R #] x11-drivers/nvidia-drivers-384.69:0/384::bobwya USE="X acpi driver kms multilib tools uvm -compat -gtk3 -pax_kernel -static-libs -wayland" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R #] app-emulation/wine-staging-9999:9999::bobwya USE="X alsa cups dos fontconfig gecko gphoto2 gsm gstreamer jpeg lcms ldap mono mp3 ncurses netapi nls openal opencl opengl osmesa pipelight png pulseaudio realtime run-exes s3tc samba scanner ssl threads truetype udev udisks vulkan xcomposite xinerama xml -capi -cuda -custom-cflags -odbc -oss -pcap -perl -prelink (-selinux) {-test} -themes -v4l -vaapi" ABI_X86="32 64 (-x32)" LINGUAS="en en_US -ar -bg -ca -cs -da -de -el -eo -es -fa -fi -fr -he -hi -hr -hu -it -ja -ko -lt -ml -nb_NO -nl -or -pa -pl -pt_BR -pt_PT -rm -ro -ru -sk -sl -sr_RS@cyrillic -sr_RS@latin -sv -te -th -tr -uk -wa -zh_CN -zh_TW" 0 KiB
H/W path Device Class Description
=================================================================
 system G751JT (ASUS-NotebookSKU)
/0 bus G751JT
/0/0 memory 64KiB BIOS
/0/8 processor Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
/0/8/9 memory 1MiB L2 cache
/0/8/a memory 256KiB L1 cache
/0/8/b memory 6MiB L3 cache
/0/c memory 32GiB System Memory
/0/c/0 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/c/1 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/c/2 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/c/3 memory 8GiB SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
/0/100 bridge Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
/0/100/1 bridge Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller
/0/100/1/0 display GM204M [GeForce GTX 970M]
/0/100/1/0.1 multimedia GM204 High Definition Audio Controller
/0/100/14 bus 8 Series/C220 Series Chipset Family USB xHCI
/0/100/14/0 usb1 bus xHCI Host Controller
/0/100/14/0/2 bus USB2.0 Hub
/0/100/14/0/2/4 bus USB2.0 Hub
/0/100/14/0/3 bus USB 2.0 Hub
/0/100/14/0/3/2 bus USB2.0 Hub
/0/100/14/0/3/2/1 input USB Receiver
/0/100/14/0/3/2/3 input Corsair K65 Gaming Keyboard
/0/100/14/0/4 multimedia Corsair Gaming H2100 Headset
/0/100/14/0/5 communication Bluetooth wireless interface
/0/100/14/0/7 multimedia USB2.0 HD UVC WebCam
/0/100/14/0/a input ASUS ROG Macrokey
/0/100/14/1 usb2 bus xHCI Host Controller
/0/100/14/1/2 bus USB3.0 Hub
/0/100/14/1/2/3 scsi4 storage Voyager GS
/0/100/14/1/2/3/0.0.0 /dev/sdc disk 64GB Voyager GS
/0/100/14/1/2/3/0.0.0/0 /dev/sdc disk 64GB 
/0/100/14/1/2/4 bus USB3.0 Hub
/0/100/16 communication 8 Series/C220 Series Chipset Family MEI Controller #1
/0/100/1b multimedia 8 Series/C220 Series Chipset High Definition Audio Controller
/0/100/1c bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #1
/0/100/1c.2 bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #3
/0/100/1c.2/0 wls1 network Wireless 7260
/0/100/1c.3 bridge 8 Series/C220 Series Chipset Family PCI Express Root Port #4
/0/100/1c.3/0 p3p1 network RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1f bridge HM87 Express LPC Controller
/0/100/1f.2 storage 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
/0/100/1f.3 bus 8 Series/C220 Series Chipset Family SMBus Controller
/0/1 scsi0 storage 
/0/1/0.0.0 /dev/sda disk 2048GB Samsung SSD 850
/0/1/0.0.0/1 volume 511MiB Windows FAT volume
/0/2 scsi2 storage 
/0/2/0.0.0 /dev/cdrom disk BD-CMB UJ172 S
/0/3 scsi3 storage 
/0/3/0.0.0 /dev/sdb disk 1024GB Samsung SSD 850

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentGentoo Linux x86_64Sep 05 20172.15-stagingNo, but has workaround Yes YesSilverRob 
ShowGentoo Linux x86_64Nov 13 20151.7.54-stagingYes Yes YesGoldRob 
ShowGentoo Linux x86_64Apr 03 20141.7.15Yes Yes YesGoldRob 
ShowMac OS X 10.7 "Lion"Jul 02 20121.4Yes Yes SilverMac Porter Joe 

Known Bugs

Bug # Description Status Resolution Other apps affected
35371 Battlefield 2 voice setup tool crashes when "Save Settings" button is clicked (winmm.mixerGetDevCaps should also accept mixer device handles) NEW View
41925 Battlelog.co Battlefield 2/2142 Revive Launcher silently dies during installation (Squirrel installer fails) NEW View

Show all bugs

HowTo / Notes

Test Submissions ... how to avoid a rejection notice!!

These notes were last updated: 20 February 2018

Follow these guidelines to avoid embarrassment when your Test Submission is immediately rejected!!

  • Ensure the version of Wine you have installed is update-to-date and supported (hint: if it isn't - then it won't be in the drop-down list).
  • Put your PC specifications in the Extra Comments section e.g. like your CPU and system memory.1
  • When adding test results please specify video card and driver version you are using.2
  • It's also useful to mention what Desktop Environment you are using (e.g. KDE/Plasma, Gnome, Xfce, Budgie, Mate, Cinnamon, ...)
  • Specify if you installed the Battlefield 2 into a fresh Wineprefix (or not), and what other programs and games you have installed (for existing Wineprefix's).
  • Specify what version of the Windows compatibility you use for your Wineprefix (e.g. Windows XP, Windows 7). Specify if you override this for the Steam client executable.
  • Specify whether you installed into a 32-bit or a 64-bit Wineprefix.
  • Add detailed comments about what is not working for you.
  • Please check known issues - like terrian texture settings - which may vary by graphics card vendor / driver version.
  • Please indicate if you've applied additional patches to the version of Wine you are using.
  • Please, don't submit test results like "Everything is working" or "Everything isn't working".

These guidelines ensure your submitted test results are actually relevant to other users of Wine and WineHQ.


1 The console version of the lshw utility is your friend. This command will dump your System hardware specification in a clean format. Post command and output in the Extra Comments section:

sudo lshw -short | egrep -v '(volume|disk|bus)'

2 glxinfo can be used to display your OpenGL and graphics driver versions. Post the command and output in the Extra Comments section:

glxinfo | egrep '^[[:alpha:]]'

Post Steam-installation notes.
Ensure you have installed Steam in a 32-bit Wineprefix on a 64-bit OS (see Wine FAQ if unsure how to do this).
  1. Install BF2 in Steam client - but do not launch it immediately.
  2. To stop Steam pestering you with pointless/unneeded pre-installations each time you run BF2...
    cd "${WINEPREFIX}/drive_c/Program Files/Steam/SteamApps/common/Battlefield 2"
    rm -rf directx/ PunkBuster/ redist/
    
Online play will not be possible until a Punkbuster update is installed (see below).
Launching Game (Steam)

Set the following launch parameters for BF2.exe, using the Steam Client GUI:

+menu 1 +fullscreen 1 +szx "x-resolution" +szy "y-resolution"

... replace "x-resolution" & "y-resolution" with your native screen resolution.

Also ensure that your Battlefield 2 Video.con profile file has the correct resolution set in it (command updates all profiles):

export resolution="'x-resolution'x'y-resolution'@'frequency'Hz"
find "${WINEPREFIX}/drive_c/users/${USER}/My Documents/Battlefield 2/Profiles" -type f -name "Video.con" -printf "'%p'\n" \
    | xargs sed -i -e 's/setResolution [1-9][0-9]*x[1-9][0-9]*@[1-9][0-9]*Hz/setResolution '"${resolution}"'/g'

... replace 'x-resolution' , 'y-resolution' & 'frequency' with your native screen resolution and frequency (respectively).

To access the Battlefield 2 launch options (Steam LIBRARY):

  • Mouse left buttonRHS mouse click on Battlefield 2 entry (in Steam LIBRARY)
  • Select Properties (context menu entry) → General (tab)
  • Select SET LAUNCH OPTIONS... button
Gamespy Master Servers

Gamespy, which provided the Master Servers for many games including Battlefield 2, was officially shutdown in May 2014. See Gamespy Wikipedia for more information about this.

Various community supported efforts have sprung up to provide alternative Master Servers for the various games affected by the server shutdown.


Detailed below are installation instructions for various alternatives - to use in place of the original Gamespy Master Servers.


(1) BF2Hub


Pros

  • ☑ Supply reliable alternate Battlefield 2 Master Servers
  • ☑ Facility to import your rank, achievements and weapon unlocks from the original Gamespy databases.
  • ☑ Simple Windows XP compliant GUI launcher - without .Net dependencies!
  • ☑ Works with Punkbuster
  • ☑ Many active Servers still remain online
  • ☑ There is even a Special Forces server online!!


Cons

  • None known

Getting Started

  1. Visit BF2 Hub Website
  2. Download the latest client

Guide to Installing the BF2 Hub Launcher

Download the BF2 Hub Launcher installer.

Then simply set the BF2 Hub Launcher up in a Wineprefix - which has an existing Battlefield 2 installation:

wine bf2hub-client-setup.exe

Then to run the BF2 Hub Launcher (32-bit Wineprefix):

wine start 'C:\Program Files\BF2Hub Client\bf2hub.exe'

The BF2 Hub Client will automatically read your EA Account Details/CD key. So you should be able to play Battlefield 2 online straightaway!

The BF2 Hub Launcher uses a system tray icon. This results in a known system tray bug affecting Battlefield 2, when Wine is used in the Virtual Desktop mode. See bug: 40828.


(2) Battlelog Servers


Update: the Battelog/Revive crew were served a takedown notice by EA. So this only remaining solution, to full online play for Battlefield 2, is no longer available...


Pros

  • ☑ Supply reliable alternate Battlefield 2 Master Servers
  • ☑ Facility to import your rank, achievements and weapon unlocks from the original Gamespy databases.
  • ☑ Transparent/simple command line wrapper executable to your original BF2.exe
  • ☑ Works with Punkbuster
  • ☑ Many active Servers still remain online
  • ☑ There is even a Special Forces server online!!


Cons

  • ☒The Battlelog Launcher client frontend applications is a bit unstable under Wine
    (see Wine Bug 41925)

Getting Started

  1. Visit Battlelog.co Website
  2. Setup an account

Guide to Installing the Windows 7 Revive Launcher

The installer for the Revive Launcher doesn't currently work under Wine. This issue can be worked around however.

Ensure you are using a 32-bit Wineprefix on a 64-bit OS (see Wine FAQ if unsure how to do this).

Download the Revive Launcher installer.

Then manually extract the installer - to use it:

winetricks win7
winetricks 7zip dotnet452
cd "${WINEPREFIX}/drive_c"
mkdir -p Battlelog.co
cd Battlelog.co/
mv ~/Downloads/Setup.exe .
wine 'C:\Program Files\7-Zip/7z.exe' x Setup.exe
wine 'C:\Program Files\7-Zip/7z.exe' x bf2battlelog-*-full.nupkg -i'!lib/*'

Then to run the Revive Launcher:

cd "${WINEPREFIX}/drive_c/Battlelog.co/lib/net45"
wine start 'Revive-Launcher.exe'

If using Steam then you may need to fix the install the Steam Library install path that the Revive Launcher tries to use for BF2:

export STEAM_WPATH="$( wine reg QUERY 'HKEY_LOCAL_MACHINE\Software\Valve\Steam' /v 'InstallPath' 2>/dev/null | awk '{if (sub("InstallPath","",$1) && sub("REG_SZ","",$2)) { sub("^[[:blank:]]+|[[:blank:]]+$",""); printf("%s\0", $0); exit 0 } }' )"
export STEAM_UPATH="$( winepath -u "${STEAM_WPATH}" 2>/dev/null | dos2unix  )"
export BF2_PATH="$( find "${STEAM_UPATH}" -type d -iname "Battlefield 2" -print0 | xargs -0 winepath -w 2>/dev/null )"
export APPLICATION_DATA="$( wine reg.exe query 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders' /v 'AppData' | awk '{if (sub("AppData","",$1) && sub("REG_SZ","",$2)) { sub("^[[:blank:]]+|[[:blank:]]+$",""); printf("%s\0", $0); exit 0 } }' | xargs -0 winepath -u 2>/dev/null | dos2unix )"
export DIRS_BF2="$( find "${APPLICATION_DATA}" -type f -ipath '*bf2battlelog/dirs_bf2.json' )"
sed -i -e 's|{"gameDir":"[^"]*|{"gameDir":"'"${BF2_PATH//\\/\\\\\\\\}"'|' "${DIRS_BF2}"

NB: this will only work if your Steam Library directory, for BF2, is stored below the main Steam directory.


The Revive Launcher largely works:

  • ☑ You can set BF2 launch options.
  • ☑ You can download and install the full BF2 game (including all expansion packs).
  • ☑ Revive Network status, etc. works.
  • ☑ Applying Revive CD-keys to Registry works.
    The helper executable BattlelogBootstrap.exe consistently crashes on exit (this can be ignored - just press Cancel).
  • ☒ The Revive Launcher consistently crashes - when you exit it.

Tested with Wine Staging - version 2.15.
The Revive Launcher is much less stable with earlier versions of Wine Staging. The Revive Launcher not work with any Wine Stable or Wine Development release (at present).


Revive Game CD Keys

It may be necessary to edit (specific) Registry keys, to set a special (allocated) Revive CD-key, for your BF2 install. This step will become mandatory when the Revive team enable game key verification on their Servers.

Refer to this Battlelog.co forum post: How to fix CD-Key issues (applies to both BF2 & BF2142).

  1. Enter Wine registry editor:
    wine regedit
  2. Backup existing Wine registry:
    Click on Registry (menu)
    Select Export Registry File...
    Select All checkbox
    Save backup registry file
  3. Exit regedit
  4. Visit your Revive Personal Profile page to obtain your personal Revive CD-key
  5. Insert your Revive CD-key into the (Wine) Registry for Battlefield 2:
    export REVIVE_KEY="❚❚❚❚-❚❚❚❚-❚❚❚❚-❚❚❚❚-❚❚❚❚"
    wine reg.exe ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2\ergc" \
        "/v" "" "/t" "REG_SZ" "/d" "x9392${REVIVE_KEY}" "/f"
  6. Also insert your Revive CD-key into the (Wine) Registry for Battlefield 2 Special forces (if installed):
    wine reg.exe ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2 Special Forces\ergc" \
        "/v" "" "/t" "REG_SZ" "/d" "x9392${REVIVE_KEY}" "/f"
Single Player Support

SPX 64-Player Mod

A Single Player mod supporting SP/coop support for Special Forces maps, with SF kits, weapons, Factions and vehicles. This guide also includes a fix for flickering terrian textures (black flickering hexagons covering terrian textures). Combining these 2 Mods allows you to achieve a good offline, single-player experience. As your stock BF2 data files are not affected, you can still play online, without being kicked by Punkbuster! 

  1. Setup an account on Battlefield SinglePlayer Forum and login into this account (this is necessary to unlock download links used in this section).

  2. Download BF2 SPX archive - version 1.2

    cd ~/Downloads
    wget -c "http://www.battlefieldsingleplayer.com/dnamro/files/BF2/BF2_SPX_1_2.zip"
    cd "${WINEPREFIX:-${HOME}/.wine}/drive_c/Program Files/Steam/steamapps/common/Battlefield 2/mods"
    mkdir BF2_SPX
    cd BF2_SPX
    unzip ~/Downloads/BF2_SPX_1_2.zip
    
  3. Download shaders client (fixed) archive
    (based on texture map files from the Forgotten Hope BF2 mod).

    cd "${WINEPREFIX:-${HOME}/.wine}/drive_c/Program Files/Steam/steamapps/common/Battlefield 2/mods/BF2_SPX"
    cp "BP_Shaders_client.zip" "BP_Shaders_client.bak.zip"
    cp ~/Downloads/Shaders_Client_Fix.zip "BP_Shaders_client.zip"
    
  4. Uncomment these 2 lines to put the stock menu movies back into the SPX mod... But why??!!

    # cd "${WINEPREFIX:-${HOME}/.wine}/drive_c/Program Files/Steam/steamapps/common/Battlefield 2/mods"
    # rsync -achv bf2/Movies/{Intro,menu,menu_loggedin}.bik BF2_SPX/Movies/
    
  5. Set the following launch parameters, for BF2, using the Steam Client GUI - to launch the SPX 64-Player Mod (for full HD resolution):
    +modPath 'mods\BF2_SPX' +menu 1 +fullscreen 1 +szx 1920 +szy 1080

Single Player Bot Changer

This is a small utility, to set the maximum number of map players and the AI strength of the game bots, for any of the (currently installed) Battlefield mods.

  1. Download BF2 SP Bot Changer - version 1.2

  2. Extract & run the utility


    cd ~/Downloads/
    unzip bf2-sp-bot-changer-21.zip
    wine 'BF2 SP Bot Change v2.1.exe'
    
Punkbuster Fixes

If you find yourself getting kicked from online multiplayer Servers... Then try refreshing your Punkbuster installation. Otherwise it's probably best not to touch it!

Ensure you are using a 32-bit WINEPREFIX (Punkbuster will not work in a 64-bit WINEPREFIX).

Note: using a 64-bit WINEPREFIX appeared not to be an issue, during online testing on 26 November 2018. Testing multiplayer, on a BF2Hub-enabled BF2 Server (with Punkbuster enabled). YMMV.

Steps to refresh your current Punkbuster files:

  1. Download and extract the final Punkbuster files supporting BF2: bf2_win32.zip:

    wget -O ~/Downloads/bf2_win32.zip -c "http://fizweb.elte.hu/battlefield/Battlefield-2/BF2-PunkBuster/bf2_win32.zip"
    export PB_DIRECTORY="$(find "${WINEPREFIX}" -type d -iname "pb")"
    mv "${PB_DIRECTORY}" "${PB_DIRECTORY}.bak"
    unzip ~/Downloads/bf2_win32.zip -d "$(dirname "${PB_DIRECTORY}")"

    NB you'll have to do this process manually - if BF2 is not installed within your current WINEPREFIX.

  2. Now update the Punkbuster service with the Punkbuster service utility: pbsvc.exe:

    wget -O ~/Downloads/pbsvc.exe -c "http://www.evenbalance.com/downloads/pbsvc/pbsvc.exe"
    wine start /unix ~/Downloads/pbsvc.exe


Recommended Video Settings

Note: for older AMD (<5xxx)/Nvidia GPU's (<8xxx) and Intel GPU's it is recommended to set:

  • LIGHTING Low
  • DYNAMIC SHADOWS Off
  • DYNAMIC LIGHT Off

  • Setting TERRAIN quality to Medium or High may lead to black hexagonal texture glitching in ground textures - this bug appears to mainly affect Nvidia GPUs.
    It has been reported that issue does not affect newer AMD radeon drivers. So setting the TERRAIN quality to High is worth testing on AMD cards.
  • ANTI-ALIASING set to 2x ... 16x (on). Will simply be ignored in-game.

The currently supported maximum in-game Video Settings (without the Shader mesh fix - detailed on this page) are:

VIDEO OPTIONS



DISPLAY MODE ????x????@???Hz


OVERALL QUALITY Custom




CUSTOM QUALITY



TERRAIN
Low


EFFECTS
High


GEOMETRY
High


TEXTURE
High


LIGHTING
High


DYNAMIC SHADOWS
High


DYNAMIC LIGHT
High


ANTI-ALIASING
Off


TEXTURE FILTERING
High


VIEW DISTANCE SCALE
100%


████

Last updated 26.11.2018 Wine-Staging 3.21, Nvidia Geforce GTX 970M, Nvidia Driver 396.54.09 (Gentoo GNU/Linux)

General Tweaks

BF2 Commandline Options

Refer to Battlefield 2 Tweak Guide: Command Line Options for a comprehensive list of command line switches to use when launching the Battlefield 2 executable.

  • For example you can also set you client to automatically login to Revive account:

    wine start 'BF2.exe' ... +playerName "name" +password "⚫⚫⚫⚫"
  • Specify a custom resolution to launch the BF2 client with, e.g. for running the game on a full HD monitor:
    wine start 'BF2.exe' ... +menu 1 +fullscreen 1 +szx 1920 +szy 1080
  • Specify a BF2 Mod to launch, with the BF2 client, e.g. for running the BF2 SPX Singleplayer Mod:
    wine start 'BF2.exe' ... +modPath mods/BF2_SPX +ignoreAsserts 1

How you append these options will depend on whether you are using the Steam Client or if you have used a retail (DVD) copy of Battlefield 2.

Comments

Back