Page 1 of 1

Crashing to desktop

Posted: 2012-04-08 22:57
by BButcher666
PR is randomly crashing to desktop 2 minutes into a game. I've tried different maps and servers but it still crashes. I checked the prError file and it came up with...

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

and...

"An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Documents\Battlefield 2\Profiles\Default\Video.con' because it is being used by another process."

Re: Crashing to desktop

Posted: 2012-04-09 02:41
by LITOralis.nMd
Its possible. Go to profiles in My Documents>Battlefield2>Profiles>000N where N is number from 1-N numbers of profiles you have. Might want to go trough all of them and edit file called video.con

Search for value "VideoSettings.setResolution" and change it something you want.


Example if you got 16:10WS monitor

Code:
VideoSettings.setResolution 1440x900@60Hz
Save the file and close it. You can edit this file with notepad or any text editor. I recommend Notepad++

Other solution would be to add this to your PR shortcut target line

Code:
...\Battlefield 2\mods\pr\pr.exe" +szx 800 +szy 600
Note that if you add this your game will always start in this resolution no matter what you set in Video settings. Use it to temporary override video.con, change resolution in video settings, save it and restart the game, but remove this from your target line.

Re: Crashing to desktop

Posted: 2012-04-09 11:52
by BButcher666
thanks for the help, it seems to be working now.