Random Crashes to Desktop

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
echo84
Posts: 1
Joined: 2009-03-02 19:50

Random Crashes to Desktop

Post by echo84 »

This happened on my previous computer a long time ago which eventually led me to stop playing. I have a new computer now and I'm disheartened to see it happening again. I'll just be playing and the game will just disappear and I'm left staring at my desktop.

Specs are:
i5-3570K
8 gb 1333 ram
Radeon HD 7850

Drivers are up to date. Looking at the error log I get this:

Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at n.a(String A_0)

Any help would be greatly appreciated
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Random Crashes to Desktop

Post by LITOralis.nMd »

Hi, welcome to the forums,

There are several ways to fix this.
Here is the easiest way:
On your desktop, make a copy of your PR shortcut.
right click on your new PR shortcut.
Select Properties

Edit your PR shortcut to put this in it:

Code:
"D:\Program Files\Battlefield 2\mods\pr\pr.exe" +restart +menu 1 +fullscreen 0 +szx 1280 +szy 720


Dont just copy paste this, but adjust to your install location. Make sure you dont omit quotation marks or it wont work.

So if you PR is installed in "C:\Program Files (x86)\Steam\steamapps\common\Battlefield 2\mods\pr\pr.exe"

edit shortcut to look like this:
"C:\Program Files (x86)\Steam\steamapps\common\Battlefield 2\mods\pr\pr.exe" +restart +menu 1 +fullscreen 0 +szx 1280 +szy 720

Close the shortcut Properties window.

Right click the New PR shortcut and "Run as Admin"

In short, the video options for PR got reset to a BF2 default resolution and refresh rate. Either or both the default resolution and default refresh rate is not supported by your monitor. All we have to do is add the command line resolution to fix this.

If this doesn't fix it you might have to try another solution to change the refresh rate, but that is rearely a problem these days.

Let us know if this works,
Post Reply

Return to “PR:BF2 Support”