Battlefield 2How to update PunkBuster


14.08.2016, 17:20 - S_h_a_r_k_93 - Administrator - 5388 Posts
https://i.imgur.com/N1jrn9v.png

How to update PunkBuster
TraducirÜbersetzenПереведитеTraduireTradurre
TraduzirTłumaczyćTraduceKääntää

Post revision 2.8e - 18/06/2019


First, consider searching your error message in this thread: List of PunkBuster errors.
Then, try to manually update PunkBuster (as it does not officially support BF2 anymore), with the following method. It is the most complete and successful way I could find, but more techniques are listed at the bottom, under "Other ways to update it".

Step 1) Reinstall the PunkBuster Services

If you are being kicked with an error message regarding PnkBstrA.exe or PnkBstrB.exe, "This PB Server Requires (A1393 C2.306) - Error loading pbag", "No Packet Flow", and (sometimes manually updating helps with the Losing Key Packets 9005 / Service Communication Failure as well), start from here:
  1. Download the pbsvc.exe tool, directly from www.evenbalance.com (backup here);
  2. Run it as an Administrator, choose "Un-Install/Remove PunkBuster Service" and click "Next".
    If you don't see the "Run as administrator" option, you can find other ways on this page;

    F.A.Q.: Why do I have to run it as an administrator?[toggle=Show/Hide Spoiler]Quoted from www.evenbalance.com/faq.php, which unfortunately has been revamped so the following paragraph is no longer there. You can find a copy of the old FAQ page here. [dead link unhappy]
    "Since PBSVC is installing a system-wide service, it needs to be running with Administrator rights during the installation process. That means you have to log in as an Administrator user before running PBSVC. Under Windows Vista, you also have to tell Windows that you want to run this specific program as an Administrator.

    To do that, right-click your mouse on the PBSVC icon and choose Properties from the pop-up menu. Then click the Compatibility tab and check the box that says "Run this program as an administrator" then click the OK button".[/toggle]
  3. Once it has finished, restart your Computer in order to free its memory from any trace of PunkBuster.
    It's merely a rule of thumb, but don't be lazy and just do it; wink
  4. Locate the pbsvc.exe file in your Downloads and run it again, always as an Administrator;
  5. This time select "Install/Re-Install PunkBuster Service" and click "Next";
  6. After the installation and the tests are done, you should see a "Tests completed successfully without error" message pop up, and the tests' output should look more or less like the following:[toggle=Code]
    Starting PunkBuster Service Tests (v0.994) (%date% %time%)             
    Checking OS                                       
      %your operating system details here%                      
    Checking PnkBstrA service status  RUNNING                      
    Checking PnkBstrA Version          OK (1036)                                 
    Extracting "PnkBstrB.exe" to:                               
      "C:\Users\%username%\AppData\Roaming\PnkBstrB.exe"                      
                             OK                         
    Checking firewall settings               OFF                               
    Is PnkBstrA explicitly allowed?                           
    C:\Windows\system32\PnkBstrA.exe    NO                        
    Is PnkBstrB explicitly allowed?                           
    C:\Windows\system32\PnkBstrB.exe    NO                        
    Checking if PnkBstrB is running      NOT RUNNING                     
    Getting port for PnkBstrA           OK (44301)                             
    Opening socket for packet send        OK                        
    Sending version packet to PnkBstrA SENT                         
    Receiving version from PnkBstrA             OK                               
    Received 6 bytes from 127.0.0.1:44301                                   
     Response = 8299 (ms) Version = v1036                       
    Getting PnkBstrB install instance         NOT FOUND                                
    Sending start packet to PnkBstrA    SENT                                   
    Waiting for packet from PnkBstrA    OK                        
    Received 3 bytes from 127.0.0.1:44301                             
     Response = 16068 (ms) PnkBstrB started.                        
     Load SUCCESSFUL.                                   
    Watching for PnkBstrB instance change (0) CHANGED (1)                         
    Getting port for PnkBstrB           OK (45301)                             
    Sending version packet to PnkBstrB              SENT                           
    Receiving version from PnkBstrB             OK                               
    Received 5 bytes from 127.0.0.1:45301                             
     Response = 0 (ms) Version = 2333                               
    Checking PnkBstrK driver status            NOT FOUND                                 
    Manually stopping PnkBstrB               STOPPED                       
    Removing test PnkBstrB file                     OK                         
                                                          
    ----------------------------------                            
     Tests finished.                                            
    [/toggle]
  7. After you are done with the next set of instructions too - Step 2) Manually update the PunkBuster Client files - don't forget to read the "FIREWALL & ANTIVIRUS" paragraph to make sure that both your Firewall and your AntiVirus have rules / exceptions that allow all the PunkBuster's executable files that I've mentioned;
  8. It is very important that you make sure to reboot your PC now, after the PB services have been reinstalled! No seriously, you must do it! amused
  9. Finally, as an additional confirmation - after you have rebooted your Computer - that the PunkBuster services have been installed correctly and are going to initialize properly when you boot the PC, refer to this article on the help.ea.com website, in particular steps 4 and 5 of the "Update PunkBuster" section.
    [toggle=Copied here in case the web page is removed]4. If you still get kicks, such as "Can’t Initialize PnkBstrB.exe”, go to the Start Menu. In the Run/Search bar, type services.msc and press Enter.
    5. Scroll through the list and find PnkBstrA and PnkBstrB. If they are not running (check the Status column), right click each and select Start.[/toggle]

Step 2) Manually update the PunkBuster Client files

Then update the PunkBuster Client files to the latest version that was released for Battlefield 2, which would be Client Version v2.306 | A1393. If you want to check what's your current version (out of curiosity), ...[toggle=read more]start by reading this post (backup link). After reading it you'll understand that you need to find these files in the ..\pb\htm folder: wa001393.htm, wc002306.htm (notice how their number matches the latest one mentioned above).

Then, you actually have to check the ..\pb\dll folder as well, and inside that folder you should have these files: wa001393.dll, wc002306.dll. Some people have the correct .htm files, but they actually lack the .dll files in the dll folder, (and this can generate errors).[/toggle]
Complete the manual update process by following these last steps:
  1. Delete all the files and folders in the ..\Battlefield 2\pb\ folder, usually found under C:\Program Files (x86)\EA GAMES\.. (for 64 bit Systems) or C:\Program Files\EA GAMES\.. (for 32 bit Systems);
  2. Download a copy of this folder's contents from one of the following links:
    fizweb.elte.hu (backup) - www.pbbans.com (backup) - www.bf2hub.com (backup);
  3. Copy the .zip archive and paste it in the - empty - ..\Battlefield 2\pb\ folder, then extract its contents there, in the same folder. You can delete the .zip archive afterwards, or move it somewhere else;
  4. Read the "FIREWALL & ANTIVIRUS" paragraph below this list.
    Double-checking that your Firewall is set up correctly is a good idea as well;
  5. Eventually, restart your PC again, just to be extra cautious. smile

FIREWALL & ANTIVIRUS

In the end you should read this paragraph about your Firewall / AntiVirus and the quote that has been added at the bottom of this section as well (especially if you are experiencing the "Losing Key Packets 9005" issue).

Check that your Firewall has been configured correctly to have rules for "at least PnkBstrA.exe, PnkBstrB.exe, PnkBstrK.sys" (quoted from the "Losing Key Packets" paragraph), and that your AntiVirus has the necessary exceptions in case it is prone to block executable files from running / scan them in real time. All the folders - that I am aware of - where these files can be found, are written in the last paragraph of this section.

In order to add exceptions to your AntiVirus, you should read its manual online or search for instructions on google. About the Windows Firewall, you can find how to add programs to it in this guide: in particular you will have to click "Browse" in step 5, navigate to the folders written below and click on PnkBstrA.exe, then check both the "Private" and "Public" checkboxes. Then click "Browse" again and select PnkBstrB.exe this time, after browsing to the same folder, and check both the aforementioned checkboxes.

Repeat this procedure for the second folder as well, where you will find PnkBstrK.sys: add that file to your allowed programs as well. Finally remember to apply the changes by clicking the "Ok" button in the main Allowed Programs panel!

1° Folder: C:\Windows\SysWOW64\ (for 64 bit Systems) or C:\Windows\System32\ (for 32 bit Systems);
2° Folder: C:\Users\%username%\AppData\Local\PunkBuster\BF2\pb\
(paste this second string as is it is, in the address bar of an Explorer window, because you might not be able to browse to this folder since it is hidden by default. You will have to enable "show hidden files and folders" in your Folder Options to be able to browse to that path, like a normal directory).

About that "Losing Key Packets 9005" error, you should also make sure to read the following spoiler:[toggle=Quote]ragnarok013 wrote:

Occasionally, you may receive various errors regarding PunkBuster Services not running. Some other software programs such as virus scanners, firewalls and Internet security software packages are suspicious of any new services and kernel drivers when they are first released. Some of these will block PunkBuster components thereby causing the "Losing Key Packets" kicking.

Until these various packages are updated to correctly identify PnkBstrA.exe, PnkBstrB.exe, and PnkBstrK.sys as components of the PunkBuster Anti-Cheat System, players who experience PunkBuster kicks due to these conflicts need to either manually adjust the settings of the other software running on their system or disable the other software while playing on PunkBuster enabled servers.

Make sure PnkBstr.exe is on your exceptions list of your firewall/anti-virus software to ensure it can communicate properly with the PunkBuster servers. You can check your anti-virus/firewall software manual for instructions on adding exceptions.

Make sure all PunkBuster Services are installed and running by downloading PBSVC.EXE from Even Balance. [...] This will ensure PnkBstrA.exe and PnkBstrB.exe are installed and running properly.[/toggle]


Other ways to update it:

If you still have issues with PunkBuster, and the main way listed above does not work for you,
try to read these useful threads or posts.

Each one of them has been personally hand-picked by me because it discloses different approaches (or points to alternative file downloads) in order to perform the manual update process; so you will surely find a way of doing it that works for you.
  1. Editing the pbgame.htm file (read last post), fix suggested by LOCHATRONAS and Hayato.
  2. The same as above, but scripted, (you might have to use the "PBsetup" file present in the Downloads page - dead link, backup here!);
  3. Head to the .\Redist\PunkBuster\ folder and run pbsetup.exe (download here).[toggle=More info]If you have installed the Full Free2Play release, head to the following folder: C:\Program Files (x86)\EA GAMES\Battlefield 2\Redist\PunkBuster\ (for 64 bit Systems), or C:\Program Files\EA GAMES\Battlefield 2\Redist\PunkBuster\ (for 32 bit Systems).

    From here you can run pbsetup.exe, click "Add Games" > select "Battlefield 2" and enter the folder where your BF2.exe file is, not the \pb\ folder. The default game folder is C:\Program Files (x86)\EA GAMES\Battlefield 2\ (for 64 bit Systems) or C:\Program Files\EA GAMES\Battlefield 2\ (for 32 bit Systems). Finally update the PunkBuster Client Files to the latest available files for that game.

    If you don't see "Battlefield 2" in the dropdown list of games, it is normal: Battlefield 2 is in fact not officially supported anymore by EvenBalance.
    In reality though, they still have the necessary files online; thus, in order to make "Battlefield 2" appear in the list again, (as well as "Battlefield 2142"), you have to make sure that the pbgame.htm file (of the same .\Redist\PunkBuster folder) is the exact same copy of this one (backup).

    If you don't know how to verify this, the fastest way is simply edit your pbgame.htm file with notepad, in order to match the necessary lines. Open it in notepad/notepad++/jEdit, then select all the text from the raw code of github (with Ctrl + A), copy&paste it into the file and finally save it.

    The next time you will run pbsetup.exe it will display "Battlefield 2" as well as "Battlefield 2142" in the "Add Games" dropdown list, and you will be able to add them and to update them; (remember to input the path game folder, not to the \pb\ folder.

    IMPORTANT: every time you run pbsetup.exe, it will automatically download the most updated version of the pbgame.htm file. This means that you will not able to see the legacy games like Battlefield 2 after you update the PunkBuster Client files with pbsetup.exe: you will have to perform the above tasks again, or simply download and keep the .zip archive linked in the bullet point below this one.[/toggle]
  4. Download pbsetup+legacy.rar 3.35 MB (backup here), unpack it somewhere and run pbsetup.exe. Read the "More info" spoiler above for additional informations, as well as the "Readme.txt" file inside the archive. Do not trash the .zip archive because you may need the original zipped files in the future (because the extracted files will be changed after you use them: read the bottom of the "More info" part above to understand why);
  5. Download yet another copy of the "pb" folder and then use DIESoft to repair yours.
    (outdated method, software no longer supported by its author Air-Zen)
  6. Use the Revive Launcher's "Advanced Mode" to update some of the PunkBuster Client files. I wrote "some" because I actually tested it and it just updated some .dll files and only the wa001393.htm and wc002306.htm files. (Revive BF2 Launcher Phoenix V4 has been replaced long ago, but you can still get its files here if you really want to. *it's not necessary for this tutorial)
Other useful web pages, with additional informations or file downloads:
  1. help.ea.com/en/help/ba...nkbuster-technical-issues - contains informations on how to fix the "Can’t Initialize PnkBstrB.exe" error, by starting the PnkBstrA and PnkBstrB services in the Windows Services console (services.msc);
  2. www.evenbalance.com/faq.php - contains several Frequently Asked Questions about the PunkBuster Services and the PunkBuster software as well. (Although this FAQ webpage has been revamped and it's not the same as it used to be. The old version can be found over here - dead link);
  3. community.pbbans.com/f...-legacy-punkbuster-files/ - contains lots of legacy files to download, for Battlefield 2 and Battlefield 2142 and for Linux and Windows as well;
  4. fizweb.elte.hu/battlef...tlefield-2/BF2-PunkBuster - is the copy (probably done by Livius) of the old Battlefield 2 support webpage on the www.evenbalance.com website, which unfortunately has been deleted. The PunkBuster files are still on their website though, here.



Did you find this post helpful? Let me know by thanking this post: click >> Thank You <<



[url=https://shark.lost-soldiers.org#multimedia][bimg]https://i.imgur.com/iwPUBn7.png[/bimg][/url]   [size=4]All my contacts, social media and more!    [/size][size=5][url=https://shark.lost-soldiers.org]shark.lost-soldiers.org[/url][/size]

 
15.08.2016, 01:06 - StarLine - Administrator - 2085 Posts
Thank-you for this guide and your hard work to help this community! smiling

[ALIGN=center][nor]https://www.lost-soldiers.org/images/lsts.gif[/nor][/ALIGN]

 
15.08.2016, 01:48 - S_h_a_r_k_93 - Administrator - 5388 Posts
5tarLine wrote:

Thank-you for this guide and your hard work to help this community! smiling

Likewise, for picking me up at the start. smile

[url=https://shark.lost-soldiers.org#multimedia][bimg]https://i.imgur.com/iwPUBn7.png[/bimg][/url]   [size=4]All my contacts, social media and more!    [/size][size=5][url=https://shark.lost-soldiers.org]shark.lost-soldiers.org[/url][/size]

 
17.11.2017, 22:24 - S_h_a_r_k_93 - Administrator - 5388 Posts
Thread cleaned up of dead links and outdated parts; the main procedure stays the same though. In case there are any unclear parts, or you face any difficulties, just add a reply!! smiling

Staff Officer Italy S_h_a_r_k_93 

[url=https://shark.lost-soldiers.org#multimedia][bimg]https://i.imgur.com/iwPUBn7.png[/bimg][/url]   [size=4]All my contacts, social media and more!    [/size][size=5][url=https://shark.lost-soldiers.org]shark.lost-soldiers.org[/url][/size]