Commit Graph

2711 Commits

Author SHA1 Message Date
Michael Bayne a35edea96e We need also to clear the receivers when we transfer them from our auth
user object to our chosen pirate user object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2727 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-25 20:51:08 +00:00
Michael Bayne 82b616d724 Oh fucking hell. I left some debugging output in here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2726 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 23:51:50 +00:00
Michael Bayne 991b68638e Yarrrrrrrrrrrrrrrrrrrrrrrrrrrgh!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2725 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 23:50:32 +00:00
Michael Bayne 0419aebbd5 Could they have possibly changed any other things about the javap output
that would cause this class matching script to fail in unexpected ways?
I'm sure to soon find out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2724 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 23:40:16 +00:00
Michael Bayne e43f7c0de8 More god damned fiddling to make this work with 1.4.2's javap output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2723 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 23:19:26 +00:00
Michael Bayne aced4d2fe9 More tweaks to deal with 1.4.2 javap output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2722 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 22:12:52 +00:00
Michael Bayne 212d051080 Deal with the damned changes they made to javap output.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2721 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-24 21:26:40 +00:00
Michael Bayne 76af5d2353 Prevent propagation of lock release events.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2720 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-22 22:54:14 +00:00
Michael Bayne ef2d31db0b Canned vestigal population crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2719 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-22 07:29:11 +00:00
Michael Bayne 493c75b865 Make client and connection count information available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2718 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-22 02:50:49 +00:00
Michael Bayne 245a5d5139 Do some sanity checking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2717 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-20 17:02:59 +00:00
Michael Bayne f7d55b9814 More debugging for DSet duplicate business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2716 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-20 17:02:26 +00:00
Eric Lundberg 957faac149 Slap the CommunicationAuthorizer code in such that we block all user
communication if the user is not authorized.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2715 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-18 01:58:38 +00:00
Eric Lundberg c2a5e8966b Initial checkin of ye ole' pluggable interface for authorizing player
communication.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2714 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-18 01:54:51 +00:00
Michael Bayne 7efc5dfc32 Make the auth response data available to interested parties.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2713 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-17 21:39:15 +00:00
Ray Greenwell 829f3ad0eb Start transactions outside of the try-finally clause so that if there
is a problem with starting a transaction, we don't get an exception
for failing to commit the transaction.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2712 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-16 18:03:30 +00:00
Ray Greenwell 2726f6a29d Slight optimization to chat history pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2710 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-14 23:46:03 +00:00
Ray Greenwell 96998e5678 Set _sourceLastMod to -1 when uninitialized instead of 0, so that we can
distinguish between uninitialized and various file errors, and hopefully
get us some better logging output. (If there are errors with a file,
lastModified() returns 0, which would have caused resolveJarFile to think
that the bundle just wasn't ready yet and not create the JarFile object,
which resulted in a NPE, and not useful IOEs.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2709 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-14 22:18:18 +00:00
Michael Bayne 10ceff36d2 Log up a warning in these trying circumstances so that future bugs don't
remain obscure.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2708 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-13 02:59:27 +00:00
Michael Bayne 030545b8eb Thanks to Mr. Lundberg's insight, we have tracked down a gross oversight
in the low-level invocation services whereby after a disconnect, any
InvocationReceiver registration would be wholly ignored due to the
previous registrations being left in the receivers set and DSet refusing
to add duplicate instances of the registration. This wasn't immediately
apparent because the initial set of registrations always happens in the
same order and thus are equally useful after the reconnect and any other
registrations are removed during the normal course of affairs. But if a
user disconnects *during* a puzzle, they will leave that puzzle's
registration around and be unable to play that (or any) puzzle again until
they log off and back on.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2707 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 22:34:03 +00:00
Michael Bayne 48c9556d18 Fine grained scene block resolution instrumentation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2706 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 04:16:32 +00:00
Michael Bayne eec42e8f42 Report our fully qualified tile id more human readibly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 04:16:10 +00:00
Michael Bayne 13ded21e51 Added summarizeState().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2704 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-12 03:59:54 +00:00
Michael Bayne 55a40d7161 We need to know about unregistrations as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2703 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 03:13:30 +00:00
Michael Bayne 7047bcfaf5 Log when we register an invocation decoder because we're seeing
circumstances where they aren't around when they should be.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2702 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 03:02:46 +00:00
Michael Bayne d37c56b077 Added more substantial funny business checks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2701 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 01:49:52 +00:00
Ray Greenwell e09ef8bbb2 If asked to find a marshaller for a pure interface, use the marshaller
for Object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2700 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 01:22:16 +00:00
Ray Greenwell cfe4b49c6e Key is Comparable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2699 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 01:21:43 +00:00
Ray Greenwell 71cd8b421a - Use the newer binary search method of locating entries in get().
- Require a Comparable key in get() and containsKey().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2698 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 01:21:23 +00:00
Michael Bayne e85e6ad617 Catch our funny choking getOccupantInfo and log the failure prior to
allowing things to get out of hand. Since getOccupantInfo may normally
return null, doing so in our strange failure case will not cause further
freakout.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2697 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-11 00:47:33 +00:00
Ray Greenwell e140fd6301 Use the AttachableURLFactory.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2696 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-09 18:44:52 +00:00
Michael Bayne 4c342c28f3 We need to potentially decode the length after every read. The original
code did that due to eventuall getting out of the loop, the "fixed" code
failed to do it if we failed to fill our buffer up on the first read.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2695 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-09 05:13:34 +00:00
Eric Lundberg 0ebfeadd21 Seems to be some kind of issue with moving the length == -1 check inside
the loop, so I'm rolling back to the previous version since I can't even
log in to my server with this change.  Mike if you want to take a look or
tell me what jimmyjamming needs to be done to make this change work, that
would be great.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2694 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-07 22:35:38 +00:00
Michael Bayne 17b567ba18 There was a circumstance where the framed input stream could hang if the
frame size was exactly the same size as the buffer and no future messages
came down the pipe to wake us up again. This probably would have had to
happen very early in the session as the buffer gets bigger and bigger to
accomodate the largest frame seen during the entire session and
asynchronous messages are coming in more frequently as well. Thus it's
extremely unlikely that this ever actually hung. In any case, we now log
that circumstance (and do the right thing) so we can see if the log
message turns up in future bug reports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2693 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-06 18:39:55 +00:00
Michael Bayne 5c34de0283 Cache tilesets loaded out of component bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2691 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-02 00:01:17 +00:00
Michael Bayne 4862311e28 Not to NPE if we get back no resource bundles. This would be a
catastrophic fuckola, but we can wait until later to freak out.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2690 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:56:10 +00:00
Michael Bayne 993c79e9d2 Added interface method documentation, rejiggered formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2689 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:53:02 +00:00
Eric Lundberg 00286b608e Added interface to all other packages to plug into the chat provider and
provide an auto response to a tell.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2688 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:50:18 +00:00
Michael Bayne 81460a9496 Added getGameConfig().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2686 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-29 23:11:23 +00:00
Michael Bayne 78cf95ed49 Some minor reformatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2685 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-26 19:57:24 +00:00
Michael Bayne f26dc2ab9c Adapters! We loves the OOP.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2684 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-26 18:24:31 +00:00
Ray Greenwell ec6cf00d6f Ask the place object if it needs to be broadcasted on before doing so.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2683 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-25 17:17:41 +00:00
Michael Bayne 205a25ce10 Allow editing of floats and doubles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2682 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-25 03:13:56 +00:00
Ray Greenwell 8f0ec22267 Undid my last revision; the X/Y coordinates of a pathable are actually the
hotspot, which does not need to be the upper left coordinate. So we let
the sprite do the right thing and we just center on the hotspot.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2681 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 18:02:58 +00:00
Michael Bayne faee2e4088 Whoops, we add new history messages to the end, so start pruning from the
beginning. To do this more efficiently, we end up having to do some
jockeying.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2679 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 05:19:57 +00:00
Ray Greenwell 71109615bc Added setMirage().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2678 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 02:25:10 +00:00
Ray Greenwell 0d79024b5c When centering on a pathable, center on its center rather than its
upper-left coordinate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2677 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-24 02:24:54 +00:00
Michael Bayne b8b76e091c Preserve command events as is.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-23 20:16:07 +00:00
Michael Bayne 25ebfba64f For some strange reason, reusing Colorization instances causes character
creation to break.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2675 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-23 18:06:57 +00:00
Michael Bayne 28a9441143 Allow the ImageManager to function if we're running in headless mode. It
will create all images as 32-bit ARGB.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2674 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-23 17:59:04 +00:00