Commit Graph

626 Commits

Author SHA1 Message Date
Michael Bayne e95d0aa58f Oops, we need 412 bytes to store a percentiler's data.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@426 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 02:20:30 +00:00
Michael Bayne 27c8eac61c Added getRecordedCount().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@425 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 01:50:24 +00:00
Michael Bayne c08cad2642 Added tracking for percentiler modification; nixed some unneeded casts.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@424 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-11 00:36:35 +00:00
Michael Bayne 15dd17a308 Added SCHEMA_VERSION.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@423 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-10 23:17:19 +00:00
Michael Bayne 5dd8695a9a Added support for tracking multiple per-game percentile distributions.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@422 c613c5cb-e716-0410-b11b-feb51c14d237
2007-09-10 20:44:50 +00:00
Michael Bayne 81f49e4125 Use junit4.jar.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@421 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-28 20:26:18 +00:00
Nathan Curtis de0537d516 how long has this been broken? In party games, there is a "private" checkbox instead of a
"watchable" checkbox, but it was treating it like "watchable", even thought that makes no sense
for party games (at present).  

As it turns out, party games are broken right now anyway, which is what I'm going to fix next.  
For now, we'll allow party games to use a "Private" checkbox, in case someone wants to play
by themselves.  Private party games won't be given a "join" button.  

This solution is wacky, as is noted in one of the comments.  This will need to be re-visited in the
future, most likely when we do the massive game lobby revamp.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@420 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-27 18:53:54 +00:00
Michael Bayne cc3976a213 Use playerInRoom() to let the game manager know we've arrived but aren't ready
to start the game yet.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@419 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:54:06 +00:00
Michael Bayne 388c616b40 Reset EZ games to PRE_GAME after they end so that they can be restarted.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@418 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:45:47 +00:00
Michael Bayne 5392df8770 Make it possible for a player to report in when they arrive in a room but not
cause the game to start. In Whirled we'll have all players report in
immediately for games that want to handle playerReady() themselves so that they
can do whatever they want before the game starts and then finally start it with
a call to playerReady() from all the players.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@417 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-24 23:40:21 +00:00
Michael Bayne 74665f1663 Added EZGameControl.restartGameIn(seconds).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@416 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 23:19:51 +00:00
Michael Bayne 71f2a1442c Added setWinners().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@415 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 23:10:02 +00:00
Michael Bayne b9ba20c19b Derived classes that are not in this package need to be able to call
dispatch().


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@414 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-23 00:32:36 +00:00
Michael Bayne 7c29339626 Extract that handy method.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@413 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 23:54:01 +00:00
Michael Bayne 1a272ef171 Widening and removal of compatibility code for never-in-the-wild functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@412 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 23:29:54 +00:00
Michael Bayne 8f3293eb0b Don't try to rate players if there are no winners. Otherwise everyone is rated
as losing.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@411 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:19:02 +00:00
Michael Bayne f1a94dfac9 More tidying.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@410 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:14:26 +00:00
Michael Bayne a6398a2d60 Oops missed a spot.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@409 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:10:59 +00:00
Michael Bayne f6481922f6 Tidied things up, avoid doing things on the invoker thread that should be done
on the dobj thread.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@408 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-22 00:09:57 +00:00
Par Winzell df1b8277fb Use FieldDefinition instead of FieldOverride wherever appropriate (almost everywhere).
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@407 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-21 23:12:44 +00:00
Michael Bayne abeac5d1b2 Allow rating records to be deleted (we'll probably want a delete for just the
game and one for just the user as well but I'll add those later).


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@406 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-21 21:50:11 +00:00
Michael Bayne d3cc74bc0d Tidying.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@405 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-21 21:49:41 +00:00
Par Winzell 4567264b91 We're not going to do this INDEX: comment thing.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@404 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-16 21:53:47 +00:00
Michael Bayne 01db2cc225 Scratch that, reverse it.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@403 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-15 19:47:51 +00:00
Michael Bayne 41c1ca44b7 No need to validate here.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@402 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-15 19:07:01 +00:00
Michael Bayne b4e207eeae columns -> fields.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@401 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-13 23:21:16 +00:00
Michael Bayne 568b1f6ab2 Some log fiddling.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@400 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-11 00:37:48 +00:00
Par Winzell e386d6c3a0 Add an index, document index use for Depot operations. Do you think this is worthwhile? We should really just about never see a non-indexed query during normal production use and one way to maintain that discipline is with a comment line like this.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@399 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-07 18:05:44 +00:00
Michael Bayne 96b42efbae Switch stataData to an untyped column so that Depot can do the right thing with
it. BLOB on MySQL has a maximum length of 65535, so we'll preserve those
semantics even though Depot will now use VARBINARY on MySQL for columns of
length 65535 and lower.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@398 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-07 17:20:22 +00:00
Michael Bayne 30d7bc4be3 When we add a chat display, we must remove it once we're done.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@397 c613c5cb-e716-0410-b11b-feb51c14d237
2007-08-02 19:12:08 +00:00
Michael Bayne 8d9ff98273 columnNames -> fieldNames.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@396 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-31 21:36:49 +00:00
Michael Bayne 09ad0ca87d Updates to reflect SpeakProvider refactoring.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@395 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-31 21:05:36 +00:00
Ray Greenwell 8233be01e7 Added filter(text) to the EZGame API. Untested.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@394 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-31 06:51:20 +00:00
Jonathan Le Plastrier 2bbca9894b Have distclean just call what it needs in common-clean
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@393 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-28 04:17:20 +00:00
Par Winzell beb58c2c41 Another tweak, now that code/value is the full key.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@392 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:18:30 +00:00
Par Winzell 0444af1792 Forgot to turn this check on properly.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@391 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:15:27 +00:00
Par Winzell 3f7c1f9466 The old schema had STAT_DATA be a BLOB, and Depot currently defaults to varbinary(255). This raises at least two questions; first, does it make sense to assume that in the absence of any other markup, 255 is a reasonable size limit? I am not at all sure. Second, whatever the default translation of byte[] ends of being, how to we deal dialect-agnostically with schema compatibility issues?
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@390 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 21:12:29 +00:00
Par Winzell a010a130fc This should work better.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@389 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 20:59:38 +00:00
Par Winzell 7d3de02e7c As tidy as it was to tuck this record away inside StatRepository, we'd really like the benefit of the 'genrecord' transformation. Also the inner class couldn't be protected for reflection access reasons so some of the tidy wasn't so tidy.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@388 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 19:17:57 +00:00
Par Winzell 8defc9da5e So CODE is not in fact part of the primary key, thanks Mark.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@387 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-27 18:53:24 +00:00
Michael Bayne ae02a37f74 Out with the old.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@386 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:50:16 +00:00
Michael Bayne 12130830e7 Don't need legacy ConnectionProvider support here, so nix it.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@385 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:39:27 +00:00
Michael Bayne fa7eb87945 Nixed stale method, some minor tidying.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@384 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:38:08 +00:00
Par Winzell 2d5a5ca033 Depot implementation of the stat system persistence - hopefully schema compatible with the old version. This one is a little more complicated and Whirled doesn't have any stats yet so I was a little at a loss at how to test all of it. Perhaps somebody at Bang could make sure nothing crashes and burns horribly when e.g. a new string code is assigned?
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@383 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:28:50 +00:00
Par Winzell a2d446d3cf Away with ye, Depot dependency check.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@382 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:26:37 +00:00
Par Winzell 7dea421cca Depot implementation of the Game Cookie persistence - hopefully schema compatible with the old version.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@381 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 20:20:07 +00:00
Michael Bayne 2885a2b41c Use a PersistenceContext to initialize the RatingRepository.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@380 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-26 00:22:38 +00:00
Michael Bayne 505d75ca6c Note our persistent record classes.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@379 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 23:48:10 +00:00
Michael Bayne a68b0aee35 Pipe down Mister.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@378 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 21:47:48 +00:00
Michael Bayne c826583754 More Depot NWO.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@377 c613c5cb-e716-0410-b11b-feb51c14d237
2007-07-25 21:07:35 +00:00