comparison orpg/networking/mplay_client.py @ 136:b4e02e8cd314 alpha

Traipse Alpha 'OpenRPG' {091016-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Cleaning up for Beta) Added Bookmarks Fix to Remote Admin Commands Minor fix to text based Server Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager default_manifest.xml renamed to default_upmana.xml Cleaner clode for saved repositories New TrueDebug Class in orpg_log (See documentation for usage) Mercurial's hgweb folder is ported to upmana **Pretty important update that can help remove thousands of dead children from your gametree. **Children, <forms />, <group_atts />, <horizontal />, <cols />, <rows />, <height />, etc... are all tags now. Check your gametree and look for dead children!! **New Gametree Recusion method, mapping, and context sensitivity. !!Alpha - Watch out for infinite loops!!
author sirebral
date Mon, 16 Nov 2009 19:13:41 -0600
parents fba298d65cf8
children 067922263f07
comparison
equal deleted inserted replaced
134:82c47d583493 136:b4e02e8cd314
120 ## Soon to be removed 120 ## Soon to be removed
121 self.ROLE_GM = "GM" 121 self.ROLE_GM = "GM"
122 self.ROLE_PLAYER = "Player" 122 self.ROLE_PLAYER = "Player"
123 self.ROLE_LURKER = "Lurker" 123 self.ROLE_LURKER = "Lurker"
124 ## --TaS 124 ## --TaS
125 self.ip = socket.gethostbyname(socket.gethostname()) 125 try: self.ip = socket.gethostbyname(socket.gethostname())
126 except: self.ip = socket.gethostbyname('localhost')
126 self.remote_ip = None 127 self.remote_ip = None
127 self.version = VERSION 128 self.version = VERSION
128 self.protocol_version = PROTOCOL_VERSION 129 self.protocol_version = PROTOCOL_VERSION
129 self.client_string = CLIENT_STRING 130 self.client_string = CLIENT_STRING
130 self.status = MPLAY_DISCONNECTED 131 self.status = MPLAY_DISCONNECTED
731 self.on_receive(ping_msg, None) 732 self.on_receive(ping_msg, None)
732 733
733 def on_group(self, id, msg, etreeEl): 734 def on_group(self, id, msg, etreeEl):
734 act = etreeEl.get("action") 735 act = etreeEl.get("action")
735 group_data = (id, etreeEl.get("name"), etreeEl.get("pwd"), etreeEl.get("players")) 736 group_data = (id, etreeEl.get("name"), etreeEl.get("pwd"), etreeEl.get("players"))
736 if act == ('new' or 'update'): 737 if act == 'new' or act == 'update':
737 self.groups[id] = group_data 738 self.groups[id] = group_data
738 if act == 'update': self.on_group_event(mplay_event(GROUP_UPDATE, group_data)) 739 if act == 'update': self.on_group_event(mplay_event(GROUP_UPDATE, group_data))
739 elif act == 'new': self.on_group_event(mplay_event(GROUP_NEW, group_data)) 740 elif act == 'new': self.on_group_event(mplay_event(GROUP_NEW, group_data))
740 elif act == 'del': 741 elif act == 'del':
741 del self.groups[id] 742 del self.groups[id]