[Guide] Getting Xfire to work with PR 1.0

General discussion of the Project Reality: BF2 modification.
Post Reply
Killer501
Posts: 1
Joined: 2013-08-07 22:54

[Guide] Getting Xfire to work with PR 1.0

Post by Killer501 »

Hi guys, this is my first post on the forum, so please be nice :)

I did a search and couldn't find any instructions like this posted, so I'm posting how I managed to get Xfire1 to work with PR 1.0:

Note: I've only tested this using Xfire 1. This may work for Xfire 2, but I haven't tested that.

To get Xfire to detect PR, we need to modify the file xfire_games.ini, this file can be found in the Program Files\Xfire folder (for a 32 bit machine. On a 64 bit one, it's something like Program Files (x86)\Xfire).

I suggest you make a backup of the file in case something goes wrong!

Once you have found the file and opened it, you will see something similar to this at the top:


[Version]
Version=(version number)

[-1]
LongName=Unknown Game
ShortName=unknown
DetectServer=TRUE

InGameInfoWindow.X=0
InGameInfoWindow.Y=0
InGameInfoWindow.AlignX=RIGHT
InGameInfoWindow.AlignY=BOTTOM
InGameInfoWindow.Hide=DOWN
InGameInfoWindow.DisplayTime=3000
InGameInfoWindow.HideTime=200
InGameInfoWindow.Alpha=235
InGameInfoWindow.Width=33
InGameInfoWindow.Height=10


We need to search the file for BF2's entry. You can search for just Battlefield 2, or assuming the ID numbers are the same, search for [4578_2]. This is the entry for BF2.

Note: By making this change, Xfire will no longer detect vanilla BF2. You can always revert your change if you want to play BF2 (but why would you :wink :) .

You should be seeing something similar to this:


[4578_2]
LongName=Battlefield 2
ShortName=bf2
LauncherDirKey=HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA GAMES\Battlefield 2\InstallDir
LauncherExe=BF2.exe


The line we need to change here is LauncherExe - simply change the line to read:

LauncherExe=PRBF2.exe

Save the file and close it, and you are done! You will need to restart Xfire or go into the Xfire options and choose the Games tab to force it to reload the xfire_games file.

If xfire release any game detection updates, you will have to do this again. It's a simple fix, fortunately!

Hope this helps anyone who has the problem!
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [Guide] Getting Xfire to work with PR 1.0

Post by AFsoccer »

Thanks for the short-term fix but also be advised that PR has submitted a ticket to x-fire's support team to officially add PR. It usually takes about 14 days.
xCryonic
Posts: 12
Joined: 2013-08-08 06:28

Re: [Guide] Getting Xfire to work with PR 1.0

Post by xCryonic »

There's no xfire_games.ini file in Xfire2 folder.

Tried to search all over the HDD but couldn't find one, maybe it's hidden. :roll:

EDIT: Did some deeper search, it is located at C:\ProgramData\Xfire


Yay, my 1st post!
Last edited by xCryonic on 2013-08-08 07:25, edited 3 times in total.
Reason: Grammar gone bad.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Guide] Getting Xfire to work with PR 1.0

Post by Rhino »

xCryonic wrote:There's no xfire_games.ini file in Xfire2 folder.

EDIT: Did some deeper search, it is located at C:\ProgramData\Xfire
Ye, think if your installed on Win7, possibly 8 and Vista it will be in here no matter if your running Xfire Classic or Xfire2 since I'm running Xfire Classic and it was in here too on Win7.
Image
Pathf1ndr
Posts: 1
Joined: 2013-08-08 23:11

Re: [Guide] Getting Xfire to work with PR 1.0

Post by Pathf1ndr »

I've already changed original BF2 record to support Forgotten Hope 2 mod, that's why I tried an another solution. I found this thread and made some changes to support the current version. It will make you see you're playing PR and activate Xfire-in-game or XIG.

Paste it at the end of xfire_games.ini file that was mentioned here earlier.
If you want to see your friends playing PR and vice versa, they must also paste this record into their xfire_games.ini.


[8200]
LongName=Project Reality
ShortName=pr
LauncherExe=PRLauncher.exe
DetectExe=PRBF2.exe
Launch=%UA_LAUNCHER_EXE_PATH%
_LAUNCHER_NETWORK_ARGS%
_LAUNCHER_EXTRA_ARGS%
InGameRenderer=D3D9
InGameFlags=DISABLE_RELEASE|BLOCK_ASYNC|USE_PRESENT|USE_SWAPCHAIN|ENABLE_MOUSE|USE_DINPUT_MOUSE
ExcludeIPPorts=29900,29901,29902,29903,29904
RunElevated=1


Thought I would share this and made an account here. So, hello community.
Post Reply

Return to “PR:BF2 General Discussion”