]> git.xonotic.org Git - xonotic/xonstat.git/log
xonotic/xonstat.git
12 years agoDetermine overall best rank by percentile, not the rank value.
Ant Zucaro [Fri, 28 Sep 2012 02:38:42 +0000 (22:38 -0400)]
Determine overall best rank by percentile, not the rank value.

12 years agoAdd total playing time.
Ant Zucaro [Fri, 28 Sep 2012 02:19:52 +0000 (22:19 -0400)]
Add total playing time.

I forgot to add the total playing time from the get_overall_stats
call. This includes it and moves win percentage over to the right
pane to space things out more evenly.

12 years agoLocalize the last seen time for all game types.
Ant Zucaro [Thu, 27 Sep 2012 02:16:40 +0000 (22:16 -0400)]
Localize the last seen time for all game types.

12 years agoDon't show ratios if they are undefined.
Ant Zucaro [Wed, 26 Sep 2012 12:52:07 +0000 (08:52 -0400)]
Don't show ratios if they are undefined.

12 years agoAdd bootstrap-tab.js.
Ant Zucaro [Wed, 26 Sep 2012 02:59:09 +0000 (22:59 -0400)]
Add bootstrap-tab.js.

12 years agoAcceptable version of the games breakdown tab.
Ant Zucaro [Wed, 26 Sep 2012 02:47:18 +0000 (22:47 -0400)]
Acceptable version of the games breakdown tab.

This version does not have localized time. More code changes are
needed to add it, and I just ran out of time. It is simple enough
to add and will come soon. This commit basically styles the tabs
and also adds a cap_ratio when you click on ctf.

12 years agoAdding a margin left centers #xonborder.
Ant Zucaro [Tue, 25 Sep 2012 02:51:05 +0000 (22:51 -0400)]
Adding a margin left centers #xonborder.

12 years agoFixed two minor issues (debug output, recent_games field)
Jan D. Behrens [Mon, 24 Sep 2012 18:49:00 +0000 (20:49 +0200)]
Fixed two minor issues (debug output, recent_games field)

12 years agoApplied feedback from Antibody, improved the *->json functionality
Jan D. Behrens [Mon, 24 Sep 2012 18:44:21 +0000 (20:44 +0200)]
Applied feedback from Antibody, improved the *->json functionality

12 years agoImplemented JSON API for retrieving player_info data
Jan D. Behrens [Thu, 20 Sep 2012 17:12:57 +0000 (19:12 +0200)]
Implemented JSON API for retrieving player_info data

12 years agoGet rid of unneeded functions. Away with you. Away!
Ant Zucaro [Thu, 20 Sep 2012 02:56:09 +0000 (22:56 -0400)]
Get rid of unneeded functions. Away with you. Away!

All of the old functions returned data in a format that wasn't
very flexible, or didn't break down the information by game type.
Out with them! Named tuples are now used, making for much more
readable (if not a bit lengthy) templates.

12 years agoInitial checkin of tabs for the player_info view.
Ant Zucaro [Thu, 20 Sep 2012 02:51:53 +0000 (22:51 -0400)]
Initial checkin of tabs for the player_info view.

Underneath the player's nick will be a tabbed list of game types,
starting with "overall." Within each of these tabs will be stats
pertaining to only that game type. This allows players to view
fine-grained details about their playing history.

Note that this commit does not style the table much. This is mainly
to ensure that all of the content is being fetched properly.

12 years agoAdd the logic behind the player_info view. Template changes coming.
Ant Zucaro [Wed, 19 Sep 2012 02:47:43 +0000 (22:47 -0400)]
Add the logic behind the player_info view. Template changes coming.

12 years agoMerge branch 'master' into badges
Jan D. Behrens [Sun, 16 Sep 2012 20:26:00 +0000 (22:26 +0200)]
Merge branch 'master' into badges

12 years agoFixed stupid typo in the badges generator
Jan D. Behrens [Sun, 16 Sep 2012 20:22:26 +0000 (22:22 +0200)]
Fixed stupid typo in the badges generator

12 years agoAdd nb.png for nexball.
Ant Zucaro [Sun, 16 Sep 2012 19:19:51 +0000 (15:19 -0400)]
Add nb.png for nexball.

Nexball once had a game_type_cd of "nexball," but now it is "nb."
This copies the icon accordingly to support both names.

12 years agoFix a JavaScript hover issue (via zykure).
Ant Zucaro [Sun, 16 Sep 2012 18:54:41 +0000 (14:54 -0400)]
Fix a JavaScript hover issue (via zykure).

12 years agoUndo the addition of zykure's games breakdown stuff.
Ant Zucaro [Sun, 16 Sep 2012 16:51:25 +0000 (12:51 -0400)]
Undo the addition of zykure's games breakdown stuff.

While the changes are appreciated, they introduce WAY too many
database queries and LOC. They will be rewritten using a more
efficient query structure before inclusion. Also I'd prefer to
use tabs instead of pills, with the tabs being on the left or
right, not along the top/bottom.

12 years agoRemove extraneous print in player_info JSON view.
Ant Zucaro [Sun, 16 Sep 2012 03:54:35 +0000 (23:54 -0400)]
Remove extraneous print in player_info JSON view.

12 years agoMerge of zykure's player_info JSON object plus a few bugfixes.
Ant Zucaro [Sun, 16 Sep 2012 03:48:08 +0000 (23:48 -0400)]
Merge of zykure's player_info JSON object plus a few bugfixes.

12 years agoDecrease opacity on xonborder, add opacity to all tables.
Ant Zucaro [Sun, 16 Sep 2012 03:40:17 +0000 (23:40 -0400)]
Decrease opacity on xonborder, add opacity to all tables.

12 years agoNew background image. Thanks, NASA!
Ant Zucaro [Sat, 15 Sep 2012 19:54:38 +0000 (15:54 -0400)]
New background image. Thanks, NASA!

Add a new background image (#3) from NASA's Hubble telescope. It
was a little bright for #xonborder, so the alpha % on that was
increased.

12 years agoImplemented some (preliminary) JSON API to retrieve player data
Jan D. Behrens [Sat, 15 Sep 2012 17:47:25 +0000 (19:47 +0200)]
Implemented some (preliminary) JSON API to retrieve player data
This function will be used e.g. by the Xonotic IRC pickup bot.

12 years agoMerge branch 'badges' into approved
Jan D. Behrens [Sat, 15 Sep 2012 16:45:51 +0000 (18:45 +0200)]
Merge branch 'badges' into approved

Conflicts:
xonstat/batch/badges/gen_badges.py

12 years agoRemove artificial padding on the body of the page, un-fix navbar.
Ant Zucaro [Sat, 15 Sep 2012 12:35:50 +0000 (08:35 -0400)]
Remove artificial padding on the body of the page, un-fix navbar.

12 years agoFix the header on the ranks page.
Ant Zucaro [Sat, 15 Sep 2012 12:20:48 +0000 (08:20 -0400)]
Fix the header on the ranks page.

Consolidate the logic for the header, which was being neglected.
Now it has the full header present without an h2 which essentially
duplicated the same header. I removed the h2 and left the header.

12 years agoTurn off italics in the header.
Ant Zucaro [Sat, 15 Sep 2012 12:12:18 +0000 (08:12 -0400)]
Turn off italics in the header.

People didn't like the italics in the header, stating that it
didn't really fit the style. I didn't really have an opinion
either way, so I straightened it back up. I also removed the non-
breaking space after the header that was put in to "even out" the
slant of the italics.

12 years agoMinor improvements to the badges generator:
Jan D. Behrens [Fri, 14 Sep 2012 20:03:03 +0000 (22:03 +0200)]
Minor improvements to the badges generator:
- Fixed mistake int the ^6 color code (leading to wrong colors)
- Extended the playernick down-scaling for too wide nicks (now max. down-scaling is based on fontsize)

12 years agoAdd localized time support (on hover).
Ant Zucaro [Tue, 11 Sep 2012 02:01:54 +0000 (22:01 -0400)]
Add localized time support (on hover).

Without Javascript people will see the UTC time. With Javascript
all of those UTC times will be changed to localtime (accounting
for DST) via the epoch time of the object.

12 years agoAdd methods to return the time (create or start) in epoch seconds.
Ant Zucaro [Sun, 9 Sep 2012 21:02:52 +0000 (17:02 -0400)]
Add methods to return the time (create or start) in epoch seconds.

12 years agoAdd a default alivetime of 0, better storage of stripped_nicks.
Ant Zucaro [Sat, 8 Sep 2012 19:16:59 +0000 (15:16 -0400)]
Add a default alivetime of 0, better storage of stripped_nicks.

Default the alivetime to a timedelta of 0 seconds, and store
the qfont-decoded, color-stripped nicks as the stripped_nick.

12 years agoHandle the halving of weapon stats a little better.
Ant Zucaro [Sat, 8 Sep 2012 18:59:00 +0000 (14:59 -0400)]
Handle the halving of weapon stats a little better.

Default PlayerWeaponStat rows to all 0 to protect for missing
accuracy data. Also halve all of the pwstat members at once
instead of checking on each loop.

12 years agoUse a dummy session variable.
Ant Zucaro [Sat, 8 Sep 2012 18:37:18 +0000 (14:37 -0400)]
Use a dummy session variable.

A little while ago I moved down the creation of the actual
DBSession() below the precondition checks to avoid unnecessary
rollback transactions. What I didn't do was check if the session
existed before using it, so when precondition checks failed I was
calling a variable that wasn't defined yet (another exception).
This adds a dummy session variable that I can check before rolling
back, avoiding more exceptions.

12 years agoHalve the weapon stats if the POST request is from version 1.
Ant Zucaro [Fri, 7 Sep 2012 02:41:45 +0000 (22:41 -0400)]
Halve the weapon stats if the POST request is from version 1.

Version 1 of the weapon stats submissions sent double the weapon
stats. This means that all hit, fired, max, actual, and frag data
were 2x what they should be. The fix is to check for version 1
requests and halve them accordingly. Versions >1 should not have
this problem.

12 years agoAdd IE fallback for the main content section (all black).
Ant Zucaro [Thu, 6 Sep 2012 01:08:31 +0000 (21:08 -0400)]
Add IE fallback for the main content section (all black).

12 years agoAdd a text-shadow and more margin to the bottom of the headline.
Ant Zucaro [Thu, 6 Sep 2012 00:59:21 +0000 (20:59 -0400)]
Add a text-shadow and more margin to the bottom of the headline.

12 years agoFix broken firefox. Damn you, firefox!
Ant Zucaro [Wed, 5 Sep 2012 03:00:08 +0000 (23:00 -0400)]
Fix broken firefox. Damn you, firefox!

The latest firefox update broke the web borders. This is a
workaround. It compresses the main header by removing the
"get the game" button (not really needed). This change also
swaps out the backgrounds to match xonotic.org and a move of
the title accordingly. All in all I think it looks pretty decent!

12 years agoMerge branch 'badges'
Ant Zucaro [Wed, 5 Sep 2012 02:26:29 +0000 (22:26 -0400)]
Merge branch 'badges'

12 years agoUse relative time everywhere, but add hover with absolute time.
Ant Zucaro [Sun, 2 Sep 2012 17:08:36 +0000 (13:08 -0400)]
Use relative time everywhere, but add hover with absolute time.

Use "fuzzy" dates everywhere (e.g. "an hour ago"), but allow for
a hover showing the absolute UTC time when needed. This is done
with a span and a title attribute.

12 years agoFixed display of some characters in playernick (e.g. . : |)
Jan D. Behrens [Thu, 30 Aug 2012 11:38:32 +0000 (13:38 +0200)]
Fixed display of some characters in playernick (e.g. . : |)

12 years agoFixed gametype display in "minimal" skin
Jan D. Behrens [Thu, 30 Aug 2012 11:15:29 +0000 (13:15 +0200)]
Fixed gametype display in "minimal" skin

12 years agoMore design work on the two badge themes; also improved skin support
Jan D. Behrens [Thu, 30 Aug 2012 10:53:34 +0000 (12:53 +0200)]
More design work on the two badge themes; also improved skin support
- More parameters that can be changed by skins
- Minimal skin: fixed gametype alignment, retuned coloring to be more modest, some redesign
- Classic skin: gametypes are now aligned to the center if less than max. gameteypes are shown, re-introduced the "no stats" stamp, also some redesign
- Some code cleanup

12 years agoMore work on classic and minimal themes; now both include a fancy Xonotic logo!
Jan D. Behrens [Wed, 29 Aug 2012 21:03:11 +0000 (23:03 +0200)]
More work on classic and minimal themes; now both include a fancy Xonotic logo!

12 years agoMore fine-tuning to the "minimal" skin; added options to enable/disable centering...
Jan D. Behrens [Wed, 29 Aug 2012 16:19:33 +0000 (18:19 +0200)]
More fine-tuning to the "minimal" skin; added options to enable/disable centering of some elements

12 years agoA collection of smaller improvements to the badges generator
Jan D. Behrens [Wed, 29 Aug 2012 14:39:59 +0000 (16:39 +0200)]
A collection of smaller improvements to the badges generator
- Fixed a bug in the commandline parser
- Finally fixed the "win/loss" bug (new query, also a bit faster)
- Split up "render" and "data" parts of the code (skin.py & playerdata.py)
- Reworked overlay images for classic/minimal skin (source .xcf files included)

12 years agoAdded multiple skin support and better commandline parsing
Jan D. Behrens [Wed, 29 Aug 2012 10:58:31 +0000 (12:58 +0200)]
Added multiple skin support and better commandline parsing
- Skins other than "classic" will be put into a subdir in the output directory (e.g. output/minimal/###.png)
- By default, "classic" and "minimal" badges are created for all players that were active in the last 6 hours
- A skin list can be passed to the program for testing (e.g. "gen_badges.py classic archer")
- The "-force" parameter enforces an update of all badges by setting delta to 2^24 hours
- The "-test" parameter limits the number of players to be considered to 200 (used for testing)

12 years agoFixed crash when no active players were found
Jan D. Behrens [Wed, 29 Aug 2012 10:27:50 +0000 (12:27 +0200)]
Fixed crash when no active players were found

12 years agoAdd a cutoff date.
Ant Zucaro [Wed, 29 Aug 2012 02:01:12 +0000 (22:01 -0400)]
Add a cutoff date.

The cutoff date is the date before which games are not considered.
In other words, a player must play within the cutoff date range in
order to have his or her badge regenerated. This is to prevent
generating images for every single player, every single run.

12 years agoHotfix - last commit introduced a bug where only the last defined skin could be used
Jan D. Behrens [Tue, 28 Aug 2012 20:27:08 +0000 (22:27 +0200)]
Hotfix - last commit introduced a bug where only the last defined skin could be used

12 years agoAdded first version of "minimal" skin
Jan D. Behrens [Tue, 28 Aug 2012 19:52:35 +0000 (21:52 +0200)]
Added first version of "minimal" skin
- NOTE: Transparency does not work fully as expected (can't use a transparent bg image, only fillcolor+overlay)

12 years agoImproved PNG output for badges (now using zlib compression)
Jan D. Behrens [Tue, 28 Aug 2012 17:57:43 +0000 (19:57 +0200)]
Improved PNG output for badges (now using zlib compression)

12 years agoFixed bug in "total wins" query - NOTE: other queries (e.g. duel wins) are still...
Jan D. Behrens [Tue, 28 Aug 2012 16:49:02 +0000 (18:49 +0200)]
Fixed bug in "total wins" query - NOTE: other queries (e.g. duel wins) are still flawed!

12 years agoAdded rudimentary skin support to badges (also moved large parts of code outside...
Jan D. Behrens [Tue, 28 Aug 2012 12:41:22 +0000 (14:41 +0200)]
Added rudimentary skin support to badges (also moved large parts of code outside the main program)
- To select skin, run gen_badges.py with the skin name as argument (i.e. "classic" or "archer").

12 years agoAdded support for transparent background in badges (bg=-1)
Jan D. Behrens [Mon, 27 Aug 2012 22:52:58 +0000 (00:52 +0200)]
Added support for transparent background in badges (bg=-1)

12 years agoImproved handling of whitespace in playernicks
Jan D. Behrens [Mon, 27 Aug 2012 22:38:30 +0000 (00:38 +0200)]
Improved handling of whitespace in playernicks

12 years agoMerge branch 'master' into badges
Jan D. Behrens [Mon, 27 Aug 2012 22:35:34 +0000 (00:35 +0200)]
Merge branch 'master' into badges

Conflicts:
xonstat/batch/badges/gen_badges.py

12 years agoFixed bug in "wins" query
Jan D. Behrens [Mon, 27 Aug 2012 22:16:18 +0000 (00:16 +0200)]
Fixed bug in "wins" query

12 years agoFixed some problems with playernicks in gen_badges
Jan D. Behrens [Mon, 27 Aug 2012 21:45:25 +0000 (23:45 +0200)]
Fixed some problems with playernicks in gen_badges

12 years agoCan't calculate the k:d ratio if d (deaths) is None.
Ant Zucaro [Sun, 26 Aug 2012 04:15:36 +0000 (00:15 -0400)]
Can't calculate the k:d ratio if d (deaths) is None.

12 years agoAdded 1st version of Archer's background; some finetuning
Jan D. Behrens [Sat, 25 Aug 2012 17:46:09 +0000 (19:46 +0200)]
Added 1st version of Archer's background; some finetuning

12 years agoPython 2.6.x doesn't have total_seconds().
Ant Zucaro [Sat, 25 Aug 2012 12:55:11 +0000 (08:55 -0400)]
Python 2.6.x doesn't have total_seconds().

12 years agoAdd player badge batch job (via zykure).
Ant Zucaro [Sat, 25 Aug 2012 12:17:04 +0000 (08:17 -0400)]
Add player badge batch job (via zykure).

The player badge batch job uses cairo to generate a summary
image of the given player's statistics. It can be run
periodically to maintain the "freshness" of the data. The
tricky thing with this batch job is getting cairo working
within the virtualenv - one has to install it in the machine
and then symbolically link to the ENV. This is obviously not
ideal, but it does work.

Many thanks to zykure for this well-designed image!

12 years agoMore work on the badges generator
Jan D. Behrens [Sat, 25 Aug 2012 01:57:47 +0000 (03:57 +0200)]
More work on the badges generator
- Added overlay support
- Added additional backgrounds
- Cleaned up the code
- Removed obsolete files

12 years agoMore fine-tuning of the badges generator
Jan D. Behrens [Fri, 24 Aug 2012 15:07:40 +0000 (17:07 +0200)]
More fine-tuning of the badges generator

12 years agoFixed/improved some things in gen_badges.py (more colors, fixed playernick handling)
Jan D. Behrens [Thu, 23 Aug 2012 21:10:59 +0000 (23:10 +0200)]
Fixed/improved some things in gen_badges.py (more colors, fixed playernick handling)

12 years agoRe-implemented the badges generator, now it uses the cairo API for rendering.
Jan D. Behrens [Thu, 23 Aug 2012 20:01:04 +0000 (22:01 +0200)]
Re-implemented the badges generator, now it uses the cairo API for rendering.
Rendering one image takes about 0.2 sec, including the DB queries for each player.

12 years agoMore fine-tuning of the badges generator
Jan D. Behrens [Fri, 24 Aug 2012 15:07:40 +0000 (17:07 +0200)]
More fine-tuning of the badges generator

12 years agoFixed/improved some things in gen_badges.py (more colors, fixed playernick handling)
Jan D. Behrens [Thu, 23 Aug 2012 21:10:59 +0000 (23:10 +0200)]
Fixed/improved some things in gen_badges.py (more colors, fixed playernick handling)

12 years agoRe-implemented the badges generator, now it uses the cairo API for rendering.
Jan D. Behrens [Thu, 23 Aug 2012 20:01:04 +0000 (22:01 +0200)]
Re-implemented the badges generator, now it uses the cairo API for rendering.
Rendering one image takes about 0.2 sec, including the DB queries for each player.

12 years agoWait for precondition checks before beginning the DB transaction.
Ant Zucaro [Thu, 23 Aug 2012 11:40:51 +0000 (07:40 -0400)]
Wait for precondition checks before beginning the DB transaction.

SQLA's DBSession implicitly starts a PG transaction. When this
happens before the precondition checks (blank game, verified req, etc)
then an unneccesary transaction is started. Delay grabbing a new
DBSession until AFTER these checks are done prevents these useless
transactions from occurring. This means we should see little to
no ROLLBACK transactions in Munin once this is in place.

12 years agoAdd relative number of games / playing time to game breakdown
Jan D. Behrens [Wed, 8 Aug 2012 11:07:12 +0000 (13:07 +0200)]
Add relative number of games / playing time to game breakdown

12 years agoFinalized "Game Breakdown" section (fixed implementation; added more data; improved...
Jan D. Behrens [Wed, 8 Aug 2012 10:44:34 +0000 (12:44 +0200)]
Finalized "Game Breakdown" section (fixed implementation; added more data; improved layout)

12 years agoRearranged layout of "game breakdown" section (currently WIP and not fully working)
Jan D. Behrens [Mon, 6 Aug 2012 17:52:08 +0000 (19:52 +0200)]
Rearranged layout of "game breakdown" section (currently WIP and not fully working)

12 years agoRearranged game details to show up in a fancy table, one row per gametype
Jan D. Behrens [Mon, 6 Aug 2012 10:01:43 +0000 (12:01 +0200)]
Rearranged game details to show up in a fancy table, one row per gametype

12 years agoWent back to showing only one favorite map/weapon/server; rearranged layout somewhat
Jan D. Behrens [Mon, 6 Aug 2012 09:40:27 +0000 (11:40 +0200)]
Went back to showing only one favorite map/weapon/server; rearranged layout somewhat

12 years agoFixed some bugs in the latest commits (e.g. DB queries, website layout)
Jan D. Behrens [Sun, 5 Aug 2012 15:54:00 +0000 (17:54 +0200)]
Fixed some bugs in the latest commits (e.g. DB queries, website layout)

12 years agoFixed some bugs in player_info page
Jan D. Behrens [Sun, 5 Aug 2012 11:50:42 +0000 (13:50 +0200)]
Fixed some bugs in player_info page

12 years agoRestructured player_info page to now include more detailed stats for specific gametyp...
Jan D. Behrens [Sun, 5 Aug 2012 10:52:38 +0000 (12:52 +0200)]
Restructured player_info page to now include more detailed stats for specific gametypes (currently duel,dm,tdm,ctf)
The total_stats dictionary now also holds much more information than before, especially gametype-dependent info
Also added "favorite server" line, showing on which server the player is most likely to be found

This commit implements some of the suggestions from Feature Request #1039:
Organizing Player page statistics - http://dev.xonotic.org/issues/1039

12 years agoImplemented feature #1228:
Jan D. Behrens [Sat, 4 Aug 2012 20:46:21 +0000 (22:46 +0200)]
Implemented feature #1228:
Show weekly/monthly timer on the player_info page - http://dev.xonotic.org/issues/1228

Also added "suicides" to kill/death statistics (number only, no ratio)

12 years agoUpdated "favorite map" to show more than one map (three by default); and updated...
Jan D. Behrens [Sat, 4 Aug 2012 15:19:23 +0000 (17:19 +0200)]
Updated "favorite map" to show more than one map (three by default); and updated favorite weapon display

12 years agoAlso fixed the damage graph tooltips
Jan D. Behrens [Sat, 4 Aug 2012 14:31:05 +0000 (16:31 +0200)]
Also fixed the damage graph tooltips

12 years agoImproved "favorite weapon" feature to actually work, and to show more than one weapon
Jan D. Behrens [Sat, 4 Aug 2012 14:08:42 +0000 (16:08 +0200)]
Improved "favorite weapon" feature to actually work, and to show more than one weapon
The fav_weapon field now holds all the recently used weapons; the number of shown weapons can be set in the .mako file.

12 years agoAdd "Favorite Weapon" field to player object and show on player-info page
Jan D. Behrens [Sat, 4 Aug 2012 12:53:02 +0000 (14:53 +0200)]
Add "Favorite Weapon" field to player object and show on player-info page
(Works similar to "Favorite Map", i.e. count all the used weapons in recently played games)

12 years agoFix some bugs (which only occur on my system??):
Jan D. Behrens [Sat, 4 Aug 2012 09:41:44 +0000 (11:41 +0200)]
Fix some bugs (which only occur on my system??):
- Use default value for 'last' if it isn't set properly in navlinks (affects "Games" page)
- Use sequences instead of dictionaries in _query attribute for accuracy/damage graphs

12 years agoFixed tooltip bug in accuracy/damage graphs
Jan D. Behrens [Fri, 3 Aug 2012 11:23:43 +0000 (13:23 +0200)]
Fixed tooltip bug in accuracy/damage graphs

12 years agoFixed wrong filename in setup.py
Jan D. Behrens [Fri, 3 Aug 2012 11:04:12 +0000 (13:04 +0200)]
Fixed wrong filename in setup.py

12 years agoUse score-scaling Elo for non-duels.
Ant Zucaro [Wed, 1 Aug 2012 11:52:19 +0000 (07:52 -0400)]
Use score-scaling Elo for non-duels.

Scale S according to the real scorefactor in non-duel games.
This eliminates the effects of people switching to the winning
or losing team at the very last second. This also avoids a
"winner take all" in DM mode, where most people would lose points.

Additionally, all players are compared to everyone else, not just
those on their own team. This makes it more fair anyway - no
averages are done over the opponent team only. You now have to
perform better overall to get more points.

12 years agoUse traditional (win-based) Elo instead of score-based.
Ant Zucaro [Wed, 25 Jul 2012 12:32:20 +0000 (08:32 -0400)]
Use traditional (win-based) Elo instead of score-based.

Using traditional Elo instead of score-based Elo eliminates a lot of
confusion and drama surrounding losing points when winning and
gaining points when losing. I think this is a better reflection of
what we're after - the highest ranking players have won the most.
This has an intended side-effect of encouraging ALL players to
play more, because even pros have no penalties by playing newer
players.

12 years agoWhoops, elo_delta in the wrong order.
Ant Zucaro [Sat, 21 Jul 2012 23:36:13 +0000 (19:36 -0400)]
Whoops, elo_delta in the wrong order.

12 years agoDon't dock Elo points if the player won.
Ant Zucaro [Sat, 21 Jul 2012 01:59:10 +0000 (21:59 -0400)]
Don't dock Elo points if the player won.

After much debate I've included this enhancement. It prevents
losing Elo points if you've won the game. While this makes the
algorithm not *true* Elo, it prevents the negative perception
in the community. People were turning off their tracking for
fear of losing Elo points even if they won, and this hopefully
will fix that situation.

12 years agoRemove +/- points display on scoreboard.
Ant Zucaro [Sat, 21 Jul 2012 00:58:02 +0000 (20:58 -0400)]
Remove +/- points display on scoreboard.

I've decided not to show the +/- elo_deltas on the scoreboard
because they are individual measures. They thus belong on a
given player's info page instead. The player_info view is the
future destination of this data (not implemented yet).

Also, I'm preventing duel matches from being processed as both
duel and dm matches. Duel really is a mode of its own, even if
Xonotic doesn't have a dedicated mode for it.

12 years agoRemove < 50 restriction.
Ant Zucaro [Sat, 7 Jul 2012 01:48:47 +0000 (21:48 -0400)]
Remove < 50 restriction.

12 years agoBasic support for batch processes.
Ant Zucaro [Sat, 7 Jul 2012 01:45:23 +0000 (21:45 -0400)]
Basic support for batch processes.

Badges is the first batch process supported. It basically
sets up the pyramid environment, then iterates over the
player base and generates static HTML files showing their
high-level stats. That static HTML is then converted into
a PNG for use in forum signatures. A bash wrapper is
needed to drive the whole process via cron.

12 years agoDon't die if no favorite map exists.
Ant Zucaro [Sat, 7 Jul 2012 01:43:28 +0000 (21:43 -0400)]
Don't die if no favorite map exists.

12 years agoAllow player view functions to be imported.
Ant Zucaro [Sat, 30 Jun 2012 10:49:07 +0000 (06:49 -0400)]
Allow player view functions to be imported.

Prefixing the real data functions with '_' prevents
them from being imported by outside applications.
At first I thought this was a feature, then I realized
that there is really no harm to exposing them if needed.
Such a need developed for player badges, so I'm exposing
the views here. More will follow.

12 years agoAdd elo delta tracking.
Ant Zucaro [Wed, 20 Jun 2012 14:17:10 +0000 (10:17 -0400)]
Add elo delta tracking.

An elo delta is the amount by which a player's elo goes up
or down per match. This is useful for tracking purposes
and competitions.

The decimal formatting here is a bit hacky, and I don't like it,
but Mako refuses to do a proper format string on a decimal.Decimal.
This is even thought on the interactive command line it works! Argh.

12 years agoDebug message when a duplicate game is submitted.
Ant Zucaro [Wed, 20 Jun 2012 13:06:58 +0000 (09:06 -0400)]
Debug message when a duplicate game is submitted.

12 years agoShow ranks on the player_info page.
Ant Zucaro [Mon, 18 Jun 2012 23:42:35 +0000 (19:42 -0400)]
Show ranks on the player_info page.

12 years agoChange the query group by, return dict instead of Map.
Ant Zucaro [Mon, 18 Jun 2012 00:35:04 +0000 (20:35 -0400)]
Change the query group by, return dict instead of Map.

12 years agoAdd favorite map support.
Ant Zucaro [Mon, 18 Jun 2012 00:10:20 +0000 (20:10 -0400)]
Add favorite map support.

This commit adds a line item to the player_info page
showing the player's favorite map. This is the map
the player has played the most in the past 90 days.
A link to the map_info page of that map in included.