Haxpact Day 1 – BFBC2FavouriteManager

March 9th, 2010 at 12:51

First day of haxpact report:

I’m planning on making a favourite server manager for Battlefield Bad Company 2. The ingame server browser has a crappy UI, and has a tendency to just fail. For example, there is a well known bug where pings simply do not show up in the server browser. Makes it challenging for me to find a good server. Also, adding a server to the favourites list doesn’t work from the global list for me. It just locks up forever.

Fortunately, the favourites list is saved in a fairly simple format in BFBC2’s configuration file, called GameSettings.ini. I can modify this file to add favourite servers manually, as long as I have their identification string. What I’m aiming to do with my haxpact project is make a program that is bound to the bfbc2:// uri; the config information can be hosted on webpages, and people can simply click on a link to add the server to their favourites. At first, this is all the program will do. Perhaps in the future I will add a GUI that will allow people to export their favourites, reorder their favourites, etc.


The first technical problem I’ve encountered is registering the URI handler. You need to have administrator privileges in Windows Vista and 7 in order to modify the part of the registry that I need to modify. There’s no way to escalate the privileges of an existing process, so my project needs to launch another process with admin privileges (invoking UAC) to set up the URI handler. So far I’ve been struggling with understanding all this and figuring out the C# build environment, so I haven’t really made any progress on the project itself.

P.S. I’m Canadian so there’s going to be a u in the name. Deal with it.

Comments (0)

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment