Unlocks for LAN games. Not connected to internet

I have several PC's setup at my house for playing LAN games.  We have started playing Battlefield 2 and would like to use the unlockable weapons.  Is there a way to unlock the weapons for a LAN game.  I don't allow connections to internet.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

☠ MASQ ☠Commented:
This used to work before the 1.4 patch but I suspect it has now been disabled.  Still worth a try though.

Remember to back up all the files before modifying them and restore before going online otherwise you will be PB'd as soon as you hit a ranked server (you may not go online but any of your players using their own machines at a LAN party may)
Crazy_CooterAuthor Commented:
Did not work.
☠ MASQ ☠Commented:
Suspected as much :(
Don't think you can unlock stuff you haven't already unlocked online with this version of the game.  You could reinstall and not patch - that should give you access to the fix above - other players may not want to do this if they have ranked online games saved.
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

You can, but you have to be running the battlefied 2 Stand alone server on a dedicated computer. You can download the dedicated server from EA site. Can't remember the command but i'm pretty sure one of the options that you can pick is unlocked weapons (server automatiaclly becomes unranked).

Hope that helps.
Crazy_CooterAuthor Commented:
I'm running the stand alone server from a dedicated pc, but i don't have the unlocked weapons options.
If you're playing in a LAN game only, you can try the following. Not sure on which patch version it worked for me, but it did. Obviously, PunkBuster must be disabled on your dedicated server.

Works in single player and in lan games, will work online *IF* the server hosting *AND* all the clients have the same edited python file.

navigate to:
CProgram Files\EA GAMES\Battlefield 2\python\bf2\stats

Open the file unlocks.py with notepad

find the line:

defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]

change to:

defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]

See if that works?
Crazy_CooterAuthor Commented:
That didn't work either.
☠ MASQ ☠Commented:
Did you ever try using a pre 1.4 version of the game?
Try going in : ...\My Documents\Battlefield 2\Profiles\Default
open the file "ServerSettings.con" in notepad. (not wordpad!)
Goto line 55 and 56, change value of sv.useGlobalRank and sv.useGlobalUnlocks to 1. Odds are, if you have more then one folder in your profiles, you'll have to mod more then one account. And remember, backup your files!
Crazy_CooterAuthor Commented:
Both are already set to 1.
You may want to look at some MODs sucha as project reality or the Combat studios mod. Those should allow you to use unlocks, and givw you several new maps and unit types!
Check these links:

There are others and all of them should allow you to allow global unlocks!
Good Luck.
In my experience the only method that worked for getting unlocks was installing a mod that force-added them into the game. Its kind of a hack but EA really doesn't want you to get them easily. I tried every single modification to config files and server tricks etc, none of them worked. I never tried it but I often wondered if copying the right files from someone who had all the unlocks and editing them might work, but EA might have already fixed that 'exploit'. Good luck!
anybody running a dedicated server has complete control using mods. mod the server, and it'll force the end result to the client. find a mod that allows unlockable weapons, install it on the server, configure the server's config file, and start it up.

I've been running a UT2K4 server for over 5 years now, and there's nothing I can't do ;) - Mark

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Computer Games

From novice to tech pro — start learning today.