comparison orpg/networking/mplay_groups.py @ 122:36919b8a3ef9 alpha

Traipse Alpha 'OpenRPG' {091031-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 Mercurial's hgweb folder is ported to upmana Happy Halloween!
author sirebral
date Sat, 31 Oct 2009 22:07:55 -0500
parents 9314d63c0941
children 8827271fbe1b
comparison
equal deleted inserted replaced
121:496dbf12a6cb 122:36919b8a3ef9
15 self.game_map = map_msg() 15 self.game_map = map_msg()
16 self.lock = Lock() 16 self.lock = Lock()
17 self.moderated = 0 17 self.moderated = 0
18 self.voice = {} 18 self.voice = {}
19 self.persistant = persist 19 self.persistant = persist
20 20 ### Needs to use Element Tree closer
21 if mapFile != None: 21 if mapFile != None:
22 f = open( mapFile ) 22 f = open( mapFile )
23 tree = f.read() 23 tree = f.read()
24 f.close() 24 f.close()
25 else: 25 else:
26 f = open(orpg.dirpath.dir_struct["template"] + "default_map.xml") 26 f = open(orpg.dirpath.dir_struct["template"] + "default_map.xml")
27 tree = f.read() 27 tree = f.read()
28 f.close() 28 f.close()
29 self.game_map.init_from_xml(tree) 29 self.game_map.init_from_xml(fromstring(tree))
30 30
31 def add_player(self,id): 31 def add_player(self,id):
32 self.players.append(id) 32 self.players.append(id)
33 33
34 def remove_player(self,id): 34 def remove_player(self,id):
63 63
64 if len(minVersion)>len(version): return 0 64 if len(minVersion)>len(version): return 0
65 return 1 65 return 1
66 66
67 #depreciated - see send_group_list() 67 #depreciated - see send_group_list()
68 def toxml(self,act="new"): 68 def toxml(self, act="new"):
69 # Please don't add the boot_pwd to the xml, as this will give it away to players watching their console 69 # Please don't add the boot_pwd to the xml, as this will give it away to players watching their console
70 xml_data = "<group id=\"" + self.id 70 xml_data = "<group id=\"" + self.id
71 xml_data += "\" name=\"" + self.name 71 xml_data += "\" name=\"" + self.name
72 xml_data += "\" pwd=\"" + str(self.pwd!="") 72 xml_data += "\" pwd=\"" + str(self.pwd!="")
73 xml_data += "\" players=\"" + str(self.get_num_players()) 73 xml_data += "\" players=\"" + str(self.get_num_players())