Commit Graph

2567 Commits

Author SHA1 Message Date
Michael Bayne ef748636e2 Various Eclipse suggested bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:41:47 +00:00
Michael Bayne 61d46f2768 Import cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:39:34 +00:00
Ray Greenwell 7ac816f12c - Trashed any reference to line.drain(), we're not going back.
- Removed the RuntimeAdjust for tweaking the Line's buffer size.
- Feed data to the Line in chunks the same size as its buffer.
- Rather than sleeping 3 seconds, calculate how long it would take to play
  the line's entire buffer and sleep that long. It turns out that with
  the buffer size I'm using and the sample rates our sounds are encoded at,
  this is less than 400 ms.
- Went ahead and increased the maximum number of simultaneous line spoolers
  to 12.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-24 08:08:25 +00:00
Ray Greenwell 796c953c89 Window.show() is deprecated in jdk 1.5, replaced with setVisible(true).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:55:26 +00:00
Ray Greenwell bfe9cbba04 Changed the variable named "enum", since that's a keyword in jdk 1.5
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-22 18:52:33 +00:00
Michael Bayne ebdf693143 Log the culprit when we report and continue from a fatal error.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2963 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 02:18:56 +00:00
Ray Greenwell a7908454a1 Removed insano tracking that allowed me to find the IntroPirate bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2962 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 01:00:23 +00:00
Michael Bayne 350c49835c Let's use proper grammar.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2961 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 00:54:51 +00:00
Michael Bayne f8f4c1a611 If a client sends more than 100 messages in 10 seconds, give them the
heave ho.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2960 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 00:52:16 +00:00
Michael Bayne 461a72bd94 Mark each upstream message with a the time at which it was decoded from
incoming network data.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2959 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 00:51:02 +00:00
Michael Bayne a26e460fd6 Catch fatal errors thrown by invoker units as well. Also only log the
stack trace if we're not going to rethrow the error.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2958 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 00:22:30 +00:00
Michael Bayne 813e7b0d47 Attempt to catch and recover from fatal errors. If some rogue event
listener tries to 'new int[Integer.MAX_VALUE]' or infinitely loop, they
will get the smack down and we will go on about our business.

If things have actually gone pear shaped and we are failing on every
event, we'll hit the 30 fatal events in 60 seconds cap and stick a fork in
ourselves.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2957 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-21 00:04:40 +00:00
Ray Greenwell cd2d0ef47b Completely hacky debugging code added to help me figure out why intro pirates
sometimes (never on my server!) released twice. This will save the stack
trace from the first release and spit it out after the "normal" error-reporting
stack trace from the second release.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2955 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-13 19:10:54 +00:00
Ray Greenwell 3ae08bc60d Never drain(), it's just buggy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2954 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-12 04:14:21 +00:00
Michael Bayne 66b627ef2c Incorporated profiles into the 15 minute dump; removed some vestigal
constants.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2952 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-09 02:13:35 +00:00
Michael Bayne 1d97122a81 Use the fine grained timer (measure in microseconds rather than
milliseconds) and same every 100th event instead of profiling every event.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2951 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-09 02:08:28 +00:00
Eric Lundberg 596f55e315 Adding in ye' old McHack until I can figure out what is actually booched with the macs copyarea. This lets the game play all happy like.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2950 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 18:53:00 +00:00
Michael Bayne 072606b23a Added exists().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2949 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-05 17:39:03 +00:00
Ray Greenwell ecb6c5a005 Added some logging to track down people who lose sounds after a while
in Windows.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2948 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-04 19:04:46 +00:00
Michael Bayne 1da661731f Added support for Date fields.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2947 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-03 15:02:13 +00:00
Ray Greenwell 15e11bd9ef Maybe a fix for the mac booch?
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2946 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-03 07:32:41 +00:00
Michael Bayne 21c6dbfc48 Fixed up toString().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2945 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-31 12:16:12 +00:00
Ray Greenwell 70cb0c1cfd It's not a draw if one player leaves the puzzle before the other one
scores any points: we are only a draw if the number of winners equals
the number of players who have not bailed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2944 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-30 23:03:22 +00:00
Michael Bayne 3efc81b1ab We want to fall back to our parent bundle both if we don't find a resource
or if we have no resource bundle at all ourselves.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2941 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-25 13:23:09 +00:00
Michael Bayne e8c355dff8 Obtain our system properties in a security manager aware manner.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2940 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-24 05:58:16 +00:00
Ray Greenwell 2552fd471b Simplified implementation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2939 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-17 01:55:46 +00:00
Eric Lundberg afccde1dd2 INitial checkin of a streamable version of an ArrayIntSet. I like sets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2938 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-17 01:14:12 +00:00
Michael Bayne 1688a19704 Allow for "loose" path location which gets the sprite as close as possible
by normal means and then walks them in a straight line from there (when
the straight line part will invariably be off-screen, this is OK).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2937 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-12 05:53:59 +00:00
Michael Bayne 7568ae1223 Provide support for locating incomplete paths.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2936 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-12 05:52:05 +00:00
Ray Greenwell ca89a3c122 Demoted logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2935 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 17:43:12 +00:00
Michael Bayne 7f4a01b795 Made getBlock() public, added enumerateResolvedBlocks(), pressObject().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 12:22:05 +00:00
Michael Bayne 197067593f Added support for visiting just the interesting objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2933 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 12:21:17 +00:00
Michael Bayne 0315c4316f Removed the hard coded jiggery pokery that we were doing to layout scene
object tips, replaced it with a system whereby custom tip layout
mechanisms can be registered for object action prefixes. The default tip
layout centers the tip in the object exactly as before minus the height
limitation business (which is actually no longer needed as the sailing
duty stations are no longer assigned to the rigging but to the wall below
the rigging).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2932 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 08:26:18 +00:00
Michael Bayne 9f48d11b4e Make the screen coordinates of the object's spot available since we have
them.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2931 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-11 08:24:16 +00:00
Ray Greenwell 424c9b0e0e Let object action handlers have a crack at modifying the tool tip text
for an action (we already let them have a crack at the icon).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2930 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-01-07 22:03:08 +00:00
Ray Greenwell 44247f19c6 Sigh, instead let's try giving each drop sprite only two "pop-ups".
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2928 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-31 01:26:23 +00:00
Ray Greenwell cbec145f7b Fix the floating sword-block exploit.
Pretty much what I was trying to do before, only instead of forcing the
block to a position, we continue to let the loop attempt to find a rotation
that works. Let's test and see how we like this.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2927 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-31 00:03:14 +00:00
Michael Bayne ddeadbcff1 Let's get jiggy with the verbosity in hopes of shedding some light on this
ever-repeating sound situation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2926 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-22 22:25:34 +00:00
Michael Bayne 07dfb982d7 No indication of time wickosity, so we can can this call.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2924 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-19 18:31:11 +00:00
Michael Bayne 5774f1b6a5 Removed verbose logging. Didn't discover anything useful with regard to
disconnects.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-19 18:30:23 +00:00
Michael Bayne 7bccc5f5e3 Make sure we have a version and also do our matching without a regular
expression because Windows \s in paths booch the regex code to the high
heavens.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2922 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-18 18:32:34 +00:00
Michael Bayne b029b5d8c3 Clear our active flag before passing requestFailed() onto the subscriber
so that things go smoothly if they decide in requestFailed() to call
unsubscribe() in the course of their normal shuttings down.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2920 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-17 00:15:08 +00:00
Michael Bayne 1138be216f Combined some things that didn't need to be separated and added better
checking and error reporting.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-16 03:45:31 +00:00
Michael Bayne e213827ee9 Let's just warn and cope rather than sticking a fork in things.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2918 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 20:06:09 +00:00
Michael Bayne f623572a33 Corrected log message.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2917 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 20:04:09 +00:00
Michael Bayne 50a3db61d3 The destination file is already versioned so we just replace the version
information with our regular expression.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2916 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 19:40:11 +00:00
Michael Bayne 7088a6b7db Removed transitionary code; added code to delete old bundle files from
previous releases that sometimes cannot be deleted because of the
mysterious "no you can't delete a file that you created" Windows bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2915 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 19:37:32 +00:00
Michael Bayne d425ec7abb Added isActive().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2914 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-15 17:12:11 +00:00
Michael Bayne 3e466530f6 We call RunAnywhere.currentTimeMillis() so that we can find out as soon as
possible if time has leaped into the past. This is primarily useful so
that we can correlate such happenings with other strangeness that may be
caused by time bogosity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2912 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-13 02:59:05 +00:00
Michael Bayne 1bdfb805ab We can't do this, currentTimeMillis() will return bogus values such that
the math appears to work out even though time stopped. We can use
RunAnywhere.currentTimeMillis() which will warn if time goes backwards but
since when that happens the IntervalManager stops dead in it's tracks,
we'll never get ticked to find out about it. Fucking Windows.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2911 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-12-13 02:56:29 +00:00