Commit Graph

2379 Commits

Author SHA1 Message Date
Michael Bayne 1d3e8247e8 Throw a particular exception when we fail to patch bundles.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2757 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-09 00:31:27 +00:00
Michael Bayne b9341c9430 Break out and report the patching and unpacking phases.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-09 00:31:14 +00:00
Michael Bayne 748db4d5d7 Failing to locate a class is apparently a RuntimeException even if you do
it through Class.forName().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 23:55:06 +00:00
Michael Bayne bd893f198e Try using .old rather than .jar.old and maybe that will fix the weird
problem with not being able to rename some, but not all, of the old jar
files prior to patching them.

Also, took out the assume v0.22 hack as we should be good to go on that
front by the next release, the stragglers will just have to download a
full update (which is safer anyway).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 23:45:39 +00:00
Michael Bayne 6cf90dcddd Not so fast, we need to jigger this differently.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:43:05 +00:00
Michael Bayne dbd2422bd4 Added another note about the ills of System.currentTimeMillis().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:41:28 +00:00
Michael Bayne 6cccd396e6 Two fixes: use the high-performance timer if it's available and make our
frame tick interval 10ms on Windows because any non-multiple of 10 causes
the big fat fuckola in the form of heinously accelerated clock drift.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:41:10 +00:00
Michael Bayne a5eaa52a8e In 1.4.2 Sun introduced an interface to the Windows high performance timer
in sun.misc.Perf. If we can use that, we do.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:40:22 +00:00
Michael Bayne cfe7f19669 Was clearing out the wrong business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 21:39:29 +00:00
Michael Bayne 732c0aab41 Modified clock synchronization approach slightly so that we allow 5
seconds to pass in between ping/pong latency samples. Additionally, we
resync the clock every 10 minutes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2748 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 20:20:39 +00:00
Michael Bayne 3034364579 Use a downloader that checks timestamps if we're not doing versioning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2747 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 17:45:00 +00:00
Michael Bayne 5f38a9e44e We have to close the borked patch file before attempting to delete it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2746 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 03:40:46 +00:00
Ray Greenwell 6c3ad0b329 Also count how many times we find ourselves at the top of a non-empty
queue and end things if it gets out of hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2745 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 03:23:43 +00:00
Ray Greenwell b59b9b5954 New very safe shutdown scheme. An Invoker.Unit runs on both the Invoker
and dobj thread until they're both empty (or it has been passed 50 times)
and then shuts the threads down.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-08 03:11:55 +00:00
Michael Bayne 8ceaea36ed Only report that we're downloading if we actually are.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2742 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-05 23:34:01 +00:00
Michael Bayne 00b983ccf7 Break the patching out into a separate phase, clean up the diff and old
jar files when we're done patching.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2741 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-05 07:03:34 +00:00
Michael Bayne d773b9d723 Properly handle errors and do the right thing if we have no version
specified (which should fix versionless dynamic downloads).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2740 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-05 06:54:01 +00:00
Michael Bayne 636b792051 The great big resource manager revamp: the resource manager now supports
the JNLP versioned resource protocol so that it can download jardiffs
instead of whole new jar files when a resource bundle is updated.
Unversioned http downloads (which we'll probably continue to use for the
dynamically generated island bundles) are currently not working.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-08-05 01:33:20 +00:00
Michael Bayne dc7591a562 This seems happy now, so we'll can the logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2737 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-29 18:48:11 +00:00
Michael Bayne 6928f9aa96 We need to handle this in the frame manager because all we can do in
SystemMediaTimer is make time stop while we're in the past, whereas in the
FrameManager we can just note that strangeness is afoot and keep on
tickin'.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2736 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-29 00:41:40 +00:00
Michael Bayne 28bdcd942d Added a workaround to the time fluctuation WinXP bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2735 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-29 00:27:32 +00:00
Ray Greenwell 1b9c9dac62 Decreased the maximum number of sound spoolers to 10. What was I smoking
when I set it to 24? Let's try it like this for a spell.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2734 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 05:32:04 +00:00
Michael Bayne 7961683cb0 Added support for dumping a bundle metadata file directly in addition to
extracting it from a bundle.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2732 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:07:30 +00:00
Michael Bayne 42b84f894f Made setActionSequence() more robust.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:06:38 +00:00
Michael Bayne fbd52c2be3 Tone down cache performance reporting; upped image cache size by a meg.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2730 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:06:14 +00:00
Michael Bayne f252c0f88d Added sanity check.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2729 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-27 02:50:53 +00:00
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 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