This is an automated email from the git hooks/post-receive script. detiste-guest pushed a commit to branch doom2-launcher in repository game-data-packager.
commit 9f53f6accc3cf6f9a445d16ea624d54d13e7d696 Author: Alexandre Detiste <[email protected]> Date: Mon Feb 2 11:16:44 2015 +0100 hardcode level list longname & URL not yet used --- game_data_packager/doom2-masterlevels.py | 39 +++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/game_data_packager/doom2-masterlevels.py b/game_data_packager/doom2-masterlevels.py index a9f89ca..b06d01e 100755 --- a/game_data_packager/doom2-masterlevels.py +++ b/game_data_packager/doom2-masterlevels.py @@ -24,16 +24,29 @@ gi.require_version('Gtk', '3.0') from gi.repository import Gtk map = None -exceptions = { - 'blacktwr.wad': 25, - 'bloodsea.wad': 7, - 'geryon.wad': 8, - 'mephisto.wad': 7, - 'minos.wad': 5, - 'nessus.wad': 7, - 'teeth.wad': 31, # + 32 - 'vesperas.wad': 9, - 'virgil.wad': 3, +# wad : (warp, longname, 'http://doom.wikia.com/wiki/' + url) +levels = { + 'attack.wad': ( 1, 'Attack' , 'MAP01:_Attack_(Master_Levels)'), + 'blacktwr.wad': (25, 'Black Tower' , 'MAP25:_Black_Tower_(Master_Levels)'), + 'bloodsea.wad': ( 7, 'Bloodsea Keep' , 'MAP07:_Bloodsea_Keep_(Master_Levels)'), + 'canyon.wad': ( 1, 'Canyon' , 'MAP01:_Canyon_(Master_Levels)'), + 'catwalk.wad': ( 1, 'The Catwalk' , 'MAP01:_The_Catwalk_(Master_Levels)'), + 'combine.wad': ( 1, 'The Combine' , 'MAP01:_The_Combine_(Master_Levels)'), + 'fistula.wad': ( 1, 'The Fistula' , 'MAP01:_The_Fistula_(Master_Levels)'), + 'garrison.wad': ( 1, 'The Garrison' , 'MAP01:_The_Garrison_(Master_Levels)'), + 'geryon.wad': ( 8, 'Geryon: 6th Canto of Inferno' , 'MAP08:_Geryon_(Master_Levels)'), + 'mephisto.wad': ( 7, "Mephisto's Maosoleum" , "MAP07:_Mephisto%27s_Maosoleum_(Master_Levels)"), + 'manor.wad': ( 1, 'Titan Manor' , 'MAP01:_Titan_Manor_(Master_Levels)'), + 'minos.wad': ( 5, "Minos' Judgement: 4th Canto of Inferno" , "MAP05:_Minos%27_Judgement_(Master_Levels)"), + 'nessus.wad': ( 7, 'Nessus: 5th Canto of Inferno' , "MAP07:_Nessus_(Master_Levels)"), + 'paradox.wad': ( 1, 'Paradox' , 'MAP01:_Paradox_(Master_Levels)'), + 'subspace.wad': ( 1, 'Subspace' , 'MAP01:_Subspace_(Master_Levels)'), + 'subterra.wad': ( 1, 'Subterra' , 'MAP01:_Subterra_(Master_Levels)'), + 'teeth.wad': (31, 'The Express Elevator to Hell' , 'MAP31:_The_Express_Elevator_to_Hell_-_teeth.wad_(Master_Levels)'), + 'teeth.wad*': (32, 'Bad Dream' , 'MAP32:_Bad_Dream_-_teeth.wad_(Master_Levels)'), + 'ttrap.wad': ( 1, 'Trapped on Titan' , 'MAP01:_Trapped_on_Titan_(Master_Levels)'), + 'vesperas.wad': ( 9, 'Vesperas: 7th Canto of Inferno' , 'MAP09:_Vesperas_(Master_Levels)'), + 'virgil.wad': ( 3, "Virgil's Lead: 3rd Canto of Inferno" , "MAP03:_Virgil%27s_Lead_(Master_Levels)"), } window = Gtk.Window() @@ -48,10 +61,10 @@ window.add(grid) # level list games = Gtk.ListStore(str, int) description = dict() -for wad in sorted(glob.glob('/usr/share/doc/doom2-masterlevels-wad/*.txt')): +for wad in sorted(levels.keys()): game = os.path.splitext(os.path.basename(wad))[0] - games.append([game, exceptions.get(game + '.wad', 1)]) - with open(wad, 'r', encoding='latin1') as f: + games.append([game, levels[wad][0] ]) + with open('/usr/share/doc/doom2-masterlevels-wad/%s.txt' % game, 'r', encoding='latin1') as f: description[game] = f.read() treeview = Gtk.TreeView(model=games) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

