Commit Graph

150 Commits

Author SHA1 Message Date
Walter Korman 2fde0b7117 Made to implement the RuntimeSpotScene interface as was surely intended.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2054 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-11 23:06:24 +00:00
Walter Korman 8ef2721d73 Fixed javadoc typo.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2044 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-09 04:44:33 +00:00
Michael Bayne b27571c8c0 Created an extensible mechanism for clearing out a client's location
information when they end their session.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2014 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-03 06:58:57 +00:00
Walter Korman b0056f0f41 Added zone adapter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-12 19:53:35 +00:00
Michael Bayne d81451c2c1 Create ClusterObject instances for cluster chat objects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1892 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 23:02:10 +00:00
Michael Bayne 6edc33c6ed Created a specialization of DObject to use for cluster event dispatch.
This is mainly so that these objects show up as distinct in our DObject
table reports.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1891 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-04 22:33:39 +00:00
Michael Bayne e8ee391d24 Report moveTo() for now as it may inform the hunt for the puzzle in world
view bug.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1888 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-03 01:15:36 +00:00
Michael Bayne 6781e1da56 Oh the price we pay for wanting to be able to logoff and log back on
without exiting the client.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1843 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-27 21:24:58 +00:00
Michael Bayne a0e9044e93 Config clean up and unification. The base servers were doing more than
they needed to and when all that was stripped away, they didn't really
need their own config files.

Now what little config they need is provided by the users of these basic
services so that said users can make their own decisions about where to
obtain configuration information.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1820 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-21 20:56:21 +00:00
Michael Bayne 4da35c0f0b Provide a means by which a place manager can check, early in the
initialization process, whether or not it actually wants to be created,
and allow it to abort the whole deal if it doesn't.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1777 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-06 00:44:58 +00:00
Michael Bayne 27d7a59994 Transactions should be started outside the try/finally block that ensures
their committal. This prevents double-fuckage if starting the transaction
fails (because the finally block would still be executed which would try
to end the non-existent transaction, throwing another exception which
hides the first).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1774 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-04 01:33:10 +00:00
Michael Bayne d8af715498 Keep the sceneId of the currently occupied scene in the body object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1718 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-20 00:54:06 +00:00
Michael Bayne 335ef8eb05 New occupant info handling facilities that prevent rapid fire modifiers
from stepping on one anothers' toes.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1676 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-13 00:20:43 +00:00
Ray Greenwell 530188e5f2 Don't clone the occupantinfo when changing the location, just change it.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1675 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-12 23:04:04 +00:00
Ray Greenwell 752ee2fe8b added static moveBodyToDefaultPortal()
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1669 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-09 23:22:28 +00:00
Michael Bayne 99edb5cd5e Regenerated services and receivers to fix bugs and use updated templates.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1659 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 19:38:16 +00:00
Michael Bayne 9de7ff77ba Added isLocationOccupied() which allows server-side entities to determine
definitively whether or not someone is in a location and/or has it
reserved via a call to getUnoccupiedLocation().


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1653 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-20 18:21:45 +00:00
Michael Bayne e54a4d41f4 The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style.
Could this be my biggest checkin ever?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-14 19:08:01 +00:00
Ray Greenwell ef52f31ad4 Created client-side message objects which are the only thing passed
to the newly simplified ChatDisplay interface, which now has but one method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-26 20:35:02 +00:00
Michael Bayne eb0f92fcef Brought things into line with new streaming world order.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1607 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-23 05:54:53 +00:00
Ray Greenwell 71c7a488c9 byte'd chat mode code
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1600 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:54:04 +00:00
Ray Greenwell 5c5038690b Added support for think and emote.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1599 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-07-22 22:26:26 +00:00
Ray Greenwell 3d71bd858a added a getUnoccupiedLocation() that only gets a location within
a specified cluster.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-25 01:41:59 +00:00
Michael Bayne cabfc118cb Whoops; don't try to mark a location as reserved if we couldn't find one.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 23:06:40 +00:00
Michael Bayne b32ca52809 Fixed up logging; added code to mark a location as reserved when we return
it from a call to getUnoccupiedLocation(). Anyone can move into the
location (regardless of who reserved it), but it won't be reported as
unoccupied until someone enters it and leaves from it once again.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1520 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:38:58 +00:00
Michael Bayne 9f61770db1 Removed verbose debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1518 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:16:09 +00:00
Michael Bayne eb3a4909d6 Moved getUnoccupiedLocation() into SpotSceneManager; created SpotSceneUtil
which contains the routines to do it; modified said routines to allow them
to be called with the internal location tracking array maintained by the
spot scene manager because that is the only thing guaranteed to be truly
up to date; made use of where() in spot scene manager's log messages.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1517 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:14:58 +00:00
Michael Bayne cb14ec144c Use IntListUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1516 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:13:39 +00:00
Michael Bayne 300312782a Added a StringUtil Formatter for printing out only the user oid and
location id from an occupantInfo set.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:13:20 +00:00
Michael Bayne fadf226677 Added convenient where() method to PlaceManager which is used when logging
errors to report the "place" in which the error happen. The SceneManager
overrides this to include scene information. Scrupulous use will make log
messages much more scrutable.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:12:23 +00:00
Michael Bayne d88e6bc490 Provide access to scene name.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-20 22:10:56 +00:00
Ray Greenwell a3196fbad3 added inValidLocation() to check if an player is in a non-portal location
within the room.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 23:22:51 +00:00
Ray Greenwell 50d78fecc4 removed unused method
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-19 20:27:07 +00:00
Ray Greenwell 0317828b1d Clone the occupant info before updating the location. This fixes the
beamed-in NPP problem- they were updating their location on the server
before the element added event was even distributed to the clients.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 23:03:44 +00:00
Ray Greenwell 36a8a9672f zone moves and portal traversals can now have an optional result listener
passed in.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:40:16 +00:00
Michael Bayne 891e1a319f Return true if we send a traverse portal request, false if we don't.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:27:53 +00:00
Michael Bayne a7a427f972 Return true from moveTo() if we actually sent the request, false if the
request was rejected out of hand.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1458 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:24:49 +00:00
Michael Bayne 25b22b4f11 Need to mark our last move request time regardless of whether we have a
pending request outstanding.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1457 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 01:19:16 +00:00
Michael Bayne b9000bf08c Don't declare a pending moveTo request to be stale until at least a minute
has gone by. This prevents us from getting shafted by double clicks.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-14 00:57:49 +00:00
Ray Greenwell c1a92c761b Keep track of which locations are portals and don't track users when they
move there and prevent more than one user from occupying a portal.
Removed unused method.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1449 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:05:55 +00:00
Ray Greenwell eadfe2bad1 Don't make the occupant move to the portal location when they traverse it,
they'll handle that themselves now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1448 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:04:41 +00:00
Ray Greenwell e3df1a5894 Don't request to change locations if we're already there.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1447 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-06-12 07:03:23 +00:00
Michael Bayne 0ce79473fb Whoops, forgot to register the scene and zone directors as invocation
receivers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1395 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:35:02 +00:00
Michael Bayne d0e1722083 Oh yeah, moveBody() needs to be static.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:29:13 +00:00
Michael Bayne 97197d49cc Added support for initiating a place/scene/zone transition from the
server; chat director no longer needs to wait until we're logged on to
register itself with the invocation director.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-26 02:24:46 +00:00
Michael Bayne 16d4bfabca Demoted some log messages to debug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1387 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-24 05:58:55 +00:00
Walter Korman 86a9d88ed8 Clear out our scene when the client logs off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1386 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-22 21:48:44 +00:00
Michael Bayne b15d38b54d Relegated a shitload of logging to DEBUG status.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1361 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-15 23:54:35 +00:00
Michael Bayne ccf0dca140 Don't issue an ALREADY_THERE response if a user requests to move to a zone
they already occupy. When a client logs on after a disconnect, it needs to
do a zoned moveTo request to get back to where it was because it doesn't
have the zone summary and associated good stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-03 00:00:17 +00:00
Michael Bayne c15f763ba0 It's a feature!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-02 19:34:51 +00:00