253 Commits

Author SHA1 Message Date
Nils Kneuper
f4648685ab Vietnamese is back... 2009-09-08 11:51:15 +00:00
Nils Kneuper
c3c540eddf switch default g.w.o stats to "Development" 2009-09-07 11:24:06 +00:00
Gregory Shikhman
7e7ddafed6 Fixed logic error that caused all singleplayer upload_logs...
...to be marked as ai vs ai multiplayer logs.
2009-09-02 13:25:21 +00:00
Gregory Shikhman
89a7a2b648 Added browser-viewable info to the uploader page.
Made the view add/delete pages inaccessible since they're not done.
2009-09-02 06:30:55 +00:00
Gregory Shikhman
9c634a07af Debugged remaining problems with multiple table support.
Fixed duplicate lines in logfile. Fixed 500 Internal Server Error
being shown as 404 Not Found.
2009-09-02 06:20:14 +00:00
Gregory Shikhman
67e90827f7 Enabled logging in wsgi app.
Changed log type to RotatingFileHandler and changed logging file to
/var/tmp/wesstats.log. Added support for multiple tables, although
still broken and incomplete. Refactored some long string catenations
into a cleaner style.
2009-09-02 05:29:20 +00:00
Gregory Shikhman
fabb57d0e4 Changed the database user in sampling script. 2009-09-01 05:36:36 +00:00
Gregory Shikhman
b55784c099 Completely rewrote the table sampling code...
...to work with multiple tables and cleaned it up significantly in the
process.
2009-09-01 05:30:56 +00:00
Gregory Shikhman
96ab5bffa7 Added initial version of config files for apache+mod_wsgi stack...
...to replace the current apache+mod_proxy+cherrypy stack. Added
conn.commit() to actually commit INSERTs - required now since all
tables are InnoDB type. Fixed bugs in log_type parsing.
2009-08-31 08:11:48 +00:00
Gregory Shikhman
e967816a5c Changed map hash from md5 to sha256.
Refactored server-side upload code. Fixed sql username for uploader
from the read-only username to the read/write username. Added a
seperate GAMES_AI table for ai vs. ai games.
2009-08-30 20:12:47 +00:00
Gregory Shikhman
af28cd0973 Fixed CSS bug - moved nav bar out of header div. 2009-08-24 21:01:03 +00:00
Gregory Shikhman
6a825dfc2c Updated link to wesnoth.org instead of my staging site. 2009-08-24 20:48:09 +00:00
Gregory Shikhman
2a04be6b55 Renamed GAMES to GAMES_SP since it only stores singleplayer game data. 2009-08-24 20:43:07 +00:00
Gregory Shikhman
0935e7819f Turned off sqlalchemy again; I ended up not using it for authentication. 2009-08-23 14:44:43 +00:00
Gregory Shikhman
d22ebb2aa3 Added configuration files. 2009-08-23 14:40:35 +00:00
Gregory Shikhman
90fc4bd800 Optimized hex grid generation to not calculate tile geometry...
...for uncolored hexes. Changed the wesnoth copyright into a hyperlink
to the homepage.
2009-08-17 05:19:42 +00:00
Gregory Shikhman
eecac8d70f Deleted more artifacts from the default tg install.
Added comments to </div> end tags so that they're easier to
match. Added a new <div id="global"> tag around everything in the body
to pick up more formatting from the CSS.
2009-08-17 00:01:43 +00:00
Gregory Shikhman
7497ed882c Deleted artifacts from default turbogears installation. More UI work. 2009-08-16 23:14:23 +00:00
Gregory Shikhman
802c46b797 Refactored the menu into a separate header file...
...that can be imported into other files. Added a footer. Added a link
to the stats in the main menu. Removed a stub file that I ended up not
using.
2009-08-16 05:23:35 +00:00
Gregory Shikhman
1d211ce9f6 Date selection is now saved between page refreshes on the killmap page.
Removed some code now unnecessary because of the SQL JOIN.
2009-08-15 21:36:38 +00:00
Gregory Shikhman
947ad4154b Added an SQL JOIN to merge GAMES/GAMES_MP and KILLMAP tables...
...when doing filtering. Still need to refactor things to get rid of
temporary hacks.  Added some debugging to look at a rare change in
[kill_event] format that my parser does not handle.
2009-08-15 20:53:24 +00:00
Gregory Shikhman
435280f3eb Changed all instances of dateconstruct()...
...with the more general rangeconstruct(). Added unique game-id
generation to rows added to GAMES/GAMES_MP.
2009-08-15 19:20:11 +00:00
Gregory Shikhman
e6a47f2353 Added support for filtering by level range in killmaps. 2009-08-15 01:51:15 +00:00
Gregory Shikhman
578e898568 Finished filter support for columns from the KILLMAPS table.
A JOIN still needs to be done to add filter support for columns from
the GAMES/GAMES_MP table.
2009-08-15 01:18:58 +00:00
Gregory Shikhman
9ebdcebbb3 Added filter selection to frontend.
Improved UI of killmaps page slightly.
2009-08-13 22:45:56 +00:00
Ignacio R. Morelle
37aaf6fd13 Add cycholka's hack for overriding PM limits...
...and attachment quotas on the Art Director user and hidden group,
respectively.

This patch is in serious need of a cleanup.
2009-08-12 00:24:46 +00:00
Ignacio R. Morelle
83ae2eeab2 Add cycholka's phpBB registration check hack to the repository. 2009-08-12 00:17:55 +00:00
Gregory Shikhman
f1074db22a Added date and level range selection to the killmaps html template.
Initial work on filter support for killmaps.
2009-08-11 23:54:52 +00:00
Gregory Shikhman
0442cecab5 Added hex coloring based on kill frequency to the killmap.
Still need to add filter support and detailed per-hex statistics to
the overlay that comes up when you click a hex.
2009-08-11 03:27:34 +00:00
Ignacio R. Morelle
5a3009b671 Forgot to add a little note indicating why the obvious procedure...
...may break on Internet Explorer (who else!)
2009-08-10 15:06:18 +00:00
Ignacio R. Morelle
690bed88c6 Add portrait rotation code, current images, and the template used for Glamdrol. 2009-08-10 14:58:34 +00:00
Ignacio R. Morelle
2cdcf373f4 Add the wesnothd usernames rule patch for phpbb 3.0.5 2009-08-10 14:45:39 +00:00
Gregory Shikhman
59282b41ac Finished support for map selection on the frontend and backend.
Fixed incorrect map dimensions reporting in get_map_dimensions().
2009-08-10 14:42:37 +00:00
Ignacio R. Morelle
8d07ee14bf Remove old phpbb 3.0.4 patches dir, add a new phpbb 3.0.5 patches dir 2009-08-10 14:39:41 +00:00
Gregory Shikhman
407cc93e25 Added map selection to the template of the killmaps page.
Still needs to be parsed on the backend.
2009-08-10 14:18:38 +00:00
Gregory Shikhman
f674327d57 Added mp log support to backend, finished support for kill events on backend 2009-08-10 08:12:54 +00:00
Gregory Shikhman
11366bcd4d Added kill_event parsing to the upload_log server.
kill_events are added to the KILLMAP table.
2009-08-09 20:39:47 +00:00
Gregory Shikhman
fccd118c38 Added support for multiple WML child nodes of the same name...
...to the simple parser.
2009-08-09 20:16:51 +00:00
Gregory Shikhman
e20f3c311d Completed script that will generate map tiles for gmaps in a nightly cronjob 2009-08-06 19:49:36 +00:00
Gregory Shikhman
77510b6508 Upload script now saves incoming maps to a path in the filesystem. 2009-07-31 20:16:01 +00:00
Gregory Shikhman
1f30a4ca71 Added backwards compatibility with uncompressed log files (v1).
Added another default value to the log dictionary to work with
slightly incomplete logs (not sure why the game produces these...)
2009-07-31 16:39:46 +00:00
Gregory Shikhman
6310d50ec3 Added support for compressed logfiles on the server-side upload script. 2009-07-31 05:53:04 +00:00
Gregory Shikhman
7c3a3ae88f Python server-side upload script is now live and functional.
Note to devs who want to help me test this out: change the host at
upload_log.cpp:41 to "cornmander.com" and change upload_log.cpp:42 to
"/wesstats/upload" . I still need to add an error page/message for
failed uploads.

Also added a file from 2009-05-08T07:39:20Z!cornmander@cornmander.com that regenerates sample
databases. I accidentally deleted it from svn a while ago.
2009-07-29 06:38:38 +00:00
Gregory Shikhman
5c196334eb Added a very simple WML parser and support in the webapp to receive upload logs 2009-07-29 05:06:37 +00:00
Gregory Shikhman
59a080819f Added a partial, modified copy of the wesnoth site CSS...
...to fix a tag name collision. Will add wesstats specific CSS to the
file. Removed tileserver stubs - I used a simpler implementation to
serve gmaps tiles.
2009-07-28 05:24:28 +00:00
Gregory Shikhman
7ae420f763 Added the ability to tie in data to particular hexes.
Click on a hex in the map to bring up a popup with hex-specific data 
(currently only the hex coordinate).
2009-07-22 03:58:35 +00:00
Gregory Shikhman
3ffb1ecc68 Fixed tile alignment, changed regular hexes...
...to the irregular hexes that wesnoth issues. Must still look into
performance issues and minor misalignment.
2009-07-22 01:47:21 +00:00
Gregory Shikhman
b21a199ccd Initial hex grid generation in gmap.
Added small script that will be expanded to give backend web scripts
info on the map being parsed. Grid alignment is still incorrect and
the actual hexes are not exactly the right shape.
2009-07-21 22:07:23 +00:00
Gregory Shikhman
8642a1da2b Added hex polygon generation. 2009-07-21 06:33:52 +00:00
Gregory Shikhman
0a6f8bda0f Changed map tiling script to emit lower quality JPGs instead of PNGs.
Changed tiler to emit 1:2 scale maps and 1:4 scale maps instead of 1:1
scale and 1:4 scale. Added location debugging on-click to the gmap.
2009-07-20 23:16:20 +00:00