From 1d9925c287b318ec21343e2682b51ab6a36ae8db Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 18:12:27 +0200 Subject: initial commit from cvs 1.6.2 --- http2/data/bab.png | Bin 0 -> 1902 bytes http2/data/baub.png | Bin 0 -> 1736 bytes http2/data/beab.png | Bin 0 -> 1677 bytes http2/data/beb.png | Bin 0 -> 1587 bytes http2/data/biab.png | Bin 0 -> 1679 bytes http2/data/bib.png | Bin 0 -> 1655 bytes http2/data/biob.png | Bin 0 -> 1531 bytes http2/data/bob.png | Bin 0 -> 1682 bytes http2/data/boob.png | Bin 0 -> 1617 bytes http2/data/bub.png | Bin 0 -> 1490 bytes http2/data/byb.png | Bin 0 -> 2592 bytes http2/data/checked.png | Bin 0 -> 1032 bytes http2/data/close.png | Bin 0 -> 478 bytes http2/data/confirm.html | 34 ++++++ http2/data/disabled.png | Bin 0 -> 814 bytes http2/data/hat1.png | Bin 0 -> 202 bytes http2/data/hat2.png | Bin 0 -> 310 bytes http2/data/header.png | Bin 0 -> 11619 bytes http2/data/index.html | 292 +++++++++++++++++++++++++++++++++++++++++++++++ http2/data/lbab.png | Bin 0 -> 2592 bytes http2/data/lbeb.png | Bin 0 -> 1583 bytes http2/data/lbib.png | Bin 0 -> 1663 bytes http2/data/lbiob.png | Bin 0 -> 1520 bytes http2/data/name.html | 189 ++++++++++++++++++++++++++++++ http2/data/new.html | 271 +++++++++++++++++++++++++++++++++++++++++++ http2/data/options.html | 285 +++++++++++++++++++++++++++++++++++++++++++++ http2/data/sfbob.png | Bin 0 -> 1785 bytes http2/data/sfbub.png | Bin 0 -> 1664 bytes http2/data/stop.html | 101 ++++++++++++++++ http2/data/unchecked.png | Bin 0 -> 327 bytes http2/data/wave1.png | Bin 0 -> 307 bytes http2/data/wave2.png | Bin 0 -> 327 bytes http2/data/wave3.png | Bin 0 -> 313 bytes 33 files changed, 1172 insertions(+) create mode 100644 http2/data/bab.png create mode 100644 http2/data/baub.png create mode 100644 http2/data/beab.png create mode 100644 http2/data/beb.png create mode 100644 http2/data/biab.png create mode 100644 http2/data/bib.png create mode 100644 http2/data/biob.png create mode 100644 http2/data/bob.png create mode 100644 http2/data/boob.png create mode 100644 http2/data/bub.png create mode 100644 http2/data/byb.png create mode 100644 http2/data/checked.png create mode 100644 http2/data/close.png create mode 100644 http2/data/confirm.html create mode 100644 http2/data/disabled.png create mode 100644 http2/data/hat1.png create mode 100644 http2/data/hat2.png create mode 100644 http2/data/header.png create mode 100644 http2/data/index.html create mode 100644 http2/data/lbab.png create mode 100644 http2/data/lbeb.png create mode 100644 http2/data/lbib.png create mode 100644 http2/data/lbiob.png create mode 100644 http2/data/name.html create mode 100644 http2/data/new.html create mode 100644 http2/data/options.html create mode 100644 http2/data/sfbob.png create mode 100644 http2/data/sfbub.png create mode 100644 http2/data/stop.html create mode 100644 http2/data/unchecked.png create mode 100644 http2/data/wave1.png create mode 100644 http2/data/wave2.png create mode 100644 http2/data/wave3.png (limited to 'http2/data') diff --git a/http2/data/bab.png b/http2/data/bab.png new file mode 100644 index 0000000..b97b8fc Binary files /dev/null and b/http2/data/bab.png differ diff --git a/http2/data/baub.png b/http2/data/baub.png new file mode 100644 index 0000000..8d85660 Binary files /dev/null and b/http2/data/baub.png differ diff --git a/http2/data/beab.png b/http2/data/beab.png new file mode 100644 index 0000000..443d20a Binary files /dev/null and b/http2/data/beab.png differ diff --git a/http2/data/beb.png b/http2/data/beb.png new file mode 100644 index 0000000..8aa3368 Binary files /dev/null and b/http2/data/beb.png differ diff --git a/http2/data/biab.png b/http2/data/biab.png new file mode 100644 index 0000000..9de577d Binary files /dev/null and b/http2/data/biab.png differ diff --git a/http2/data/bib.png b/http2/data/bib.png new file mode 100644 index 0000000..c2ec110 Binary files /dev/null and b/http2/data/bib.png differ diff --git a/http2/data/biob.png b/http2/data/biob.png new file mode 100644 index 0000000..211e023 Binary files /dev/null and b/http2/data/biob.png differ diff --git a/http2/data/bob.png b/http2/data/bob.png new file mode 100644 index 0000000..f01ca02 Binary files /dev/null and b/http2/data/bob.png differ diff --git a/http2/data/boob.png b/http2/data/boob.png new file mode 100644 index 0000000..eef411a Binary files /dev/null and b/http2/data/boob.png differ diff --git a/http2/data/bub.png b/http2/data/bub.png new file mode 100644 index 0000000..22742de Binary files /dev/null and b/http2/data/bub.png differ diff --git a/http2/data/byb.png b/http2/data/byb.png new file mode 100644 index 0000000..716988b Binary files /dev/null and b/http2/data/byb.png differ diff --git a/http2/data/checked.png b/http2/data/checked.png new file mode 100644 index 0000000..df0201c Binary files /dev/null and b/http2/data/checked.png differ diff --git a/http2/data/close.png b/http2/data/close.png new file mode 100644 index 0000000..6d9534b Binary files /dev/null and b/http2/data/close.png differ diff --git a/http2/data/confirm.html b/http2/data/confirm.html new file mode 100644 index 0000000..928764d --- /dev/null +++ b/http2/data/confirm.html @@ -0,0 +1,34 @@ + + + + + +See you + + + +

Confirmation

+ +

%(count > 1 and ('There are %d clients'%count) or 'There is a client')s +still connected to your server.

+ +

Are you sure you want to stop the server now? +           + +

+ +
+ + + +
+ + +
+<<< Cancel +           +Yes, Really Quit >>> +
+
+ + diff --git a/http2/data/disabled.png b/http2/data/disabled.png new file mode 100644 index 0000000..922c394 Binary files /dev/null and b/http2/data/disabled.png differ diff --git a/http2/data/hat1.png b/http2/data/hat1.png new file mode 100644 index 0000000..b3684d1 Binary files /dev/null and b/http2/data/hat1.png differ diff --git a/http2/data/hat2.png b/http2/data/hat2.png new file mode 100644 index 0000000..6494580 Binary files /dev/null and b/http2/data/hat2.png differ diff --git a/http2/data/header.png b/http2/data/header.png new file mode 100644 index 0000000..c9a8566 Binary files /dev/null and b/http2/data/header.png differ diff --git a/http2/data/index.html b/http2/data/index.html new file mode 100644 index 0000000..08dcc2f --- /dev/null +++ b/http2/data/index.html @@ -0,0 +1,292 @@ + + + + + +The Bub's Brothers + + +  +
+ +%( +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! +

+
+
 
  
   
+ + + + diff --git a/http2/data/lbab.png b/http2/data/lbab.png new file mode 100644 index 0000000..24fd915 Binary files /dev/null and b/http2/data/lbab.png differ diff --git a/http2/data/lbeb.png b/http2/data/lbeb.png new file mode 100644 index 0000000..a04a9e0 Binary files /dev/null and b/http2/data/lbeb.png differ diff --git a/http2/data/lbib.png b/http2/data/lbib.png new file mode 100644 index 0000000..191142a Binary files /dev/null and b/http2/data/lbib.png differ diff --git a/http2/data/lbiob.png b/http2/data/lbiob.png new file mode 100644 index 0000000..afc809f Binary files /dev/null and b/http2/data/lbiob.png differ diff --git a/http2/data/name.html b/http2/data/name.html new file mode 100644 index 0000000..dab24f9 --- /dev/null +++ b/http2/data/name.html @@ -0,0 +1,189 @@ + + + + + +Name Bub's Brothers + + +  + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%( +buttons = { +0: """ +""", +1: """ +"""} +for id, img, bgcolor in [ + (0, 'bub.png', '#c0ffc0'), + (1, 'bob.png', '#c0c0ff'), + (2,'boob.png', '#ffc0c0'), + (3, 'beb.png', '#ffc000'), + (4,'biob.png', '#ffff00'), + (5, 'bab.png', '#c04040'), + (6, 'bib.png', '#c0c0c0'), + (7,'baub.png', '#fc60ff'), + (8,'beab.png', '#4fa4ff'), + (9,'biab.png', '#0ab237'), + ]: + keyid = "player%d" % id + playername = options.get(keyid) or '' + playername = playername.strip() + for team in [1,2]: + if playername.endswith('(%d)' % team): + playername = playername[:-3].strip() + break + else: + team = 'off' + def nameval(value, team=team, teamid="team%d" % id): + s = 'value="%s"' % (value,) + if team == value: + s += ' selected' + return s + print """ + + + + + + + +""" % (bgcolor, img, bgcolor, keyid, playername, + bgcolor, id, nameval('off'), nameval(1), nameval(2)) +)s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
   
   
   
   
 Player Names 
   
   
  + Back to the main page + 
   
    + +  
   
  +    +    + + 
   
   
   
   
   
  
   
+ + +
+
+ + + diff --git a/http2/data/new.html b/http2/data/new.html new file mode 100644 index 0000000..1709c8d --- /dev/null +++ b/http2/data/new.html @@ -0,0 +1,271 @@ + + + + + +New Bub's Brothers Server + + +  + +
+ + +%( +def nameval(name, value, default=0, options=options): + s = getattr(options, name) + if s == value or (default and not s): + s = 'checked ' + else: + s = '' + return s + 'name="%s" value="%s"' % (name, value) +)s + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%( +if running: print ''' + + + + + +''')s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
   
   
   
   
 New Server 
   
   
  + Back to the main page + 
   
  + + + + + +
Level file + + + + + +
+
+
+
 
  + + + + + + +
Levels to play + Start at level +and go on ... + + +  to the end of the level file
+  to level
+ skipping levels: + +
+
 
  + + + + + +
Limited lives +  no limited lives --- just run for points!
+  limit to lives (with an extra life for each points)
+  limit lifegain to max. life per level +
+
 
  + + + + + +
Permanent server +  Automatically restart the server after the end is reached, forever
+ Non-permanent servers time out after 2 hours of inactivity +
+
 
  + + + + + +
Internet game + + + + + +

 register the server on the Bub-'n-Bros meta-server, allowing it to appear on everybody's Internet Games list

+
+
 
   
  + + 
  +Note: this will replace the server already running on this machine. + 
   
   
   
   
   
  
   
+
+ + + diff --git a/http2/data/options.html b/http2/data/options.html new file mode 100644 index 0000000..8ded787 --- /dev/null +++ b/http2/data/options.html @@ -0,0 +1,285 @@ + + + + + +Settings - The Bub's Brothers + +  + +%( +def nameval(type, name, value=None, default=None, mangling=1, options=options): + if mangling: + name = mode.unique_id() + '_' + name + s = getattr(options, name) or default + checked = s == value + if type == 'option': + return 'option %svalue="%s"' % (checked and 'selected ' or '', value) + elif type == 'select': + return 'select name="%s"' % name + elif type == 'text': + return 'input type=text name="%s" value="%s"' % ( + name, htmlquote(s)) + else: + return 'input type=%s %sname="%s" value="%s"' % ( + type, checked and 'checked ' or '', name, value) + +def begingroup(text, fgcolor, bgcolor, lightbgcolor, img, nbitems): + global groupinfo + print '' + print '' % (nbitems or 1, bgcolor) + print '%s' % (fgcolor, text) + print '' + groupinfo = [lightbgcolor, bgcolor, fgcolor, 0, 0, img] + if not nbitems: + begingroupitem() + endgroupitem() +def begingroupitem(highlight=0): + if groupinfo[4]: + print '' + groupinfo[4] += 1 + groupinfo[3] = highlight + print '' % groupinfo[highlight] + print '' +def endgroupitem(): + print '
' + if groupinfo[3]: + print '' % groupinfo[-1] + print '
' + print '' +def endgroup(): + pass + +def beginmode(): + highlight = mode in currentmodes + begingroupitem(highlight) + + print '' + err = mode.imperror() + if highlight: + url = None + err = err or "selected" + print 'selected' + elif err: + url = None + print '%s' % err + else: + url = "options.html?%s=%s&savetime=%s" % (mode.prefix, mode.name, + time.time()) + err = "select" + print 'select' % url + print '' + + print '' + if url: print '' % url, + print htmlquote(err), + if url: print '', + print '' + + print '', + print htmlquote(mode.name), + print '' + if mode.url: + print '    -   web site' % mode.url + print '
' + print htmlquote(mode.descr) + return highlight + +def beginmodeoptions(): + print '
' + print '
' + +def endmodeoptions(): + print '' + print '' + print '
' + +def endmode(): + print '' + endgroupitem() + +def modeitems(modelist): + global mode + for mode in modelist: + if beginmode(): + txt = mode.htmloptionstext(nameval) + if txt: + beginmodeoptions() + print txt + endmodeoptions() + endmode() +)s + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
   
   
   
   
 Settings 
   
   
  + Technical documentation - + Back to the main page       + 
   
  + +
+ + + + + +%( +graphicmodes = self.graphicmodeslist() +currentmodes = self.localmodes() +begingroup('Display driver', '#800000', '#FFC000', '#C0C0C0', + 'lbeb.png', len(graphicmodes)) +modeitems(graphicmodes) +endgroup() +)s + + + + + +%( +soundmodes = self.soundmodeslist() +java = graphicmodes[0] in currentmodes +begingroup('Sound driver', '#800000', '#FFFF00', '#C0C0C0', + 'lbiob.png', java and 1 or len(soundmodes)) +if java: + begingroupitem(1) + print '' + endgroupitem() +else: + modeitems(soundmodes) +endgroup() +)s + + + +%( +begingroup('Network options', '#004000', '#80FF00', None, 'lbib.png', 1) +begingroupitem(1) +)s + +%( +endgroupitem() +endgroup() +)s + +
  
Java Applet always does sounds, but', + print 'background music is not implemented
  
+ + + + +
+

Network ports are automatically assigned, but you can optionally choose fixed + ones and let them in through your firewall. Clients using the + "Internet games" meta-server can usually connect even through firewalls. + Moreover servers can re-route UDP traffic to clients behind firewalls over TCP. +%( +if java: + print "These settings don't apply to the Java applet." +)s

+ +

TCP game server port: <%(nameval("text", "port_LISTEN", default="", mangling=0))s>
+ HTTP server port: <%(nameval("text", "port_HTTP", default="", mangling=0))s>

+ +

Client incoming UDP port (or host:port if redirected): <%(nameval("text", "port_CLIENT", default="", mangling=0))s>
+ <%(nameval("radio", "datachannel", "ucp", mangling=0))s>always UDP + <%(nameval("radio", "datachannel", "tcp", mangling=0))s>no UDP, only TCP + <%(nameval("radio", "datachannel", "auto", default="auto", mangling=0))s>Auto-detect
+ Client incoming TCP port (metaserver-directed back-connections): <%(nameval("text", "port_BACK", default="", mangling=0))s>

+
+ Help!

+ +
+
+
+ +
 
   
  +
+ + +
+
 
   
+ + + diff --git a/http2/data/sfbob.png b/http2/data/sfbob.png new file mode 100644 index 0000000..388d446 Binary files /dev/null and b/http2/data/sfbob.png differ diff --git a/http2/data/sfbub.png b/http2/data/sfbub.png new file mode 100644 index 0000000..142f3b3 Binary files /dev/null and b/http2/data/sfbub.png differ diff --git a/http2/data/stop.html b/http2/data/stop.html new file mode 100644 index 0000000..464ed36 --- /dev/null +++ b/http2/data/stop.html @@ -0,0 +1,101 @@ + + + + + +See you + + + +
+ + + + + + +
See you !   
+ +
+
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  
   
  +I hope you enjoyed this game! +

+http://bub-n-bros.sourceforge.net +
 
   
  +Almost all sprite images, sounds, background musics and +some of the levels are directly taken from the MacOS version of +Bub & Bob 1 by McSebi, and redistributed with his gracious +permission. +Most graphics have been improved or remade by David Gowers. + +

+ http://www.mcsebi.de +

+ +
 
   
 
+

Authors

+ +
    +
  • Programming: Armin Rigo +
  • Art: David Gowers, based on graphics from McSebi +
  • Levels: Gio & Odie & Michel-Stéphane & Armin +
  • Special thanks: Odie & Brachamutanda +
  • Beta-testers: IMA Connection +
+ +
 
   
+ + + diff --git a/http2/data/unchecked.png b/http2/data/unchecked.png new file mode 100644 index 0000000..0b20e95 Binary files /dev/null and b/http2/data/unchecked.png differ diff --git a/http2/data/wave1.png b/http2/data/wave1.png new file mode 100644 index 0000000..3424216 Binary files /dev/null and b/http2/data/wave1.png differ diff --git a/http2/data/wave2.png b/http2/data/wave2.png new file mode 100644 index 0000000..758f47d Binary files /dev/null and b/http2/data/wave2.png differ diff --git a/http2/data/wave3.png b/http2/data/wave3.png new file mode 100644 index 0000000..93fd6d3 Binary files /dev/null and b/http2/data/wave3.png differ -- cgit v1.2.3