%( externaltarget = running and ' target="new"' or '' )s
     
   Stop this program  
     
  The Bub's Brothers  
     
     
  Web Home page - Player Names & Teams - Configuration        
     
 
New game
%( if running: print '
' print '' % tim print '' print '' print '

' if juststarted: print 'Server started!' elif justconnected: print 'Playing' elif count == 0: print 'No client is connected to your server at the moment.' elif count == 1: print 'One connected client.' else: print '%d connected clients.' % count print '

' print '

' % (running[0][0], running[0][1], self.httpport, tim), print 'Join your own game now at %s:%s

' % ( running[0]) ##if metapublish: ## import time ## print '

' % time.time() ## if self.globaloptions.metapublish == 'y': ## self.has_been_published = 1 ## metaquery = metaquery or [] ## metaquery.insert(0, 'desc='+fndesc) ## s = 'a=' + metapublish ## if s not in metaquery: ## metaquery.insert(0, s) ## print 'Register again', ## else: ## print 'Register (after all)', ## print 'your server to the SourceForge meta-server
' ## print '' % time.time() ## print 'Unregister your server', ## print '(it is unregistered automatically after some time', ## print 'when other people cannot find it, or', ## print 'if you stop it with the link Stop this program at the top of the page)

' )s
%( if self.Game: print '' else: print 'value="Start a new game">' else: print 'You need the complete version to start a new game.
With this version you can only connect to existing servers and only over fast links!' )s
 
     
     
  %( servers = self.getlocalservers()[:] found = [] def show((addr, (info, ping)), found=found): import socket infolst = info.split(':') or ['?'] if len(infolst) >= 3: httpport = infolst.pop(2) else: httpport = 'off' print '' % ( addr[0], addr[1], httpport, tim) host, port = addr #host = socket.gethostbyaddr(host)[0] if ping is not None: infolst.append('ping: %dms' % int(ping*1000)) if (addr, infolst[0]) == running: infolst.append('this is your own server') found.append(1) infolst = map(htmlquote, infolst) print '%s:%s playing %s' % ( host, port, infolst[0]) if len(infolst) > 1: print ' (%s)' % ' · · '.join(infolst[1:]) if servers is None: rowspan = 1 else: rowspan = (len(servers) or 1)+1 )s ' for s in servers[1:]: print '' print '
Local games %( if servers is not None: if servers: show(servers[0]) else: print "(no server found)" print '
' show(s) print '
' )s
%( if running and not found: import hostchooser, gamesrv if gamesrv.displaysockport(gamesrv.openpingsocket()) != hostchooser.UDP_PORT: print '

Note: your server does not appear in this list' print 'because the UDP port %d is already in use (is another Bub & Bob server running on this machine?).' % hostchooser.UDP_PORT print 'Use the full server address %s:%s

' % running[0] )s

Or connect to server: (host or host:port)

 
     
     
 
Internet games

Go to the Internet servers page

Don't forget to give a name to your dragons before you join a server!