[game-data-packager] 02/02: TODO list: add known missing games, inject in HTML list

Alexandre Detiste detiste-guest at moszumanska.debian.org
Thu Sep 3 06:52:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

detiste-guest pushed a commit to branch master
in repository game-data-packager.

commit 187bf6bd5c2934b4752756029972d6f316425ec8
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date:   Thu Sep 3 08:52:27 2015 +0200

    TODO list: add known missing games, inject in HTML list
---
 debian/TODO    | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/babel.py | 39 +++++++++++++++++++----
 2 files changed, 130 insertions(+), 6 deletions(-)

diff --git a/debian/TODO b/debian/TODO
index 49e34d0..e437fa7 100644
--- a/debian/TODO
+++ b/debian/TODO
@@ -17,3 +17,100 @@ TODO:
 		generated file)
 
 See also: https://wiki.debian.org/Games/GameDataPackager/Development
+
+## List of missing games (machine-read)
+# Adventure
+Bargon Attack
+Blue Force
+Bud Tucker in Double Trouble
+Chivalry is Not Dead
+Codename: ICEMAN
+Conquests of Camelot: The Search for the Grail
+Conquests of the Longbow: The Legend of Robin Hood
+Cruise for a Corpse
+Darby the Dragon
+Discworld
+Discworld II: Missing Presumed...!?
+EcoQuest: The Search for Cetus
+EcoQuest II: Lost Secret of the Rainforest
+Eye of the Beholder
+Eye of the Beholder II: The Legend of Darkmoon
+Fascination
+Freddy Pharkas: Frontier Pharmacist
+Future Wars
+Geisha
+Gold Rush!
+Hopkins FBI
+Hoyle's Official Book of Games
+Indiana Jones and the Last Crusade: The Graphic Adventure
+Jones in the Fast Lane
+Leather Goddesses of Phobos 2: Gas Pump Girls Meet the Pulsating Inconvenience from Planet X!
+Magic Tales: Liam Finds a Story
+Manhunter: New York (developed by Evryware)
+Manhunter 2: San Francisco (developed by Evryware)
+Mickey's Space Adventure
+Mixed-Up Fairy Tales
+Mixed-Up Mother Goose
+Monkey Island 2: LeChuck's Revenge
+Mortville Manor
+Nippon Safes Inc.
+Once Upon A Time: Little Red Riding Hood
+Pepper's Adventures in Time
+Personal Nightmare
+Playtoons: Bambou le Sauveur de la Jungle
+Return to Ringworld
+Ringworld: Revenge of the Patriarch
+Rodney's Funscreen
+Simon the Sorcerer's Puzzle Pack
+Slater & Charlie Go Camping
+Sleeping Cub's Test of Courage
+The Bizarre Adventures of Woodruff and the Schnibble
+The Black Cauldron
+The Colonel's Bequest
+The Curse of Monkey Island
+The Dagger of Amon Ra
+The Feeble Files
+The Journeyman Project: Pegasus Prime
+The Manhole
+The Neverhood
+The Princess and the Crab
+The Secret of Monkey Island
+Tony Tough and the Night of Roasted Moths
+Touché: The Adventures of the Fifth Musketeer
+Troll's Tale
+Urban Runner
+Voyeur
+Ween: The Prophecy
+Winnie the Pooh in the Hundred Acre Wood
+
+# First-person shooter
+enemy-territory #780446
+Redneck Rampage #787236
+
+# Kids
+Backyard Baseball
+Backyard Baseball 2001
+Backyard Football 2002
+Backyard Baseball 2003
+Blue's Clues series (Blue's Birthday Adventure and others)
+Big Thinkers series
+Fatty Bear series
+Freddi Fish series
+Junior Field Trips series
+Living Books series (up through Stellaluna)
+Pajama Sam series
+Putt-Putt series
+Spy Fox series
+
+# Platformer
+Commander Keen series #786501
+
+# Role Playing
+The Elder Scrolls III: Morrowind #776541
+Ultima VII #784733
+Baldur's Gate (gemrb) #776540
+Icewind Dale series (gemrb) #776540
+Planescape:Torment (gemrb) #776540
+
+# Strategy
+Age Of Empires II #790554
diff --git a/tools/babel.py b/tools/babel.py
index a23df3e..f2974b9 100755
--- a/tools/babel.py
+++ b/tools/babel.py
@@ -66,6 +66,30 @@ for name, game in load_games().items():
             langs[l] = 0
     games.append(stats)
 
+# add missing games from list
+with open('debian/TODO', 'r', encoding='utf8') as missing:
+    for line in missing:
+        if line[0:2] == '##':
+            break
+    genre = None
+    for line in missing:
+        line = line.strip()
+        if line[0:1] == '#':
+            genre = line[1:len(line)].strip()
+        elif line == '':
+            pass
+        else:
+            stats = dict()
+            genres[genre] = genres.get(genre, 0) + 1
+            stats['genre'] = genre
+            shortname = ''
+            for char in line.lower():
+                if 'a' <= char <= 'z' or '0' <= char <= '9':
+                   shortname += char
+            stats['shortname'] = shortname
+            stats['longname'] = line
+            games.append(stats)
+
 games = sorted(games, key=lambda k: (k['genre'], k['shortname'], k['longname']))
 
 langs_order = [k for k, v in sorted(langs.items(), key=lambda kv: (-kv[1], kv[0]))]
@@ -110,27 +134,29 @@ for game in games:
     html.write('  <td>%s</td>\n' % game['longname'])
     for lang in langs_order:
         count = game.get(lang,None)
-        if lang in ('total', 'en') or count == '*':
+        if lang in ('total', 'en') and count == None:
+            html.write('  <td bgcolor="orange">!</td>\n')
+        elif lang in ('total', 'en') or count == '*':
             html.write('  <td bgcolor="lightgreen">%s</td>\n' % count)
-        elif lang in game['missing_langs']:
+        elif 'missing_langs' in game and lang in game['missing_langs']:
             html.write('  <td bgcolor="orange">!</td>\n')
         elif count:
             html.write('  <td bgcolor="green">%s</td>\n' % count)
         else:
             html.write('  <td> </td>\n')
 
-    if game['fullfree']:
+    if game.get('fullfree', False):
         html.write('  <td colspan=5 align=center><b>freeload</b></td>\n')
     else:
         if 'demos' in game:
             demos += game['demos']
             html.write('  <td align=center><b>%i</b></td>\n' % game['demos'])
-        elif game['somefree']:
+        elif game.get('somefree', False):
             html.write('  <td align=center><b>X</b></td>\n')
         else:
             html.write('  <td> </td>\n')
-        for url in (game['url_steam'], game['url_gog'], game['url_dotemu'], game['url_misc']):
-            if url:
+        for url in ('url_steam', 'url_gog', 'url_dotemu', 'url_misc'):
+            if url in game and game[url]:
                 html.write('  <td align=center><a href="%s"><b>X</b></a></td>\n' % url)
             else:
                 html.write('  <td> </td>\n')
@@ -155,3 +181,4 @@ html.write('''
 '''
 )
 
+html.close()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list