Posts Tagged ‘TF2’

Avatars

Sunday, April 6th, 2008

I’m trying out a new change - player avatars are now loaded from the Steam site once, and then cached on 4fite, as opposed to telling your browser to load them from Valve’s servers.

This should mean that old profiles that don’t get updated will continue to have valid avatars even when the source profile’s avatar is changed on the Steam site. Also, it paves the way for some future additions to the site. If this doesn’t put too much of a strain on the storage and bandwidth costs, the change will be optimised, kept in place and applied to group avatars, too.

There’s a handful of invalid profile avatars that cropped up during the transition, but they should be fixed up automatically by future updates.

In other news, I took a trip to Valve last week for a job interview… a major excursion considering I live in Australia. Unfortunately I didn’t get the job, for reasons of experience. Most of my experience so far is in tiny agencies working on small - medium websites. I’d like to thank Valve for the hospitality and opportunity anyway. We should be keeping in touch for future prospects, and working together to improve both of our web offerings.

Play Time

Tuesday, February 5th, 2008

Observation of the over-time figures I added in recently shows a discrepancy between the per-class and ‘past 2 weeks’ hours figures that are displayed on the Steam site. I tested this with my own profile.

I was at zero hours for the ‘past 2 weeks’ figure. I then played for a while, over a couple of days. My ‘past 2 weeks’ figure now says 3.6 hours, but there was only a 2 hour difference in my summed per-class figures.

There are two explanations I can think of for this.

First is that the ‘past 2 weeks’ figure takes into account time that isn’t spent in a real game (with both a team and class selected). I mention this because I would have spent at least a half-hour running around testing stuff out on my new PC on a local listen server. That, plus other misc times spectating or joining teams.

Second, and more likely, is simply due to rounding of numbers. If you take a fresh account, and you play each one of the nine classes for 0.09 hours (just over 5 minutes), then your time for each class will most likely be 0.0 (assuming Valve round the hours down) but your time played in the ‘past 2 weeks’ would show as 0.8, because Valve have access to the finer-precision numbers, compared to the ones I scrape from steamcommunity.com.

Neither theory accounts for the 1.6 hour difference on its own. So, without further pondering, I can only assume it’s a combination of both.

In conclusion - if you notice a difference between your ‘past 2 weeks’ figure on the steam site, and the two week figure on 4fite (when it’s available), it’s not a bug as far as I know. They may just be counting different things.

Flip Out And Kill My Countries

Wednesday, January 30th, 2008

Valve added little country flags to their steamcommunity.com profile pages, similar to the ones on 4fite.com, which temporarily broke my processing of your country > province > city selection. All fixed now though.

If anyone reading this knows where I can grab the set of flag graphics that sites tend to use, chime in please. I’ve been making my own from larger flag graphics but I’m sure there’s a premade and coded set floating around, I just couldn’t locate it when I searched.

I could link to the new ones on steamcommunity but I try to limit that to avatars only.

Update: After a little searching using more sensible keywords, I tracked down the apparent home of the flag set. Sweet. They should make their way onto my site soon.

Minor Update

Wednesday, January 30th, 2008

Welcome to the Whirlpool and OCAU people jumping on to the site in the last few days.

I added an extra table to the individual player profile pages which details some of the historical data that’s now being recorded. There’s still only a couple of days recorded, so not much will show at the moment, but give it a few more days and you’ll start seeing weekly numbers in your profile.

You’ll notice that, in addition to how many hours you’ve played over a certain period, you can also tell how many points you’ve earned, and by extrapolation what your PPH for that period was. This is a bit more reflective of how you currently play when compared to your all-time PPH.

Well I think it’s neat ;)

In other news, a new PC for me! Should arrive either Friday or Monday (c’mon Friday, weekend is 4 fite!). Maybe I’ll actually play TF2 now that I’ll get more than 15 - 25 fps during fights. It’s an E6750 with 4gb ram and a 512mb 8800GTS. Yeah, end-of-line CPU… intended to be replaced with a Q9450 when they arrive assuming quad core is worth it by then.

Two Bugs, One Change

Sunday, January 27th, 2008

There was a bug in my profile processing code that prevented adding new groups. This caused an error when adding or updating profiles for players with groups that my system didn’t know about yet. The “add profile” feature of the site would have been affected by this too, and probably explained the handful of people that had joined the 4fite steam group but not added their profile to the site. I’ve fixed that one, and added the leftover profiles myself.

Second up was an error when I seeded everyone’s historical data for the first time. I wanted to fix it before it became an issue down the track, but doing so made me flush out everyone’s historicals for the last (and first) 24 hours or so.

Lastly I’ve added a very basic PPH up/down display to player profiles. It will show underneath the “points per hour” on your own player page. Right now, nothing shows there because of me flushing the historical data, but check again in 24 hours or so and you’ll see it. Periods that get compared are one day, week and month.

In the near future I’ll be adding more statistics that are based on recent numbers only (think Steam’s playtime in last two weeks, but more).

Unfortunately I don’t need to create my own stats site to tell me I’ve played zero hours in the past two weeks :(

Have a History?

Saturday, January 26th, 2008

Historical data tracking is now in. Key values from each profile update are now time-stamped and archived away for later use, which means at some point in the future I’ll be able to create pretty - ooh, shiny! even - graphs of your PPH and other things as they rise and… well, PPH is the only value that can actually fall, unless I start recording two-week play time.

Only people that add their profile for regular updates will get any benefit from this though since, due to the numbers involved, it could be weeks, or months before the system updates the other crawled profiles again.

In other historical news, apparently it was Australia Day yesterday. Lucky me, that legitimises the day off I was going to take today anyway. Australia Day commemorates the foundation of a British penis colon at Sydney Cunt, according to the Wikipedia article update I was about to make. I would have used it as an excuse to drink all weekend, but that suggests we need an excuse to begin with.

~raw

First Things First

Saturday, January 26th, 2008

A minor update, just starting to fill in the holes I left behind. Group search is up and running. The sad thing is, the hamster for this has been in all along, I just didn’t have a page to display the results.

Oh, hamster? Apart from being a rodent, it’s also the name I use for procedures in the backend that are called via ajax, or whatever term you want to use for async / xmlhttp requests.

So when you click something and it says “please wait”, just imagine a hamster toiling away on it’s wheel getting your results ready.

You don’t want to know what happened when it says “error”.

~raw

Hello

Friday, January 25th, 2008

Apparently every site on the internets must have a companion blog that porn and “medical” sites can leave comment spam on, so here’s the one for 4fite.com. Primarily this will be focused on the TF2 stats site I wrote, covering topics such as issues, new features, user feedback and all the usual stuff I can’t be bothered setting up a full forum for.

First, thanks to everyone who has manually added their profiles to site so far. The initial few of you especially, for testing the process for me, since I’m far too lazy to do it myself when it comes to personal projects.

Which is as good a segue as any to my next point; this is a personal project. I made a lot of progress when the site first started because I was on holidays and had time to burn. Now, I’m back at work, with much less time on my hands. So whenever “soon” is used, consider it a relative term - perhaps relative to the death of our sun, or something like that. Things will be added/fixed when I can get around to them.

Finally, thanks Valve for a cool game and some nice web integration.

Enjoy the site!

~raw