8 years agoAdd a hashkey view similar to the player_info JSON one.
Ant Zucaro [Tue, 4 Dec 2012 02:55:22 +0000 (21:55 -0500)]
Add a hashkey view similar to the player_info JSON one.

This view is driven by hashkey (not player_id) so the Xonotic
server can query for info using something it knows. The response
value is a JSON object containing the things in the player info
page minus the recent weapons and recent games stuff.

The URL pattern is /hashkey/<hashkey value>.

All this is pretty alpha and is subject to change once we truly
determine our needs  Think of this as a proof of concept for
communicating between the game server and the webapp.

8 years agoExplicitly set an update_dt when elos are processed.
Ant Zucaro [Sun, 2 Dec 2012 13:09:18 +0000 (08:09 -0500)]
Explicitly set an update_dt when elos are processed.

8 years agoIf there are no recent games, do not show the section.
Ant Zucaro [Fri, 30 Nov 2012 00:45:04 +0000 (19:45 -0500)]
If there are no recent games, do not show the section.

8 years agoMake recent games more bullet-resistant :)
Ant Zucaro [Sun, 25 Nov 2012 15:37:01 +0000 (10:37 -0500)]
Make recent games more bullet-resistant :)

8 years agoDon't pre-fill the "recent games" section with hyphens.
Ant Zucaro [Sun, 25 Nov 2012 15:30:05 +0000 (10:30 -0500)]
Don't pre-fill the "recent games" section with hyphens.

Just show what is there to show rather than fill up the empty space
with...more empty space!

8 years agoRecent -> Most Recent for maps too.
Ant Zucaro [Sun, 25 Nov 2012 15:17:22 +0000 (10:17 -0500)]
Recent -> Most Recent for maps too.

8 years agoSmall copy change for the server info page.
Ant Zucaro [Sun, 25 Nov 2012 15:15:48 +0000 (10:15 -0500)]
Small copy change for the server info page.

"Recent" isn't exactly recent for some servers. I'll label it
"Most Recent" instead. That makes more sense when servers have
not had any games in a long time.

8 years agoSprite-ify the map and server info pages too.
Ant Zucaro [Sun, 25 Nov 2012 15:13:13 +0000 (10:13 -0500)]
Sprite-ify the map and server info pages too.

8 years agoSprite-ify a few templates.
Ant Zucaro [Sun, 25 Nov 2012 01:26:37 +0000 (20:26 -0500)]
Sprite-ify a few templates.

8 years agoAdd css sprites for weapons and game types.
Ant Zucaro [Sun, 25 Nov 2012 01:25:41 +0000 (20:25 -0500)]
Add css sprites for weapons and game types.

8 years agoUse the new helpers for the server_info page as well.
Ant Zucaro [Mon, 19 Nov 2012 02:48:31 +0000 (21:48 -0500)]
Use the new helpers for the server_info page as well.

Another performance boost on my machine! The page loads in
half the time that it did before. Aw yeah.

8 years agoUse the new helpers on the map info page.
Ant Zucaro [Mon, 19 Nov 2012 02:29:54 +0000 (21:29 -0500)]
Use the new helpers on the map info page.

Big performance boost! Was 1.5s (on my machine) and now <1s.

8 years agoLooks better this way, and performs the same.
Ant Zucaro [Mon, 19 Nov 2012 02:08:00 +0000 (21:08 -0500)]
Looks better this way, and performs the same.

8 years agoMake the "recent games" section more modular.
Ant Zucaro [Mon, 19 Nov 2012 00:27:14 +0000 (19:27 -0500)]
Make the "recent games" section more modular.

The main page was constructing all of the recent games queries
manually before. Now I've moved the query and the associated
class (which would have been a namedtuple if not for the various
transformations needed) into a new "helpers" view. This view is
intended to house query functions and the corresponding classes
for them, so no more grabbing from a query, then looping around
and creating namedtuples to get stuff like nick_html_colors. Now
one can just pass the row returned by the query to a class, which
will "know" how to construct stuff like that. Win!

8 years agoAdd the game's duration to the game info page, if it exists.
Ant Zucaro [Thu, 15 Nov 2012 01:49:30 +0000 (20:49 -0500)]
Add the game's duration to the game info page, if it exists.

8 years agoProvide an option to show elo deltas on the game info page.
Ant Zucaro [Wed, 14 Nov 2012 04:02:56 +0000 (23:02 -0500)]
Provide an option to show elo deltas on the game info page.

I was tired of looking at the actual elo deltas by bouncing
between the player_info and game_info pages for several
players just to see their collective elo delta values. This
provides a query parameter "show_elo" to the game info page
to show the extra elo delta column.

As a bonus, the up/down/neutral arrows on the player_info
page will take you to a scoreboard page where those values
are shown.

8 years agoProper fix for big alivetimes.
Ant Zucaro [Tue, 13 Nov 2012 00:59:37 +0000 (19:59 -0500)]
Proper fix for big alivetimes.

Moral of the story: I should not code late at night.

8 years agoHandle Elos properly when players have big alivetimes.
Ant Zucaro [Fri, 9 Nov 2012 04:42:29 +0000 (23:42 -0500)]
Handle Elos properly when players have big alivetimes.

Due to a bug, the alivetimes for players also include time
spent in warmup. Since elo uses score per second, the
skewed alivetime made players who actually lost look like
they won under certain circumstances (like when their
opponent spent a very long time in warmup).

This change puts a ceiling on the alivetime used by Elo
by limiting the alivetime to be at most the game's

8 years agoParse and store the game's duration.
Ant Zucaro [Fri, 9 Nov 2012 04:18:55 +0000 (23:18 -0500)]
Parse and store the game's duration.

The duration has been sent for a while as the 'D' line, but
it hasn't really been needed until now; it was just a nice thing
to have. Now Elo calculations are messing up because the warmup
time is being summed into player alivetimes. This duration field
can assist in creating a workaround. Having it, Elo calculations
can know the true maximum game time, so anything higher can be
brought down to the "floor" of the real duration of the match.

8 years agoFixed double negative, maybe the most helpful ever.
Malcolm Gill [Mon, 15 Oct 2012 12:27:34 +0000 (23:27 +1100)]
Fixed double negative, maybe the most helpful ever.

8 years agoLink to the game for each cap record.
Ant Zucaro [Sun, 4 Nov 2012 13:26:16 +0000 (08:26 -0500)]
Link to the game for each cap record.

8 years agoAdd overall best flag capture times to the map info page.
Ant Zucaro [Sun, 4 Nov 2012 13:17:22 +0000 (08:17 -0500)]
Add overall best flag capture times to the map info page.

Only the top ten fastest capture times are shown. Players in this
list must be tracked. No bots are tracked, obviously :D.

8 years agoShow the best flag capture times on the game info page.
Ant Zucaro [Fri, 2 Nov 2012 01:59:21 +0000 (21:59 -0400)]
Show the best flag capture times on the game info page.

The best flag capture time for each player is shown in the game
info page now. This only happens for CTF. The format shown is
seconds.milliseconds, with up to two decimal places shown.

8 years agoAdd ping to the scoreboard.
Ant Zucaro [Fri, 2 Nov 2012 01:24:36 +0000 (21:24 -0400)]
Add ping to the scoreboard.

Ping is being sent now in the POST requests. Show it if it
exists in the player_game_stat row.

8 years agoUncomment elo processing code.
Ant Zucaro [Mon, 29 Oct 2012 20:56:48 +0000 (16:56 -0400)]
Uncomment elo processing code.

8 years agoAssault icons.
Ant Zucaro [Mon, 29 Oct 2012 16:14:33 +0000 (12:14 -0400)]
Assault icons.

8 years agoAdd storage of captimes and fastest caps.
Ant Zucaro [Mon, 29 Oct 2012 15:49:03 +0000 (11:49 -0400)]
Add storage of captimes and fastest caps.

Fastest caps are recorded on a per-player basis in the game_stats
table, and the player's overall fastest cap on a given map is
stored in a new table, player_map_captimes.

One weird thing is if the constraint on game_id in the captimes
table is enabled, sqla throws an integrity error. For this reason
the constraint is disabled (commented out in xonstatdb) even though
it should be there. More investigation is needed.

8 years agoAdd a setting to turn off req verification easily.
Ant Zucaro [Mon, 29 Oct 2012 15:48:10 +0000 (11:48 -0400)]
Add a setting to turn off req verification easily.

8 years agoHandle nonexistent elo deltas gracefully.
Ant Zucaro [Sun, 7 Oct 2012 12:28:46 +0000 (08:28 -0400)]
Handle nonexistent elo deltas gracefully.

8 years agoMake the "recent games" table expand with the "more" link.
Ant Zucaro [Sun, 7 Oct 2012 02:37:09 +0000 (22:37 -0400)]
Make the "recent games" table expand with the "more" link.

Previously a big list of scoreboards would be shown if a person
clicked on the "more" link below the "recent games" table on the
player info page. Now a table that is exactly the same is shown,
but with pagination. This is in essence an attempt to keep the
same elements in the view; when a person clicks on a "more" link,
they expect to see more of the same items they were looking at.

The end benefit for players is that they can quickly page through
all of their games and see summary results as well as their elo
changes from one simple view.

8 years agoAdd elo deltas to the player info page.
Ant Zucaro [Sat, 6 Oct 2012 15:00:30 +0000 (11:00 -0400)]
Add elo deltas to the player info page.

The elo deltas will just show an up, down, or neutral icon for how
their elo has changed during the games in the "recent games" table
at the bottom of the page. Hovering over these icons will show the
actual delta value in the event it went up or down (rather than
stayed the same).

8 years agoAdd "ft" icon for freezetag.
Ant Zucaro [Sat, 29 Sep 2012 13:42:14 +0000 (09:42 -0400)]
Add "ft" icon for freezetag.

8 years agoCheck nick uniqueness before storing.
Ant Zucaro [Sat, 29 Sep 2012 13:34:25 +0000 (09:34 -0400)]
Check nick uniqueness before storing.

8 years agoUse the gametype icons in the tabs!
Ant Zucaro [Sat, 29 Sep 2012 13:32:24 +0000 (09:32 -0400)]
Use the gametype icons in the tabs!

8 years agoMoved over to new Xonstat API (using functions xonstat.views.player directly);
Jan Behrens [Mon, 1 Oct 2012 19:48:47 +0000 (21:48 +0200)]
Moved over to new Xonstat API (using functions xonstat.views.player directly);
enabled UTF-8 encoded playernicks for testing (FIXME: it is known that some nicks cause problems with cairo currently)

8 years agoAdded artwork by Archer, in addition to "classic" and "minimal" skins
Jan Behrens [Sun, 30 Sep 2012 22:14:05 +0000 (00:14 +0200)]
Added artwork by Archer, in addition to "classic" and "minimal" skins

8 years agoImproved (fixed?) the spacing between differently colored character groups in the...
Jan Behrens [Sat, 29 Sep 2012 16:15:59 +0000 (18:15 +0200)]
Improved (fixed?) the spacing between differently colored character groups in the playernick

8 years agoMerge branch 'pickupbot' into approved
Jan D. Behrens [Fri, 28 Sep 2012 20:20:17 +0000 (22:20 +0200)]
Merge branch 'pickupbot' into approved

8 years agoMerge branch 'master' into pickupbot
Jan D. Behrens [Fri, 28 Sep 2012 20:20:00 +0000 (22:20 +0200)]
Merge branch 'master' into pickupbot


8 years agoMake percentile a field and show it in the player_info view.
Ant Zucaro [Fri, 28 Sep 2012 02:51:26 +0000 (22:51 -0400)]
Make percentile a field and show it in the player_info view.

8 years agoMake the value a real percentile, if I am going to call it that :)
Ant Zucaro [Fri, 28 Sep 2012 02:41:12 +0000 (22:41 -0400)]
Make the value a real percentile, if I am going to call it that :)

8 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.

8 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.

8 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.

8 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.

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

8 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.

8 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.

8 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)

8 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

8 years agoMerge branch 'pickupbot' into approved
Jan D. Behrens [Mon, 24 Sep 2012 18:50:01 +0000 (20:50 +0200)]
Merge branch 'pickupbot' into approved

8 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)

8 years agoMerge branch 'pickupbot' into approved
Jan D. Behrens [Mon, 24 Sep 2012 18:46:33 +0000 (20:46 +0200)]
Merge branch 'pickupbot' into approved

8 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

8 years agoMerge branch 'pickupbot' into approved
Jan D. Behrens [Thu, 20 Sep 2012 17:43:15 +0000 (19:43 +0200)]
Merge branch 'pickupbot' into approved

8 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

8 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.

8 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.

8 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.

8 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

8 years agoMerge branch 'master' into approved
Jan D. Behrens [Sun, 16 Sep 2012 20:25:36 +0000 (22:25 +0200)]
Merge branch 'master' into approved

8 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

8 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

8 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.

8 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).

8 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.

8 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.

8 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 ... zykure's player_info JSON object plus a few bugfixes.

8 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.

8 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

8 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.

8 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


8 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.

8 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.

8 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.

8 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)

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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).

8 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.

8 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!

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

8 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.

8 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. . : |)

8 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

8 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

8 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!

8 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

8 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)

8 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)

8 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

8 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.

8 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

8 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)

8 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)

8 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!