Commit Graph

3949 Commits

Author SHA1 Message Date
Michael Bayne 5a2583470c Brought code in line with changes to Samskivert. I have not started to
genericize Narya data structures, nor make the existing code type safe. That's
going to be an extremely large project.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4007 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 08:59:30 +00:00
Michael Bayne 02b59f33c9 Target 1.5 and added Retroweaver directive.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4006 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 02:44:33 +00:00
Michael Bayne efb3a6c54e A properly parameterized StreamableHashMap. Yay!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4005 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 02:42:23 +00:00
Michael Bayne 8d91fa9e7f Don't log a stack trace here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4004 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-10 01:22:39 +00:00
Ray Greenwell 3cef4b5cec Prevent NPE when we process a pong that was destined for a different
DeltaCalculator.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4003 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-07 18:52:24 +00:00
Ray Greenwell 127eebf9a6 Moved to msoy repository.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4002 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-06 23:15:36 +00:00
Ray Greenwell 64d7f32178 Lots of debug logging, some casting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4001 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-06 20:05:28 +00:00
Michael Bayne f7f9056ed2 Fall back to resource files before falling back to the classpath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4000 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-05 19:40:12 +00:00
Michael Bayne 8177c1d410 Initialize our resource directory in the constructor so that clients that use
the resource_dir system property can start loading resources based on that
before they call initBundles().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3999 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 19:22:43 +00:00
Michael Bayne ead3a989b2 Use the new FileUtil method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3998 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 18:46:42 +00:00
Ray Greenwell 492bde538f Added a note about singleton classes.
I'm just whinging, really.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3997 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 17:35:10 +00:00
Michael Bayne aec7a1ece2 Allow the resource manager to be run in "don't unpack yer bundles" mode.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3996 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 03:22:24 +00:00
Michael Bayne 58bf16e804 Exclude test class files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3995 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-04 02:51:42 +00:00
Michael Bayne 2cc2e5fd00 Made it possible to make extended use of the playerStatus array.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3994 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-02 18:39:25 +00:00
Michael Bayne c696896f10 Allow the view to be restricted to a particular type of chat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3993 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-31 18:15:32 +00:00
Michael Bayne 4911947a8e Robustness++.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3992 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 23:53:52 +00:00
Ray Greenwell fb913a6bba Go back to using the median value for our delta estimate.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 19:06:40 +00:00
Ray Greenwell 981deb3b6b Fixed two bugs with delta calculation:
- if a pong response took more than 5 seconds to receive, another ping
  would be sent. When the pong finally arrived the delta would be
  calculated using the most recently sent ping.
  Fix: don't send more pings while waiting on a pong.
- After a pong is received, the _deltas array is mangled while
  calculating the server delta, making subsequent pongs possibly
  overwrite earlier calculated deltas.
  Fix: calculate using a copy.

Also, changed the delta calculation to be the mean of the deltas rather
than the median. Left code in to do it both ways if this change was not
kosher...


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 01:08:32 +00:00
Ray Greenwell 07bc269f59 Bugfix for something that may never be needed in the wild: when an
AuthingConnection is replaced by a RunningConnection we need to transfer
over any associated overflow queue to the new connection object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3989 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 00:09:55 +00:00
Andrzej Kapolka 4dc5202558 Update camera before scene graph. That way, nodes (like the unit status
display) can adjust to the camera position in their update 
methods without being a frame out of date.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3988 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-29 19:42:58 +00:00
Michael Bayne 581242814c Allow this chat view to be used with any speak service.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3987 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-29 01:01:59 +00:00
Ray Greenwell 16a28de8bc Report from brown team, engaged in Operation Slam Your Dick in a Door:
"Still purple and bruised, sir!"

I'm working around more bugs. In theory everything should log in and join
the chat room, but the browser crashes- every single time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3986 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 23:17:52 +00:00
Ray Greenwell 90e4017801 A bit more, more streaming issues. I might need to rework some stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3985 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 02:02:22 +00:00
Ray Greenwell 538803e1fb Checkpoint. Closing in on getting a chat client up, but slogging through
annoying streaming issues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3984 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-28 01:27:57 +00:00
Ray Greenwell d910fbb6f2 I changed a few things and suddenly the inaccessable method works again.
Boy, fun.

I guess I'm embracing the 'adapter' construct for emulating anonymous
classes, but I wish I wasn't.
I have half an idea to start over from scratch and write a very
actionscripty dobj/services/receiver system that ends up looking very
different on the client but still speaks to the server in the same way.
Probably things would just get more and more complex until I was back here.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3983 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-27 19:27:03 +00:00
Ray Greenwell 6c3bc1cb78 Use the pan constants in a few more places to improve readability.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3982 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 22:46:00 +00:00
Mark Johnson 8298025a11 Added pan control for looping sounds
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3981 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:55:55 +00:00
Mark Johnson 5690a38096 Looped sounds were not checking to see if that sound type was enabled
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3980 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 20:49:22 +00:00
Ray Greenwell c00f76f141 Made the methods public and it still doesn't work. There's some awful bug
in the compiler or runtime, I think.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3979 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-25 00:35:05 +00:00
Ray Greenwell 9a6ea2f7a6 Missed these two files in the last checkin.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3978 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 23:50:47 +00:00
Ray Greenwell a91bf8b14c Added some missing marshallers.
Use Long instead of long. I had them both (it may be useful so that we
know if we're streaming an object or just 8 bytes of value) but Windows
couldn't fucking tell them apart (case insensitivity) so I nixed one.
Reference some more marshallers in the client so that the classes will
be compiled in.. gawd.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3977 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 23:49:51 +00:00
Mark Johnson b7e63c4b38 One more handy constant
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3976 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:25:03 +00:00
Ray Greenwell 02f1aaa904 Fixed bug with setting pan.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3975 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 22:19:16 +00:00
Ray Greenwell 9f4c7c1ae2 Use setPan() in the SoundKey constructor so that we bound to sanity the
pan value passed to us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3974 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:12:38 +00:00
Ray Greenwell 6ab61243d9 Allow setting the pan for a sound.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3973 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 04:01:24 +00:00
Ray Greenwell 4a1fdbbbe8 A few things, now that I'm running again (I downgraded to the older beta).
I'm now pounding my head against new limitations that I'd not seen before, now
that the Client class that I'm using is not in the presents.client package.
Macromedia can go fuck themselves with a hot poker.
The .swf is already 200k and I've barely begun working on UI elements.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3972 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 02:28:26 +00:00
Mark Johnson 70cb89d62d Bobble paths now with extra smoothness
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-24 00:13:06 +00:00
Mark Johnson b22dad2519 Moved this into the yohoho code base.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3970 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 19:00:18 +00:00
Ray Greenwell a9e862bead A bit more crap.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 03:29:31 +00:00
Ray Greenwell f6826f010c Dictionary is in the docs, but the compiler doesn't seem to know about it
yet. Rolled back (nearly, I fixed a small bug).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 03:10:43 +00:00
Andrzej Kapolka 1c7041a20e Added support for component masks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3967 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 02:41:15 +00:00
Ray Greenwell 7d3ef496fd More faffing about.
- started making chat UI stuff
- upgraded SimpleMap some to use the new Dictionary class
- Lots of experimenting with attaching functions to interface implementations.
I've upgraded to the new beta of Flex and it's giving me the pain. There's
new compiler bugs and I am working blind right now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3966 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-22 02:10:37 +00:00
Mike Thomas 95ff914ab6 Deal with blank tiles by returning a 1x1 blank pixel rather than a bunch of invalid values.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3965 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-21 02:32:27 +00:00
Michael Bayne d94866f3cf Pass empty postamble.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3964 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-19 19:46:36 +00:00
Michael Bayne 770b67e0b2 Added pickRandom(Collection).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3963 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-19 02:32:51 +00:00
Ray Greenwell ccd6e2b81e Some stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3962 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:43:45 +00:00
Michael Bayne 23f531fa42 Removed overflow queue logging as this has all been running happily for almost
a year since the refactor that inspired leaving this logging in.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3961 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:41:53 +00:00
Ray Greenwell add8f3f97c Work around a compiler bug by FQing the Log classname we're using.
We can revert these statements when/if that bug gets fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3960 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:04:34 +00:00
Ray Greenwell 3ecf7e311e Re-declare SUCCESS so that it can be referred to as ChatCodes.SUCCESS.
Setting up a prototype const doesn't work, which is possibly a compiler bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3959 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-18 00:02:48 +00:00
Ray Greenwell 333d476a4a Use array cloning rather than creating a new one and copying into it.
(It may be the same thing under the hood, but our pal Occam would approve.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3958 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-17 22:29:00 +00:00