Commit Graph

681 Commits

Author SHA1 Message Date
Michael Bayne 244b9b22b8 Use error message names that make sense. Differentiate between not allowing
something because the requester is not the owner of the table and trying to
boot onesself from the table.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@764 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-23 20:20:14 +00:00
Michael Bayne 8a76c0de9f Allow a custom error handler to be provided to the TableDirector.
If ActionScript supported anonymous classes, TableDirector would not have to
implement InvocationService_ResultListener and could instead define a calldown
handleFailure() method that the client could override by anonymously extending
TableDirector at the point of instantiation and customize the failure handling
thusly. But it doesn't, and so we pollute TableDirector with yet more methods
that many clients probably don't care about.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@763 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-23 20:08:47 +00:00
Michael Bayne 68c4218324 Fixed improper indentation.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@762 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-23 20:03:15 +00:00
Dave Hoover 830653a449 Don't let us create a percentiler with an insane range, and carp if
we expand to one. I'm half tempted to also try and cap the range to something
less broken, but the bug I had that caused insanity involved recording a value of
infinity, and there's not a hell of a lot I can do to sanely recover in that
case (other than throw it away, I suppose). So let's yell a little bit
and keep from hosing us quite as much as I was when I wound up with crazy stuff
persisted to my ratings table.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@761 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-20 22:41:59 +00:00
Mike Thomas 8b737a10fd Allow a particular random object to be specified when shuffling the deck.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@760 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-17 23:33:58 +00:00
Michael Bayne 57cefe5619 Report table creation failure via chat.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@759 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-14 22:15:37 +00:00
Jamie Doornbos d2557dfb7f Change "readObject() as Type" to "Type(readObject())" for vilya for better error checking and faster failure
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@758 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-13 17:42:58 +00:00
Mike Thomas 9cf566de38 This should use the new getChatName() method.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@757 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-10 01:26:23 +00:00
Charlie Groves 5dcafa47ae Add getDisplayName for names to be shown in the client.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@755 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-03 00:53:39 +00:00
Charlie Groves 9cd03095a9 Whoops, didn't mean to add this guy
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@754 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-02 00:29:47 +00:00
Charlie Groves 5a270c00d0 Genericize
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@753 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-02 00:11:26 +00:00
Mike Thomas 3c77f74a8a Allow components to be added spanning the width of the configurator.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@752 c613c5cb-e716-0410-b11b-feb51c14d237
2008-10-01 22:30:54 +00:00
Dave Hoover 8b03be111e Imports cleanup
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@751 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-26 17:36:37 +00:00
Charlie Groves 4ddb11c5bb Scenes aren't required to have a default entrance
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@750 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-26 00:34:57 +00:00
Michael Bayne 8699c2c4c5 Load our string codes in init().
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@749 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-24 18:33:35 +00:00
Michael Bayne 223ccb86a1 Allow a joiner to say "any available seat". Also attempt to report errors in
the TableDirector (in Flash) even though none of that is actually wired up in
MSOY.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@748 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-24 00:56:51 +00:00
Dave Hoover 7d160194a3 Random javadoc fixes I have kicking around.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@747 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-22 20:39:02 +00:00
Michael Bayne 961675157e Nixed unused imports.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@746 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-19 19:50:50 +00:00
Michael Bayne 722f867fa7 Grumble. Let's just make modified and modCount non-transient as that is
screwing us on Whirled when we move members' stat sets between servers. This
means Bang will be transmitting a couple of extra bytes per Stat instance down
to the client but I'd rather not have some way to make some kooky distinction
between when we're sending Stat instances between servers versus to a client.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@745 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-19 02:15:10 +00:00
Michael Bayne 4193ac8767 No longer need the cache invalidator for deleteAll(), also updated some logging
calls.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@744 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-19 02:12:45 +00:00
Michael Bayne 279f76a055 Include the modification count in our toString() output.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@743 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-19 01:55:50 +00:00
Charlie Groves 3bef51c544 Expose computeEnteringLocation directly on a StageLocation
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@742 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-16 17:21:31 +00:00
Dave Hoover 8b0488b3c9 Javadoc warnings cleanups.
Note: this involves generated code from a samskivert patch I only just sent to mdb,
but he's in a meeting, so that won't show up for a little.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@741 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-12 18:04:39 +00:00
Charlie Groves 02ec2e68a9 Revert r739. The consensus is that getDetail is too heavyweight for something that can just be parsed out of the name.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@740 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-12 02:02:59 +00:00
Charlie Groves 890628a5e4 Use the getDetail method for instance specific bits to keep invoker names constant
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@739 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-11 20:51:06 +00:00
Michael Bayne 36c3607585 Updated to use new DatabaseException.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@738 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-03 16:20:32 +00:00
Michael Bayne 24455b4ab8 Allow filtering of top-ratings list by recency of play.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@737 c613c5cb-e716-0410-b11b-feb51c14d237
2008-09-02 19:34:54 +00:00
Tom Conkling 8868835220 We're getting lots of collisions storing MINUTES_ACTIVE stats. Be more verbose when this happens.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@736 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-25 23:51:14 +00:00
Charlie Groves f862f5363f Javadoc fixery
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@735 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-21 01:52:03 +00:00
Tom Conkling ecafc0849c StatSet.addStat()/updateStat() need to know if they were called from syncStat() so that our ServerStatSet subclass that does sneaky badge-related stuff in msoy can do the right thing with regards to badge updating.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@733 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-20 01:30:04 +00:00
Nathan Curtis 85d7df6181 That last bit sounded good, so lets add it to the class docs. Also, fixed a copy/paste comment.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@732 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-16 00:14:48 +00:00
Nathan Curtis 95159a69d2 A StatModifier to ensure that an IntStat has been set to a minimum value. If the stat's value
is already greater than or equal to the minimum requested, the stat is not modified.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@731 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-16 00:13:38 +00:00
Bruno Garcia a72c810193 Boot by Name instead of table position
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@730 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-15 23:37:46 +00:00
Michael Bayne e149bbb05b Formatting formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@729 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-12 01:52:53 +00:00
Charlie Groves 5982369b2a Allow the initial bucket range to be passed to the percentiler on creation. As long as the recorded values stay within the range, the percentiler won't do its 20% greater than range expansion, so the values reported by getRequiredScore will reflect the initial min-max.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@728 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-12 01:45:59 +00:00
Charlie Groves 8f7b90d131 The buckets start at min, so it needs to be included when calculating a score from a given percentile
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@725 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 23:23:17 +00:00
Tom Conkling e53c8aae20 Ok, now we're ready for this change
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@724 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 23:04:13 +00:00
Tom Conkling fa7b70c63e Undo a premature checkin. Not yet ready to commit the code that depends on this change.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@723 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 22:20:49 +00:00
Tom Conkling 7ee0c156b2 StatRepository.updateStat returns the new value of the Stat if it was modified, rather than a boolean
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@722 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 21:38:07 +00:00
Tom Conkling e1fa63562f undo
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@721 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 19:44:12 +00:00
Tom Conkling a983ca025a Add a constructor that takes a single Stat, for some msoy Passport code being worked on
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@720 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-11 19:26:12 +00:00
Michael Bayne be49dd45f1 Needs not Serializable nor @NotStreamable.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@719 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-10 01:23:28 +00:00
Tom Conkling b0d4ab9adb StatSet is no longer final, so that we can extend it for sneaky Whirled purposes
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@718 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-08 21:35:02 +00:00
Bruno Garcia e590dfe1bf Ban by visible name, not username: Thanks Ray
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@717 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-08 21:30:19 +00:00
Bruno Garcia 0a4b20d412 Booting bug fix: Don't zero out the bodyOid we need until we're done with it
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@716 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-07 23:46:56 +00:00
Bruno Garcia 2ce287a2b1 Formatting
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@714 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-07 22:24:00 +00:00
Bruno Garcia 7d75f0c760 - Ban booted players from a table
- Boot by sitting position, not oid


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@713 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-06 22:52:41 +00:00
Bruno Garcia aa84c5055a Booting support to the AS version of TableDirector
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@712 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-06 01:04:27 +00:00
Bruno Garcia 72935d719c Adding booting TableDirector
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@711 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-06 00:57:00 +00:00
Michael Bayne 8410b8893c Actually these had been generated. Bruno must have regenerated them with an old
version of Narya.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@710 c613c5cb-e716-0410-b11b-feb51c14d237
2008-08-06 00:53:22 +00:00