Page 1 of 2

PR -> BF2 Steam

Posted: 2011-10-09 17:57
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 :)

Re: PR -> BF2 Steam

Posted: 2011-10-09 18:41
by requiem
Thanks, tried running vanilla already, which I assume was supposed to put something within that profile path, i.e. a profile file.

Re: PR -> BF2 Steam

Posted: 2011-10-09 18:54
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...

Re: PR -> BF2 Steam

Posted: 2011-10-09 19:25
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.

Re: PR -> BF2 Steam

Posted: 2011-10-09 19:29
by Wicca
Right click the shortcut and run it with compatibility mode of winxp.

Re: PR -> BF2 Steam

Posted: 2011-10-09 19:30
by requiem
Heh, we both wrote the same thing :) See my update 1 post up ;)

Re: PR -> BF2 Steam

Posted: 2011-10-09 20:05
by Wicca
add me on xfire :

wiccasick

we gonna laugh till its sunset.

Re: PR -> BF2 Steam

Posted: 2011-10-09 20:10
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!

Re: PR -> BF2 Steam

Posted: 2011-10-09 20:11
by Wicca
Add me on xfire, ill help you.

Re: PR -> BF2 Steam

Posted: 2011-10-09 20:20
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 ;)

Re: PR -> BF2 Steam

Posted: 2011-10-09 21:40
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.

Re: PR -> BF2 Steam

Posted: 2011-10-09 21:43
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..

Re: PR -> BF2 Steam

Posted: 2011-10-09 21:56
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.

Re: PR -> BF2 Steam

Posted: 2011-10-10 11:40
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 ?

Re: PR -> BF2 Steam

Posted: 2011-10-10 12:05
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)?

Re: PR -> BF2 Steam

Posted: 2011-10-10 17:16
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.

Re: PR -> BF2 Steam

Posted: 2011-10-10 17:31
by requiem
Thanks for that buddy, I should be ok on the directory too?