Win 7 BF2 "lost connection to server" error

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

Hello guys,

I recently installed BF2 on my computer again on Windows 7. I get into a server and get randomly kicked as quick as 1 minute or I can play for almost a whole round and then I get kicked with the only message I get "connection to server lost".

I've done everything and anything I have read of previous threads posted in here. I'm running PB as administrator, I've given pbA and pbB high priority, checked services, downloaded pbsvc, tested PB, deleted and reinstalled PB. Opened ports on the router for the servers I play in as well as for PB.

I don't know what else to do? Any other solutions you guys could think of would be greatly appreciated.

I need my fix and I can't get it because of these crazy random kicks.

Thank you

Xav
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Re: Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

Nothing guys?? Any help? Anything I can try that I don't know about??
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Win 7 BF2 "lost connection to server" error

Post by LITOralis.nMd »

Three options, non of which are guaranteed to work, and the first two can make the situation worse, depending on your ISP.

1. In your router you can turn off Quality of Service, usually shortened to "QoS" in the Router menu.
2. In PRMumble you can turn off Quality of Service, in the advanced options.

3. You can try to alter your TCP packet flow using this program. Leatrix Latency Fix : WoW Tools & Utilities : World of Warcraft AddOns
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Re: Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

THanks so much Litoralis.

I've opened all the ports for BF2 that I know of as well as for punkbuster. I don't know what else it could be. I run a ping and tracert and I have 0 packet loss. Anyway, I'll give your suggestions a try.

I've read that some people are getting this problem because of a recent PB update that is buggy. Is there any truth to that? Will I ever be able to play again? :(
SnipeHunt
Posts: 801
Joined: 2009-02-02 15:35

Re: Win 7 BF2 "lost connection to server" error

Post by SnipeHunt »

If it is punkbuster related here is how to create a logfile to review(or send to EvenBalance for review)

Join a PB server, and drop the console with ~, then type

pb_logtofile 1

and then

pb_writecfg

Wait until you get kicked. Now check your ..\pb folder for a file called pbcl.log If you have hidden your file extensions, please make sure you open pbcl.log and not pbcllog.cfg! or pbcl.db Paste the line from there into a new note.
Please note: Users of Windows Vista and above will find that file under "C:\Users\[YourUserName]\AppData\Local\PunkBuster\[game]\pb". To find that folder, enter "%USERPROFILE%\AppData\Local\PunkBuster\" to the navigation bar in your Windows Explorer, as some folders in this path might be hidden folders. Unless you activated the option to see hidden folders, you will need to enter the correct path directly into the navigation bar.

In case the kick occurs too fast to type the commands, go to your PB folder and create a plain text file "pbcl.cfg" in it (use a text editor like "Notepad", make sure it has no additional '.txt' extension). Put the text "pb_logtofile 1" as a single line to it. Then save the file and join a PB enabled server. After getting kicked, you should have a file "pbcl.log" in the PB folder.
Best line yet...
Me: "Hey APC, Can I get a ride to squad 6?"
Unknown: "This APC ain't no Taxi!"
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Re: Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

Here's my log:


[09.19.2012 12:39:40] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.19.2012 16:20:31] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.19.2012 18:01:20] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.19.2012 18:03:12] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.19.2012 18:36:49] Service Communication Failure: PnkBstrB.exe handshaking failed
[09.19.2012 19:36:17] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.21.2012 18:50:40] Service Communication Failure: PnkBstrB.exe heartbeats stopped
[09.21.2012 19:14:28] pb_LogToFile = 1 (0=No, 1=Yes)
[09.21.2012 19:14:40] PunkBuster Client (v2.306 | A1393) Enabled
[09.21.2012 19:16:16] pb_LogToFile = 1 (0=No, 1=Yes)
[09.21.2012 19:16:22] Config File written to C:\Users\Xavier\AppData\Local\PunkBuster\BF2\pb\pbcl.cfg
[09.21.2012 19:16:33] pb_Sleep = 500 (20 to 500)
[09.21.2012 19:19:30] PunkBuster Client (v2.306 | A1393) Enabled
[09.21.2012 19:20:18] Receiving from PB Server (w v1.800 | A1393 C2.306)
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Re: Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

Still a no go for me guys. I still get constantly booted. One interesting thing is that during the wee hours of the morning I don't get the disconnects as much. I can play maybe 3-4 rounds at 3 a.m. before I get a disconnect but when I'm playing in the afternoon I get constantly booted.
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Win 7 BF2 "lost connection to server" error

Post by LITOralis.nMd »

Right, we need to make sure that PnkBstrB.exe maintains a connection to the punkbuster servers at all times. To do that we are going to give PnkBstrB.exe a High Priority through a Windows Task Manager replacement program called Process Lasso.
'[R-COM wrote:LITOralis.nMd;1817436']Testing this out, need more people to help test this:

1. Download and install the correct version (32bit or 64bit) of ProcessLasso from here:
Process Lasso - Automate and optimize priorities, CPU affinities, power profiles, and much more!

2. Install ProcessLasso with start at each boot, for both the UI and the core process. For all users or just your main PR windows user login, your choice.

Start ProcessLasso.
Start PR.
Join a multiplayer server that uses punkbuster, join a squad.
alt-tab out,
Maximize ProcessLasso

You need to go through each process , and add these:
bf2.exe
pr.exe
pnkbstra.exe
pnkbstrb.exe

You want to right click on these processes and select these:
DefaultPriorities = High
DefaultIOPriorities = High
KeepRunningProcesses
AutomaticGamingMode

Here is the important bits from my test .ini file for tonight:

[PHP][ProcessDefaults]
DefaultPriorities=pnkbstra.exe,high,pnkbstrb.exe,high,pr.exe,high,bf2.exe,high
DefaultIOPriorities=pnkbstra.exe,3,pnkbstrb.exe,3,pr.exe,3,bf2.exe,3
DisableThreadPriorityBoost=
DefaultAffinities=
KeepRunningProcesses=c:\windows\syswow64\pnkbstrb.exe;c:\windows\syswow64\pnkbstrb.exe;0,c:\windows\syswow64\pnkbstra.exe;c:\windows\syswow64\pnkbstra.exe;0
MatchWildcardsToPathnames=False
[AdvancedRules]
DivideCPUPercentThresholdsBySystemCPUCount=False
OverloadProcessActions=
[GamingMode]
GamingModeEnabled=False
[Classifications]
AutomaticGamingModeProcessPaths=c:\windows\syswow64\pnkbstrb.exe,c:\windows\syswow64\pnkbstra.exe,v:\program files (x86)\ea games\battlefield 2\mods\pr\pr.exe,v:\program files (x86)\ea games\battlefield 2\bf2.exe
[PowerManagement]
Display=
PC=
AllowDisplaysPreventPC=
[ProcessDefaults]
DefaultPowerSchemes=pnkbstra.exe;gaming mode power plan,pnkbstrb.exe;gaming mode power plan,pr.exe;gaming mode power plan,bf2.exe;gaming mode power plan[/PHP]
Anderson29
Posts: 891
Joined: 2005-12-19 04:44

Re: Win 7 BF2 "lost connection to server" error

Post by Anderson29 »

i was disconnecting alot today too and i just checked and there is an update for punkbuster....so run that pbsetup to update and maybe that will fix all the shit the last pb update fucked up. i am about to try it out
in-game name : Anderson2981
steam : Anderson2981
Xavsnipe
Posts: 6
Joined: 2012-09-16 01:18

Re: Win 7 BF2 "lost connection to server" error

Post by Xavsnipe »

LITORALIS I downloaded the program and went through your instructions. I still get kicked. I'm going to try and update pb like Anderson suggested. Thank you guys.
Bluedrake42
Posts: 1933
Joined: 2009-07-23 17:52

Re: Win 7 BF2 "lost connection to server" error

Post by Bluedrake42 »

any updates on this? I'm having the same problem
Post Reply

Return to “PR:BF2 Support”