Haxpact Day 2

March 10th, 2010 at 16:11

Registration of the bfbc2:// protocol is now complete. Now on to the real part of the program. I also found a chunk of C# code that will bind to the win32 INI parsing functions, since .NET doesn’t have something built in for it.

The next step is input validation. Here’s a sample server string: 3363010643,b652b484-4188-42ea-8885-50fc4991af5b,Reddit Unofficial Gaming Community – Chicago;

As far as I can tell, the format for the server string is three fields separated by commas:

  1. Some sort of numeric ID
  2. Something that’s probably a GUID, looks like it’s in hexidecimal. All servers appear to be in the 8-4-4-4-12 configuration.
  3. A freeform string

My current goal is to write a regular expression to match this format, and validate incoming input with it. It’s not a particularly challenging goal, but it will take time and will undoubtedly be a fairly ugly “write-only” regexp that nobody (including my future self) will understand.

After input is validated, I simply need to parse the ini file, check that the input is not already in the user’s list, and insert the new server. Not unreasonable to think I’d be done the basic functionality of this program by the end of the week.

Comments (0)

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment