Commit Graph

2938 Commits

Author SHA1 Message Date
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
Michael Bayne 13fba9919e Make our AI tick frequency public.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2673 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-21 15:32:29 +00:00
Michael Bayne 2f63091f59 No show all.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2672 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-20 21:50:56 +00:00
Michael Bayne fc9f2d88f3 Fire a special scene object action when an object is clicked or object
radial menu item is selected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2671 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:20:02 +00:00
Michael Bayne 629c40f631 Increased the padding around the icon and between the icon and text. We're
going to need to make this customizable by derived classes at some point.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2670 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:12:51 +00:00
Michael Bayne e7a7c2ba09 Pulled icon lookup into method that can be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 22:03:14 +00:00
Ray Greenwell 3d8e053a7f Added the ability to add dynamic bundles which can be downloaded and added
in while the game is running.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2668 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:30:27 +00:00
Ray Greenwell b4f2c4c526 Added isUnpacked(), which lets us know if the bundle is downloaded and
ready to go.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2667 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:12:59 +00:00
Ray Greenwell 5398ce5656 Added support for adding a new bundle on the fly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2666 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-19 01:12:32 +00:00
Michael Bayne ab2a627f1a Report our time calculations always so that we can do a better job of
debugging weird server delta calculations.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2665 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 17:17:21 +00:00
Michael Bayne 629a61d6b5 Report the error directly when we fail to create a jar file.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2664 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 16:54:17 +00:00
Michael Bayne cbe229ccb7 Revamped BundledTileSetRepository to make it easier to add bundles on the
fly in the future; it also now provides efficient tileset name to tileset
id mappings which is exported via the TileSetRepository interface. Lastly,
TileManager now relies on TileSetRepository to efficiently provide tiles
by name or id and no longer maintains its own cache (because the
BundledTileSetRepository already maintains the same mappings).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2663 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 05:48:45 +00:00
Ray Greenwell 572570de75 Added a static createBundle() to create a jar file from an already prepared
TileSetBundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2662 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 00:34:47 +00:00
Ray Greenwell 3fb9a4272d Maximally compress jar files that we create.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-17 23:29:33 +00:00
Michael Bayne 8e158dd1e8 Let's get the class name in there as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2660 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-15 16:47:33 +00:00
Michael Bayne aacca4ca02 Only log if we have a user message but no speak object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 06:23:41 +00:00
Eric Lundberg b9271233ac Har, lets be scanning down, not up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2658 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:55:42 +00:00
Michael Bayne 3701cef1d7 Only track UserMessage since we only care to log things other players
said; prune any big history when a new message is noted.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2657 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 01:18:27 +00:00
Michael Bayne 1523629ef6 Provide the option to deliver listener body oids or usernames.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2656 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:59:24 +00:00
Michael Bayne f1ac86936e Be speaker aware. Big brother loves us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2655 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:40 +00:00
Michael Bayne 61168c737c Don't double note UserMessage instead specifically note tells() which is
the only circumstance where we're not getting sent our own message back to
us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2654 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:55:19 +00:00
Michael Bayne e6dc5c38d7 The basis for logging all recent chat on the server. Now I have to make
every type of chat object known to man capable of reporting who's
listening.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-14 00:47:16 +00:00
Michael Bayne 7d98a59c1c Enable unit profiling and keep an eye out for exceptionally long running
units.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2652 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-12 22:10:07 +00:00
Michael Bayne 105aa7384d Added toArray().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-12 05:24:08 +00:00