comparison orpg/networking/mplay_server_gui.py @ 119:9314d63c0941 alpha

Traipse Alpha 'OpenRPG' {091029-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 {091029} 00: Changes made to server to start working with Element Tree. Changes made to Meta Server Lib. Prepping test work for a multi meta network page. Minor bug fixed with mini to gametree Zoom Mouse plugin added. Known Issue: Disconnecting causes an server side error. XML data is not being passed correctly.
author sirebral
date Thu, 29 Oct 2009 20:35:28 -0500
parents 95b5281e8d34
children 36919b8a3ef9
comparison
equal deleted inserted replaced
118:217fb049bd00 119:9314d63c0941
198 self.Bind(wx.EVT_MENU, self.OnPopupMenuItem, id=MENU_PLAYER_SEND_ROOM_MESSAGE) 198 self.Bind(wx.EVT_MENU, self.OnPopupMenuItem, id=MENU_PLAYER_SEND_ROOM_MESSAGE)
199 self.Bind(wx.EVT_MENU, self.OnPopupMenuItem, id=MENU_PLAYER_SEND_SERVER_MESSAGE) 199 self.Bind(wx.EVT_MENU, self.OnPopupMenuItem, id=MENU_PLAYER_SEND_SERVER_MESSAGE)
200 200
201 def add(self, player): 201 def add(self, player):
202 i = self.InsertImageStringItem( 0, player["id"], 0 ) 202 i = self.InsertImageStringItem( 0, player["id"], 0 )
203 self.SetStringItem( i, 1, self.stripHtml( player["name"] ) ) 203 self.SetStringItem(i, 1, self.stripHtml(player["name"]))
204 self.SetStringItem( i, 2, "NEW" ) 204 self.SetStringItem(i, 2, "NEW")
205 self.SetStringItem( i, 3, self.roomList[0] ) 205 self.SetStringItem(i, 3, self.roomList[0])
206 self.SetStringItem( i, 4, self.stripHtml( player["version"] ) ) 206 self.SetStringItem(i, 4, self.stripHtml(player["version"]))
207 self.SetStringItem( i, 5, 'Lurker' if self.stripHtml( player["role"] ) == '' else self.stripHtml( player["role"] )) 207 self.SetStringItem(i, 5, 'Lurker' if self.stripHtml(player["role"]) == '' else self.stripHtml(player["role"]))
208 self.SetStringItem( i, 6, self.stripHtml( player["ip"] ) ) 208 self.SetStringItem(i, 6, self.stripHtml(player["ip"]))
209 self.SetStringItem (i, 7, "PING" ) 209 self.SetStringItem(i, 7, "PING")
210 self.SetItemData( i, int(player["id"]) ) 210 self.SetItemData(i, int(player["id"]))
211 self.AutoAjust() 211 self.AutoAjust()
212 212
213 def remove(self, id): 213 def remove(self, id):
214 i = self.FindItemData( -1, int(id) ) 214 i = self.FindItemData( -1, int(id))
215 self.DeleteItem( i ) 215 self.DeleteItem(i)
216 self.AutoAjust() 216 self.AutoAjust()
217 217
218 def AutoAjust(self): 218 def AutoAjust(self):
219 self.SetColumnWidth(0, -1) 219 self.SetColumnWidth(0, -1)
220 self.SetColumnWidth(1, -1) 220 self.SetColumnWidth(1, -1)
489 name = data[0] 489 name = data[0]
490 self.conns.roomList[room_id] = name 490 self.conns.roomList[room_id] = name
491 (room, room_id, player) = data 491 (room, room_id, player) = data
492 self.conns.updateRoom(data) 492 self.conns.updateRoom(data)
493 493
494 def OnDeleteGroup( self, data ): 494 def OnDeleteGroup(self, data):
495 (room_id, player) = data 495 (room_id, player) = data
496 del self.conns.roomList[room_id] 496 del self.conns.roomList[room_id]
497 497
498 def OnJoinGroup( self, data ): 498 def OnJoinGroup(self, data):
499 self.conns.updateRoom( data ) 499 self.conns.updateRoom(data )
500 500
501 def OnSetRole( self, data ): 501 def OnSetRole( self, data ):
502 (id, role) = data 502 (id, role) = data
503 self.conns.setPlayerRole( id, role ) 503 self.conns.setPlayerRole( id, role )
504 504
514 configDoc = configDom.documentElement 514 configDoc = configDom.documentElement
515 if configDoc.hasAttribute("name"): self.serverName = configDoc.getAttribute("name") 515 if configDoc.hasAttribute("name"): self.serverName = configDoc.getAttribute("name")
516 except: pass 516 except: pass
517 if self.serverName == '': 517 if self.serverName == '':
518 self.serverName = 'Server Name' 518 self.serverName = 'Server Name'
519 serverNameEntry = wx.TextEntryDialog( self, "Please Enter The Server Name You Wish To Use:", 519 serverNameEntry = wx.TextEntryDialog(self, "Please Enter The Server Name You Wish To Use:",
520 "Server's Name", self.serverName, wx.OK|wx.CANCEL|wx.CENTRE ) 520 "Server's Name", self.serverName, wx.OK|wx.CANCEL|wx.CENTRE )
521 if serverNameEntry.ShowModal() == wx.ID_OK: self.serverName = serverNameEntry.GetValue() 521 if serverNameEntry.ShowModal() == wx.ID_OK: self.serverName = serverNameEntry.GetValue()
522 # see if we already have password specified 522 # see if we already have password specified
523 try: 523 try:
524 validate.config_file( "server_ini.xml", "default_server_ini.xml" ) 524 validate.config_file( "server_ini.xml", "default_server_ini.xml" )