Mercurial > traipse
comparison orpg/networking/mplay_server.py @ 16:281ca8daa911 grumpy-goblin
Traipse 'OpenRPG' {090808-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. 'Grumpy-Goblin' was created as a stablizing branch in an effort
to remove bugs from core code.
Update Summary:
This version is stable. ServerGUI works with very few problems, Update Manager
is working quite well, and the software has been improved in overall stability
This update cleans print statements, adds the /tmp/tmp.txt placeholder, and
removes one major bug that caused errors to appear with the ServerGUI
author | sirebral |
---|---|
date | Sat, 08 Aug 2009 00:35:09 -0500 |
parents | b6c6ec28ba8a |
children | 97265586402b |
comparison
equal
deleted
inserted
replaced
15:b6c6ec28ba8a | 16:281ca8daa911 |
---|---|
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='"+str(group_id)+"'><font color='#FF0000'>" + data + "</font>") |
2412 #data = ServerPlugins.postParseIncoming(data) | 2412 data = ServerPlugins.postParseIncoming(data) #Function breaks here. |
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): |