Created
August 23, 2010 05:31
-
-
Save manveru/544848 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packets = [ | |
"\000\020 0@splitnum\000\000\000hostname\000[C&B] Titan Moving 24/7 [DK]\000gamename\000stella\000gamever\0001.10.48.0\000mapname\000Suez_Canal\000gametype\000gpm_ti\000gamevariant\000bf2142\000numplayers\0001\000maxplayers\00048\000gamemode\000openplaying\000password\0000\000timelimit\0000\000roundtime\0002\000hostport\00017567\000bf2142_ranked\0001\000bf2142_anticheat\0001\000bf2142_autorec\0000\000bf2142_d_idx\000http://bf.killercreation.co.uk/demos/bf2142/81.19.208.40/17567/\000bf2142_d_dl\000http://bf.killercreation.co.uk/demos/bf2142/81.19.208.40/17567/\000bf2142_voip\0001\000bf2142_autobalanced\0000\000bf2142_friendlyfire\0001\000bf2142_tkmode\000No Punish\000bf2142_startdelay\00015\000bf2142_spawntime\00015.000000\000bf2142_sponsortext\000Welcome to Crash & Burn - http://www.crashburn.org\000bf2142_sponsorlogo_url\000http://www.crashburn.eu/images/2142_logo.png\000bf2142_communitylogo_url\000http://www.crashburn.eu/images/2142_logo.png\000bf2142_scorelimit\0000\000bf2142_ticketratio\000100\000bf2142_teamratio\000100.000000\000bf2142_team1\000Pac\000bf2142_team2\000EU\000bf2142_pure\0001\000bf2142_mapsize\00048\000bf2142_globalunlocks\0000\000bf2142_reservedslots\00010\000bf2142_maxrank\0000\000bf2142_provider\000Killercreations\000bf2142_region\000UK\000bf2142_type\0000\000bf2142_averageping\00050\000bf2142_ranked_tournament\0000\000bf2142_allow_spectators\0000\000bf2142_custom_map_url\0001http://bfeditor.org/index.php?lang=English&sec=maps&act=vmap&game=bf2142&map=\000\000\001player_\000\000[WRW] Vazhniy\000\000score_\000\0000\000\000ping_\000\00050\000\000team_\000\0002\000\000deaths_\000\0000\000\000pid_\000\000228584852\000\000skill_\000\0000\000\000\000", | |
"\000\020 0@splitnum\000\201\002team_t\000\000Pac\000EU\000\000score_t\000\0000\0000\000\000\000" | |
] | |
require 'pp' | |
pp Hash[*packets.map{|packet| packet.split(/\000+/) }.flatten] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment