Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- daniel@moja ~/springrts/spring-replay-site/srs $ ./parse_demo_file.py /mnt/games/springrts/demos/20121206_231151_Mescaline_V2_91.sdf
- #################### header ##########################
- {'demoStreamSize': 4193640,
- 'gameID': 'bb18c15069720bd4b1ce04c51cdf4421',
- 'gameTime': '0:49:12',
- 'headerSize': 352,
- 'magic': 'spring demofile',
- 'numPlayers': 23,
- 'numTeams': 10,
- 'playerStatElemSize': 20,
- 'playerStatSize': 460,
- 'scriptSize': 3751,
- 'teamStatElemSize': 80,
- 'teamStatPeriod': 16,
- 'teamStatSize': 148840,
- 'unixTime': '2012-12-06 23:11:51',
- 'version': 5,
- 'versionString': '91',
- 'wallclockTime': '0:52:54',
- 'winningAllyTeamsSize': 1}
- ################## game_setup ########################
- {'allyteam': {'0': {'numallies': 0,
- 'startrectbottom': 1,
- 'startrectleft': 0.75,
- 'startrectright': 1,
- 'startrecttop': 0},
- '1': {'numallies': 0,
- 'startrectbottom': 1,
- 'startrectleft': 0,
- 'startrectright': 0.25,
- 'startrecttop': 0}},
- 'host': {'autohostaccountid': 143409,
- 'autohostcountrycode': 'FR',
- 'autohostname': '[x]TheHost',
- 'autohostport': 8454,
- 'autohostrank': 7,
- 'gametype': 'Balanced Annihilation V7.72',
- 'hostport': 8452,
- 'ishost': 1,
- 'mapname': 'Mescaline_V2',
- 'numallyteams': 2,
- 'numplayers': 16,
- 'numrestrictions': 0,
- 'numteams': 10,
- 'startpostype': 2},
- 'mapoptions': {},
- 'modoptions': {'deathmode': 'com',
- 'disablemapdamage': 0,
- 'fixedallies': 0,
- 'ghostedbuildings': 1,
- 'limitdgun': 0,
- 'maxspeed': 1,
- 'maxunits': 4000,
- 'minspeed': 1,
- 'mo_allowfactionchange': 1,
- 'mo_armageddontime': 0,
- 'mo_combomb_full_damage': 0,
- 'mo_comgate': 0,
- 'mo_coop': 1,
- 'mo_enemywrecks': 1,
- 'mo_greenfields': 0,
- 'mo_noowner': 0,
- 'mo_noshare': 1,
- 'mo_nowrecks': 0,
- 'mo_preventdraw': 0,
- 'mo_progmines': 0,
- 'mo_storageowner': 'team',
- 'mo_transportenemy': 'all',
- 'pathfinder': 'normal',
- 'shareddynamicalliancevictory': 0,
- 'startenergy': 1000,
- 'startmetal': 1000,
- 'teamdeathmode': 'allyzerounits'},
- 'player': {'0': {'accountid': 9368,
- 'countrycode': 'CH',
- 'name': 'The_Uber_Noob',
- 'password': '2a87a0ca',
- 'rank': 6,
- 'spectator': 1},
- '1': {'accountid': 235626,
- 'countrycode': 'DE',
- 'name': 'Bratkartoffel',
- 'password': '78c92497',
- 'rank': 3,
- 'spectator': 0,
- 'team': 0},
- '10': {'accountid': 204720,
- 'countrycode': 'FR',
- 'name': '[ACE]Krapoo',
- 'password': '919195a3',
- 'rank': 5,
- 'spectator': 1},
- '11': {'accountid': 53304,
- 'countrycode': 'FI',
- 'name': 'niglet_piglet',
- 'password': '6EA3F6F0',
- 'rank': 6,
- 'spectator': 1},
- '12': {'accountid': 115510,
- 'countrycode': 'IT',
- 'name': '[zT]Splinter',
- 'password': '229C4F9F',
- 'rank': 5,
- 'spectator': 0,
- 'team': 6},
- '13': {'accountid': 191405,
- 'countrycode': 'BR',
- 'name': 'luizxd5',
- 'password': '480a1f09',
- 'rank': 5,
- 'spectator': 0,
- 'team': 7},
- '14': {'accountid': 214027,
- 'countrycode': 'IT',
- 'name': '[zT]PabyLove',
- 'password': '41ea1f27',
- 'rank': 3,
- 'spectator': 0,
- 'team': 8},
- '15': {'accountid': 3780,
- 'countrycode': 'NL',
- 'name': '[PiRO]klapmongool',
- 'password': '506F59D5',
- 'rank': 6,
- 'spectator': 0,
- 'team': 9},
- '2': {'accountid': 173246,
- 'countrycode': 'GB',
- 'name': '[Looney]ElmerFudd',
- 'password': '28bd3e14',
- 'rank': 6,
- 'spectator': 1},
- '3': {'accountid': 233815,
- 'countrycode': 'US',
- 'name': 'murtagon',
- 'password': '1abfb79a',
- 'rank': 5,
- 'spectator': 1},
- '4': {'accountid': 237427,
- 'countrycode': 'ES',
- 'name': 'Renew',
- 'password': '7aff46ee',
- 'rank': 1,
- 'spectator': 0,
- 'team': 1},
- '5': {'accountid': 223380,
- 'countrycode': 'FR',
- 'name': '[ACE]Bla',
- 'password': '0a5b543c',
- 'rank': 5,
- 'spectator': 1},
- '6': {'accountid': 34377,
- 'countrycode': '??',
- 'name': 'rainbowmagik',
- 'password': '65f8760d',
- 'rank': 5,
- 'spectator': 0,
- 'team': 2},
- '7': {'accountid': 235365,
- 'countrycode': 'IT',
- 'name': 'nojustno',
- 'password': '1862fa23',
- 'rank': 3,
- 'spectator': 0,
- 'team': 3},
- '8': {'accountid': 204660,
- 'countrycode': 'US',
- 'name': '[WW]_Botman',
- 'password': '4d430bc0',
- 'rank': 5,
- 'spectator': 0,
- 'team': 4},
- '9': {'accountid': 130601,
- 'countrycode': 'DE',
- 'name': 'Danchan',
- 'password': '7763a454',
- 'rank': 5,
- 'spectator': 0,
- 'team': 5}},
- 'restrict': {},
- 'team': {'0': {'allyteam': 0,
- 'handicap': 0,
- 'rgbcolor': '0.40000 0.60000 0.00000',
- 'side': 'ARM',
- 'teamleader': 1},
- '1': {'allyteam': 1,
- 'handicap': 0,
- 'rgbcolor': '0.00000 1.00000 0.00000',
- 'side': 'ARM',
- 'teamleader': 4},
- '2': {'allyteam': 1,
- 'handicap': 0,
- 'rgbcolor': '1.00000 1.00000 0.00000',
- 'side': 'CORE',
- 'teamleader': 6},
- '3': {'allyteam': 0,
- 'handicap': 0,
- 'rgbcolor': '0.00000 1.00000 0.92157',
- 'side': 'ARM',
- 'teamleader': 7},
- '4': {'allyteam': 0,
- 'handicap': 0,
- 'rgbcolor': '1.00000 0.00000 1.00000',
- 'side': 'CORE',
- 'teamleader': 8},
- '5': {'allyteam': 0,
- 'handicap': 0,
- 'rgbcolor': '0.19608 0.19608 0.19608',
- 'side': 'CORE',
- 'teamleader': 9},
- '6': {'allyteam': 1,
- 'handicap': 0,
- 'rgbcolor': '0.78431 0.00000 0.00000',
- 'side': 'ARM',
- 'teamleader': 12},
- '7': {'allyteam': 0,
- 'handicap': 0,
- 'rgbcolor': '0.54902 1.00000 0.54902',
- 'side': 'ARM',
- 'teamleader': 13},
- '8': {'allyteam': 1,
- 'handicap': 0,
- 'rgbcolor': '1.00000 0.54902 1.00000',
- 'side': 'ARM',
- 'teamleader': 14},
- '9': {'allyteam': 1,
- 'handicap': 0,
- 'rgbcolor': '1.00000 0.50196 0.00000',
- 'side': 'ARM',
- 'teamleader': 15}}}
- ############### winningAllyTeams #####################
- [0]
Advertisement
Add Comment
Please, Sign In to add comment