Pr.exe problems

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
LechHools
Posts: 132
Joined: 2009-05-16 22:00

Pr.exe problems

Post by LechHools »

Hi all i had problem with pr.exe like i said before in my old post and now i know how to fix this so here it is.

1. Uinstall PR
2.Install PR 0.860 Core And Levels
3.When u installed it RESTART Your computer
4.You will have a shortcut on the desktop named like this "Project Reality 0860"
5.Press right mouse button on it and click properties and change
the first thing to this :

Code: Select all

"C:\GAMES\Battlefield 2\mods\pr\pr.exe" +modPath mods/pr +menu 1 +fullscreen 1 +widescreen +szx 1440 +szy 900
And Start In :

Code: Select all

"C:\GAMES\Battlefield 2"
Now IF u have problem the same problem with Combined Arms try this to ur shortcut

Code: Select all

"C:\Games\Battlefield 2\mods\pr_ca\pr.exe" +modPath mods/pr_ca +menu 1 +fullscreen 1 +szx 1440 +szy 900
Start In:

Code: Select all

"C:\Games\Battlefield 2"
6. Only what You have to do is change direcotry where Your BF2 and Your screen resolution (or delete it if u have small resolution that is in BF2 settings.

Worked for me :-D
PS: Now i can play YAY !!!! :)
Last edited by LechHools on 2009-08-23 18:46, edited 5 times in total.
Image
Image :mrgreen:
Zi8
Posts: 401
Joined: 2007-12-19 20:43

Re: Read This If You Have Pr.exe problems

Post by Zi8 »

Didn't help.

I downloaded the full install for PR last night since the patch didn't work and uninstalled all things related to the PR and Net Framework.

Installed Core, Levels, Net 3.5 -> Still error when trying to run the exe!!

What can be wrong with this? Is there some major bug in this which prevents people with certain OS / settings to run the exe or what?
Image
ShoX
Posts: 73
Joined: 2009-04-23 17:18

Re: Read This If You Have Pr.exe problems

Post by ShoX »

Well, after i killed my other problem with this, theres a new: I made everything like you said, but after i logged in theres the "You must use the pr.exe to start PR" error...

I got on my Project Reality 0860 icon:
"E:\EA GAMES\Battlefield 2\mods\pr\pr.exe" +modPath mods/pr +menu 1 +fullscreen 1 +szx 1280 +szy 1024
"e:\EA GAMES\Battlefield 2"
Dempsey
Posts: 118
Joined: 2008-01-25 23:28

Re: Read This If You Have Pr.exe problems

Post by Dempsey »

TFail. It says the Pr bit is invalid.......

Ok i've sorted it, thanks for the help, although i ahd to change a few things.
Last edited by Dempsey on 2009-06-21 17:16, edited 1 time in total.
Zi8
Posts: 401
Joined: 2007-12-19 20:43

Re: Read This If You Have Pr.exe problems

Post by Zi8 »

ShoX wrote:Well, after i killed my other problem with this, theres a new: I made everything like you said, but after i logged in theres the "You must use the pr.exe to start PR" error...

I got on my Project Reality 0860 icon:
Perhaps the problem is that you have small "e:" there? It should be capital E:\?

I'm still unable to play this because of the error in the exe, I hope the DEVs could check this problem and tell the solution... :-(
Image
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

Zi8 wrote: Installed Core, Levels, Net 3.5 -> Still error when trying to run the exe!!
Make sure your .NET is updated to 3.5 SP1.
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

Zi8 wrote:It is. I performed yet another re-install for everything without any visual problems and the error message (system.nullreferenceexception) keeps still coming when trying to run the pr.exe. It doesn't matter whether I run it from the mods/pr/ or from the desktop.

My os is XP with SP3 if it makes any difference. I don't know what to try anymore :-(
Can you turn windows reporting on and post the exact details of the error message ?

We had a similar problem like this in beta testing and it turned out it was because someone was using the EA downloader version of BF2. However I solved that little problem ... so I am curious as to what might be causing it for you ...

Give me the exact directory for your BF2 installation, the exact directory for your profiles, are you using the BF2 version from the CD or are you using a downloader version ? Have you ever installed the BF 1.5 beta patch ?

If we can't find a solution then someone might have to remote desktop into your system to see if we can figure out why.
bricenott wrote:- I have BF2 installed in a standalone primary partition F: could this cause any problem for this new PR instalation?
Yup it sure will. If installing it to the default directory is too much trouble, then check your shortcut and report its properties and target to me ?

Also if you are getting a .NET 2.0 runtime error ... it suggests you dont have .NET 3.5 installed ? (however it might be because its just a .NET 2.0 method that is causing the error)

<sigh> .NET is supposed to solve all these issues .... but I guess that is Microshaft for you.

I will try to see if I can work out why these issues are happening.
Last edited by Twisted Helix on 2009-06-22 12:08, edited 3 times in total.
Zi8
Posts: 401
Joined: 2007-12-19 20:43

Re: Read This If You Have Pr.exe problems

Post by Zi8 »

bricenott wrote:>>>Zi8 my problem is the same than yours, I was going to reload BF2 from scratch, but if you did it and it didn't work I'll wait for something else, also I did reinstall 1.4 patch, PR and .NET 3.5 and didn't work plus BF2 works perfectly... I'll give you my specs so we could compare:

- I also have XP SP3,
- MB Gigabyte X38T-DQ6
- E6850 Intel
- Nvidia 8800 GTS 512
- 4 Gb physical (XP says 2.5Gb)
- I have BF2 installed in a standalone primary partition F: could this cause any problem for this new PR instalation?

This is the error in the event viewer (is it the same as yours?)

.NET Runtime 2.0 Error (name in the window)
EventType clr20r3,
P1 pr.exe,
P2 0.0.0.0,
P3 4a066ac7,
P4 projectreality,
P5 1.0.3417.10467,
P6 4a066ac7,
P7 c4,
P8 a6f,
P9 system.nullreferenceexception,
P10 NIL.

Somebody knows what the P's mean ? :confused:
Yea I have exactly the same error in the Event Viewer and I also don't have the BF2 + PR installed on the default directory (c:\program files\etc).

I don't know if that can cause any problems, but I can't test that since I don't have enough space on my C:\ to try it out.

E6420, 2GB, P5k, x1950pro so our parts are not similar.

This is so annoying :cussing:

EDIT: Hold on Twisted Helix, gathering information!

--------------------------------------------------------------------------------

Ok, here's the picture from the Event Viewer and the error when trying to run the pr.exe:

http://www.aijaa.com/v.php?i=4397679.jpg (Ignore the Application hangs, they are BF2 Rcon crashing)

I also have .NET 2.0 SP2, 3.0 SP2 & 3.5 SP1 installed according to my Add/Remove Programs. However, I'm unable to uninstall 2.0. It just gives error message and tells that it cannot be done. Could this be the solution? But how can I remove it and install the complete 3.5 then?

File locations:

D:\Pelit\BF2\

C:\Documents and Settings\Tatu\My Documents\Battlefield 2\ For the profiles

I've installed BF2 from the retail CD and applied the patches for it. Never tried the 1.5 patch.

It's rather hard to try to install them to the default directiories since I don't have enough space on my C:\ so I'm hoping that the issue is with that .NET
Last edited by Zi8 on 2009-06-22 12:22, edited 4 times in total.
Image
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

Ok bear with me ... dont go installing uninstalling things yet ... this could be a simple problem.
Zi8 wrote: File locations:

D:\Pelit\BF2\

C:\Documents and Settings\Tatu\My Documents\Battlefield 2\ For the profiles

I've installed BF2 from the retail CD and applied the patches for it. Never tried the 1.5 patch.

It's rather hard to try to install them to the default directiories since I don't have enough space on my C:\ so I'm hoping that the issue is with that .NET
Right ... I think the problem might be the directories thing. Basically the problem of the null pointer is occuring because pr.exe tries to run bf2.exe ... but if it cant find it, then it returns a null pointer exception.

Now it looks for BF2 in one a few ways ... it looks for the install path in the registry first, and if it can't find it there it then tries to create the path by looking for the pr.exe and then looking 2 directories up from it.

So first thing ... go to START>>RUN

and type in "regedit" <enter>

Then in your registry go to HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2 ,

Or it might be something like that ....

Look for the key that says InstallDir ... and tell me what it says ?

This goes for you too bricenott, as I think your problem is the same. Its not actually a .NET error I dont think, its just a simple programming glitch (I tried to cover every eventuality of how people would have BF2 installed ... but foreign languages are one that didn't occur to me :p ). IF we can't fix it locally on your systems ... I will definitely fix it for the next patch , I would just whip you up a new exe right now that solved your particular problem but it would fail the md5 checks I think when you tried to join a server :(

(however I might have a cunning way to work around that ... but its a last resort ... might not work either ... and its a bit dodgy :D )
Last edited by Twisted Helix on 2009-06-22 13:03, edited 1 time in total.
bricenott
Posts: 11
Joined: 2009-06-20 16:59

Problem fixed !!!

Post by bricenott »

Guys, thanks for your all your answers but I coundn't wait any longer so I reinstalled everything in my F: partition and woala, it works... But of course you have to fix that little problem in the PR 0860 shortcut first and also update PB again (I'm doing it now) !!!

Zi8, by "everything" I mean, everything up to BF2, deleting even the EA directory (also I passed a registry tool cleaning program to fix any problem or garbage left there just in case)...

I'm going to play now !!!

WARDOG[Vnzla]
bricenott
Posts: 11
Joined: 2009-06-20 16:59

Re: Read This If You Have Pr.exe problems

Post by bricenott »

[R-DEV]Twisted Helix wrote:Ok bear with me ... dont go installing uninstalling things yet ... this could be a simple problem.



Right ... I think the problem might be the directories thing. Basically the problem of the null pointer is occuring because pr.exe tries to run bf2.exe ... but if it cant find it, then it returns a null pointer exception.

Now it looks for BF2 in one a few ways ... it looks for the install path in the registry first, and if it can't find it there it then tries to create the path by looking for the pr.exe and then looking 2 directories up from it.

So first thing ... go to START>>RUN

and type in "regedit" <enter>

Then in your registry go to HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2 ,

Or it might be something like that ....

Look for the key that says InstallDir ... and tell me what it says ?

This goes for you too bricenott, as I think your problem is the same. Its not actually a .NET error I dont think, its just a simple programming glitch (I tried to cover every eventuality of how people would have BF2 installed ... but foreign languages are one that didn't occur to me :p ). IF we can't fix it locally on your systems ... I will definitely fix it for the next patch , I would just whip you up a new exe right now that solved your particular problem but it would fail the md5 checks I think when you tried to join a server :(

(however I might have a cunning way to work around that ... but its a last resort ... might not work either ... and its a bit dodgy :D )
In my case language is not a problem 'cause I have everything in english... :mrgreen: But I also think the problem was not related to a .NET error but the directory thing in the registry, so zi8 has to keep looking there or reinstall again, like me !!! Thankz @ lot Twisted !!!
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

Nice one Bricenot ... thats pretty much how it should be. If you install everything from scratch ... and if you install it in a different drive or something, you make sure that you install it to that drive via the installer menu, then it should put the correct entry in your registry for you. If the correct entry is in the registry then there should be no problems.

As an extra piece of advice, try not to install it to a custom start menu location, but to the default one. Although I don't think it causes problems on XP , on Vista it seems to install the registry key to a weird place that pr.exe cant find.

And yes ... if there are any 'ghost' entries for BF2 in your registry, they will **** things up. So uninstall and then clean your registry of all references to BF2 is a good move. Look in HKEY_LOCAL_MACHINE\SOFTWARE\ , and also in HKEY_CURRENT_USER\Software, for EA GAMES/Battlefield 2 entries.
ShoX
Posts: 73
Joined: 2009-04-23 17:18

Re: Read This If You Have Pr.exe problems

Post by ShoX »

[R-DEV]Twisted Helix wrote:Hmm. What is your system ? Are you using the EA downloader or CD version of BF2 ? What is your directory path to game ? What is the directory path to your profiles directory ?

Try deleting your profiles and then recovering them (use vanilla BF2 to do this if you can't get PR started). Close everything down and rerun pr.exe.

Also try running pr.exe directly from the mods/pr folder without a shortcut and see what happens ?
System:
XP SP3
.NET 3.5 SP1
Core2Duo E6400
ATi X1950XT
2 GB RAM

CD Version

Directory Path:
E:\EA GAMES\Battlefield 2\mods\pr

Profiles:
Uhm... i don´t really know... theres nothing really in the folder it should be (My Documents) i also got another profile folder at a different place with 001, 002, 003 in it (is this correct)?.. so anyway, i deleted and then recovered them, nothing changed..

I often tried running pr.exe directly from the mods/pr folder, theres no difference to the shortcut.

I also found another "problem", i runned vanilla BF2 for testing and saw that it´s just on 1.1... but i patched it to 1.41. Don´t know where it´s exactly patching...
Because it´s possible that there are some other BF2-related folders which are outdated and so on...
Zi8
Posts: 401
Joined: 2007-12-19 20:43

Re: Read This If You Have Pr.exe problems

Post by Zi8 »

Brilliant!
So first thing ... go to START>>RUN

and type in "regedit" <enter>

Then in your registry go to HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2 ,

Or it might be something like that ....

Look for the key that says InstallDir ... and tell me what it says ?
It said E:\Pelit\BF2\ (for no obvious reason, never installed it on that disk) so I changed that back to D:\.

Now BF2 starts when running the pr.exe but I fixed it by adding +modPath mods/pr and voila.

Thank you very much :D This will be a 99% sure solution for the rest of us who have the same problem

Mods or OP, can you paste these answers to the first post so people with the same issue can solve it

Thanks once more Twisted
Last edited by Zi8 on 2009-06-22 15:37, edited 1 time in total.
Image
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

You're welcome Zi8 :D
ShoX wrote: Directory Path:
E:\EA GAMES\Battlefield 2\mods\pr
Check your registry , like I explained how to do in the post below yours. It might be you have the same problem as Zi8.
Profiles:
Uhm... i don´t really know... theres nothing really in the folder it should be (My Documents) i also got another profile folder at a different place with 001, 002, 003 in it (is this correct)?.. so anyway, i deleted and then recovered them, nothing changed..

I often tried running pr.exe directly from the mods/pr folder, theres no difference to the shortcut.
This is definitely an error to do with the profiles and I think it is linked to this below ...
I also found another "problem", i runned vanilla BF2 for testing and saw that it´s just on 1.1... but i patched it to 1.41. Don´t know where it´s exactly patching...
Because it´s possible that there are some other BF2-related folders which are outdated and so on...
Yes this would cause a problem.

Are you happy mucking about in the registry ? If not ... then use a registry cleaner, but what I am about to explain is pretty simple.

First uninstall all BF2 and PR stuff. Delete all folders that have anything to do with them including all the folders related to BF2 in your MyDocuments (that is all your profiles etc).

Then ... go into your registry (START>>RUN [type] "regedit" <enter>), look in HKEY_LOCAL_MACHINE\SOFTWARE\ , and also in HKEY_CURRENT_USER\Software, for EA GAMES/Battlefield 2 entries, and delete them. Anything referring to BF2 at al ... delete.

Now REBOOT your machine.

Install BF2 ... preferably to the default directory , not changing any install parameters if possible. Patch BF2 --> 1.41.

REBOOT your machine.

Now install PR.

Pray to your favourite deity ... then hopefully ... play.
ShoX
Posts: 73
Joined: 2009-04-23 17:18

Re: Read This If You Have Pr.exe problems

Post by ShoX »

OMG.

It´s still not working... i made this: https://www.realitymod.com/forum/f360-t ... rking.html

I left out the PB Things and the longish guide but thats not gonna be the point i think..

Directory now:
E:\Program Files\EA GAMES\Battlefield 2\mods\pr

I also played a round vanilla BF2 1.41.. that works.
I also tested again some Project Reality 0860 Shortcut Targets... no change, everytime the same error.
But theres still just the "BattleCommo..." thing in the profile folder in my documents..
Last edited by ShoX on 2009-06-22 19:28, edited 1 time in total.
Twisted Helix
Retired PR Developer
Posts: 5145
Joined: 2008-11-03 04:18

Re: Read This If You Have Pr.exe problems

Post by Twisted Helix »

ShoX wrote: I also tested again some Project Reality 0860 Shortcut Targets... no change, everytime the same error.
What is the error ?
But theres still just the "BattleCommo..." thing in the profile folder in my documents..
Are you saying you have no profiles in your profiles folder ? How did you manage to play vanilla ?
ShoX
Posts: 73
Joined: 2009-04-23 17:18

Re: Read This If You Have Pr.exe problems

Post by ShoX »

OLOL I FIXED IT!!!!!

Woohoo! And it was so easy...
It was that Profile Thing... before it was: C:\Documents and Settings\ShoX\My Documents\ANOTHER FOLDER\Battlefield 2

So the Target for the Profiles under My Documents was wrong... i made this some time ago with the Target: under My Documents Settings.
So i fixed it and deleted the Profile Folder, recovered my Account and it works!

Thanks to everyone who helped (even at my other Problem)!

:D
paulthenoob
Posts: 12
Joined: 2009-03-29 11:27

Re: Read This If You Have Pr.exe problems

Post by paulthenoob »

"C:\GAMES\Battlefield 2\mods\pr\pr.exe" +modPath mods/pr +config +menu 1 +fullscreen 1 +widescreen +szx 1440 +szy 900
Argh it doesn't work it just comes up with an warning message saying the target box is invalid and that i should make sure the path and file name correct? wtf?
Sorry I have a very limited (none) knowledge of coding and shizzle so could you put it in dumb language for me ? :D
thanks
Post Reply

Return to “PR:BF2 Support”