CTD when creating local game

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Stealthgato
Posts: 2676
Joined: 2010-10-22 02:42

CTD when creating local game

Post by Stealthgato »

After the release of PR:V yesterday, I played it through Hamachi with a friend. After we were done, I tried creating a local game only to find out I CTD when I attempt to do so. I select the map, click deploy and CTD. Still plays fine online, just can't play local anymore.
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: CTD when creating local game

Post by LITOralis.nMd »

Can you
1. recreate your CTD, and note the time it happens.

2. go to your \Program Files (x86)\EA GAMES\Battlefield 2\mods\pr install directory and find prError.log and open it up in Notepad, go to bottom of page, and see if you see anything interesting at the time noted above.

3. Post anything interesting you see...

in case it is a PR:V installer bug/issue, I will send this along to the R-DEVs who will probably want to chat with you if you're willing to help us all out to fix this...
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: CTD when creating local game

Post by MaSSive »

In what way have you tried to create local server? I just tried from Deployment > Create Local and it worked fine for me.
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Stealthgato
Posts: 2676
Joined: 2010-10-22 02:42

Re: CTD when creating local game

Post by Stealthgato »

When I try to create a game from Deployment > Create Local I CTD.

Just select map, click deploy, it shows "Starting game" and CTD with the popup "ERROR: Unable to open BF2 process". It started happening after I played through Hamachi. It must have changed something. It's only when I try to create local games with any maps (not just PR:V), playing online is fine.

Here's what is in prError file:

---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Admin\Documents\Battlefield 2\Profiles\Default\Video.con' because it's in use by another process.
em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
em 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)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
em System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
em System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
em System.IO.File.OpenText(String path)
em d.g()


And this one at same time:

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

System.IO.DirectoryNotFoundException: It was not possible to find part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
em 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)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
em n.a(String A_0)
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: CTD when creating local game

Post by LITOralis.nMd »

I am not sure how to fix this , but the fix is probably ridiculously simple.

What version of BF2 do you own? Origin, Steam, Retail CD?
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: CTD when creating local game

Post by MaSSive »

I just tried it and Im not getting this CTD.

Might be your serversettings.con messed up somehow. Its in profiles direcory in My Documents>Battlefield2>Profiles>000N

If you have more than one go trough each of them and open Profile.con, to make sure thats the right profile you try to start server with and edit serversettins.con file if it differs from this one below in anything but servername

Code: Select all

GameServerSettings.setServerName "My Server"
GameServerSettings.setPassword ""
GameServerSettings.setInternet 0
GameServerSettings.setMaxPlayers 16
GameServerSettings.setSpawnTime 15
GameServerSettings.setManDownTime 15
GameServerSettings.setTicketRatio 100
GameServerSettings.setRoundsPerMap 1
GameServerSettings.setTimeLimit 0
GameServerSettings.setScoreLimit 0
GameServerSettings.setSoldierFF 100
GameServerSettings.setVehicleFF 100
GameServerSettings.setSoldierSplashFF 100
GameServerSettings.setVehicleSplashFF 100
GameServerSettings.setPunishTeamKills 1
GameServerSettings.setVotingEnabled 1
GameServerSettings.setVoteTime 90
GameServerSettings.setMinPlayersForVoting 1
GameServerSettings.setTeamVoteOnly 1
GameServerSettings.setVoipEnabled 0
GameServerSettings.setVoipQuality 5
GameServerSettings.setVoipServerRemote 0
GameServerSettings.setVoipServerRemoteIP 
GameServerSettings.setVoipServerPort 55125
GameServerSettings.setVoipBFClientPort 55123
GameServerSettings.setVoipBFServerPort 55124
GameServerSettings.setVoipSharedPassword 
GameServerSettings.setAutoRecord 0
GameServerSettings.setSvPunkBuster 0
GameServerSettings.setTeamRatio 100
GameServerSettings.setAutoBalanceTeam 0
GameServerSettings.setFriendlyFireWithMines 0
GameServerSettings.setCoopBotRatio 50
GameServerSettings.setCoopBotCount 31
GameServerSettings.setCoopBotDifficulty 50
GameServerSettings.setNoVehicles 0
Quick fix would be to delete complete Battlefield 2 folder in My Documents, run vBF2, retrieve accounts, customize settings, and quit. Then run PR and try to create local server.

If you CTD again on Vietnam try some regular PR map, if you CTD again, then its a big one...well see what then.
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
SGT.MARCO
Posts: 341
Joined: 2010-07-08 03:01

Re: CTD when creating local game

Post by SGT.MARCO »

I also have problems creating local servers. I was going to test out Falklands. as soon as i press create local it would ctd, so i tried regular maps, same issue, no error appears, and i don't have a prError.log file anywhere. It happened sometimes after installing Vietnam. it is really frustrating that there has not been a fix.
MaSSive
Posts: 4502
Joined: 2011-02-19 15:02

Re: CTD when creating local game

Post by MaSSive »

Do you have latest Vietnam install Beta2?

https://www.realitymod.com/forum/f487-p ... nload.html
Image
CATA4TW!

"People never lie so much as before an election, during a war, or after a hunt."
"God has a special providence for fools, drunks, and the United States of America."
― Otto von Bismarck
Post Reply

Return to “PR:BF2 Support”