Commit Graph

3165 Commits

Author SHA1 Message Date
Michael Bayne 685f989dc9 A one shot component for tiling an area with a background tiler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3011 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-21 07:36:17 +00:00
Ray Greenwell 9a998f9e69 Forgot something import-ant.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3010 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-19 22:09:04 +00:00
Ray Greenwell 0091a445f5 Don't actually register our scene manager until all of the our subclasses
have finished running didStartup.
This is a little hacky, but it's far easier than requiring that all our
subclasses call super() at the end, and booching it if someday they don't.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3009 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-19 22:04:45 +00:00
Ray Greenwell 680fc5bb38 Still having trouble tracking down a bug related to games that seem to
end twice. This should help.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3008 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-19 01:24:10 +00:00
Michael Bayne 72ea6248ae Zone names are Name objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-18 11:04:08 +00:00
Ray Greenwell 60f9159f25 When flushing inactive clients, don't let a choke in one prevent us
from flushing the rest.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3005 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-10 17:45:27 +00:00
Ray Greenwell 11fba91964 Fixed pause-related bug. Lord forgive me for mucking about in here so much,
but now I've cleaned up the code that dicks with mouse listeners while
paused and moved it into an inner class so that it's easier to understand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-05 02:38:22 +00:00
Ray Greenwell 1a0ae950f4 Changed module name to just "puzzle" (we're not longer in yohoho).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-05-04 23:36:01 +00:00
Ray Greenwell d3176c2d9c Sigh, fixed so that the first click is not eaten if the user unpauses
with the keyboard.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-30 00:02:21 +00:00
Ray Greenwell cb7007226b Use the good'ole MouseHijacker to prevent the click that unpauses to
pass through to the board view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-29 00:28:05 +00:00
Ray Greenwell d5889452eb Fixed click-to-unpause for non-blockade duty puzzling...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2995 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-28 18:57:55 +00:00
Ray Greenwell aa7537d526 When paused, don't install the mouse-clicky unpauser on the boardview, but
rather on the whole panel. This allows us to unpause by clicking even if the
boardview is removed during pausing, as it is now in blockade duty puzzles.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-14 00:36:49 +00:00
Ray Greenwell 7308feea9b More Name conversion.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2992 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-09 17:36:47 +00:00
Ray Greenwell 1d474b4863 By default, do not remove whitespace as part of Name normalization.
This is to prevent clashes between an NPP name like "Bad Bob" and a player
name like "Badbob". Something more sophisticated, like maybe a specific Name
subclass for yohoho usernames, is left as an exercise to the Mike, if desired.
Note that crew/flag name normalization is still as strict as ever.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-06 17:42:49 +00:00
Michael Bayne 1dc8070910 Checking these in for Ray so that things will compile.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-06 03:53:26 +00:00
Eric Lundberg c50dbe8b72 Allow the field editor to edit arrays of floats. The sword runtime config
currently uses them but it wasn't actually possible to edit them. (Not
that I'm messing with the values or the sword code, I just noticed it was
seemingly borked.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-04-05 23:44:28 +00:00
Eric Lundberg beb2539663 Get rid of the not needed code that I had previously checked in for a
short stint of actually being used.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-31 02:16:12 +00:00
Michael Bayne a0718bc6cd Report the locale we're using. It's handy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-31 02:09:37 +00:00
Eric Lundberg 74eb2bef88 Added code to allow object visitors to visit a specific section.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-30 01:30:38 +00:00
Ray Greenwell 15b1d7137c Dead code pruning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-28 00:36:39 +00:00
Michael Bayne 1af8c46fcf A bit 'o logging in places where it's handy and not too verbose.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2984 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-10 16:20:04 +00:00
Michael Bayne 8a54e85914 Switched to a safe subscriber.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2983 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 14:55:50 +00:00
Michael Bayne e39ff5ffd3 Whoops, we forgot to check in the main attraction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 14:55:03 +00:00
Michael Bayne 1a4bdbc5c2 Distributed objects go in the data package, not client. While I was in
here, I went ahead and cleaned up the custom field editor handling per
Ray's earlier suggestion.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 12:00:39 +00:00
Michael Bayne 32dee3cbaf 405 modified source files and 17,367 lines of diffs later we now enforce
more discipline when handling names in our code base. Any user entered
name should find its way into a Name object as soon as it comes out of a
text field or whatnot, and stay that way until it makes its way into a
text field or into a database record (for which String objects are vastly
simpler because of JORA magic).

Dear God, let me never again make a change this large for the rest of my
mortal life.

Unfortunately, this means we have to keep an eye out for funny business
pretty much everywhere. However, since we will absolutely want to test
market stalls and so forth on Azure, we'll have an opportunity to iron out
any funny business that might fall under the radar during our internal
testing.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-06 11:29:19 +00:00
Eric Lundberg 92b716d790 seems to work like a champ.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-05 02:40:18 +00:00
Eric Lundberg 20541d11dc Added code to support serializing and deserializing of Streamable objects
in the prefs.  Thus we can now have DSets of arbitrary data types in our
run time config objects, with swanky custom UI no less.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:50:30 +00:00
Eric Lundberg 4e7ea75efa Changed to use the custom ui if it is available from the configObject.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:43:48 +00:00
Eric Lundberg 97207fca74 Initial checkin of the new base config object for run time configs.
Allows derived config objects to provide custom editing UI.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-03-04 02:42:31 +00:00
Ray Greenwell df0cf0cf98 Go back to only logging verbose sound events when the runtime adjust in on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-26 18:42:51 +00:00
Michael Bayne 40e04de557 Pruned imports.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:52:16 +00:00
Michael Bayne 9ccff79f52 Regenerated.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:51:51 +00:00
Michael Bayne d4595269d5 Brought things back up to date; pruned imports; made Eclipse suggested
cleanups.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2972 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:51:26 +00:00
Michael Bayne d618d3c771 Eclipse suggested cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Michael Bayne 6cd4e73720 Import cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2970 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:49:56 +00:00
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
Michael Bayne 5e00fadbfc Force the service files to be compiled before we run genservice.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2967 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 10:02:05 +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