Mercurial > traipse_dev
comparison orpg/networking/mplay_server_gui.py @ 224:29cf1a17ca16 alpha
Traipse Alpha 'OpenRPG' {100503-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 (Patch-2)
Finalizing!!!
New Features:
New Namespace method with two new syntaxes
New Namespace Internal is context sensitive, always!
New Namespace External is 'as narrow as you make it'
New Namespace FutureCheck helps ensure you don't receive an incorrect node
New PluginDB access for URL2Link plugin
New to Forms, they now show their content in Design Mode
New to Update Manager, checks Repo for updates on software start
New to Mini Lin node, change title in design mode
New to Game Tree, never lose a node, appends a number to the end of corrupted trees
New to Server GUI, Traipse Suite's Debug Console
New Namespace plugin, Allows Traipse users to use the Standard syntax !@ :: @!
Updates:
Update to White Board layer, uses a pencil image for color button
Update to Grid Layer, uses a grid image for color button
Update to Chat Window, size of drop down menus
Update to default lobby message
Update to template Text node
Update to 4e PC Sheet node
Update to how display names are acquired
Update to Server, added some 'Pious' technology
Fixes:
Fix to Server GUI startup errors
Fix to Server GUI Rooms tab updating
Fix to Chat and Settings if non existant die roller is picked
Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated
Fix to Alias Lib's Export to Tree, Open, Save features
Fix to alias node, now works properly
Fix to Splitter node, minor GUI cleanup
Fix to Backgrounds not loading through remote loader
Fix to Node name errors
Fix to rolling dice in chat Whispers
Fix to Splitters Sizing issues
Fix to URL2Link plugin, modified regex compilation should remove memory leak
Fix to mapy.py, a roll back due to zoomed grid issues
Fix to whiteboard_handler, Circles work by you clicking the center of the circle
Fix to Servers parse_incoming_dom which was outdated and did not respect XML
Fix to a broken link in the server welcome message
Fix to InterParse and logger requiring traceback
Fix to Update Manager Status Bar
Fix to failed image and erroneous pop up
Fix to Mini Lib node that was preventing use
Fix to plugins that parce dice but did not call InterParse
Fix to nodes for name changing by double click
Fix to Game Tree, node ordering on drag and drop corrected
Fix to Game Tree, corrupted error message was not showing
Fix to Update Manager, checks for internet connection
Fix to Update Manager, Auto Update corrections
Fix to Server GUI's broadcast, room, player messaging
author | sirebral |
---|---|
date | Mon, 03 May 2010 01:44:38 -0500 |
parents | b8091ede042a |
children | 24769389a7ba |
comparison
equal
deleted
inserted
replaced
223:d5ff505a2a16 | 224:29cf1a17ca16 |
---|---|
319 elif menuItem == 2: | 319 elif menuItem == 2: |
320 message = 'Banishment' | 320 message = 'Banishment' |
321 BanMsg = wx.TextEntryDialog( self, "Enter A Message To Send:", | 321 BanMsg = wx.TextEntryDialog( self, "Enter A Message To Send:", |
322 "Ban Message", message, wx.OK|wx.CANCEL|wx.CENTRE ) | 322 "Ban Message", message, wx.OK|wx.CANCEL|wx.CENTRE ) |
323 if BanMsg.ShowModal() == wx.ID_OK: message = BanMsg.GetValue() | 323 if BanMsg.ShowModal() == wx.ID_OK: message = BanMsg.GetValue() |
324 else: message = '' | 324 else: return |
325 Silent = wx.MessageDialog(None, 'Silent Ban?', 'Question', | 325 Silent = wx.MessageDialog(None, 'Silent Ban?', 'Question', |
326 wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) | 326 wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) |
327 if Silent.ShowModal() == wx.ID_YES: silent = 1 | 327 if Silent.ShowModal() == wx.ID_YES: silent = 1 |
328 else: silent = 0 | 328 else: silent = 0 |
329 self.main.server.server.admin_ban(playerID, message, silent) | 329 self.main.server.server.admin_ban(playerID, message, silent) |
330 self.remove( playerID ) | 330 self.remove( playerID ) |
331 elif menuItem == 4: | 331 elif menuItem == 4: |
332 msg = self.GetMessageInput( "Send a message to player" ) | 332 msg = self.GetMessageInput( "Send a message to player" ) |
333 if len(msg): self.main.server.server.send( msg, playerID, str(groupID) ) | 333 |
334 broadcast = '<chat type="1" version="1.0"><font color="#FF0000">' +msg+ '</font></chat>' | |
335 chat = Element('chat') | |
336 chat.set('type', '1') | |
337 chat.set('version', '1.0') | |
338 chat.text = broadcast | |
339 msg = self.main.server.server.buildMsg(str(playerID), '0', '1', msg) | |
340 | |
341 if len(msg): self.main.server.server.players[playerID].outbox.put(msg) | |
334 #Leave this in for now. | 342 #Leave this in for now. |
335 elif menuItem == 5: | 343 elif menuItem == 5: |
336 msg = self.GetMessageInput( "Send message to room of this player") | 344 msg = self.GetMessageInput( "Send message to room of this player") |
345 | |
346 broadcast = '<chat type="1" version="1.0"><font color="#FF0000">' +msg+ '</font></chat>' | |
347 chat = Element('chat') | |
348 chat.set('type', '1') | |
349 chat.set('version', '1.0') | |
350 chat.text = broadcast | |
351 msg = self.main.server.server.buildMsg('all', '0', '1', tostring(chat)) | |
352 | |
337 if len(msg): self.main.server.server.send_to_group('0', str(groupID), msg ) | 353 if len(msg): self.main.server.server.send_to_group('0', str(groupID), msg ) |
338 elif menuItem == 6: | 354 elif menuItem == 6: |
339 msg = self.GetMessageInput( "Broadcast Server Message" ) | 355 msg = self.GetMessageInput( "Broadcast Server Message" ) |
340 if len(msg): self.main.server.server.broadcast( msg ) | 356 if len(msg): self.main.server.server.broadcast(msg ) |
341 elif menuItem == 3: | 357 elif menuItem == 3: |
342 version_string = self.main.server.server.obtain_by_id(playerID, 'client_string') | 358 version_string = self.main.server.server.obtain_by_id(playerID, 'client_string') |
343 if version_string: wx.MessageBox("Running client version " + version_string,"Version") | 359 if version_string: wx.MessageBox("Running client version " + version_string,"Version") |
344 else: wx.MessageBox("No client version available for this player", "Version") | 360 else: wx.MessageBox("No client version available for this player", "Version") |
345 | 361 |
477 self.TraipseSuiteWarnCleanup('debug') | 493 self.TraipseSuiteWarnCleanup('debug') |
478 if self.debugger.IsShown() == True: self.debugger.Hide() | 494 if self.debugger.IsShown() == True: self.debugger.Hide() |
479 else: self.debugger.Show() | 495 else: self.debugger.Show() |
480 | 496 |
481 def TraipseSuiteWarn(self, menuitem): | 497 def TraipseSuiteWarn(self, menuitem): |
482 print 'traipse warn' #logger.debug('traipse warn') | |
483 ### Allows for the reuse of the 'Attention' menu. | 498 ### Allows for the reuse of the 'Attention' menu. |
484 ### component.get('frame').TraipseSuiteWarn('item') ### Portable | 499 ### component.get('frame').TraipseSuiteWarn('item') ### Portable |
485 self.mainMenu.Remove(3) | 500 self.mainMenu.Remove(3) |
486 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite!") | 501 self.mainMenu.Insert(3, self.traipseSuite, "&Traipse Suite!") |
487 if menuitem == 'debug': | 502 if menuitem == 'debug': |
593 | 608 |
594 def OnJoinGroup(self, data): | 609 def OnJoinGroup(self, data): |
595 self.conns.updateRoom(data) | 610 self.conns.updateRoom(data) |
596 | 611 |
597 def OnUpdateGroup(self, data): | 612 def OnUpdateGroup(self, data): |
598 (room, room_id, players) = data; print 'update group', data | 613 (room, room_id, players) = data |
599 self.groups.UpdateGroup(data) | 614 self.groups.UpdateGroup(data) |
600 | 615 |
601 def OnSetRole( self, data ): | 616 def OnSetRole( self, data ): |
602 (id, role) = data | 617 (id, role) = data |
603 self.conns.setPlayerRole(id, role) | 618 self.conns.setPlayerRole(id, role) |