Troubleshooting Guide: Your CD-key is not valid

Help and support regarding PR:BF2 installation and in-game issues
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Troubleshooting Guide: Your CD-key is not valid

Post by Deadfast »

Image


Following the previous troubleshooting guide focused on general game launching problems, I have written this one. It's focused on those who cannot join any multiplayer server thanks to the error you see above.
As many mistakenly think, this error is mostly not caused by illegal copy of the game. If you are so unlucky to end up with this error your Windows registry key containing your game CD-key is damaged.


The usual recommended fix for this problem is complete reinstall of the game. Even though it will fix the problem it's not necessary to go that far. All you have to do is edit a single value in your registry.


Instructions:
  1. Download and run the BF2 Invalid CD-key Fixer
    • Requires .NET Framework 3.5
    • Must be run as administrator
  2. Enter your CD key
  3. Press Fix

-----------------------------------------------------------------------------------------------------
Alternative method...
  • Instructions:
    1. Press Windows key + R (or alternatively go to Start > Run)
    2. Write the following into the opened window: regedit and hit ENTER
    3. Create a registry backup in case something goes wrong (see Restore registry section for instructions on how to restore):
      File > Export... > select All in Export Range (see below for image) > name it, select a location and Save
      Image
    4. Browse through the keys (key is the "folder" you can see in tree to the left of the window) to:
      * HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Battlefield 2\ergc (you can always see where you are located on the bottom of the registry editor window)
    5. If you have followed the path specified above you should be able to see a registry value called (Default) in the right part of the window
    6. Double-click on the value to open its editor
    7. Delete everything after x9392 (first 5 digits)
    8. Now enter your CD-key (behind the x9392) without dashes or spaces
      If your CD-key would be ABCD-0123-EFGH-4567-IJKL you would write it as ABCD0123EFGH4567IJKL
      Then the complete line would look like: x9392ABCD0123EFGH4567IJKL
    9. Once you're done entering the code simply click on OK, close the registry editor window and you should be all set to play the game again

      * The path for 64bit versions of Windows (Vista x64 and XP x64 editions) is different:
      HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\EA Games\Battlefield 2\ergc
      The rest of the guide is not affected.
  • Subsection: Restore registry
    aka something went wrong and now my Windows is messed up...


    First of all, don't panic.
    If you were following the instructions closely and you still have the registry backup then the fix can't be easier:
    1. Locate the registry backup file (*.reg)
    2. Double-click on the file
    3. Confirm registry import and all overwrite prompts
    4. You registry will be restored to their previous state (before changing the registry value, so you have to retry to make the game work)

  • Disclaimer:
    I, nor anybody else, hold any responsibility for any possible hardware or software damage (how unlikely that might be) caused by following these instructions.
Last edited by Deadfast on 2011-03-28 06:15, edited 4 times in total.
bosco_
Retired PR Developer
Posts: 14620
Joined: 2006-12-17 19:04

Re: Troubleshooting guide: Your CD-key is not valid

Post by bosco_ »

Nice guide :)

Maybe add the possibility to re-enter the CD key in the Battlefield 2_code app in Battlefield 2\Support ?
Image
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Re: Troubleshooting guide: Your CD-key is not valid

Post by Deadfast »

I've read there are some issues with this method if you have Special Forces installed.

That's why I like to stay with what I know that really works ;)
bosco_
Retired PR Developer
Posts: 14620
Joined: 2006-12-17 19:04

Re: Troubleshooting guide: Your CD-key is not valid

Post by bosco_ »

Well, the method worked for me, but it's your thread. ;)
Image
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Re: Troubleshooting guide: Your CD-key is not valid

Post by Deadfast »

I'm thankful for any income ;)

Did you have SF installed?
Charlie!
Posts: 48
Joined: 2008-06-10 00:21

Re: Troubleshooting guide: Your CD-key is not valid

Post by Charlie! »

I made a thread on this, First of all I run BF2(Original), Been playin for 3 years now, and it has FH2 characteristics (username screen is brown isnstead of yellow, the little quick play button on the bottom right corner has a blank sqare over it, etc) and when i have the server lists, all bf2 servers, it says CD KEY INVALID, SO: i did the regedit thing, cd key thing is still there, i re-installed bf2 1.41 patch...AND this happened after FH2 and all of its files(which i assume isnt true yet what im going thru) Any ideas?
musp3r
Posts: 85
Joined: 2007-10-01 16:42

Re: Troubleshooting guide: Your CD-key is not valid

Post by musp3r »

My mate had that invalid cd key problem, and I've pointed him to download bfkeychanger (google) and enter his legit key in the keychanger. It was a 1 min solution and worked right away.
Rookie
Posts: 3
Joined: 2008-08-30 20:28

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Rookie »

Thank you very much, Musp3r. I am running Windows Vista Ultimate 64 bit and I couldn't find the register key. The bfkeychanger worked for me.
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Deadfast »

Rookie wrote:I am running Windows Vista Ultimate 64 bit and I couldn't find the register key.
Guide updated to reflect Vista 64 registry path ;)
Sudano68
Posts: 54
Joined: 2007-11-04 15:01

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Sudano68 »

I don't even know where my key is. It's a second one, someone got my first one somehow and I had to buy it again, and now I can't find my second.

There is no way on vista you can find that registry to see what it currently is? If I can't find it, I don't know what my cd key is, and I'm not buying a third...

Ok, I didn't see the 64 bit changed. So is your key code somewhere with in all those numbers and letters in ergc?
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Deadfast »

It's encoded.
No way you're gonna figure out what it is unless you know the encoding cycle.
GoArmy117
Posts: 42
Joined: 2008-08-09 01:01

Re: Troubleshooting Guide: Your CD-key is not valid

Post by GoArmy117 »

I only get the Invalid CD-Key thing when I am using a user account (the main computer account) on my computer that is not the account BF2 was installed on originally. It is a weird problem...
darkwarrior666
Posts: 139
Joined: 2008-06-27 14:02

Re: Troubleshooting Guide: Your CD-key is not valid

Post by darkwarrior666 »

There was a LOT of **** after the first 5 digits, I hope deleting all of it doesn't muck anything up.

Anyway, followed the guide, gonna try it out now.
Image
ZOCOM Squad Leader/Heavy Weapons Specialist
ZOCOM is a 3 man team, looking for team play with eachother, and other people. If you see the ZOCOM squad ingame, and you've got VOIP and wanna pitch in to the squad, join up.

"For me, love is knowing your target, putting them in your targeting reticle, and together achieving a singular purpose... against statistically long odds." - HK-47
Deadfast
Retired PR Developer
Posts: 4611
Joined: 2007-07-16 16:25

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Deadfast »

darkwarrior666 wrote:There was a LOT of **** after the first 5 digits, I hope deleting all of it doesn't muck anything up.
There always is.

It's the encoded key ;)
Sudano68
Posts: 54
Joined: 2007-11-04 15:01

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Sudano68 »

I just played on a server, this randomly didnt come up for once. I left to find another and it's back again yet I haven't changed one thing, I never even quit the game.
Redfox
Posts: 106
Joined: 2008-09-27 08:06

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Redfox »

Well I have something weird so I hope someone will help me. My problem is this:

When Ive installed 1st time pr and all, it was ok and I was playing on server. But when Ive exited the game and wanted to play again after while Ive cannot. It wroted me about invalid cd-key (I have original) so Ive tried your solutions. It was helpfull but only for time when I was again playing. For better view when I will turn off BF2PR I need to change my cd-key to play again. And yes its really everytime I turn of BF2PR so any help?
Last edited by Redfox on 2008-10-05 10:03, edited 1 time in total.
Image
http://www.realitymod.gamefan.cz - Project Reality CZ/SK and Czech Army Forces web
Xero350
Posts: 23
Joined: 2008-09-29 21:31

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Xero350 »

Im having the same problem im i followed the guide and its saying error writing the new contents information im running vista 32 bit i really need help i was playing pr when this happened
TfcIan
Posts: 1
Joined: 2008-12-02 21:02

Re: Troubleshooting Guide: Your CD-key is not valid

Post by TfcIan »

I have a bit of a problem, my cd key in the registry does not have the x9293 bit at the start, just the key. I tried adding it in but it never worked. Don't know what to do, any ideas?
Salvakiya
Posts: 6
Joined: 2009-01-14 16:02

Re: Troubleshooting Guide: Your CD-key is not valid

Post by Salvakiya »

i did the thing. now when i try to join a map it locks up...
mp5punk
Posts: 1219
Joined: 2008-07-03 22:18

Re: Troubleshooting Guide: Your CD-key is not valid

Post by mp5punk »

Hey tanks a lot, will try it when i get my timer off of my computer since my regedit is disabled lol! But nice guide.
Image
Post Reply

Return to “PR:BF2 Support”