Commit Graph

122 Commits

Author SHA1 Message Date
Aaron Terrell (Enus)
7651b054f6 moving a setting from client to base (missed that a while back), adding the stub of udpproxy.py - so not complete 2009-12-31 12:00:30 -08:00
kotler.linden
00292916b3 temporary fix to not strip off padding of binary data 2009-11-14 00:43:54 +00:00
enus.linden
41b57df548 adding a flag to toggle monitoring of outgoing packets 2009-11-11 17:28:57 +00:00
enus.linden
fe57fbe86e integrating message.xml checking into udp message serialization and deserialization 2009-10-20 22:43:49 +00:00
enus.linden
c87707de7b moving sphinx docs to their natural location 2009-10-15 21:48:05 +00:00
enus.linden
782feee46a adding a comment re a bug to fix, and adding whitespace which is so pretty 2009-10-12 20:42:22 +00:00
joshua.linden
43042bb322 Added unit test for message[block][index][var] shortcuts 2009-10-09 16:09:56 +00:00
joshua.linden
2ef5ed08a0 * Refactor redundant code out of an if/else block * Add __getitem__ accessors so you can replace this:
packet.blocks['RegionInfo'][0].get_variable('SimName').data

with this:

  packet['RegionInfo'][0]['SimName']

Reviewed by Enus Linden
2009-10-08 23:56:00 +00:00
enus.linden
bcfb58f081 adding custom message_template.msg and message.xml to MessageManager(), and passing it through 2009-10-06 23:28:31 +00:00
kotler.linden
a8f3115c6b fix to the comment regular expression to parse 1 line comments that don't start at the beginning of the line 2009-10-06 17:47:36 +00:00
enus.linden
1be075f406 new message_template.msg and message.xml, test updates 2009-10-05 22:13:31 +00:00
kotler.linden
7ff5115786 add event queue setting to base.settings, fixed settings test case, started work on tst_message_mananger 2009-09-30 00:10:16 +00:00
kotler.linden
8f2c635398 removed region attribute from udpdispatcher since it serves no purpose and the udpdispatcher can multiplex hosts so it makes no sense to be tied to a single region 2009-09-29 22:19:34 +00:00
kotler.linden
5724037da9 adding message_manager and event_queue to lib.base 2009-09-29 19:04:42 +00:00
joshua.linden
a492ffac49 Fix for DEV-39785: errors with packet ack decoding.
Acks were being incorrectly stripped before zero-decoding, so bogus data was re-added and subsequent ack parsing would fail.

Will get post-facto review from Enus.
2009-09-11 19:00:30 +00:00
enus.linden
306c40248d movinf helpers.py and deleting the utilities dir 2009-09-04 05:30:18 +00:00
enus.linden
9f8ec77716 fixing up logging imports, moving some things around 2009-09-04 05:00:00 +00:00
enus.linden
6040d7240b making logging changes 2009-09-01 16:34:23 +00:00
enus.linden
b629f37fda moving the license info to the header of the file 2009-08-20 22:57:24 +00:00
enus.linden
322d4046bf removing packets.py, updating test_region to remove the dependency on packets.py 2009-07-20 23:42:05 +00:00
enus.linden
5854e1f089 clean up of event_queue.py to a small degree, plus a couple of method renames (notably MessageHandler()._handle() to handle() 2009-07-15 17:25:34 +00:00
kotler.linden
9e68832b99 Fixes for PYO-62 and PYO-65, also fixed the test_appearance unittest, renamed types.py to msgtypes.py to remove the conflict with the python lib types 2009-07-14 21:01:45 +00:00
joshua.linden
e19e8c1792 * Use the PCode enum instead of magic numbers * Watch out for "None" values when applying ObjectUpdates to agent * Add AgentDynamicsUpdate app event * Handle 48-, 32-, and 16-byte ObjectUpdates * Add basic sit/stand/fly methods to agent, with associated enums
Not reviewed
2009-07-07 17:02:33 +00:00
kotler.linden
e9b1a931a5 remerge of kotler_tests 2009-07-07 00:15:55 +00:00
kotler.linden
9af7338fcd reverting the merge 2009-07-06 23:29:38 +00:00
kotler.linden
89a9630f69 merge from kotler_tests 2009-07-06 22:13:36 +00:00
joshua.linden
a52172ccc2 * Allow packing Vectors w/o requiring packet populating code to convert to tuple * Initial stab at cross-region teleport. Arriving is still buggy so don't use it yet. 2009-06-12 18:19:56 +00:00
enus.linden
b7ccabe726 renaming _register() to register() on MessageHandler and AppEventHandler, fixing a couple of EventQueue derived message related bugs 2009-06-05 22:22:13 +00:00
joshua.linden
e9e91d16b1 Fix dipatching of messages. Paired w/ enus.linden 2009-06-05 22:00:36 +00:00
enus.linden
d3ad0d5e2f merging pyogp.lib.base/branches/combined_message_handling to trunk. moved the original Message to MessageBase, then combined as a subclass of MessageBase the deprecated UPDPacket and new Message class. PacketHandler and EventQueueHandler are now merged into MessageHandler. various changes made to accommodate, various files/classes removed. tests were passing in the branch merging in, will check tests and sample scripts after an svn up with the commit in it 2009-06-05 21:02:59 +00:00
joshua.linden
8719d6186b Strip null terminators from strings when unpacking Handle unicode-type strings (UTF-8 encode during packing) Add null terminators when packing Don't let get_data_as_string() mangle data Support differing length of packed vs. unpacked data
Reviewed by Enus Linden
2009-05-11 22:03:53 +00:00
enus.linden
49d8d7c72b left an artifact, removing 2009-04-28 05:19:07 +00:00
enus.linden
57272c14e4 removing pkg_resources dependency with standard file/string handles 2009-04-28 05:16:30 +00:00
enus.linden
95c5f8b947 adding pkg_resournce pull down for when the system does not yet have it 2009-04-27 23:57:47 +00:00
enus.linden
ea5c1a62eb merging inventory-extension branch into trunk 2009-04-27 22:48:01 +00:00
enus.linden
65df28e3b4 merge back as follows: -r2063:HEAD https://svn.secondlife.com/svn/linden/projects/2008/pyogp/pyogp.lib.base/branches/callback-refactor, moving callback handlers to class methods vs global functions. also fixed some tests :) 2009-04-06 21:29:17 +00:00
whump.linden
f71e360662 Reviewed with enus.linden Changes to support DeRezObject back to inventory See examples/sample_object_create_permissions.py 2009-04-03 22:00:50 +00:00
enus.linden
c0f568bd9a adding packet counters, plus 'completed' ability to connect to neighboring regions via udp and event queue 2009-04-01 23:49:16 +00:00
enus.linden
31db582aad removing files that had been intended for the wx-base branch 2009-03-31 15:20:26 +00:00
enus.linden
af6d78eb9f adding first pass at group chat, needs cleanup. worked on enabling child simulators, but it doesnt work yet 2009-03-26 20:10:13 +00:00
enus.linden
b7ba36e26a stubbing out permissions.py for use initially in objects. unpacking vectors into the Vector3() class now, plus a couple of required related changes 2009-03-21 06:28:10 +00:00
enus.linden
2228959990 further work in objects. onObjectUpdateCompressed is nearly there, added handler for ObjectProperties and some methods to deal with the resulting parsed data (untested) 2009-03-20 06:15:22 +00:00
enus.linden
f583a875b5 adding datatypes, unpacking ObjectUpdate.ObjectData.ObjectData into distinct fields, and some other things 2009-03-18 21:32:21 +00:00
enus.linden
c909610f9c adding rezzing of inventory, update inventory item, search local inventory, and various object operations 2009-03-17 04:24:08 +00:00
enus.linden
82a7df8c04 fixing the sample_object_creation script wrt to agent.Position, fixed a bug in request_multiple_objects, and modified some logging 2009-03-14 00:09:15 +00:00
enus.linden
659e2347e4 adding groups, some default camera settings, and the ability to monitor outgoing packets by adding HANDLE_PACKETS to udp_dispatcher().send.... 2009-03-13 22:09:43 +00:00
enus.linden
776db124f3 adding deferred packet parsing (not parsing fully packets we aren't handling, plus some chat type stuff, and stubbing out EnableSimulator handling 2009-03-12 20:48:26 +00:00
enus.linden
be6e393210 adding a variety of functionality around chat/instant message, objects. some kinks to work out, e.g., why do we get ChatFromSimulator packets twice? aren't we acking them as needed? also, there is severe time lapse between a user in a viewer sending a chat/instant message and having the pyogp client receive it. what's up with that? 2009-03-11 22:52:07 +00:00
enus.linden
51a3b7078f fixing renamed files/functions 2009-03-05 23:12:53 +00:00
enus.linden
8dba90336c starting to work with objects. ObjectUpdate and ObjectUpdateCached handled, RequestMultipleObjects enabled 2009-03-05 21:50:23 +00:00