PR -> BF2 Steam

Help and support regarding PR:BF2 installation and in-game issues
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

PR -> BF2 Steam

Post by requiem »

So, I long ago lost my original copy of BF2 (stolen, great, thnx) and since purchased it off steam. Downloaded PR off Desura.

My issue:

- I start PR.exe, splash screen comes for a minute, disappears.

- PR Error is C:\Users\User\Documents/Battlefield 2/Profiles/Default is invalid.

That path doesn't exist, BF has settled itself here:

C:\Users\User\Documents\BFBC2 (with no profiles folder within).

I've tried the following:

- Start BF2, login, etc. quit and start PR, nothing.
- Disable Steam overlay, nothing.
- Added PR.exe as non-steam game to library, nothing.
- Turned off Kaspersky, nothing.
- Ran as Administrator, nothing.

Any ideas from our bright community?

Update: Now have profile, but new error:

Code: Select all

Sunday, October 09, 2011 9:23:55 PM
---------------------------------
System.Exception: An error has occurred while trying to launch BF2.
 Details are as follows.

System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at c.a(String A_0)
   at c.a(String A_0)
   at k.a(String[] A_0)


Cheers :)
Last edited by requiem on 2011-10-09 19:25, edited 3 times in total.
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Thanks, tried running vanilla already, which I assume was supposed to put something within that profile path, i.e. a profile file.
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Yep, I do indeed, but I'm assuming because the steam naming is drastically different, it might not be picking up on it...
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Now have profile, but new error:

Code: Select all

Sunday, October 09, 2011 9:23:55 PM
---------------------------------
System.Exception: An error has occurred while trying to launch BF2.
 Details are as follows.

System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   at c.a(String A_0)
   at c.a(String A_0)
   at k.a(String[] A_0)
Also tried XP SP2 compatibility mode, no dice.
Wicca
Posts: 7336
Joined: 2008-01-05 14:53

Re: PR -> BF2 Steam

Post by Wicca »

Right click the shortcut and run it with compatibility mode of winxp.
Xact Wicca is The Joker. That is all.
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Heh, we both wrote the same thing :) See my update 1 post up ;)
Wicca
Posts: 7336
Joined: 2008-01-05 14:53

Re: PR -> BF2 Steam

Post by Wicca »

add me on xfire :

wiccasick

we gonna laugh till its sunset.
Xact Wicca is The Joker. That is all.
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Wicca wrote:add me on xfire :

wiccasick

we gonna laugh till its sunset.
Think you missed the part of it not working :( otherwise yes, lets play!
Wicca
Posts: 7336
Joined: 2008-01-05 14:53

Re: PR -> BF2 Steam

Post by Wicca »

Add me on xfire, ill help you.
Xact Wicca is The Joker. That is all.
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Wicca wrote:Add me on xfire, ill help you.
Dude, I'm 30+, xfire died with my America's Army pro career in '04 ;)
TheComedian
Posts: 677
Joined: 2011-01-08 13:46

Re: PR -> BF2 Steam

Post by TheComedian »

Never ever use compatibility mode with BF2. It only causes memory leaks and doesn't fix anything.

Try running BF2 directly from the bf2.exe

There's also a key in the registry that goes to the installation folder so you might want to check up on that.

Open start menu and then run>regedit>HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2 to find the InstallDir reg file.

Right click+modify and copy-paste the location of the bf2.exe here to see if it helps.

Only change registry as a last resort and make sure you backup by doing File>Export.
[img]http://www.realitymod.com/forum/uploads/signatures/sigpic52084_1.gif[/img]
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Thanks buddy... don't have that reg. key, wondering if steam sets it up differently.

BF2 from bf2bc.exe has worked everytime without any issues..
TheComedian
Posts: 677
Joined: 2011-01-08 13:46

Re: PR -> BF2 Steam

Post by TheComedian »

requiem wrote:...wondering if steam sets it up differently.
It probably does. I don't have a clue how steam works you should wait until a tech mod comes along.
[img]http://www.realitymod.com/forum/uploads/signatures/sigpic52084_1.gif[/img]
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: PR -> BF2 Steam

Post by Twisted Helix »

Hi Requiem ! The first error as you found out is because you have to run BF2 first and log into your account so that it will create a profile directory and profile.

This worries me ...
C:\Users\User\Documents\BFBC2
It seems that because you have Bad Company installed that BF2 is trying to put things in there maybe. Can you give me the installation path of BF2 (it should be in your steam directory), and can you look in your registry for the BF2 entries (just do a search for BF2), and tell me where you find them ?

Also make sure that there are registry entries for PR in the Blacksand Studios folder (this should be created upon installing PR).

Finally make sure that you are running PR as admin, so that you overcome the UAC issues.

The basic problem with this error ....
Sunday, October 09, 2011 9:23:55 PM
---------------------------------
System.Exception: An error has occurred while trying to launch BF2.
Details are as follows.

System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
is that the pr.exe cannot find BF2 where it is expecting to find it. I programmed in a number of ways of looking for it, if one fails it trys the next, but somehow you seem to have circumvented them all !! :D

So need to know where your BF2 is installed, where you PR is installed, and what the registry entries have to say about all of that. And if there is anything odd about your installation like you have it on a networked drive or something ?


The object of war is not to die for your country but to make the other ******* die for his.
--George Patton--
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Thanks for the reply!

Couldn't find any reg entries. EA has one for my e-mail address (profile) and none in the Valve area (this is under current_user -> software)

Application:

Code: Select all

C:\Program Files (x86)\Steam\steamapps\common\battlefield bad company 2\BFBC2Game.exe
Mod:

Code: Select all

C:\Program Files (x86)\Steam\steamapps\common\battlefield bad company 2\mods\pr\pr.exe
Profile (which now seems resolved):

Code: Select all

C:\Users\USERNAME\Documents\Battlefield 2\Profiles\Default
Nothing special going on with this rig, it's my casual fun one so it's quite "normally" setup... My guess is that Steam may have just changed the file structure with the latest build (for fresh setups)?
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: PR -> BF2 Steam

Post by Twisted Helix »

C:\Program Files (x86)\Steam\steamapps\common\battlefield bad company 2\BFBC2Game.exe
This is the problem. Its not the vanilla BF2 exe. This must be new ... didn't realize that this was possible (running PR from Bad Company).

Hmmm. I can probably program up a new version to support this for next release. However for now you might be able to "cludge it" by renaming the exe to BF2.exe.

My PC had a sudden death recently, and I haven't got it fully up and running yet and not installed visual studio (as I am going to have to reinstall windows again), so I can't actually check if this will work ... but from memory I think it will.


The object of war is not to die for your country but to make the other ******* die for his.
--George Patton--
requiem
Retired PR Developer
Posts: 3651
Joined: 2004-07-22 16:00

Re: PR -> BF2 Steam

Post by requiem »

Thanks for that buddy, I should be ok on the directory too?
Post Reply

Return to “PR:BF2 Support”