Only the default (TGN Light) theme for now. Dark them is also coming back soon. Then CSN. Then Wrestlin' Nation. A lot of WIP stuff right now. There are a couple of things still not working either. Sorry.
I also followed another thread which indicated I needed to setup my host file to redirect the gamespy query to another server. After doing this, as soon as someone joins the server it crashes. There is an Invalid Gamespy query.
As perry posted, that is a new feature of 1.3; EA has blocked that method for getting server unlocks so we need to find another way. Maybe instead of the hosts file you could set up your own DNS server? I doubt that they would hardcode the ip into the bf2.exe so that may still work.
I tried it and it didnt work, same story. However, I was surprised to find than when I removed the indents from the unlocks.py file the bf2 server would not run. I program a bit and for me the indents should be nothing more than a way to keep track of the code, especially when using IF/THEN/ELSE statements. Possibly Python is a bit different from the typical C++ and PHP coding I am accustom to, and the indents mess up the Python code....????
Well if nothing else, I learned something new about coding. From now on I will always remember Python is a bit more strict on its coding structure than C++. Thanks for the heads up on that one. Now, if only someone with more brains than I could crack the config for unlocks. I have not yet tried the renaming of my Linux server' Domain. Really dont want to go that route. I am already running DNS......... hmmm, maybe I could create a virtual host.... nah, I dont think thats the answer either since I added the gamespy domain to my local host IP 127.0.0.1. Me thinks me have run out of ideas... :cry:
I'm gonna test the stuff from that German site out too soon. But I am only interested in using offline accounts - would that still be way off limits, or might this hack to unlocks.py actually work?
I translated the german site, it does not work cuz it still requires the gamespy hack of the host file to work. Which EA / Dice fixed with this release. Just changing the Unlock.py will allow player to use their earned unlocks on a non-ranked server, but requires an Internet game not a lan game.
I am still trying to find a way to do this. Anyone?
I translated the german site, it does not work cuz it still requires the gamespy hack of the host file to work. Which EA / Dice fixed with this release. Just changing the Unlock.py will allow player to use their earned unlocks on a non-ranked server, but requires an Internet game not a lan game.
I am still trying to find a way to do this. Anyone?
for the unlocks in a lan game you have to use apache and this little perl script:
Code:
#!/usr/bin/perl
my =qw/11 22 33 44 55 66 77 88 99 111 222 333 444 555/;
sub main();
sub main() {
my $time=time;
print "Content-type: text/plain\n\n";
print "O\n";
print "H\tpid\tnick\tasof\n";
print "D\t12345678\tUNLOCKED\t$time\n";
print "H\tenlisted\tofficer\n";
print "D\t0\t0\n";
print "H\tid\tstate\n";
for () {
print "D\t$_\ts\n";
}
print "$\t206\t$\n";
}
main();
(both scripts not testet yet; use it at own risk )
the scripts must be saved as getunlocksinfo.aspx and must reachable locally on http://127.0.0.1/ASP/getunlocksinfo.aspx. (if you use the php script, you have to add an .htaccess file which contains AddType application/x-httpd-php .aspx)
finally you must add bf2web.gamespy.com 127.0.0.1 in your hosts file
if it's all correct, you have all unlocks in your multiplayer lan game
i forgot something...
the other players in your lan game have to edit their hosts file too.
they need an entry like bf2web.gamespy.com YOUR_LAN_IP (such as: bf2web.gamespy.com 192.168.0.1)
otherwise you are the only one who plays with unlocks
Thanks for the info. I'm getting close. I've set up my server so that the URL is accessible (though on a different server than the BF2 server, because my BF2 server doesn't have PHP or Apache). If I run the url in my browser I get what looks like the correct codes from the PHP file.
However, when I run BF2 and load hte on line account it crashes with an error telling me an invalid URL was found or something.
Does this only work in offline mode? If so then I'm stuck because can't get my local linux LAN server to show up in my browswer and offline mode does not have a working "connect by ip" button. I'm sure that my LAN server is set as LAN because when it loads it does say "(LAN)" at the top, but I've never been able to get it to show up in my Local browser (though windows listen servers work fine).
Am I wrong in assuming that the next patch is going to make this whole workaround obsolete? Or will it still only relate to LAN games using online accounts?
**UPDATED JAN 06**
Hey everyone! Just a quick update to let all the new people to this thread know that:
- yes, this method does indeed work
- yes, it unlocks SF weapons
- yes, it works with all code versions
- EA has not sent goons or complained at all, I'm impressed... slightly
If you have a question, you can email me at <mofino<a>gmail.com>.
Take care.
---original post---
Only the linux server has been tested -- sort've. I only tested it alone on my server. But it appears to work just fine. I'm not giving out the code quite yet, it just a simple perl CGI, and I think this will be easier for now.
Anyway on to the fix.
For Linux servers:
1. edit /etc/hosts and add this line:
Code:
209.91.168.238 bf2web.gamespy.com
2. enjoy!
For Windows servers:
1. edit X:\$WINDOWS\system32\drivers\etc\hosts and add this line:
Code:
209.91.168.238 bf2web.gamespy.com
2. enjoy!
Basically I'm emulating the "unlocked weapons" responses from Gaymenspy.
Let me know if you have trouble.
-mo
Hi,
can you make this work for 1.4 patch now ?
Server is crashing when there is:
209.91.168.238 bf2web.gamespy.com
in hosts file.
Server starts ok, but when first player tries to connect it goes down with a message "........invalid gamespy URL"
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment