Mercurial > traipse_dev
comparison orpg/networking/mplay_client.py @ 118:217fb049bd00 alpha
Traipse Alpha 'OpenRPG' {091028-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:
Adds Bookmarks (Alpha) with cool Smiley Star and Plus Symbol images!
Changes made to the map for increased portability. SnowDog has changes planned in
Core, though.
Added an initial push to the BCG. Not much to see, just shows off how it is
re-writing Main code.
Fix to remote admin commands
Minor fix to texted based server, works in /System/ folder
Some Core changes to gametree to correctly disply Pretty Print, thanks David!
Fix to Splitter Nodes not being created.
Added images to Plugin Control panel for Autostart feature
Fix to massive amounts of images loading; from Core
fix to gsclient so with_statement imports
Added 'boot' command to remote admin
Prep work in Pass tool for remote admin rankings and different passwords, ei,
Server, Admin, Moderator, etc.
Remote Admin Commands more organized, more prep work.
Added Confirmation window for sent nodes.
Minor changes to allow for portability to an OpenSUSE linux OS (hopefully without
breaking)
{091028}
00:
Made changes to gametree to start working with Element Tree, mostly from Core
Minor changes to Map to start working with Element Tree, from Core
Preliminary changes to map efficiency, from FlexiRPG
Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG
Changes to main.py to start working with Element Tree
author | sirebral |
---|---|
date | Wed, 28 Oct 2009 14:24:54 -0500 |
parents | 65c1604e7949 |
children | 9314d63c0941 |
comparison
equal
deleted
inserted
replaced
117:0f18d16f3fe7 | 118:217fb049bd00 |
---|---|
43 import errno | 43 import errno |
44 import os | 44 import os |
45 import time | 45 import time |
46 from orpg.orpgCore import component | 46 from orpg.orpgCore import component |
47 from orpg.orpg_xml import xml | 47 from orpg.orpg_xml import xml |
48 | |
49 from xml.etree.ElementTree import ElementTree, Element | |
50 from xml.etree.ElementTree import fromstring, tostring | |
48 | 51 |
49 try: | 52 try: |
50 import bz2 | 53 import bz2 |
51 cmpBZ2 = True | 54 cmpBZ2 = True |
52 except: cmpBZ2 = False | 55 except: cmpBZ2 = False |
317 """ | 320 """ |
318 The IP field should really be deprecated as too many systems are NAT'd and/or behind firewalls for a | 321 The IP field should really be deprecated as too many systems are NAT'd and/or behind firewalls for a |
319 client provided IP address to have much value. As such, we now label it as deprecated. | 322 client provided IP address to have much value. As such, we now label it as deprecated. |
320 """ | 323 """ |
321 def toxml(self,action): | 324 def toxml(self,action): |
325 """ | |
326 el = Element('player') | |
327 el.set('name', myescape(self.name)) | |
328 el.set('action', action) | |
329 el.set('id', self.id) | |
330 el.set('group_id', self.group_id) | |
331 el.set('ip', self.ip) | |
332 el.set('status', self.text_status) | |
333 el.set('version', self.version) | |
334 el.set('protocol_version', self.protocol_version) | |
335 el.set('client_string', self.client_string) | |
336 el.set('useCompression', str(self.useCompression)) | |
337 | |
338 cmpType = 'None' | |
339 if cmpBZ2 and (self.compressionType == 'Undefined' or self.compressionType == bz2): | |
340 cmpType = 'bz2' | |
341 elif cmpZLIB and (self.compressionType == 'Undefined' or self.compressionType == zlib): | |
342 cmpType = 'zlib' | |
343 | |
344 el.set('cmpType', cmpType) | |
345 return el | |
346 """ | |
347 | |
322 xml_data = '<player name="' + myescape(self.name) + '"' | 348 xml_data = '<player name="' + myescape(self.name) + '"' |
323 xml_data += ' action="' + action + '" id="' + self.id + '"' | 349 xml_data += ' action="' + action + '" id="' + self.id + '"' |
324 xml_data += ' group_id="' + self.group_id + '" ip="' + self.ip + '"' | 350 xml_data += ' group_id="' + self.group_id + '" ip="' + self.ip + '"' |
325 xml_data += ' status="' + self.text_status + '"' | 351 xml_data += ' status="' + self.text_status + '"' |
326 xml_data += ' version="' + self.version + '"' | 352 xml_data += ' version="' + self.version + '"' |