Associate
- Joined
- 27 Apr 2004
- Posts
- 2,377
As I had mentioned in other threads, I've been working on a second version of the FAH stats sigs I made.
I started coding on Monday and think I've just about finished the main part. The most asked for feature in the new sigs was 24 hour credit averages, so I'm pleased to say that I have (hopefully) managed to get that working. I say hopefully because I only finished it today and will only really know if it works properly after having left for a few weeks.
At this point, the only remaining work to be done is to create an easy to use wizard for creating your URL (containing all the customisations you choose). However I'm going on holiday on Saturday and want to have a break from coding before I go so won't get the GUI done for a while (I started coding on Monday and have spent roughly half of my waking hours working on it).
For these reasons (and hints of impatience from people ) I have decided to make what I currently have public. Before continueing though, I have three points to make:
That said, I shall get explaining. My worry is that some people may find it difficult to use in the current state, but impatience has got the better of me.
Statistics
The system supports nine different statistics, as follows:
Formatting Options
For every statistic described above, individual formatting options can be applied.
Usage
A very basic example of a functioning URL:
http://fahstat.piggott.me.uk/?mode=use&uid=piggott which yields this:
From the above, you should be able to see the defaults for most formatting options. For example you can see that every statistic has a border of 1 pixel by default, the prefixes used (e.g. "Username: "), the approximate X and Y positions, that all the angles are 0 degrees etc. etc.
Further examples
en example
To use the formatting options, the alias of the option is combined with the alias of the statistic, with an underscore. An example of this would be avg_en, which would allow control over whether to show the average credit display. An example of a URL using the 'en' option is as follows:
http://fahstat.piggott.me.uk/?mode=...s_en=0&rnk_en=0&tpts_en=0&twus_en=0&trnk_en=0
As can be seen, this disables displaying of some statistics. We don't need to mention grnk, unm or pts because grnk is disabled by default and we want unm and pts to show.
X and Y example
As with 'en', the option is combined with the statistic, e.g. 'pts_x' and 'pts_y'.
An example of a URL is as follows:
http://fahstat.piggott.me.uk/?mode=...s_en=0&twus_en=0&trnk_en=0&pts_x=260&pts_y=55
I started coding on Monday and think I've just about finished the main part. The most asked for feature in the new sigs was 24 hour credit averages, so I'm pleased to say that I have (hopefully) managed to get that working. I say hopefully because I only finished it today and will only really know if it works properly after having left for a few weeks.
At this point, the only remaining work to be done is to create an easy to use wizard for creating your URL (containing all the customisations you choose). However I'm going on holiday on Saturday and want to have a break from coding before I go so won't get the GUI done for a while (I started coding on Monday and have spent roughly half of my waking hours working on it).
For these reasons (and hints of impatience from people ) I have decided to make what I currently have public. Before continueing though, I have three points to make:
- Please bare in mind the system is incomplete and will be a lot easier to use when I've made the GUI
- For a reason currently unknown to me, image generation was taking 5 seconds when I copied it all across to my dedicated server, yet takes roughly 0.25 seconds on my main desktop rig, so for this reason they are currently hosted on my main rig and so may be more susceptible to downtime
- I'm sure I had a third point but I've forgotten what it was
That said, I shall get explaining. My worry is that some people may find it difficult to use in the current state, but impatience has got the better of me.
Statistics
The system supports nine different statistics, as follows:
- grnk - Global user ranking (i.e. position with all other FAH contributers globally)
- urnk - User rank (i.e. within Team OcUK)
- unm - User name - the user name of the person whose stats are being shown
- pts - User's Points count
- wus - User's WU count
- tpts - Total Team Points count
- twus - Total Team WU count
- trnk - Team rank
- avg - User's Points average for last 24 hours (based on last 7 days)
Formatting Options
For every statistic described above, individual formatting options can be applied.
- ang - Angle of the text. 0 is horizontal. Measured anti-clockwise.
- size - Size of the font.
- font - The font used. Must include ".ttf". e.g "Verdana.ttf" (this is the default). The server has all fonts which come as standard with Windows XP.
- col - Colour of the text. Specified as a hexadecimal.
- bor - Size of border around text in pixels. 0 disables.
- brcl - Colour of border around text. Specified as a hexadecimal.
- x - The X co-ordinate of the lower left corner of the text. Measured from the left of the background.
- y - The Y co-ordinate of the lower left corner of the text. Measured from the top of the background.
- en - Enables or disables displaying of the statistic. 0 disables. Default is enabled for all except grnk.
- pre - The prefix to the actual statistic. e.g. "Username: " in "Username: piggott". Defaults exist and of course vary per statistic (would be stupid if it said "WUs: piggott"!)
Usage
A very basic example of a functioning URL:
http://fahstat.piggott.me.uk/?mode=use&uid=piggott which yields this:
From the above, you should be able to see the defaults for most formatting options. For example you can see that every statistic has a border of 1 pixel by default, the prefixes used (e.g. "Username: "), the approximate X and Y positions, that all the angles are 0 degrees etc. etc.
Further examples
en example
To use the formatting options, the alias of the option is combined with the alias of the statistic, with an underscore. An example of this would be avg_en, which would allow control over whether to show the average credit display. An example of a URL using the 'en' option is as follows:
http://fahstat.piggott.me.uk/?mode=...s_en=0&rnk_en=0&tpts_en=0&twus_en=0&trnk_en=0
As can be seen, this disables displaying of some statistics. We don't need to mention grnk, unm or pts because grnk is disabled by default and we want unm and pts to show.
X and Y example
As with 'en', the option is combined with the statistic, e.g. 'pts_x' and 'pts_y'.
An example of a URL is as follows:
http://fahstat.piggott.me.uk/?mode=...s_en=0&twus_en=0&trnk_en=0&pts_x=260&pts_y=55