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

). 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

)