Invalid GameSpy URL

Help and support regarding PR:BF2 installation and in-game issues
Locked
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7636
Joined: 2010-08-06 18:06

Invalid GameSpy URL

Post by Mats391 »

Edit:

As of 1.5.3.3 this should never happen anymore. Let us know if it does.






If you are getting this error
Image

This means that PR/BF2 finds an entry in your hosts file it does not like. For PR 1.5.3+ this would be any line that does not start with a '#' and contains "localhost". From 1.5.3.1+ only the first line should matter. This check was done by DICE, not us. We just made hack to only check first line ;)
You can find the hosts file at

Code: Select all

C:\Windows\System32\drivers\etc\hosts
You can open it using Notepad. To edit it you will need to run Notepad as admin. You can find the default content of the hosts file here: https://support.microsoft.com/en-us/hel ... he-default
Last edited by AlonTavor on 2018-03-05 10:26, edited 1 time in total.
Image

Mineral: TIL that Wire-guided missiles actually use wire
acekiss
Posts: 4
Joined: 2013-05-14 18:22

Re: Invalid GameSpy URL

Post by acekiss »

thank you so much. I was already going crazy ...
solidfire93
Posts: 491
Joined: 2015-06-26 14:21

Re: Invalid GameSpy URL

Post by solidfire93 »

this worked for me, thnx for the help Mats.
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Invalid GameSpy URL

Post by AlonTavor »

To make it clear:
All you need to do is insert a new empty line as the first line.

(Or stop messing with system files, you don't need a localhost entry in windows 7+)
SixBreaker
Posts: 11
Joined: 2017-08-26 03:11

Re: Invalid GameSpy URL

Post by SixBreaker »

Got mine to work.

WINDOWS 7

Basically go to:

C:\Windows\System32\drivers\etc

Hosts will be hidden; you have to go to Organize Folder, Folder and Search Options, View, and make sure that "hide protected o/s files" disabled. You'll see the host file. Right click it, and under security, allow "full control"

You will see some random number 127.0.0.1 or something, simply add # in front.
UncleSmek
Posts: 1027
Joined: 2008-09-02 05:07

Re: Invalid GameSpy URL

Post by UncleSmek »

I am currently having this problem since I switched to windowed mode. I have added the empty space and now I do not get the error message; but I do stilll crash.

Do you know what might be the problem?
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Invalid GameSpy URL

Post by AlonTavor »

UncleSmek wrote:I am currently having this problem since I switched to windowed mode. I have added the empty space and now I do not get the error message; but I do stilll crash.

Do you know what might be the problem?
If you do not get this error message then it's not the problem. It can't happen anymore. Make a new thread and show exactly where you crash.
00SoldierofFortune00
Posts: 2944
Joined: 2006-02-28 01:08

Re: Invalid GameSpy URL

Post by 00SoldierofFortune00 »

Just got this error. It was saying something about "not optimal resolution" until I tried it in windowed view and got this. Any help?

Image
You do not have the required permissions to view the files attached to this post.
"Push the Envelope, Watch It Bend"

Tool ~ Lateralus
AlonTavor
PR:BF2 Developer
Posts: 2991
Joined: 2009-08-10 18:58

Re: Invalid GameSpy URL

Post by AlonTavor »

00SoldierofFortune00 wrote:Just got this error. It was saying something about "not optimal resolution" until I tried it in windowed view and got this. Any help?

Image
This isn't related. Make a new thread.
Locked

Return to “PR:BF2 Support”