Mercurial > traipse_dev
comparison orpg/networking/mplay_server.py @ 57:9014d7861bb3 traipse_dev
Removed some extra print messages from the server. Cleaned up the Manifest
that was causing problems on linux. Might have been an errouneous push.
Testing on WinXP
author | sirebral |
---|---|
date | Fri, 07 Aug 2009 23:21:37 -0500 |
parents | c7f04d3c76f5 |
children | 27e58b0483e7 |
comparison
equal
deleted
inserted
replaced
56:c7f04d3c76f5 | 57:9014d7861bb3 |
---|---|
2406 except Exception, e: | 2406 except Exception, e: |
2407 traceback.print_exc() | 2407 traceback.print_exc() |
2408 self.log_msg("Exception: send_to_all(): " + str(e)) | 2408 self.log_msg("Exception: send_to_all(): " + str(e)) |
2409 | 2409 |
2410 def send_to_group(self, from_id, group_id, data): | 2410 def send_to_group(self, from_id, group_id, data): |
2411 msg = ("<msg to='all' from='0' group_id='"+group_id+"'><font color='#FF0000'>" + data + "</font>") | 2411 data = ("<msg to='all' from='0' group_id='"+group_id+"'><font color='#FF0000'>" + data + "</font>") |
2412 #data = ServerPlugins.postParseIncoming(data) | 2412 data = ServerPlugins.postParseIncoming(data) |
2413 try: | 2413 try: |
2414 print data | |
2415 self.p_lock.acquire() | 2414 self.p_lock.acquire() |
2416 keys = self.groups[group_id].get_player_ids() | 2415 keys = self.groups[group_id].get_player_ids() |
2417 self.p_lock.release() | 2416 self.p_lock.release() |
2418 print keys | |
2419 for k in keys: | 2417 for k in keys: |
2420 if k != from_id: | 2418 if k != from_id: |
2421 self.players[k].outbox.put(msg) | 2419 self.players[k].outbox.put(data) |
2422 except Exception, e: | 2420 except Exception, e: |
2423 traceback.print_exc() | 2421 traceback.print_exc() |
2424 self.log_msg("Exception: send_to_group(): " + str(e)) | 2422 self.log_msg("Exception: send_to_group(): " + str(e)) |
2425 | 2423 |
2426 def send_player_list(self,to_id,group_id): | 2424 def send_player_list(self,to_id,group_id): |