9694f12dc5
Added a StreamableTuple class.
Andrzej Kapolka
2007-04-26 01:12:37 +00:00
d3d841e3e5
Some fiddling to handle cases where peers become connected after having been disconnected (in which case there may be conflicts in lock ownership) or are connected asymmetrically (A is subscribed to B, B is not yet subscribed to A).
Andrzej Kapolka
2007-04-24 19:47:12 +00:00
f8ef4aeebc
Instead of doing two instanceofs on every compare, just wrap bare keys in a fake Entry implementation. This also avoids breakage if a DSet entry's key itself implements DSet.Entry (which just happened for the first time in Narya history).
Michael Bayne
2007-04-23 18:59:29 +00:00
beace3839b
Nth time's the charm.
Michael Bayne
2007-04-18 16:40:57 +00:00
184b621ee9
Let's fix toWriteObject() as well since we are aiming for correctness.
Michael Bayne
2007-04-18 16:39:19 +00:00
86aae8809a
ByteArray must be read with readField().
Michael Bayne
2007-04-18 16:35:28 +00:00
8f59462972
Handle // @Override // blah comments more robustly.
Michael Bayne
2007-04-18 16:35:05 +00:00
ad8acdbd1d
Comment fiddling.
Michael Bayne
2007-04-18 02:47:16 +00:00
1060f0d160
More jockeying: - handle // @Override // blah style comments - deal with fields that are assigned to anonymous inner classes (actually anything with braces, which would also include array literals).
Michael Bayne
2007-04-18 02:38:16 +00:00
17b9162881
Widened, honor @ActionScript(omit=true) on classes and constructors, sort of handle inner class declarations, emphasis on sort of.
Michael Bayne
2007-04-18 01:28:10 +00:00
cefe7f0788
Widened.
Michael Bayne
2007-04-18 01:16:57 +00:00
1ca159fe34
Added isFailure().
Michael Bayne
2007-04-16 21:47:53 +00:00
2ec9d50b6f
Dispatch tell failures via a TellFeedbackMessage so that we can easily route them to the appropriate ChatDisplay when we're doing chat in IM-style individual windows.
Michael Bayne
2007-04-16 21:42:18 +00:00
9918594bda
Widened.
Michael Bayne
2007-04-16 21:17:02 +00:00
20e9eb66bd
Broke out array equals() into its own method.
Ray Greenwell
2007-04-14 02:59:51 +00:00
773e53ec2d
Add support for having multiple servers store seperate config information in the same database
Mark Johnson
2007-04-10 21:52:17 +00:00
d61083db7e
Fixed another beans frank problem.
Michael Bayne
2007-04-10 01:01:07 +00:00
32a97f5b18
Or we'll just fix the bug. How did any of this ever work?
Michael Bayne
2007-04-10 00:54:20 +00:00
b24fd5c408
Log the local oid assigned to all proxied objects so that we can see if something funny is happening with spurious objects dispatched across servers.
Michael Bayne
2007-04-10 00:51:17 +00:00
1fd540ab48
We don't even need this check. Simplify simplify simplify.
Michael Bayne
2007-04-07 20:01:21 +00:00
9d5cf32ce0
Nixed premature optimization wherein a frequent premature optimizer, who we will not name, was trying to allow certain authentications to proceed directly on the authenticator thread instead of making a round trip through the invoker. This resulted in those authentications trying to post their results from the authenticator thread, which is bad because all downstream messages should be posted from the distributed object thread.
Michael Bayne
2007-04-07 19:57:51 +00:00
558d9ec2dc
Widened. Modified authenticator to freak out rather than just go ahead and process an authentication request if it is asked to do so before it has an invoker (meaning the server is not yet initialized).
Michael Bayne
2007-04-07 19:47:29 +00:00
3546567824
Log the thread in question as we're seeing this warning on code that certainly looks like it should be running on the dobjmgr thread.
Michael Bayne
2007-04-07 19:39:24 +00:00
f56c2ab370
Let's do keywork substitution on the actionscript; it's got all those purty $Id$ tags, too.
Dave Hoover
2007-04-07 00:25:28 +00:00
f51f6d6f06
Keyword substitution.
Dave Hoover
2007-04-07 00:22:16 +00:00
cbb661337f
Just check if the message event is private.
Ray Greenwell
2007-04-06 20:53:49 +00:00
5843ce777c
Only attempt to call a method on the manager if the received event is a ServerMessageEvent.
Ray Greenwell
2007-04-06 20:46:15 +00:00
c4fac45b9c
Created a ServerMessageEvent that is just like a normal MessageEvent except that messages will never leave the server. If generated on a client, they'll go to the server and be processed like a normal event there (event handlers will be called) but the event will not leave the server and be sent to subscribing clients.
Ray Greenwell
2007-04-06 19:00:41 +00:00
63413f862c
Widened, added sanity check to postMessage() to log a warning and stack trace if it is called from any thread except the distributed object dispatch thread.
Michael Bayne
2007-04-06 18:29:42 +00:00
8d21a4e053
For some reason, content loaded into another SWF does not know its URL until after the INIT stage. I don't think this particularly matters for parameters, since if the URL is unknown it almost certainly means that we will not need to do the custom parameter loading anyway, but let's just make sure.
Ray Greenwell
2007-04-05 17:49:13 +00:00
3ac5ab2e10
Reset the framing output stream before we write the message rather than after in case we freak out in the middle of writing a message.
Michael Bayne
2007-04-05 17:20:53 +00:00
546c44c600
Stop trying to recover from this error (it doesn't work), but try logging the event target.
Ray Greenwell
2007-04-04 21:40:03 +00:00
295633909e
Widened, tweaker error messages.
Michael Bayne
2007-04-03 18:10:55 +00:00
00e24d5ed6
Let's let whoever catches this exception decide if they want a stack trace logged.
Michael Bayne
2007-03-31 02:38:28 +00:00
30252afc83
Apparently that's an IOException by the time it makes it up to us.
Michael Bayne
2007-03-31 02:35:49 +00:00
3e2080cfd2
If we fail to read the AuthRequest from an out of date client, don't stick a fork in the proceedings, pass the partially initialized request on to the authenticator who will either get a version of 0 or an out of date version and reject them properly.
Michael Bayne
2007-03-31 02:20:01 +00:00
d389b22cd5
Try ignoring the error...
Ray Greenwell
2007-03-30 22:03:59 +00:00
77ff647b1a
Maybe a stack trace can tell us more about our mysterious error.
Ray Greenwell
2007-03-30 21:34:07 +00:00
3c7a546472
rollback r4636 due to interference with non-yohoho projects
Elizabeth Fong
2007-03-27 21:49:25 +00:00
f76825c76e
Fix yohoho singleplayer NPE boochery caused by unsafe direct call on DObjectManager
Elizabeth Fong
2007-03-27 21:11:13 +00:00
99662df60f
Safety first!
Michael Bayne
2007-03-25 17:14:44 +00:00
68030c0719
Do the actual reboot with a LongRunnable so that we don't get logged warnings about it.
Ray Greenwell
2007-03-23 20:41:11 +00:00
a74e7493e9
Use Log.dumpStack() where the Java source used Thread.dumpStack().
Ray Greenwell
2007-03-22 06:10:19 +00:00
b87abd9c95
oh yeah... ant compile doesn't build the as sources... I wondered how I got this port right with no errors on my first try.
Nathan Curtis
2007-03-22 03:43:36 +00:00
30a2269c32
Log a warning to go with our stack trace and add a comment to explain why we don't in the other case.
Michael Bayne
2007-03-18 17:02:57 +00:00
509e70548e
It's just so handy, build-in the ability to specify a callback directly instead of a command to CommandEvent. Weirdly, a CommandEvent will never be generated with the callback way of doing things, but now CommandMenu and CommandButton will both support the callback syntax.
Ray Greenwell
2007-03-16 21:26:53 +00:00
94cdf6f2dc
Some of this got moved into samskivert.
Michael Bayne
2007-03-16 20:51:18 +00:00
6508abbc11
Implement bodyObject's proper who().
Ray Greenwell
2007-03-15 23:22:11 +00:00
5ed85d4967
A marker interface that can be implemented by components other than normal texty-input components that wish to have the chat system leave their focus alone.
Ray Greenwell
2007-03-13 18:47:29 +00:00
4475382a21
For now, don't register /tell here in actionscript land.
Ray Greenwell
2007-03-13 18:46:23 +00:00
f0fe896194
Widened, modified sendRequest() to avoid freakout if it is called after the director is cleaned up.
Michael Bayne
2007-03-13 18:18:06 +00:00
31e6bbee01
Automatically unwrap args in a MessageEvent, like we do in other events.
Ray Greenwell
2007-03-08 21:01:33 +00:00
5e97a04402
Change this instance back. Varargs are still a nightmare and should generally be avoided, but nobody's going to override this method and we're always calling a regular method on the server, not a varargs method.
Ray Greenwell
2007-03-08 20:12:38 +00:00
e415bb59dd
Avoid var-args in actionscript, because they're pretty broken. If you pass an array as the varargs argument, it doesn't supply the varargs like it would in java, instead the whole array becomes the first argument.
Ray Greenwell
2007-03-08 19:35:11 +00:00
d04dd8cfeb
updated per recommendation from ray
Nathan Curtis
2007-03-07 20:28:43 +00:00
5bed2f84ec
testing for line intersections... this works in at least a reasonably trivial case - it will receive more extensive testing shortly
Nathan Curtis
2007-03-07 20:10:11 +00:00
f13e02df2b
Ye olde typoe.
Ray Greenwell
2007-03-06 22:39:53 +00:00
f3f810b49f
Change the meaning of holdsToken(): now the token(s) specified must be EXACTLY held. I think this is ok because all callers currently pass a single token at a time, but I have not verified this for every project. Please verify this for your project! Added holdsAnyToken() which has the old behavior of returning true if any bit is on.
Ray Greenwell
2007-03-06 22:38:33 +00:00
f27faf9f49
Widened, added getPlaceController().
Michael Bayne
2007-03-06 01:57:37 +00:00
0a1999c55f
ParameterUtil: read params from an XML file we're loaded from the file system.
Ray Greenwell
2007-03-05 23:14:05 +00:00
756aeac1c0
allow the use of subdomains, if wished
Nathan Curtis
2007-03-03 02:03:10 +00:00
413f08f9f0
Moved flash display-specific stuff to nenya: com.threerings.flash (to match the com.threerings.flex). Let's still put general-purpose flash stuff here in com.threerings.util.
Ray Greenwell
2007-02-28 22:49:32 +00:00
b49534e7a4
Tried once again to make a labeled continue work. It doesn't. I thought maybe this was fixed, because in early betas the "with" statement didn't work, but it does now.
Ray Greenwell
2007-02-28 19:13:15 +00:00
48fb6e51e4
- Prevent weirdness when trying to remove our child.. someone we may get a ROLL_OUT without having first got a ROLL_OVER? - Clicks that land on the video control should be stopped there and not allowed to trickle back up, potentially triggering the furni action that someone's set on the video.
Ray Greenwell
2007-02-28 05:22:47 +00:00
2bff3befde
A reasonable alpha-level video displayer. When you mouse-over it, the controls appear, which are currently only a pause/play button. When it reaches the end, it autorewinds and pauses. Things: - We may want all videos to start paused. However, since we're not using a streaming media server, there's no way to show the first frame without loading the video unless we screenshot it on the server and then include a secondary media ident, which we don't do. So: as long as the user has to load the FLV, we may as well play it and not make it just look like an image. - We'll probably want to adapt this into a standalone video displayer that can be used to view FLVs using our UI from inside a web page.
Ray Greenwell
2007-02-28 04:57:30 +00:00
e4d7b86d2b
Cleanup.
Ray Greenwell
2007-02-28 04:51:51 +00:00
6bb0b50186
Another use for ValueEvent. Should be compatible with old listeners.
Ray Greenwell
2007-02-28 03:02:54 +00:00
8a46320e95
Re-enable video in the world. There are a few rough edges which'll eventually get ironed out.
Ray Greenwell
2007-02-28 02:59:37 +00:00
d652de50e7
I should have created this a while back. Sometimes we just want to wild-up some custom event to communicate a value to listeners. This is for that.
Ray Greenwell
2007-02-28 02:58:45 +00:00
a11b338156
Document something that doesn't work.
Ray Greenwell
2007-02-27 19:43:55 +00:00
3b4c331e0b
Log when we're calling logoff() for our local peers to see if this is or isn't happening on the hanging dev server.
Michael Bayne
2007-02-27 00:46:32 +00:00
aedd77c17c
Dispatch an event when config values change.
Ray Greenwell
2007-02-26 20:11:40 +00:00
09f0bee0f3
Yet more header patrol.
Michael Bayne
2007-02-24 00:39:27 +00:00
0384c8c129
Update our AuthRequest on session resume so that we deliver the proper bootstrap services.
Michael Bayne
2007-02-23 23:19:11 +00:00
d3064398e9
Widened, removed misleading comment. It's all non-transient fields, not all non-transient public fields.
Michael Bayne
2007-02-23 19:59:18 +00:00
3c4f1728d5
Allow a unit to express that it's going to take a long time and should not be complained about.
Michael Bayne
2007-02-23 19:52:50 +00:00
c25024f497
Move some low-level object access control into Presents from Crowd (default all objects to non-modifiable, restrict client object subscriptions to the client in question). Modified Peer code to not log a warning when a peer is not online in an expected way (not listening for connections).
Michael Bayne
2007-02-23 19:41:30 +00:00
fe7981b1bf
typed container for storing two flash.geom.Point(s)
Nathan Curtis
2007-02-22 23:34:13 +00:00
573e5989b7
Go back to using mx.resources.ResourceBundle, as it's the standard thing and turned out to not be the class that was sucking in vast quantities of flex code. Alas.
Ray Greenwell
2007-02-22 19:21:08 +00:00
c661845ece
We're not going to use this after all. Not removing, keeping around for reference.
Ray Greenwell
2007-02-22 19:16:16 +00:00
0e6988bdf8
Committed for posterity.
Ray Greenwell
2007-02-22 19:14:11 +00:00
b9e9a43fe0
An ant task to generate our own custom resource bundles for actionscript.
Ray Greenwell
2007-02-22 06:05:04 +00:00
bf4d4ee5ec
De-flexing: created our own ResourceBundle, ditched Locale from MesageManager (it doesn't do jack right now anyway)
Ray Greenwell
2007-02-22 05:07:14 +00:00
f2137ff236
Added a DateUtil class with a convenience function I need.
Par Winzell
2007-02-21 23:30:16 +00:00
9c626246a0
Don't need this, was testing the numerator anyway.
Ray Greenwell
2007-02-21 02:16:40 +00:00
7651c6d400
Added getContent() to get the top-level DisplayObject from a loaded SWF.
Ray Greenwell
2007-02-21 01:52:04 +00:00
bb73488fe8
don't know how this escaped my last commit...
Nathan Curtis
2007-02-20 22:59:09 +00:00
687dbe0216
Simple frames-per-second displayer.
Ray Greenwell
2007-02-20 05:22:27 +00:00
1b774f3f15
Oh hey, when I de-flexed our Log class I forgot that the flex version had the capability to add targets (with their own module / log-level). Add back in this capability, in very simple form for now.
Ray Greenwell
2007-02-17 03:03:41 +00:00
a22bcfeb42
Yes ma'am, in the future, I promise to compile before committing.
Michael Bayne
2007-02-16 00:00:11 +00:00
44efca0c18
Demoted message to debug.
Michael Bayne
2007-02-15 23:49:28 +00:00
bca51291ae
Video's been broken for a little while, but I had removed all my video objects so was not seeing NPEs that others were. Fixed.
Ray Greenwell
2007-02-15 00:54:59 +00:00
2376e86f3f
Forward events to proxies. Fixed NPE, changed account names used in peer sign-on to be the connecting server's node name.
Andrzej Kapolka
2007-02-15 00:26:52 +00:00
a3cb9f1f81
Fixed unstreaming a List from the server.
Ray Greenwell
2007-02-15 00:15:49 +00:00
32d99abe15
Missed a couple lines.
Andrzej Kapolka
2007-02-14 22:20:09 +00:00
0fa6d2f233
Keep track of node subscribers (and lock action ratifiers) by their client oids.
Andrzej Kapolka
2007-02-14 20:35:11 +00:00
51fed0676e
Use the number of subscribers to determine how many responses to expect. Take the lock immediately if there are no subscribers.
Andrzej Kapolka
2007-02-14 02:30:37 +00:00