WineHQ

Battlefield 2142

Version 1.51 released by EA, on Feb 19th, 2011, as an incremental patch.

The latest and final patch for Battlefield 2142.


Additions:

  • Adds the Northern Strike expansion
  • New map: Strike at Karkand
  • New map: Operation Blue Pearl
  • New map: Yellow Knife
  • New map: Molokai

Fixes:

  • Added extra account security fixes
  • Added fix for nVidia drivers to solve tinitus visual effect
  • Hit detection bug fix: Changed so that latency compensation history takes correct stored positions from buffer
  • Updated as_titan_wake.tweak to allow for two attack choppers instead of the one previously allowed

Features:

  • Added Operation Blue Pearl by Bjorn Sundell with special thanks to Jason Brice for lightmaps and finishing
  • Added Yellow Knife, Molokai and Strike at Karkand 2142 maps made by Jason Brice
  • Added support for the Novint Falcon controller

Application Details:

Version: 1.51
License: Retail
URL: http://www.battlefield2142.ea....
Votes: 0
Latest Rating: Platinum
Latest Wine Version Tested: 1.9.23-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

  • Installation using Revive Battlefield 2142 installer
  • Game launched in Wine Virtual Desktop
  • Offline / Singleplayer gameplay
  • Online gameplay - using a few of the Revive Servers currently online
  • All graphics options
  • EAX Sound Support / Very High Preset (Software Mode)
  • Launched with Widescreen option - which works as expected
  • VOIP works - including the test in the menus

What does not

  • Game launched as normal Wine application (when Virtual Desktop not used)
  • AA graphics option (when turned ON) - doesn't appear to do anything

Workarounds

What was not tested

Only played about 10 minutes of online play.
But the connection and latency were very acceptable.

Hardware tested

Graphics:

  • GPU:
  • Driver:

Additional Comments

Awesome to see this classic game getting tier 1 support. Using Wine-Staging 1.9.23. No overrides - but allowed the installer to install a DirectX 9.0c bundle. System Software ================================================================= wine-1.9.23 (Staging) [ebuild R *] app-emulation/wine-9999::bobwya USE="X alsa capi cups fontconfig gecko gphoto2 gsm gstreamer jpeg lcms mono mp3 ncurses nls openal opencl opengl osmesa pipelight png pulseaudio realtime run-exes s3tc samba scanner ssl staging threads truetype udev udisks xcomposite xinerama xml -custom-cflags -dos -ldap -netapi -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 [ebuild R #] dev-qt/qtcore-5.7.0:5/5.7::gentoo USE="icu systemd -debug {-test}" 42,962 KiB [ebuild R ~] kde-frameworks/plasma-5.28.0:5/5.28::gentoo [5.28.0:5/5.28::kde] USE="X debug -egl -gles2 {-test} -wayland" 4,484 KiB [ebuild R ~] kde-plasma/plasma-desktop-5.8.4:5::gentoo USE="debug fontconfig gtk2 handbook legacy-systray pulseaudio semantic-desktop -gtk3 -ibus (-packagekit) -qt4 -scim {-test}" INPUT_DEVICES="evdev synaptics" 6,285 KiB [ebuild R #] media-libs/mesa-13.0.0-r1::bobwya USE="classic egl gbm nettle nptl openssl osmesa wayland xvmc -bindist -d3d9 -debug -dri3 -gallium -gcrypt -gles1 -gles2 -libressl -llvm -opencl -openmax -pax_kernel -pic (-selinux) -vaapi -valgrind -vdpau -xa" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="(-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi (-vc4) -vmware" 0 KiB [ebuild R #] x11-base/xorg-server-1.18.4-r1:0/1.18.4::bobwya USE="ipv6 kdrive suid systemd udev xephyr xorg -dmx -doc -fop -glamor -libressl -minimal (-selinux) -static-libs -tslib -unwind -wayland -xnest -xvfb" 5,869 KiB [ebuild R #] x11-drivers/nvidia-drivers-375.10-r2:0/375::bobwya USE="X acpi driver kms multilib tools uvm -compat -gtk3 -pax_kernel -static-libs -wayland" 0 KiB System Hardware Device Class Description ========================================================= system G751JT (ASUS-NotebookSKU) /0 bus G751JT /0/0 memory 64KiB BIOS /0/8 processor Intel(R) Core(TM) i7-4710HQ /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/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/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.3 bus 8 Series/C220 Series Chipset Family SMBus Controller

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentGentoo Linux x86_64Dec 09 20161.9.23-stagingYes Yes PlatinumBob Wya 
ShowGentoo Linux x86_64Nov 17 20151.7.55-stagingYes Yes GoldBob Wya 

Known Bugs

Bug # Description Status Resolution Other apps affected
41925 Battlelog.co Battlefield 2/2142 Revive Launcher silently dies during installation (Squirrel installer fails) NEW View

Show all bugs

HowTo / Notes

Install Guide for Battlefield 2142 (DVD retail)
  1. Ensure you are using a 32-bit Wineprefix on a 64-bit OS (see Wine FAQ if unsure how to do this).

  2. Ensure your Battlefield 2142 DVD is mounted within your Linux filesystem. You can do this quite easily, in most Desktop Environments, via udisks 2.

  3. Wine should map this drive to '${WINEPREFIX}/dosdevices/d:'
    (the mapped drive letter may vary depending on how many drives your system has).

  4. Check drive is mapped using:

    winecfg

  5. Open a Terminal and launch the setup:

    wine 'D:\setup.exe'
    (Replace D: with whatever drive letter you have your DVD mapped to in winecfg)

  6. ☐ Uncheck  GameSpy Comrade installation

  7. When the main (disc) installer has finished do not launch the game!

Battlefield 2142 should now be installed successfully (hopefully). The Battlefield 2142 DVD uses SafeDisc v4 disc check. This DRM mechanism is supported under Wine. The game should run without a no-DVD crack - but will require your disc to be in the drive and mounted.

If you subsequently patch Battlefield 2142 to version 1.51 this disc check will be removed. The game can be launched without the disc being present in your optical disc drive. This is highly recommended and required for online play!

Online play will not be possible without following the steps to set up a Battlelog.co Revive account and patching your copy of the game to version 1.51. This follows the shutdown of all the Gamespy Master Servers on May 31st, 2014.

Patching Battlefield 2142
  1. Update the game to version 1.50 using the BF2142_Update_1.50.exe , e.g.:
    cd ~/Downloads
    wine BF2142_Update_1.50.exe

    Note: this is a full patch and can be applied to any previous / earlier version of Battlefield 2142

  2. Update the game to version 1.51 using the BF2142_Patch_1.51.exe , e.g.:
    cd ~/Downloads
    wine BF2142_Patch_1.51.exe

    Note: apply the 1.50 patch first!!

Launching Battlefield 2142

Ensure your WINEPREFIX variable is set correctly before following these instructions.

Wine Virtual Desktop

Run:

winecfg
  • select the Graphics tab
  • check Emulate a Virtual Desktop
  • set your native monitor resolution (or a suitable lower resolution) in the Desktop Settings

or manually add the registry entries:

wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\Explorer" "/v" "Desktop" "/t" "REG_SZ" "/d" "Default" 
wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops" "/v" "Default" "/t" "REG_SZ" "/d" "1920x1080"

... replace resolution with your native screen resolution.

Launching Battlefield 2142 Game

Ensure that you use the same resolution (as your Virtual Desktop) when you launch the actual game, as in:
cd "${WINEPREFIX}/drive_c/Program Files/EA GAMES/Battlefield 2142/"
wine BF2142.exe +menu 1 +fullscreen 1 +widescreen 1 +szx 1920 +szy 1080

Widescreen support requires at least version 1.50 of Battlefield 2142.

If you have a 4:3 aspect monitor then omit widescreen parameter.


Gamespy Master Servers

Gamespy, which provided the Master Servers for many games, including Battlefield 2142, 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) Battlelog Servers


Pros

  •  Supply reliable alternate Battlefield 2142 Master Servers
  •  Transparent/simple command line wrapper executable to your original BF2142.exe
  •  Works with Punkbuster
  •  A few active Servers still remain 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

Then to run the Revive Launcher:

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

The Revive Launcher largely works:

  •  you can set BF2142 launch options
  •  you can download and install the full BF2142 game (including all expansion packs)
  •  Revive Network status, etc. works
  •  Applying CD Keys crashes when the Revive Launcher calls: BattlelogBootstrap.exe
    See below for a manual workaround.
  •  The Revive Launcher consistently crashes - when you exit it

Tested with Wine Staging - version 2.3.


Revive Game CD Keys

It is necessary to edit (specific) Registry keys, to set a special (allocated) Revive CD-key, for your Battlefield 2142 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 2142:
    export REVIVE_KEY="❚❚❚❚-❚❚❚❚-❚❚❚❚-❚❚❚❚-❚❚❚❚"
    wine reg.exe ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2142\ergc" \
        "/v" "" "/t" "REG_SZ" "/d" "x9392${REVIVE_KEY}" "/f"
Singleplayer / Offline Patch


(1) Singleplayer / Offline Patch (Gamespy Master Server Shutdown)

With the shutdown of the Gamespy Master Servers it is not even possible to play Battlefield 2142 offline in Singleplayer mode... A game that you have (hopefully) legally paid for!!

Well this mini-guide will fix this... Tested with all available versions of the Battlefield 2142 retail DVD (1.00-1.51).

Note the executable patch will NOT work with the DEMO version of Battlefield 2142 (as this does not offer an offline gameplay mode / requires Internet access to work).


  1. Create the following BASH script:

    "${HOME}/BF2142_offline.sh"
    #!/bin/bash
    
    exe="${1:-BF2142.exe}"
    
    hex_search_replace()
    {
    	search="$(echo "$2"  | sed -e 's/[[:xdigit:]]\{2\}/\\x&/g')"
    	replace="$(echo "$3" | sed -e 's/[[:xdigit:]]\{2\}/\\x&/g')"
    	sed -i -e "s/${search}/${replace}/" "$1"
    }
    
    mkdir "Backup" &>/dev/null
    cp "${exe}" "Backup/${exe}"
    
    hex_search_replace "${exe}" "0083c1158bc1"\
    				"00b815000000"
    hex_search_replace "${exe}" "000067616d657370792e636f6d004f6e6c696e650000"\
    				"00002e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e0000"
    hex_search_replace "${exe}" "7374656c6c612e70726f642e67616d657370792e636f6d2f007374656c6c612e70726f642e67616d657370792e636f6d"\
    			"302e302e302e302f2e302e302e302e302e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "65617075736865722e646963652e7365"\
    				"6e6577732e2e2e2e2e2e2e2e2e636f6d"
    hex_search_replace "${exe}" "617661696c61626c652e67616d657370792e636f6d"\
    				"2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "6f74642e67616d657370792e"\
    				"6f74642e2e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "3235352e3235352e3235352e323535"\
    				"302e302e302e302e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "6d61737465722e67616d657370792e636f6d"\
    				"302e302e302e302e2e2e2e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "7075626c6963706f7274"\
    				"6c6f63616c706f72742e"
    hex_search_replace "${exe}" "7075626c69636970"\
    				"6c6f63616c69702e"
    hex_search_replace "${exe}" "2e67616d657370792e636f6d00ffff"\
    				"2e2e2e2e2e2e2e2e2e636f6d00ffff"
    hex_search_replace "${exe}" "6665736c2e6561"\
    				"2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "2e65612e636f6d002e6665736c"\
    				"7379702e636f6d002e67616d65"
    hex_search_replace "${exe}" "67616d6573746174732e67616d65737079"\
    				"67616d6573746174732e2e2e2e2e2e2e2e"
    hex_search_replace "${exe}" "6770636d2e67616d657370792e636f6d"\
    				"6770636d2e2e2e2e2e2e2e2e2e636f6d"
    hex_search_replace "${exe}" "677073702e67616d657370792e636f6d"\
    				"677073702e2e2e2e2e2e2e2e2e636f6d"
    

  2. Run your script in the main Battlefield 2142 install directory:

    cd "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142"
    chmod +x "${HOME}/BF2142_offline.sh"
    ./"${HOME}/BF2142_offline.sh"

    This script will create a Backup directory ( "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142/Backup" ) with the vanilla BF2142.exe executable backed-up in it.

  3. Download a pre-made Battlefield 2142 Singleplayer Profile.
  4. Extract Singeplayer profile into your WINEPREFIX user profile directory.
    Set PLAYER_NAME variable to the name of your desired in-game solider (your dummy EA account name will also be changed to this).

    cd "${WINEPREFIX}/drive_c/users/${USER}/My Documents"
    rm -rf "Battlefield 2142"
    unzip ~/Downloads/Battlefield__2142_generic_profile.zip
    export PLAYER_NAME="singleplayer"
    find . -type f -name "*.con" -print0 | xargs -0 sed -i -e "s/singleplayer/${PLAYER_NAME}/g"
    
  5. Launch Battlefield 2142 (see above). The game will think you are offline (even if you are online).
  6. Sign in with your dummy EA account name (pre- completed field) and just leave the password field blank. The game should give you the opportunity to play with your Singleplayer Profile.
Battlefield 2142 Tweaks

To disable the Battlefield 2142 introductory video:

cd "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142/mods/bf2142/Movies"
mv Intro.bik Intro.bik.bak

To disable the Battlefield 2142 Dice, EA & Legal information videos:

cd "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142/mods/bf2142/Movies"
mv Dice.bik Dice.bik.bak
mv EA.bik EA.bik.bak
mv Legal.bik Legal.bik.bak

Moving any these 3 videos may cause issues launching Battlefield 2142.


See also PCGamingWiki: Battlefield 2142 Guide for further tweaks.

Recommended Video Settings

These are the currently supported, maximum, in-game 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

Note: for all GPU's it is recommended to set:

  • ANTI-ALIASING
    Off

Turning on AA may cause the game to crash or may result in it running with a completely black/blank screen
(all in-game elements will therefore be invisible!)



VIDEO OPTIONS


DISPLAY MODE


1920x1080@60Hz



PRESETS







██
Low
██
Medium
██
High




CUSTOM QUALITY


TERRAIN


DYNAMIC SHADOWS



████ High
████ High


EFFECTS


DYNAMIC LIGHT



████
High

████
High



GEOMETRY


ANTI-ALIASING



████
High

████
Off



TEXTURE


TEXTURE FILTERING



████
High

████
High



LIGHTING


VIEW DISTANCE SCALE



████
High

████
100%






ENHANCED LIGHTING EFFECT







██
ON
██
OFF



Last updated 09.12.2016 Wine-Staging 1.9.23, Nvidia GTX 970M, Nvidia Driver 375.10 (Gentoo GNU/Linux)
Punkbuster Guide (required for online play)

Install Battlefield 2142 fully - as per the guide above.

Note: Punkbuster will not run in a 64-bit Wineprefix.

Following the Gamespy Server shutdown EvenBalance has withdrawn official Punkbuster support for Battlefield 2142 (from their newer versions of Punkbuster). The Battlelog.co servers use an older version of the Punkbuster (anti-cheat) utility - to workaround this.


Update Punkbuster

See this Battlelog.co forum thread about how to obtain the final version of Punkbuster - which still supports Battlefield 2142. This archive also contains an (important) updated Punkbuster configuration file - with newer game data md5 hashes. A link for the Punkbuster service executable is also present. The Battlelog.co updated Launcher does not currently include this old Punkbuster version.

  1. Download this customised Punkbuster archive.
  2. Extract the zip archive in place (overwrite all files):
    cd "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142"
    winetricks -q 7zip
    rsync  -achv ~/Downloads/bf2_win32.zip .
    wine 'C:\Program Files\7-Zip\7z.exe' x -y bf2_win32.zip
  3. Punkbuster game profiles are stored in a /pb folder in the main installation folder for each supported game. E.g.

    "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142/pb"


Reinstall Punkbuster Service

Should the Punkbuster service not start correctly then you can try to update / re-install of the Punkbuster service.

  1. Download PunkBusterBF2.zip Punkbuster Service Installer from Battlelog.co
  2. Uninstall Punkbuster service:
    wine ~/Downloads/pbsvc.exe
    Click the Uninstall button.
    Exit pbsvc.exe installer
  3. Delete game profile & main Punkbuster service files:
    rm -rf "${WINEPREFIX}/drive_c/Program Files/Electronic Arts/Battlefield 2142/pb" \
           "${WINEPREFIX}/drive_c/windows/system32/{,drivers/}PnkBstr"*
    
  4. Enter Wine registry editor:
    wine regedit
  5. Backup existing Wine registry:
    Click on Registry (menu)
    Select Export Registry File...
    Select All checkbox
    Save backup registry file
  6. Now delete all references to Punkbuster service files in Registry:
    Press CTRL+F (or Edit / Find)
    Enter PnkBstr in search field
    Delete all registry keys which match this name
    Exit regedit
  7. Shutdown wineserver (equivalent of a Windows reboot):
    wineserver -k
  8. (Re)install Punkbuster service:
    wine ~/Downloads/pbsvc.exe
    Click the Install button.
    Press Test Services to check that everything works
    Exit pbsvc.exe installer

Still getting kicked by Punkbuster?

Should the Punkbuster service still lead to your game getting kicked from online play you could try running a keep alive BASH script. The script should keep the Punkbuster PnkBstrB service executable alive whilst PnkBstrA is running (so it will work for any game also requiring Punkbuster)...

keep_pnkbstr_alive.sh:
#! /bin/bash

SCRIPT_PATH="$0"
SCRIPT_FOLDER=$( dirname "${SCRIPT_PATH}" )

export WINEPREFIX="${SCRIPT_FOLDER%/drive_c/*}"
export WINEDEBUG=-all,+fps

cd "${SCRIPT_FOLDER}"

PID_PUNKBUSTERA=$(pgrep "PnkBstrA.exe")
while ps -p $PID_PUNKBUSTERA > /dev/null ; do
        wine "PnkBstrB.exe" &
        PID_PUNKBUSTERB=$!
        while ps -p $PID_PUNKBUSTERB > /dev/null ; do
                sleep 1
        done
done
Ensure you place the script somewhere within / on your WINEPREFIX C-drive and make it executable:
chmod +x "keep_pnkbstr_alive.sh"
Run:
cd "${WINEPREFIX}/drive_c"
./keep_pnkbstr_alive.sh

It is trival exercise to augment this script so it launches the BF2142 game executable as a background process (before starting the Punkbuster checking loop).


(??BSD/MacOS support??)

Comments

Back