home *** CD-ROM | disk | FTP | other *** search
Unreal Engine 3 Package | 2001-03-07 | 30.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Unreal Engine 3 Package
(archive/unrealEngine3Package).
You can browse this item here: IpServer.u
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Unreal Engine 3 Package (archive/unrealEngine3Package)
| magic
| Supported |
1%
| dexvert
| Unreal Texture (image/unrealTexture)
| ext
| Unsupported |
1%
| dexvert
| KICK-Pascal Unit Interface (other/kickPascalUnitInterface)
| ext
| Unsupported |
100%
| file
| Unreal Engine package (little-endian), version 69, names: 130, imports: 59, exports: 151
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| UE3 Unreal Package (LE)
| default
| |
100%
| detectItEasy
| Format: UnrealEngine\Unreal Package(69,0)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| c1 83 2a 9e 45 00 00 00 | 05 00 00 00 82 00 00 00 |..*.E...|........|
|00000010| 40 00 00 00 97 00 00 00 | 5c 71 00 00 3b 00 00 00 |@.......|\q..;...|
|00000020| 5f 6f 00 00 aa 17 af 8f | f2 12 d5 11 94 fa 00 50 |_o......|.......P|
|00000030| da bd 00 4c 01 00 00 00 | 97 00 00 00 82 00 00 00 |...L....|........|
|00000040| 05 4e 6f 6e 65 00 10 04 | 07 04 10 53 65 6e 64 51 |.None...|...SendQ|
|00000050| 75 65 72 79 50 61 63 6b | 65 74 00 10 00 07 00 10 |ueryPack|et......|
|00000060| 55 64 70 53 65 72 76 65 | 72 55 70 6c 69 6e 6b 00 |UdpServe|rUplink.|
|00000070| 10 00 07 00 09 47 65 74 | 52 75 6c 65 73 00 10 00 |.....Get|Rules...|
|00000080| 07 00 08 47 65 74 49 6e | 66 6f 00 10 00 07 00 0f |...GetIn|fo......|
|00000090| 50 61 72 73 65 4e 65 78 | 74 51 75 65 72 79 00 10 |ParseNex|tQuery..|
|000000a0| 00 07 00 0b 50 61 72 73 | 65 51 75 65 72 79 00 10 |....Pars|eQuery..|
|000000b0| 00 07 00 09 47 65 74 42 | 61 73 69 63 00 10 00 07 |....GetB|asic....|
|000000c0| 00 0c 53 65 6e 64 41 50 | 61 63 6b 65 74 00 10 00 |..SendAP|acket...|
|000000d0| 07 00 0a 47 65 74 50 6c | 61 79 65 72 00 10 00 07 |...GetPl|ayer....|
|000000e0| 00 0c 53 65 6e 64 50 6c | 61 79 65 72 73 00 10 00 |..SendPl|ayers...|
|000000f0| 07 00 09 53 65 6e 64 54 | 65 78 74 00 10 00 07 04 |...SendT|ext.....|
|00000100| 07 45 6e 67 69 6e 65 00 | 10 00 07 04 05 43 6f 72 |.Engine.|.....Cor|
|00000110| 65 00 10 00 07 04 06 54 | 69 6d 65 72 00 10 00 07 |e......T|imer....|
|00000120| 04 10 47 65 74 47 61 6d | 65 50 72 6f 70 65 72 74 |..GetGam|ePropert|
|00000130| 79 00 10 00 07 00 11 47 | 65 74 4c 65 76 65 6c 50 |y......G|etLevelP|
|00000140| 72 6f 70 65 72 74 79 00 | 10 00 07 00 12 47 65 74 |roperty.|.....Get|
|00000150| 50 6c 61 79 65 72 50 72 | 6f 70 65 72 74 79 00 10 |PlayerPr|operty..|
|00000160| 00 07 00 0d 4d 61 73 74 | 65 72 55 70 6c 69 6e 6b |....Mast|erUplink|
|00000170| 00 10 00 07 00 0f 55 64 | 70 53 65 72 76 65 72 51 |......Ud|pServerQ|
|00000180| 75 65 72 79 00 10 00 07 | 00 0b 52 65 6d 6f 74 65 |uery....|..Remote|
|00000190| 52 6f 6c 65 00 10 00 07 | 04 07 53 79 73 74 65 6d |Role....|..System|
|000001a0| 00 10 00 07 04 09 49 70 | 53 65 72 76 65 72 00 10 |......Ip|Server..|
|000001b0| 00 07 00 0d 50 72 65 42 | 65 67 69 6e 50 6c 61 79 |....PreB|eginPlay|
|000001c0| 00 10 00 07 04 0d 52 65 | 63 65 69 76 65 64 54 65 |......Re|ceivedTe|
|000001d0| 78 74 00 10 00 07 00 09 | 42 69 6e 64 50 6f 72 74 |xt......|BindPort|
|000001e0| 00 10 00 07 00 06 49 70 | 44 72 76 00 10 00 07 00 |......Ip|Drv.....|
|000001f0| 09 56 61 6c 69 64 61 74 | 65 00 10 00 07 00 0e 47 |.Validat|e......G|
|00000200| 65 74 53 65 72 76 65 72 | 50 6f 72 74 00 10 00 07 |etServer|Port....|
|00000210| 00 07 52 65 73 75 6d 65 | 00 10 00 07 00 0b 50 6c |..Resume|......Pl|
|00000220| 61 79 65 72 50 61 77 6e | 00 10 00 07 00 11 4d 61 |ayerPawn|......Ma|
|00000230| 73 74 65 72 53 65 72 76 | 65 72 50 6f 72 74 00 10 |sterServ|erPort..|
|00000240| 00 07 00 0d 47 65 74 4d | 75 6c 74 69 53 6b 69 6e |....GetM|ultiSkin|
|00000250| 00 10 00 07 00 0e 50 6f | 73 74 42 65 67 69 6e 50 |......Po|stBeginP|
|00000260| 6c 61 79 00 10 00 07 04 | 05 48 61 6c 74 00 10 00 |lay.....|.Halt...|
|00000270| 07 00 10 54 61 72 67 65 | 74 51 75 65 72 79 4e 61 |...Targe|tQueryNa|
|00000280| 6d 65 00 10 00 07 00 09 | 52 65 73 6f 6c 76 65 64 |me......|Resolved|
|00000290| 00 10 00 07 00 08 52 65 | 73 6f 6c 76 65 00 10 00 |......Re|solve...|
|000002a0| 07 00 0e 52 65 73 6f 6c | 76 65 46 61 69 6c 65 64 |...Resol|veFailed|
|000002b0| 00 10 00 07 00 0c 47 65 | 74 49 74 65 6d 4e 61 6d |......Ge|tItemNam|
|000002c0| 65 00 10 00 07 00 0a 51 | 75 65 72 79 4e 61 6d 65 |e......Q|ueryName|
|000002d0| 00 10 00 07 00 0f 43 6f | 6e 73 6f 6c 65 43 6f 6d |......Co|nsoleCom|
|000002e0| 6d 61 6e 64 00 10 00 07 | 00 09 47 61 6d 65 4e 61 |mand....|..GameNa|
|000002f0| 6d 65 00 10 00 07 00 0e | 55 70 64 61 74 65 4d 69 |me......|UpdateMi|
|00000300| 6e 75 74 65 73 00 10 00 | 07 00 05 53 6b 69 6e 00 |nutes...|...Skin.|
|00000310| 10 00 07 00 07 52 65 67 | 69 6f 6e 00 10 00 07 00 |.....Reg|ion.....|
|00000320| 09 46 61 63 65 4e 61 6d | 65 00 10 00 07 00 02 50 |.FaceNam|e......P|
|00000330| 00 10 00 07 00 09 53 6b | 69 6e 4e 61 6d 65 00 10 |......Sk|inName..|
|00000340| 00 07 00 10 47 65 74 50 | 72 6f 70 65 72 74 79 54 |....GetP|ropertyT|
|00000350| 65 78 74 00 10 00 07 00 | 07 52 65 73 75 6c 74 00 |ext.....|.Result.|
|00000360| 10 00 07 00 05 54 65 78 | 74 00 10 00 07 00 0b 4e |.....Tex|t......N|
|00000370| 75 6d 50 6c 61 79 65 72 | 73 00 10 00 07 00 0b 53 |umPlayer|s......S|
|00000380| 65 72 76 65 72 4e 61 6d | 65 00 10 00 07 00 09 6e |erverNam|e......n|
|00000390| 65 78 74 50 61 77 6e 00 | 10 00 07 00 09 4d 65 6e |extPawn.|.....Men|
|000003a0| 75 4e 61 6d 65 00 10 00 | 07 00 02 69 00 10 00 07 |uName...|...i....|
|000003b0| 00 05 54 65 61 6d 00 10 | 00 07 00 06 53 63 6f 72 |..Team..|....Scor|
|000003c0| 65 00 10 00 07 00 08 62 | 49 73 41 42 6f 74 00 10 |e......b|IsABot..|
|000003d0| 00 07 00 05 47 61 6d 65 | 00 10 00 07 00 0e 45 6e |....Game|......En|
|000003e0| 67 69 6e 65 56 65 72 73 | 69 6f 6e 00 10 00 07 00 |gineVers|ion.....|
|000003f0| 0c 52 65 74 75 72 6e 56 | 61 6c 75 65 00 10 00 07 |.ReturnV|alue....|
|00000400| 00 0b 53 63 72 69 70 74 | 54 65 78 74 00 10 00 07 |..Script|Text....|
|00000410| 00 17 52 65 63 65 69 76 | 65 64 53 65 63 72 65 74 |..Receiv|edSecret|
|00000420| 43 68 65 63 6b 73 75 6d | 00 10 00 07 00 0a 41 64 |Checksum|......Ad|
|00000430| 6d 69 6e 4e 61 6d 65 00 | 10 00 07 00 09 47 61 6d |minName.|.....Gam|
|00000440| 65 49 6e 66 6f 00 10 00 | 07 00 0f 4f 62 6a 65 63 |eInfo...|...Objec|
|00000450| 74 50 72 6f 70 65 72 74 | 79 00 10 00 07 04 16 50 |tPropert|y......P|
|00000460| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000470| 49 6e 66 6f 00 10 00 07 | 00 14 47 61 6d 65 52 65 |Info....|..GameRe|
|00000480| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 00 10 00 |plicatio|nInfo...|
|00000490| 07 00 06 4c 65 76 65 6c | 00 10 00 07 00 08 55 64 |...Level|......Ud|
|000004a0| 70 4c 69 6e 6b 00 10 00 | 07 00 0d 49 6e 74 65 72 |pLink...|...Inter|
|000004b0| 6e 65 74 4c 69 6e 6b 00 | 10 00 07 00 0a 55 64 70 |netLink.|.....Udp|
|000004c0| 42 65 61 63 6f 6e 00 10 | 00 07 00 07 49 70 41 64 |Beacon..|....IpAd|
|000004d0| 64 72 00 10 00 07 00 05 | 41 64 64 72 00 10 00 07 |dr......|Addr....|
|000004e0| 00 0a 4c 65 76 65 6c 49 | 6e 66 6f 00 10 00 07 00 |..LevelI|nfo.....|
|000004f0| 0b 41 64 6d 69 6e 45 6d | 61 69 6c 00 10 00 07 00 |.AdminEm|ail.....|
|00000500| 11 56 61 6c 69 64 61 74 | 69 6f 6e 53 74 72 69 6e |.Validat|ionStrin|
|00000510| 67 00 10 00 07 00 0b 50 | 6c 61 79 65 72 4e 61 6d |g......P|layerNam|
|00000520| 65 00 10 00 07 00 0e 4d | 69 6e 4e 65 74 56 65 72 |e......M|inNetVer|
|00000530| 73 69 6f 6e 00 10 00 07 | 00 06 41 63 74 6f 72 00 |sion....|..Actor.|
|00000540| 10 00 07 00 05 50 61 77 | 6e 00 10 00 07 00 13 55 |.....Paw|n......U|
|00000550| 64 70 53 65 72 76 65 72 | 51 75 65 72 79 50 6f 72 |dpServer|QueryPor|
|00000560| 74 00 10 00 07 00 0a 62 | 6f 75 6e 64 70 6f 72 74 |t......b|oundport|
|00000570| 00 10 00 07 00 06 51 75 | 65 72 79 00 10 00 07 00 |......Qu|ery.....|
|00000580| 13 4d 61 73 74 65 72 53 | 65 72 76 65 72 49 70 41 |.MasterS|erverIpA|
|00000590| 64 64 72 00 10 00 07 00 | 14 4d 61 73 74 65 72 53 |ddr.....|.MasterS|
|000005a0| 65 72 76 65 72 41 64 64 | 72 65 73 73 00 10 00 07 |erverAdd|ress....|
|000005b0| 00 0a 4d 69 6e 4e 65 74 | 56 65 72 00 10 00 07 00 |..MinNet|Ver.....|
|000005c0| 06 54 69 74 6c 65 00 10 | 00 07 04 04 54 61 67 00 |.Title..|....Tag.|
|000005d0| 10 00 07 04 0c 49 6e 74 | 50 72 6f 70 65 72 74 79 |.....Int|Property|
|000005e0| 00 10 00 07 04 05 50 6f | 72 74 00 10 00 07 00 10 |......Po|rt......|
|000005f0| 43 75 72 72 65 6e 74 51 | 75 65 72 79 4e 75 6d 00 |CurrentQ|ueryNum.|
|00000600| 10 00 07 00 0a 52 65 70 | 6c 79 44 61 74 61 00 10 |.....Rep|lyData..|
|00000610| 00 07 00 07 42 65 61 63 | 6f 6e 00 10 00 07 00 0f |....Beac|on......|
|00000620| 51 75 65 72 79 52 65 6d | 61 69 6e 69 6e 67 00 10 |QueryRem|aining..|
|00000630| 00 07 00 09 51 75 65 72 | 79 4e 75 6d 00 10 00 07 |....Quer|yNum....|
|00000640| 00 0a 50 61 63 6b 65 74 | 4e 75 6d 00 10 00 07 00 |..Packet|Num.....|
|00000650| 06 43 6c 61 73 73 00 10 | 04 07 04 0a 51 75 65 72 |.Class..|....Quer|
|00000660| 79 54 79 70 65 00 10 00 | 07 00 0b 51 75 65 72 79 |yType...|...Query|
|00000670| 56 61 6c 75 65 00 10 00 | 07 00 0a 51 75 65 72 79 |Value...|...Query|
|00000680| 52 65 73 74 00 10 00 07 | 00 0d 62 46 69 6e 61 6c |Rest....|..bFinal|
|00000690| 50 61 63 6b 65 74 00 10 | 00 07 00 0a 54 65 6d 70 |Packet..|....Temp|
|000006a0| 51 75 65 72 79 00 10 00 | 07 00 0d 43 6c 6f 73 69 |Query...|...Closi|
|000006b0| 6e 67 53 6c 61 73 68 00 | 10 00 07 00 08 50 61 63 |ngSlash.|.....Pac|
|000006c0| 6b 61 67 65 00 10 04 07 | 04 0b 54 65 78 74 42 75 |kage....|..TextBu|
|000006d0| 66 66 65 72 00 10 00 07 | 04 0d 42 79 74 65 50 72 |ffer....|..BytePr|
|000006e0| 6f 70 65 72 74 79 00 10 | 00 07 04 0b 53 65 6e 64 |operty..|....Send|
|000006f0| 53 74 72 69 6e 67 00 10 | 00 07 00 07 4f 62 6a 65 |String..|....Obje|
|00000700| 63 74 00 10 00 07 04 09 | 46 75 6e 63 74 69 6f 6e |ct......|Function|
|00000710| 00 10 04 07 04 0a 50 6c | 61 79 65 72 4e 75 6d 00 |......Pl|ayerNum.|
|00000720| 10 00 07 00 07 53 74 72 | 75 63 74 00 10 04 07 04 |.....Str|uct.....|
|00000730| 0b 53 65 6e 64 52 65 73 | 75 6c 74 00 10 00 07 00 |.SendRes|ult.....|
|00000740| 0c 53 74 72 50 72 6f 70 | 65 72 74 79 00 10 00 07 |.StrProp|erty....|
|00000750| 04 05 50 72 6f 70 00 10 | 00 07 00 0f 53 74 72 75 |..Prop..|....Stru|
|00000760| 63 74 50 72 6f 70 65 72 | 74 79 00 10 00 07 04 0e |ctProper|ty......|
|00000770| 43 6c 61 73 73 50 72 6f | 70 65 72 74 79 00 10 00 |ClassPro|perty...|
|00000780| 07 04 0d 4e 61 6d 65 50 | 72 6f 70 65 72 74 79 00 |...NameP|roperty.|
|00000790| 10 00 07 04 09 44 6f 55 | 70 6c 69 6e 6b 00 10 00 |.....DoU|plink...|
|000007a0| 07 00 09 50 61 77 6e 4c | 69 73 74 00 10 00 07 00 |...PawnL|ist.....|
|000007b0| 0b 4d 61 78 50 6c 61 79 | 65 72 73 00 10 00 07 00 |.MaxPlay|ers.....|
|000007c0| 0e 46 6c 6f 61 74 50 72 | 6f 70 65 72 74 79 00 10 |.FloatPr|operty..|
|000007d0| 00 07 04 11 48 65 61 72 | 74 62 65 61 74 4d 65 73 |....Hear|tbeatMes|
|000007e0| 73 61 67 65 00 10 00 07 | 00 0b 55 70 6c 69 6e 6b |sage....|..Uplink|
|000007f0| 50 6f 72 74 00 10 00 07 | 00 0a 52 65 73 75 6c 74 |Port....|..Result|
|00000800| 53 65 74 00 10 00 07 00 | 0d 42 6f 6f 6c 50 72 6f |Set.....|.BoolPro|
|00000810| 70 65 72 74 79 00 10 00 | 07 04 0c 46 69 6e 61 6c |perty...|...Final|
|00000820| 50 61 63 6b 65 74 00 10 | 00 07 00 09 51 75 65 72 |Packet..|....Quer|
|00000830| 79 53 74 72 00 10 00 07 | 00 00 00 00 01 00 00 00 |yStr....|........|
|00000840| 00 00 40 00 00 00 00 47 | 01 01 00 00 00 00 00 40 |..@....G|.......@|
|00000850| 00 00 00 00 07 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 67 01 01 00 00 00 80 00 | 00 00 00 8f 00 00 6d 01 |g.......|......m.|
|00000870| 01 00 00 00 80 01 00 00 | 00 00 00 05 01 00 00 00 |........|........|
|00000880| 80 00 00 00 00 00 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00000890| 00 00 00 47 02 01 00 00 | 00 80 00 00 00 00 00 00 |...G....|........|
|000008a0| 15 01 00 00 00 00 00 40 | 00 00 00 00 08 01 00 00 |.......@|........|
|000008b0| 00 80 00 00 00 00 8e 00 | 00 1a 01 00 00 00 80 00 |........|........|
|000008c0| 40 00 00 00 00 1d 01 00 | 00 00 80 00 40 00 00 00 |@.......|....@...|
|000008d0| 00 00 01 00 00 00 00 00 | 40 00 00 00 00 12 01 00 |........|@.......|
|000008e0| 00 00 00 00 40 00 00 00 | 00 43 01 01 00 00 00 80 |....@...|.C......|
|000008f0| 01 40 00 00 00 00 3a 01 | 00 00 00 80 01 40 00 00 |.@....:.|.....@..|
|00000900| 00 00 00 01 00 00 00 00 | 00 00 00 00 00 00 00 01 |........|........|
|00000910| 00 00 00 00 40 04 00 00 | 00 00 27 01 00 00 00 00 |....@...|..'.....|
|00000920| 00 00 00 00 18 00 00 22 | 01 00 00 00 00 00 00 00 |......."|........|
|00000930| 00 92 00 00 38 01 00 00 | 00 00 00 40 00 00 00 00 |....8...|...@....|
|00000940| 00 01 00 00 00 00 00 40 | 00 00 00 00 00 01 00 00 |.......@|........|
|00000950| 00 00 00 00 00 00 95 00 | 52 02 77 01 13 ff ff ff |........|R.w.....|
|00000960| ff ff ff ff ff 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 ff ff ff ff ff ff ff | ff ff ff 00 00 00 00 1e |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 49 01 18 01 00 | 00 00 36 59 f4 96 95 01 |...I....|..6Y....|
|000009a0| 00 00 00 36 16 1f 85 8e | 00 00 00 00 22 d6 3f 5f |...6....|....".?_|
|000009b0| 83 00 00 00 00 86 c7 d0 | 2f 88 00 00 00 00 13 e0 |........|/.......|
|000009c0| 75 9d 83 00 00 00 00 86 | c7 d0 2f 83 00 00 00 00 |u.......|../.....|
|000009d0| 86 c7 d0 2f 83 00 00 00 | 00 86 c7 d0 2f 88 00 00 |.../....|..../...|
|000009e0| 00 00 13 e0 75 9d 92 00 | 00 00 00 9f 32 4a cf 83 |....u...|....2J..|
|000009f0| 00 00 00 00 86 c7 d0 2f | 88 00 00 00 00 13 e0 75 |......./|.......u|
|00000a00| 9d 92 00 00 00 00 9f 32 | 4a cf 8e 00 00 00 00 22 |.......2|J......"|
|00000a10| d6 3f 5f 93 00 00 00 00 | 7b 23 55 bf 8e 00 00 00 |.?_.....|{#U.....|
|00000a20| 00 22 d6 3f 5f 93 00 00 | 00 00 7b 23 55 bf 8e 00 |.".?_...|..{#U...|
|00000a30| 00 00 00 22 d6 3f 5f 8e | 00 00 00 00 22 d6 3f 5f |...".?_.|....".?_|
|00000a40| 93 00 00 00 00 7b 23 55 | bf 8e 00 00 00 00 22 d6 |.....{#U|......".|
|00000a50| 3f 5f 8e 00 00 00 00 22 | d6 3f 5f 8e 00 00 00 00 |?_....."|.?_.....|
|00000a60| 22 d6 3f 5f 8e 00 00 00 | 00 22 d6 3f 5f 8e 00 00 |".?_....|.".?_...|
|00000a70| 00 00 22 d6 3f 5f 93 00 | 00 00 00 7b 23 55 bf 8e |..".?_..|...{#U..|
|00000a80| 00 00 00 00 22 d6 3f 5f | 83 00 00 00 00 86 c7 d0 |....".?_|........|
|00000a90| 2f 88 00 00 00 00 13 e0 | 75 9d 83 00 00 00 00 86 |/.......|u.......|
|00000aa0| c7 d0 2f 88 00 00 00 00 | 13 e0 75 9d 90 00 00 00 |../.....|..u.....|
|00000ab0| 00 5a 0e 07 81 83 00 00 | 00 00 86 c7 d0 2f 88 00 |.Z......|...../..|
|00000ac0| 00 00 00 13 e0 75 9d 90 | 00 00 00 00 5a 0e 07 81 |.....u..|....Z...|
|00000ad0| 83 00 00 00 00 86 c7 d0 | 2f 88 00 00 00 00 13 e0 |........|/.......|
|00000ae0| 75 9d 90 00 00 00 00 5a | 0e 07 81 83 00 00 00 00 |u......Z|........|
|00000af0| 86 c7 d0 2f 88 00 00 00 | 00 13 e0 75 9d 90 00 00 |.../....|...u....|
|00000b00| 00 00 5a 0e 07 81 83 00 | 00 00 00 86 c7 d0 2f 88 |..Z.....|....../.|
|00000b10| 00 00 00 00 13 e0 75 9d | 90 00 00 00 00 5a 0e 07 |......u.|.....Z..|
|00000b20| 81 83 00 00 00 00 86 c7 | d0 2f 88 00 00 00 00 13 |........|./......|
|00000b30| e0 75 9d 83 00 00 00 00 | 86 c7 d0 2f 83 00 00 00 |.u......|.../....|
|00000b40| 00 86 c7 d0 2f 88 00 00 | 00 00 13 e0 75 9d 83 00 |..../...|....u...|
|00000b50| 00 00 00 86 c7 d0 2f 88 | 00 00 00 00 13 e0 75 9d |....../.|......u.|
|00000b60| 83 00 00 00 00 86 c7 d0 | 2f 88 00 00 00 00 13 e0 |........|/.......|
|00000b70| 75 9d 83 00 00 00 00 86 | c7 d0 2f 83 00 00 00 00 |u.......|../.....|
|00000b80| 86 c7 d0 2f 83 00 00 00 | 00 86 c7 d0 2f 83 00 00 |.../....|..../...|
|00000b90| 00 00 86 c7 d0 2f 83 00 | 00 00 00 86 c7 d0 2f 88 |...../..|....../.|
|00000ba0| 00 00 00 00 13 e0 75 9d | 83 00 00 00 00 86 c7 d0 |......u.|........|
|00000bb0| 2f 83 00 00 00 00 86 c7 | d0 2f 83 00 00 00 00 86 |/.......|./......|
|00000bc0| c7 d0 2f 83 00 00 00 00 | 86 c7 d0 2f 83 00 00 00 |../.....|.../....|
|00000bd0| 00 86 c7 d0 2f 88 00 00 | 00 00 13 e0 75 9d 90 00 |..../...|....u...|
|00000be0| 00 00 00 5a 0e 07 81 83 | 00 00 00 00 86 c7 d0 2f |...Z....|......./|
|00000bf0| 88 00 00 00 00 13 e0 75 | 9d 83 00 00 00 00 86 c7 |.......u|........|
|00000c00| d0 2f 88 00 00 00 00 13 | e0 75 9d 9a 00 00 00 00 |./......|.u......|
|00000c10| 99 1d 4e 35 83 00 00 00 | 00 86 c7 d0 2f 88 00 00 |..N5....|..../...|
|00000c20| 00 00 13 e0 75 9d 04 16 | 1a 0c 0d 96 15 28 06 12 |....u...|.....(..|
|00000c30| 2a 2d 03 75 74 00 14 01 | 00 00 00 00 3b 01 00 00 |*-.ut...|....;...|
|00000c40| 00 00 00 00 00 00 00 00 | 2e 01 00 00 00 80 01 40 |........|.......@|
|00000c50| 00 00 00 00 5a 01 01 00 | 00 00 80 08 40 00 00 00 |....Z...|....@...|
|00000c60| 00 1f 01 00 00 00 00 00 | 40 00 00 00 00 2d 01 00 |........|@....-..|
|00000c70| 00 00 80 01 40 00 00 00 | 00 19 01 00 00 00 00 00 |....@...|........|
|00000c80| 40 00 00 00 00 44 01 01 | 00 00 00 00 00 00 00 00 |@....D..|........|
|00000c90| 00 00 46 01 01 00 00 00 | 00 00 00 00 00 8f 00 00 |..F.....|........|
|00000ca0| 3f 01 00 00 00 00 00 00 | 00 00 00 00 29 01 00 00 |?.......|....)...|
|00000cb0| 00 00 00 00 00 00 00 00 | 64 01 01 00 00 00 01 40 |........|d......@|
|00000cc0| 40 00 02 00 00 28 01 00 | 00 00 00 00 00 00 00 00 |@....(..|........|
|00000cd0| 00 00 01 00 00 00 00 00 | 00 00 00 00 00 42 01 01 |........|.....B..|
|00000ce0| 00 00 00 00 00 40 00 00 | 00 00 00 01 00 00 00 00 |.....@..|........|
|00000cf0| 00 00 00 00 00 00 0e 01 | 00 00 00 00 40 44 00 00 |........|....@D..|
|00000d00| 00 00 2a 01 00 00 00 00 | 00 00 00 00 00 00 00 01 |..*.....|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 01 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 4c 01 | 01 00 00 00 00 00 40 00 |......L.|......@.|
|00000d30| 00 00 00 0f 01 00 00 00 | 80 01 40 00 00 00 00 10 |........|..@.....|
|00000d40| 01 00 00 00 80 01 40 00 | 00 00 00 00 01 00 00 00 |......@.|........|
|00000d50| 00 00 00 00 00 00 00 79 | 01 01 00 00 00 80 00 00 |.......y|........|
|00000d60| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 33 01 00 00 00 80 00 00 | 00 00 8f 00 00 34 01 00 |3.......|.....4..|
|00000d80| 00 00 80 08 40 00 00 00 | 00 35 01 00 00 00 80 00 |....@...|.5......|
|00000d90| 00 00 00 00 00 30 01 00 | 00 00 80 01 00 00 00 00 |.....0..|........|
|00000da0| 00 00 01 00 00 00 00 00 | 00 00 00 00 00 03 01 00 |........|........|
|00000db0| 00 00 00 00 40 00 00 00 | 00 37 01 00 00 00 00 00 |....@...|.7......|
|00000dc0| 40 00 00 00 00 00 01 00 | 00 00 00 00 00 00 00 9a |@.......|........|
|00000dd0| 00 00 7a 01 01 00 00 00 | 80 01 00 00 00 00 00 31 |..z.....|.......1|
|00000de0| 01 00 00 00 00 00 00 00 | 00 00 00 52 01 01 00 00 |........|...R....|
|00000df0| 00 80 01 00 00 00 00 00 | 00 01 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 8e 00 00 00 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 01 00 00 00 00 00 | 40 00 00 00 00 21 01 00 |........|@....!..|
|00000e20| 00 00 00 00 40 00 00 00 | 00 40 01 01 00 00 00 00 |....@...|.@......|
|00000e30| 00 40 00 00 00 00 41 01 | 01 00 00 00 00 00 40 00 |.@....A.|......@.|
|00000e40| 00 00 00 41 02 01 00 00 | 00 80 01 40 00 00 00 00 |...A....|...@....|
|00000e50| 63 01 01 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |c.......|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 13 01 00 00 00 00 00 |........|........|
|00000e70| 40 00 00 00 00 48 01 01 | 00 00 00 00 00 40 00 00 |@....H..|.....@..|
|00000e80| 00 00 00 01 00 00 00 00 | 00 40 00 00 00 00 00 01 |........|.@......|
|00000e90| 00 00 00 00 00 40 00 00 | 00 00 4b 01 01 00 00 00 |.....@..|..K.....|
|00000ea0| 80 00 00 00 00 8f 00 00 | 3c 01 00 00 00 80 00 00 |........|<.......|
|00000eb0| 00 00 00 00 3d 01 00 00 | 00 00 00 00 00 00 00 00 |....=...|........|
|00000ec0| 43 02 01 00 00 00 80 00 | 40 00 00 00 00 53 02 01 |C.......|@....S..|
|00000ed0| 00 00 00 80 00 40 00 00 | 00 00 00 01 00 00 00 00 |.....@..|........|
|00000ee0| 00 40 00 00 00 00 51 02 | 01 00 00 00 80 00 40 00 |.@....Q.|......@.|
|00000ef0| 00 00 00 55 01 01 00 00 | 00 80 00 00 00 00 8f 00 |...U....|........|
|00000f00| 00 45 02 01 00 00 00 80 | 00 00 00 00 00 00 54 01 |.E......|......T.|
|00000f10| 01 00 00 00 80 01 00 00 | 00 00 00 72 01 01 00 00 |........|...r....|
|00000f20| 00 80 00 00 00 00 00 00 | 53 01 01 00 00 00 80 00 |........|S.......|
|00000f30| 00 00 00 00 00 17 01 00 | 00 00 00 00 40 00 00 00 |........|....@...|
|00000f40| 00 1c 01 00 00 00 80 00 | 40 00 00 00 00 56 02 01 |........|@....V..|
|00000f50| 00 00 00 80 00 40 00 00 | 00 00 58 01 01 00 00 00 |.....@..|..X.....|
|00000f60| 80 00 00 00 00 00 00 59 | 01 01 00 00 00 80 00 00 |.......Y|........|
|00000f70| 00 00 00 00 49 02 01 00 | 00 00 80 01 00 00 00 00 |....I...|........|
|00000f80| 00 5b 01 01 00 00 00 80 | 00 00 00 00 00 00 5c 01 |.[......|......\.|
|00000f90| 01 00 00 00 80 08 40 00 | 00 00 00 5d 01 01 00 00 |......@.|...]....|
|00000fa0| 00 80 00 00 00 00 8f 00 | 00 2b 01 00 00 00 80 00 |........|.+......|
|00000fb0| 00 00 00 8f 00 00 6b 01 | 01 00 00 00 80 00 00 00 |......k.|........|
|00000fc0| 00 8f 00 00 62 01 01 00 | 00 00 01 40 00 00 02 00 |....b...|...@....|
|00000fd0| 00 23 01 00 00 00 01 40 | 00 00 02 00 00 00 01 00 |.#.....@|........|
|00000fe0| 00 00 00 00 00 00 00 00 | 00 65 01 01 00 00 00 01 |........|.e......|
|00000ff0| 40 00 00 02 00 00 66 01 | 01 00 00 00 01 40 00 00 |@.....f.|.....@..|
|00001000| 02 00 00 20 01 00 00 00 | 01 00 00 00 02 00 00 06 |... ....|........|
|00001010| 01 00 00 00 80 08 40 00 | 00 00 00 11 01 00 00 00 |......@.|........|
|00001020| 00 00 40 00 00 00 00 1b | 01 00 00 00 80 00 00 00 |..@.....|........|
|00001030| 00 8f 00 00 57 01 01 00 | 00 00 80 00 00 00 00 8f |....W...|........|
|00001040| 00 00 1e 01 00 00 00 80 | 00 40 00 00 00 00 24 01 |........|.@....$.|
|00001050| 00 00 00 01 00 00 00 13 | 00 00 09 01 00 00 00 80 |........|........|
|00001060| 05 40 00 00 00 00 01 01 | 00 00 00 80 05 40 00 00 |.@......|.....@..|
|00001070| 00 a4 61 01 00 00 17 24 | 00 00 00 1f 06 00 00 45 |..a....$|.......E|
|00001080| 01 00 00 07 47 00 81 2d | 01 61 01 16 e7 1f 44 6f |....G..-|.a....Do|
|00001090| 55 70 6c 69 6e 6b 20 69 | 73 20 6e 6f 74 20 73 65 |Uplink i|s not se|
|000010a0| 74 2e 20 20 4e 6f 74 20 | 63 6f 6e 6e 65 63 74 69 |t. Not |connecti|
|000010b0| 6e 67 20 74 6f 20 4d 61 | 73 74 65 72 20 53 65 72 |ng to Ma|ster Ser|
|000010c0| 76 65 72 2e 00 16 04 0b | 2f 61 30 20 18 01 13 01 |ver.....|/a0 ....|
|000010d0| 66 01 16 60 00 06 60 00 | 31 30 07 b4 00 72 01 13 |f..`..`.|10...r..|
|000010e0| 2a 16 e7 1f 55 64 70 53 | 65 72 76 65 72 55 70 6c |*...UdpS|erverUpl|
|000010f0| 69 6e 6b 3a 20 43 6f 75 | 6c 64 20 6e 6f 74 20 66 |ink: Cou|ld not f|
|00001100| 69 6e 64 20 61 20 55 64 | 70 53 65 72 76 65 72 51 |ind a Ud|pServerQ|
|00001110| 75 65 72 79 20 6f 62 6a | 65 63 74 2c 20 61 62 6f |uery obj|ect, abo|
|00001120| 72 74 69 6e 67 2e 00 16 | 04 0b 0f 01 46 01 70 70 |rting...|....F.pp|
|00001130| 70 1f 5c 68 65 61 72 74 | 62 65 61 74 5c 00 53 19 |p.\heart|beat\.S.|
|00001140| 01 13 05 00 04 01 9f 16 | 1f 5c 67 61 6d 65 6e 61 |........|.\gamena|
|00001150| 6d 65 5c 00 16 19 01 13 | 05 00 00 01 28 16 0f 36 |me\.....|....(..6|
|00001160| a7 01 20 01 64 01 07 38 | 01 7a 01 23 1f 00 16 0f |.. .d..8|.z.#....|
|00001170| 01 23 70 70 1f 6d 61 73 | 74 65 72 00 53 01 65 01 |.#pp.mas|ter.S.e.|
|00001180| 16 1f 2e 67 61 6d 65 73 | 70 79 2e 63 6f 6d 00 16 |...games|py.com..|
|00001190| 1b 25 01 23 16 04 0b 00 | 00 00 02 00 00 00 00 b8 |.%.#....|........|
|000011a0| 6f 01 00 5f 01 24 4e 00 | 00 00 ca 09 00 00 42 01 |o.._.$N.|......B.|
|000011b0| 00 00 0f 36 9d 01 20 36 | 9d 00 5f 01 07 64 00 9a |...6.. 6|.._..d..|
|000011c0| 36 9d 01 20 25 16 e7 1f | 55 64 70 53 65 72 76 65 |6.. %...|UdpServe|
|000011d0| 72 55 70 6c 69 6e 6b 3a | 20 49 6e 76 61 6c 69 64 |rUplink:| Invalid|
|000011e0| 20 6d 61 73 74 65 72 20 | 73 65 72 76 65 72 20 61 | master |server a|
|000011f0| 64 64 72 65 73 73 2c 20 | 61 62 6f 72 74 69 6e 67 |ddress, |aborting|
|00001200| 2e 00 16 04 0b e7 70 70 | 70 1f 55 64 70 53 65 72 |......pp|p.UdpSer|
|00001210| 76 65 72 55 70 6c 69 6e | 6b 3a 20 4d 61 73 74 65 |verUplin|k: Maste|
|00001220| 72 20 53 65 72 76 65 72 | 20 69 73 20 00 01 23 16 |r Server| is ..#.|
|00001230| 1f 3a 00 16 53 36 a7 01 | 20 16 16 0f 00 2b 92 19 |.:..S6..| ....+..|
|00001240| 01 13 05 00 04 01 9f 26 | 16 07 00 01 9a 1b 19 00 |.......&|........|
|00001250| 2b 27 16 25 16 e7 1f 55 | 64 70 53 65 72 76 65 72 |+'.%...U|dpServer|
|00001260| 55 70 6c 69 6e 6b 3a 20 | 45 72 72 6f 72 20 62 69 |Uplink: |Error bi|
|00001270| 6e 64 69 6e 67 20 70 6f | 72 74 2c 20 61 62 6f 72 |nding po|rt, abor|
|00001280| 74 69 6e 67 2e 00 16 04 | 0b e7 70 70 1f 55 64 70 |ting....|..pp.Udp|
|00001290| 53 65 72 76 65 72 55 70 | 6c 69 6e 6b 3a 20 50 6f |ServerUp|link: Po|
|000012a0| 72 74 20 00 53 00 2b 16 | 1f 20 73 75 63 63 65 73 |rt .S.+.|. succes|
|000012b0| 73 66 75 6c 6c 79 20 62 | 6f 75 6e 64 2e 00 16 16 |sfully b|ound....|
|000012c0| 1b 1d 16 04 0b 00 00 00 | 02 00 00 00 00 00 55 02 |........|......U.|
|000012d0| 00 04 06 91 00 00 00 14 | 0e 00 00 33 04 00 00 0f |........|...3....|
|000012e0| 00 07 25 14 2d 00 03 1b | 05 00 67 01 00 09 00 15 |..%.-...|..g.....|
|000012f0| 00 38 00 07 16 07 3b 00 | 81 2d 00 03 16 04 1f 00 |.8....;.|.-......|
|00001300| 07 76 00 7a 00 09 1f 62 | 61 73 69 63 00 16 14 2d |.v.z...b|asic...-|
|00001310| 00 03 1b 01 00 04 1b 07 | 16 00 06 00 05 00 07 16 |........|........|
|00001320| 06 f2 03 07 b0 00 7a 00 | 09 1f 69 6e 66 6f 00 16 |......z.|..info..|
|00001330| 14 2d 00 03 1b 01 00 04 | 1b 04 16 00 06 00 05 00 |.-......|........|
|00001340| 07 16 06 f2 03 07 eb 00 | 7a 00 09 1f 72 75 6c 65 |........|z...rule|
|00001350| 73 00 16 14 2d 00 03 1b | 01 00 04 1b 03 16 00 06 |s...-...|........|
|00001360| 00 05 00 07 16 06 f2 03 | 07 65 01 7a 00 09 1f 70 |........|.e.z...p|
|00001370| 6c 61 79 65 72 73 00 16 | 07 3f 01 97 19 19 01 87 |layers..|.?......|
|00001380| 05 00 04 01 8c 05 00 04 | 01 97 25 16 14 2d 00 03 |........|..%..-..|
|00001390| 1b 0a 00 04 00 06 00 05 | 00 07 16 06 62 01 14 2d |........|....b..-|
|000013a0| 00 03 1b 01 00 04 1f 00 | 00 06 00 05 00 07 16 06 |........|........|
|000013b0| f2 03 07 4b 02 7a 00 09 | 1f 73 74 61 74 75 73 00 |...K.z..|.status.|
|000013c0| 16 14 2d 00 03 1b 01 00 | 04 1b 07 16 00 06 00 05 |..-.....|........|
|000013d0| 25 16 14 2d 00 03 1b 01 | 00 04 1b 04 16 00 06 00 |%..-....|........|
|000013e0| 05 25 16 07 04 02 9a 19 | 19 01 87 05 00 04 01 8c |.%......|........|
|000013f0| 05 00 04 01 97 25 16 14 | 2d 00 03 1b 01 00 04 1b |.....%..|-.......|
|00001400| 03 16 00 06 00 05 00 07 | 16 06 48 02 14 2d 00 03 |........|..H..-..|
|00001410| 1b 01 00 04 1b 03 16 00 | 06 00 05 25 16 14 2d 00 |........|...%..-.|
|00001420| 03 1b 0a 00 04 00 06 00 | 05 00 07 16 06 f2 03 07 |........|........|
|00001430| 8e 02 7a 00 09 1f 65 63 | 68 6f 00 16 14 2d 00 03 |..z...ec|ho...-..|
|00001440| 1b 01 00 04 70 1f 5c 65 | 63 68 6f 5c 00 00 15 16 |....p.\e|cho\....|
|00001450| 00 06 00 05 00 07 16 06 | f2 03 07 ed 02 7a 00 09 |........|.....z..|
|00001460| 1f 73 65 63 75 72 65 00 | 16 0f 00 37 70 1f 5c 76 |.secure.|...7p.\v|
|00001470| 61 6c 69 64 61 74 65 5c | 00 1b 1b 00 15 01 28 16 |alidate\|......(.|
|00001480| 16 14 2d 00 03 1b 01 00 | 04 00 37 00 06 00 05 00 |..-.....|..7.....|
|00001490| 07 16 06 f2 03 07 36 03 | 7a 00 09 1f 6c 65 76 65 |......6.|z...leve|
|000014a0| 6c 5f 70 72 6f 70 65 72 | 74 79 00 16 14 2d 00 03 |l_proper|ty...-..|
|000014b0| 1b 01 00 04 1b 10 00 15 | 16 00 06 00 05 00 07 16 |........|........|
|000014c0| 06 f2 03 07 7e 03 7a 00 | 09 1f 67 61 6d 65 5f 70 |....~.z.|..game_p|
|000014d0| 72 6f 70 65 72 74 79 00 | 16 14 2d 00 03 1b 01 00 |roperty.|..-.....|
|000014e0| 04 1b 0f 00 15 16 00 06 | 00 05 00 07 16 06 f2 03 |........|........|
|000014f0| 07 c8 03 7a 00 09 1f 70 | 6c 61 79 65 72 5f 70 72 |...z...p|layer_pr|
|00001500| 6f 70 65 72 74 79 00 16 | 14 2d 00 03 1b 01 00 04 |operty..|.-......|
|00001510| 1b 11 00 15 16 00 06 00 | 05 00 07 16 06 f2 03 e7 |........|........|
|00001520| 70 1f 55 64 70 53 65 72 | 76 65 72 51 75 65 72 79 |p.UdpSer|verQuery|
|00001530| 3a 20 55 6e 6b 6e 6f 77 | 6e 20 71 75 65 72 79 3a |: Unknow|n query:|
|00001540| 20 00 00 09 16 16 07 2b | 04 81 2d 00 03 16 e7 1f | ......+|..-.....|
|00001550| 55 64 70 53 65 72 76 65 | 72 51 75 65 72 79 3a 20 |UdpServe|rQuery: |
|00001560| 45 72 72 6f 72 20 72 65 | 73 70 6f 6e 64 69 6e 67 |Error re|sponding|
|00001570| 20 74 6f 20 71 75 65 72 | 79 2e 00 16 04 00 38 04 | to quer|y.....8.|
|00001580| 0b 00 00 00 02 00 00 00 | 00 00 36 01 00 00 00 80 |........|..6.....|
|00001590| 05 00 00 00 00 00 46 02 | 00 00 1d 80 00 00 00 ff |......F.|........|
|000015a0| 0d 00 00 16 00 00 00 61 | 18 3f 90 01 62 01 2c 3c |.......a|.?..b.,<|
|000015b0| 16 27 16 1b 0e 16 04 0b | 00 00 00 02 00 00 00 00 |.'......|........|
|000015c0| a9 73 01 00 6a 01 18 8c | 00 00 00 12 0f 00 00 9c |.s..j...|........|
|000015d0| 00 00 00 a5 01 27 16 07 | 1a 00 97 01 27 2c 64 16 |.....'..|....',d.|
|000015e0| 0f 01 27 26 0f 00 44 01 | 01 27 0f 00 1c 00 57 01 |..'&..D.|.'....W.|
|000015f0| 07 47 00 7a 00 1c 1f 00 | 16 14 2d 00 1f 28 06 4f |.G.z....|..-..(.O|
|00001600| 00 14 2d 00 1f 27 07 9a | 00 2d 00 1f 0f 00 1c 1b |..-..'..|.-......|
|00001610| 06 00 6a 01 00 1c 00 44 | 01 00 63 01 16 07 8f 00 |..j....D|..c.....|
|00001620| 7a 00 1c 1f 00 16 14 2d | 00 1f 28 06 97 00 14 2d |z......-|..(....-|
|00001630| 00 1f 27 06 4f 00 04 0b | 00 00 00 02 08 00 00 00 |..'.O...|........|
|00001640| b9 70 01 00 00 26 6a 00 | 00 00 5d 0c 00 00 49 00 |.p...&j.|..]...I.|
|00001650| 00 00 e7 1f 55 64 70 53 | 65 72 76 65 72 55 70 6c |....UdpS|erverUpl|
|00001660| 69 6e 6b 3a 20 46 61 69 | 6c 65 64 20 74 6f 20 72 |ink: Fai|led to r|
|00001670| 65 73 6f 6c 76 65 20 6d | 61 73 74 65 72 20 73 65 |esolve m|aster se|
|00001680| 72 76 65 72 20 61 64 64 | 72 65 73 73 2c 20 61 62 |rver add|ress, ab|
|00001690| 6f 72 74 69 6e 67 2e 00 | 16 04 0b 00 00 00 02 00 |orting..|........|
|000016a0| 00 00 00 00 42 02 00 32 | 01 ed 00 00 00 5d 19 00 |....B..2|.....]..|
|000016b0| 00 86 00 00 00 14 2d 00 | 25 27 07 3f 00 97 92 7d |......-.|%'.?...}|
|000016c0| 01 0e 16 7d 00 33 16 16 | 1d e8 03 00 00 16 14 2d |...}.3..|.......-|
|000016d0| 00 25 1b 08 00 32 00 34 | 00 35 25 16 0f 01 0e 70 |.%...2.4|.5%....p|
|000016e0| 01 0e 00 33 16 07 7d 00 | 9a 00 30 26 16 14 2d 00 |...3..}.|..0&..-.|
|000016f0| 25 1b 08 00 32 00 34 00 | 35 00 30 16 04 2d 00 25 |%...2.4.|5.0..-.%|
|00001700| 04 0b 00 00 00 02 00 00 | 00 00 00 54 02 00 4d 01 |........|...T..M.|
|00001710| 11 b6 01 00 00 36 2f 00 | 00 60 00 00 00 2f 61 30 |.....6/.|.`.../a0|
|00001720| 20 8e 00 3d 16 57 00 a5 | 00 4c 01 16 0f 00 2c 70 | ..=.W..|.L....,p|
|00001730| 70 70 70 70 70 00 2c 1f | 5c 00 16 00 4d 01 16 1f |ppppp.,.|\...M...|
|00001740| 5f 00 16 53 00 4c 01 16 | 1f 5c 00 16 19 00 3d 0b |_..S.L..|.\....=.|
|00001750| 00 00 1c 9e 00 4d 01 16 | 16 31 30 04 00 2c 04 0b |.....M..|.10..,..|
|00001760| 00 00 00 02 00 00 00 00 | 00 4b 02 00 4a 01 0a 87 |........|.K..J...|
|00001770| 01 00 00 06 2b 00 00 28 | 01 00 00 14 2d 00 29 28 |....+..(|....-.)(|
|00001780| 0f 00 14 19 01 87 05 00 | 04 01 b2 07 1f 01 96 00 |........|........|
|00001790| 22 19 19 01 87 05 00 04 | 01 8c 05 00 04 01 97 16 |".......|........|
|000017a0| 07 08 01 19 00 14 08 00 | 04 61 2f 21 1e 16 07 b7 |........|.a/!....|
|000017b0| 00 82 9a 00 22 93 19 19 | 01 87 05 00 04 01 8c 05 |...."...|........|
|000017c0| 00 04 01 97 26 16 16 18 | 09 00 9a 00 52 01 26 16 |....&...|....R.&.|
|000017d0| 16 14 2d 00 2a 1b 01 00 | 4a 01 1b 09 2e 8e 00 14 |..-.*...|J.......|
|000017e0| 00 22 16 00 4b 01 00 3c | 26 16 06 e9 00 14 2d 00 |."..K..<|&.....-.|
|000017f0| 2a 1b 01 00 4a 01 1b 09 | 2e 8e 00 14 00 22 16 00 |*...J...|....."..|
|00001800| 4b 01 00 3c 25 16 14 2d | 00 29 84 2d 00 2a 18 07 |K..<%..-|.).-.*..|
|00001810| 00 2d 00 29 16 a5 00 22 | 16 0f 00 14 19 00 14 05 |.-.)..."|........|
|00001820| 00 04 01 b7 06 1c 00 04 | 2d 00 29 04 0b 00 00 00 |........|-.).....|
|00001830| 02 00 00 00 00 00 25 01 | 00 00 00 80 05 00 00 00 |......%.|........|
|00001840| 00 00 56 01 01 00 00 00 | 80 05 00 00 00 00 00 74 |..V.....|.......t|
|00001850| 01 00 0c 05 a5 00 00 00 | 7b 11 00 00 67 01 00 00 |........|{...g...|
|00001860| 07 0e 00 7a 00 0c 1f 00 | 16 04 28 07 63 01 7a 80 |...z....|..(.c.z.|
|00001870| 00 0c 26 16 1f 5c 00 16 | 0f 00 11 7e ea 00 0c 93 |..&..\..|...~....|
|00001880| 7d 00 0c 16 26 16 16 1f | 5c 00 16 07 47 00 9a 00 |}...&...|\...G...|
|00001890| 11 25 16 04 28 0f 00 68 | 01 00 0c 0f 00 1d ea 00 |.%..(..h|........|
|000018a0| 0c 93 7d 00 0c 16 26 16 | 16 0f 00 1d 80 00 1d 00 |..}...&.|........|
|000018b0| 11 16 0f 00 0f ea 00 0c | 93 7d 00 0c 16 92 7d 00 |........|.}....}.|
|000018c0| 1d 16 2c 02 16 16 16 07 | c9 00 84 7a 00 0f 1f 00 |..,.....|...z....|
|000018d0| 16 18 0b 00 9a 7d 00 0f | 16 26 16 16 0f 00 43 01 |.....}..|.&....C.|
|000018e0| 1f 66 69 6e 61 6c 00 04 | 27 06 db 00 07 db 00 7a |.final..|'......z|
|000018f0| 80 00 0f 26 16 1f 5c 00 | 16 04 27 0f 00 11 7e 00 |...&..\.|..'...~.|
|00001900| 0f 1f 5c 00 16 07 0b 01 | 99 00 11 25 16 0f 00 2d |..\.....|...%...-|
|00001910| 80 00 0f 00 11 16 06 16 | 01 0f 00 2d 00 0f 0f 00 |........|...-....|
|00001920| 0f ea 00 0c 93 7d 00 0c | 16 92 92 7d 00 1d 16 7d |.....}..|...}...}|
|00001930| 00 2d 16 16 2c 03 16 16 | 16 07 5e 01 7a 00 0f 1f |.-..,...|..^.z...|
|00001940| 00 16 0f 00 43 01 1f 66 | 69 6e 61 6c 00 04 27 06 |....C..f|inal..'.|
|00001950| 60 01 04 27 06 65 01 04 | 28 04 0b 00 00 00 02 00 |`..'.e..|(.......|
|00001960| 00 00 00 b3 75 01 00 45 | 01 0e 72 00 00 00 02 0d |....u..E|..r.....|
|00001970| 00 00 52 00 00 00 14 2d | 00 45 01 1b 0b 01 20 01 |..R....-|.E.... .|
|00001980| 46 01 16 07 50 00 81 2d | 00 45 01 16 e7 1f 46 61 |F...P..-|.E....Fa|
|00001990| 69 6c 65 64 20 74 6f 20 | 73 65 6e 64 20 68 65 61 |iled to |send hea|
|000019a0| 72 74 62 65 61 74 20 74 | 6f 20 6d 61 73 74 65 72 |rtbeat t|o master|
|000019b0| 20 73 65 72 76 65 72 2e | 00 16 04 0b 00 00 00 02 | server.|........|
|000019c0| 00 00 00 00 a9 7e 01 00 | 60 01 18 40 00 00 00 90 |.....~..|`..@....|
|000019d0| 06 00 00 ab 00 00 00 a5 | 01 24 16 07 1a 00 97 01 |........|.$......|
|000019e0| 24 2c 64 16 0f 01 24 26 | 0f 00 3b 01 24 0f 00 1e |$,d...$&|..;.$...|
|000019f0| 00 6b 01 07 47 00 7a 00 | 1e 1f 00 16 14 2d 00 19 |.k..G.z.|.....-..|
|00001a00| 28 06 4f 00 14 2d 00 19 | 27 0f 00 31 25 0f 01 0e |(.O..-..|'..1%...|
|00001a10| 1f 00 07 a9 00 2d 00 19 | 0f 00 1e 1b 06 00 60 01 |.....-..|......`.|
|00001a20| 00 1e 00 3b 00 31 16 07 | 9e 00 7a 00 1e 1f 00 16 |...;.1..|..z.....|
|00001a30| 14 2d 00 19 28 06 a6 00 | 14 2d 00 19 27 06 5e 00 |.-..(...|.-..'.^.|
|00001a40| 04 0b 00 00 00 02 08 00 | 00 00 a2 7f 01 00 39 21 |........|......9!|
|00001a50| 31 00 00 00 3a 05 00 00 | 2e 00 00 00 2f 61 30 20 |1...:...|..../a0 |
|00001a60| 9a 00 39 16 25 00 0f 19 | 00 39 05 00 04 01 bb 01 |..9.%...|.9......|
|00001a70| 9f 31 30 1c a2 16 04 0b | 00 00 00 02 00 00 00 00 |.10.....|........|
|00001a80| a4 6c 01 00 2f 17 21 00 | 00 00 f1 03 00 00 a5 00 |.l../.!.|........|
|00001a90| 00 00 0f 01 ad 01 6c 01 | 0f 00 2f 1b 19 19 19 01 |......l.|../.....|
|00001aa0| 87 05 00 04 01 8c 06 00 | 04 1b 1c 16 27 16 07 65 |........|....'..e|
|00001ab0| 00 9a 00 2f 25 16 e7 1f | 55 64 70 53 65 72 76 65 |.../%...|UdpServe|
|00001ac0| 72 51 75 65 72 79 3a 20 | 50 6f 72 74 20 66 61 69 |rQuery: |Port fai|
|00001ad0| 6c 65 64 20 74 6f 20 62 | 69 6e 64 2e 00 16 04 0b |led to b|ind.....|
|00001ae0| e7 70 70 1f 55 64 70 53 | 65 72 76 65 72 51 75 65 |.pp.UdpS|erverQue|
|00001af0| 72 79 28 63 72 74 29 3a | 20 50 6f 72 74 20 00 53 |ry(crt):| Port .S|
|00001b00| 00 2f 16 1f 20 73 75 63 | 63 65 73 73 66 75 6c 6c |./.. suc|cessfull|
|00001b10| 79 20 62 6f 75 6e 64 2e | 00 16 16 04 0b 00 00 00 |y bound.|........|
|00001b20| 02 00 00 00 00 00 76 01 | 00 4c 02 07 fe 00 00 00 |......v.|.L......|
|00001b30| f5 1a 00 00 08 01 00 00 | 0f 00 0d 70 1f 5c 67 61 |........|...p.\ga|
|00001b40| 6d 65 6e 61 6d 65 5c 00 | 01 28 16 0f 00 0d 70 70 |mename\.|.(....pp|
|00001b50| 00 0d 1f 5c 67 61 6d 65 | 76 65 72 5c 00 16 19 01 |...\game|ver\....|
|00001b60| 87 05 00 00 01 9b 16 07 | 9a 00 82 99 01 12 4a 19 |........|......J.|
|00001b70| 01 87 05 00 00 01 9c 16 | 18 17 00 98 01 12 4a 19 |........|......J.|
|00001b80| 01 87 05 00 00 01 9b 16 | 16 0f 00 0d 70 70 00 0d |........|....pp..|
|00001b90| 1f 5c 6d 69 6e 6e 65 74 | 76 65 72 5c 00 16 53 01 |.\minnet|ver\..S.|
|00001ba0| 12 16 06 c4 00 0f 00 0d | 70 70 00 0d 1f 5c 6d 69 |........|pp...\mi|
|00001bb0| 6e 6e 65 74 76 65 72 5c | 00 16 19 01 87 05 00 00 |nnetver\|........|
|00001bc0| 01 9c 16 0f 00 0d 70 70 | 00 0d 1f 5c 6c 6f 63 61 |......pp|...\loca|
|00001bd0| 74 69 6f 6e 5c 00 16 53 | 19 19 19 01 87 05 00 04 |tion\..S|........|
|00001be0| 01 8c 05 00 04 01 94 05 | 00 04 01 ac 16 04 00 0d |........|........|
|00001bf0| 04 0b 00 00 00 02 00 00 | 00 00 00 68 01 01 00 00 |........|...h....|
|00001c00| 00 80 05 00 00 00 00 00 | 71 01 00 51 01 08 dc 00 |........|q..Q....|
|00001c10| 00 00 53 17 00 00 78 00 | 00 00 0f 01 0e 70 70 70 |..S...x.|.....ppp|
|00001c20| 70 01 0e 1f 5c 71 75 65 | 72 79 69 64 5c 00 16 53 |p...\que|ryid\..S|
|00001c30| 00 55 01 16 1f 2e 00 16 | 53 a3 00 53 01 16 16 07 |.U......|S..S....|
|00001c40| 50 00 9a 00 54 01 26 16 | 0f 01 0e 70 01 0e 1f 5c |P...T.&.|...p...\|
|00001c50| 66 69 6e 61 6c 5c 00 16 | 14 2d 00 36 1b 0b 00 51 |final\..|.-.6...Q|
|00001c60| 01 01 0e 16 0f 01 0e 1f | 00 04 2d 00 36 04 0b 00 |........|..-.6...|
|00001c70| 00 00 02 00 00 00 00 00 | 2c 01 00 00 00 80 05 40 |........|,......@|
|00001c80| 00 00 00 00 7b 01 00 5e | 01 06 db 00 00 00 7e 16 |....{..^|......~.|
|00001c90| 00 00 25 01 00 00 14 2d | 00 21 1b 05 00 5d 01 00 |..%....-|.!...]..|
|00001ca0| 26 00 42 01 00 41 01 00 | 3f 16 07 34 00 81 2d 00 |&.B..A..|?..4..-.|
|00001cb0| 21 16 04 1f 00 07 50 00 | 7a 00 26 1f 62 61 73 69 |!.....P.|z.&.basi|
|00001cc0| 63 00 16 14 2d 00 21 27 | 06 e4 00 07 ba 00 7a 00 |c...-.!'|......z.|
|00001cd0| 26 1f 73 65 63 75 72 65 | 00 16 0f 00 40 01 70 1f |&.secure|....@.p.|
|00001ce0| 5c 76 61 6c 69 64 61 74 | 65 5c 00 1b 1b 00 42 01 |\validat|e\....B.|
|00001cf0| 19 01 13 05 00 00 01 28 | 16 16 14 2d 00 21 1b 01 |.......(|...-.!..|
|00001d00| 00 5e 01 00 40 01 00 5c | 01 a3 00 5b 01 16 00 3f |.^..@..\|...[...?|
|00001d10| 16 06 e4 00 e7 70 1f 55 | 64 70 53 65 72 76 65 72 |.....p.U|dpServer|
|00001d20| 51 75 65 72 79 3a 20 55 | 6e 6b 6e 6f 77 6e 20 71 |Query: U|nknown q|
|00001d30| 75 65 72 79 3a 20 00 00 | 26 16 16 07 1d 01 81 2d |uery: ..|&......-|
|00001d40| 00 21 16 e7 1f 55 64 70 | 53 65 72 76 65 72 51 75 |.!...Udp|ServerQu|
|00001d50| 65 72 79 3a 20 45 72 72 | 6f 72 20 72 65 73 70 6f |ery: Err|or respo|
|00001d60| 6e 64 69 6e 67 20 74 6f | 20 71 75 65 72 79 2e 00 |nding to| query..|
|00001d70| 16 04 00 41 01 04 0b 00 | 00 00 02 00 00 00 00 00 |...A....|........|
|00001d80| 14 01 00 00 00 80 05 00 | 00 00 00 00 7c 01 00 00 |........|....|...|
|00001d90| 22 7a 00 00 00 b5 0d 00 | 00 0b 00 00 00 61 18 1e |"z......|.....a..|
|00001da0| 00 00 00 00 28 16 04 0b | 00 00 00 02 00 00 00 00 |....(...|........|
|00001db0| 00 02 01 00 00 00 80 05 | 40 00 00 00 00 78 01 00 |........|@....x..|
|00001dc0| 4e 01 10 a0 01 00 00 5c | 2d 00 00 33 00 00 00 0f |N......\|-..3....|
|00001dd0| 00 49 01 70 70 70 1f 5c | 00 00 4e 01 16 1f 5c 00 |.I.ppp.\|..N...\.|
|00001de0| 16 19 01 87 0b 00 00 1c | 9e 00 4e 01 16 16 04 00 |........|..N.....|
|00001df0| 49 01 04 0b 00 00 00 02 | 00 00 00 00 00 26 01 00 |I.......|.....&..|
|00001e00| 00 00 80 05 40 00 00 00 | 00 00 00 00 00 00 00 00 |....@...|........|
|00001e10| 51 69 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |Qi//====|========|
|00001e20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e60| 3d 0d 0a 2f 2f 20 55 64 | 70 53 65 72 76 65 72 55 |=..// Ud|pServerU|
|00001e70| 70 6c 69 6e 6b 0d 0a 2f | 2f 0d 0a 2f 2f 20 56 65 |plink../|/..// Ve|
|00001e80| 72 73 69 6f 6e 3a 20 31 | 2e 33 0d 0a 2f 2f 0d 0a |rsion: 1|.3..//..|
|00001e90| 2f 2f 20 54 68 69 73 20 | 75 70 6c 69 6e 6b 20 69 |// This |uplink i|
|00001ea0| 73 20 63 6f 6d 70 6c 69 | 61 6e 74 20 77 69 74 68 |s compli|ant with|
|00001eb0| 20 74 68 65 20 47 61 6d | 65 53 70 79 20 55 70 6c | the Gam|eSpy Upl|
|00001ec0| 69 6e 6b 20 53 70 65 63 | 69 66 69 63 61 74 69 6f |ink Spec|ificatio|
|00001ed0| 6e 2e 0d 0a 2f 2f 20 54 | 68 65 20 73 70 65 63 69 |n...// T|he speci|
|00001ee0| 66 69 63 61 74 69 6f 6e | 20 69 73 20 61 76 61 69 |fication| is avai|
|00001ef0| 6c 61 62 6c 65 20 61 74 | 20 68 74 74 70 3a 2f 2f |lable at| http://|
|00001f00| 77 77 77 2e 67 61 6d 65 | 73 70 79 2e 63 6f 6d 2f |www.game|spy.com/|
|00001f10| 64 65 76 65 6c 6f 70 65 | 72 0d 0a 2f 2f 20 61 6e |develope|r..// an|
|00001f20| 64 20 6d 69 67 68 74 20 | 62 65 20 6f 66 20 75 73 |d might |be of us|
|00001f30| 65 20 74 6f 20 70 72 6f | 67 61 6d 6d 65 72 73 20 |e to pro|gammers |
|00001f40| 77 68 6f 20 77 61 6e 74 | 20 74 6f 20 61 64 61 70 |who want| to adap|
|00001f50| 74 20 74 68 65 69 72 20 | 6f 77 6e 0d 0a 2f 2f 20 |t their |own..// |
|00001f60| 73 65 72 76 65 72 20 75 | 70 6c 69 6e 6b 73 2e 0d |server u|plinks..|
|00001f70| 0a 2f 2f 0d 0a 2f 2f 20 | 55 64 70 53 65 72 76 65 |.//..// |UdpServe|
|00001f80| 72 55 70 6c 69 6e 6b 20 | 73 65 6e 64 73 20 61 20 |rUplink |sends a |
|00001f90| 68 65 61 72 74 62 65 61 | 74 20 74 6f 20 74 68 65 |heartbea|t to the|
|00001fa0| 20 73 70 65 63 69 66 69 | 65 64 20 6d 61 73 74 65 | specifi|ed maste|
|00001fb0| 72 20 73 65 72 76 65 72 | 0d 0a 2f 2f 20 65 76 65 |r server|..// eve|
|00001fc0| 72 79 20 66 69 76 65 20 | 6d 69 6e 75 74 65 73 2e |ry five |minutes.|
|00001fd0| 20 20 54 68 65 20 68 65 | 61 72 74 62 65 61 74 20 | The he|artbeat |
|00001fe0| 69 73 20 69 6e 20 74 68 | 65 20 66 6f 72 6d 3a 0d |is in th|e form:.|
|00001ff0| 0a 2f 2f 20 20 20 20 5c | 68 65 61 72 74 62 65 61 |.// \|heartbea|
|00002000| 74 5c 51 75 65 72 79 50 | 6f 72 74 5c 67 61 6d 65 |t\QueryP|ort\game|
|00002010| 6e 61 6d 65 5c 75 6e 72 | 65 61 6c 0d 0a 2f 2f 0d |name\unr|eal..//.|
|00002020| 0a 2f 2f 20 46 75 6c 6c | 20 64 6f 63 75 6d 65 6e |.// Full| documen|
|00002030| 74 61 74 69 6f 6e 20 6f | 6e 20 74 68 69 73 20 63 |tation o|n this c|
|00002040| 6c 61 73 73 20 69 73 20 | 61 76 61 69 6c 61 62 6c |lass is |availabl|
|00002050| 65 20 61 74 20 68 74 74 | 70 3a 2f 2f 75 6e 72 65 |e at htt|p://unre|
|00002060| 61 6c 2e 65 70 69 63 67 | 61 6d 65 73 2e 63 6f 6d |al.epicg|ames.com|
|00002070| 2f 0d 0a 2f 2f 0d 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |/..//../|/=======|
|00002080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000020a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000020b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000020c0| 3d 3d 3d 3d 3d 3d 0d 0a | 63 6c 61 73 73 20 55 64 |======..|class Ud|
|000020d0| 70 53 65 72 76 65 72 55 | 70 6c 69 6e 6b 20 65 78 |pServerU|plink ex|
|000020e0| 74 65 6e 64 73 20 55 64 | 70 4c 69 6e 6b 20 63 6f |tends Ud|pLink co|
|000020f0| 6e 66 69 67 3b 0d 0a 0d | 0a 2f 2f 20 4d 61 73 74 |nfig;...|.// Mast|
|00002100| 65 72 20 55 70 6c 69 6e | 6b 20 43 6f 6e 66 69 67 |er Uplin|k Config|
|00002110| 2e 0d 0a 76 61 72 28 29 | 20 63 6f 6e 66 69 67 20 |...var()| config |
|00002120| 62 6f 6f 6c 09 09 44 6f | 55 70 6c 69 6e 6b 3b 09 |bool..Do|Uplink;.|
|00002130| 09 09 09 2f 2f 20 49 66 | 20 74 72 75 65 2c 20 64 |...// If| true, d|
|00002140| 6f 20 74 68 65 20 75 70 | 6c 69 6e 6b 0d 0a 76 61 |o the up|link..va|
|00002150| 72 28 29 20 63 6f 6e 66 | 69 67 20 69 6e 74 09 09 |r() conf|ig int..|
|00002160| 55 70 64 61 74 65 4d 69 | 6e 75 74 65 73 3b 09 09 |UpdateMi|nutes;..|
|00002170| 09 2f 2f 20 50 65 72 69 | 6f 64 20 6f 66 20 75 70 |.// Peri|od of up|
|00002180| 64 61 74 65 20 28 69 6e | 20 6d 69 6e 75 74 65 73 |date (in| minutes|
|00002190| 29 0d 0a 76 61 72 28 29 | 20 63 6f 6e 66 69 67 20 |)..var()| config |
|000021a0| 73 74 72 69 6e 67 20 20 | 20 20 20 4d 61 73 74 65 |string | Maste|
|000021b0| 72 53 65 72 76 65 72 41 | 64 64 72 65 73 73 3b 09 |rServerA|ddress;.|
|000021c0| 2f 2f 20 41 64 64 72 65 | 73 73 20 6f 66 20 74 68 |// Addre|ss of th|
|000021d0| 65 20 6d 61 73 74 65 72 | 20 73 65 72 76 65 72 0d |e master| server.|
|000021e0| 0a 76 61 72 28 29 20 63 | 6f 6e 66 69 67 20 69 6e |.var() c|onfig in|
|000021f0| 74 09 09 4d 61 73 74 65 | 72 53 65 72 76 65 72 50 |t..Maste|rServerP|
|00002200| 6f 72 74 3b 09 09 2f 2f | 20 4f 70 74 69 6f 6e 61 |ort;..//| Optiona|
|00002210| 6c 20 70 6f 72 74 20 74 | 68 61 74 20 74 68 65 20 |l port t|hat the |
|00002220| 6d 61 73 74 65 72 20 73 | 65 72 76 65 72 20 69 73 |master s|erver is|
|00002230| 20 6c 69 73 74 65 6e 69 | 6e 67 20 6f 6e 0d 0a 76 | listeni|ng on..v|
|00002240| 61 72 28 29 20 63 6f 6e | 66 69 67 20 69 6e 74 20 |ar() con|fig int |
|00002250| 09 09 52 65 67 69 6f 6e | 3b 09 09 09 09 09 2f 2f |..Region|;.....//|
|00002260| 20 52 65 67 69 6f 6e 20 | 6f 66 20 74 68 65 20 67 | Region |of the g|
|00002270| 61 6d 65 20 73 65 72 76 | 65 72 0d 0a 76 61 72 28 |ame serv|er..var(|
|00002280| 29 20 6e 61 6d 65 09 09 | 09 09 54 61 72 67 65 74 |) name..|..Target|
|00002290| 51 75 65 72 79 4e 61 6d | 65 3b 09 09 2f 2f 20 4e |QueryNam|e;..// N|
|000022a0| 61 6d 65 20 6f 66 20 74 | 68 65 20 71 75 65 72 79 |ame of t|he query|
|000022b0| 20 73 65 72 76 65 72 20 | 6f 62 6a 65 63 74 20 74 | server |object t|
|000022c0| 6f 20 75 73 65 2e 0d 0a | 76 61 72 20 49 70 41 64 |o use...|var IpAd|
|000022d0| 64 72 09 09 09 09 4d 61 | 73 74 65 72 53 65 72 76 |dr....Ma|sterServ|
|000022e0| 65 72 49 70 41 64 64 72 | 3b 09 09 2f 2f 20 4d 61 |erIpAddr|;..// Ma|
|000022f0| 73 74 65 72 20 73 65 72 | 76 65 72 27 73 20 61 64 |ster ser|ver's ad|
|00002300| 64 72 65 73 73 2e 0d 0a | 76 61 72 20 73 74 72 69 |dress...|var stri|
|00002310| 6e 67 09 09 20 20 20 20 | 20 20 20 20 48 65 61 72 |ng.. | Hear|
|00002320| 74 62 65 61 74 4d 65 73 | 73 61 67 65 3b 09 09 2f |tbeatMes|sage;../|
|00002330| 2f 20 54 68 65 20 6d 65 | 73 73 61 67 65 20 74 68 |/ The me|ssage th|
|00002340| 61 74 20 69 73 20 73 65 | 6e 74 20 74 6f 20 74 68 |at is se|nt to th|
|00002350| 65 20 6d 61 73 74 65 72 | 20 73 65 72 76 65 72 2e |e master| server.|
|00002360| 0d 0a 76 61 72 20 55 64 | 70 53 65 72 76 65 72 51 |..var Ud|pServerQ|
|00002370| 75 65 72 79 20 20 20 20 | 20 20 51 75 65 72 79 3b |uery | Query;|
|00002380| 09 09 09 09 09 2f 2f 20 | 54 68 65 20 71 75 65 72 |.....// |The quer|
|00002390| 79 20 6f 62 6a 65 63 74 | 2e 0d 0a 76 61 72 20 69 |y object|...var i|
|000023a0| 6e 74 09 09 09 09 20 20 | 20 20 43 75 72 72 65 6e |nt.... | Curren|
|000023b0| 74 51 75 65 72 79 4e 75 | 6d 3b 09 09 2f 2f 20 51 |tQueryNu|m;..// Q|
|000023c0| 75 65 72 79 20 49 44 20 | 4e 75 6d 62 65 72 2e 0d |uery ID |Number..|
|000023d0| 0a 0d 0a 2f 2f 20 49 6e | 69 74 69 61 6c 69 7a 65 |...// In|itialize|
|000023e0| 2e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 72 65 42 |...funct|ion PreB|
|000023f0| 65 67 69 6e 50 6c 61 79 | 28 29 0d 0a 7b 0d 0a 09 |eginPlay|()..{...|
|00002400| 2f 2f 20 49 66 20 6d 61 | 73 74 65 72 20 73 65 72 |// If ma|ster ser|
|00002410| 76 65 72 20 75 70 6c 69 | 6e 6b 20 69 73 6e 27 74 |ver upli|nk isn't|
|00002420| 20 77 61 6e 74 65 64 2c | 20 65 78 69 74 2e 0d 0a | wanted,| exit...|
|00002430| 09 69 66 28 20 21 44 6f | 55 70 6c 69 6e 6b 20 29 |.if( !Do|Uplink )|
|00002440| 0d 0a 09 7b 0d 0a 09 09 | 4c 6f 67 28 22 44 6f 55 |...{....|Log("DoU|
|00002450| 70 6c 69 6e 6b 20 69 73 | 20 6e 6f 74 20 73 65 74 |plink is| not set|
|00002460| 2e 20 20 4e 6f 74 20 63 | 6f 6e 6e 65 63 74 69 6e |. Not c|onnectin|
|00002470| 67 20 74 6f 20 4d 61 73 | 74 65 72 20 53 65 72 76 |g to Mas|ter Serv|
|00002480| 65 72 2e 22 29 3b 0d 0a | 09 09 72 65 74 75 72 6e |er.");..|..return|
|00002490| 3b 0d 0a 09 7d 0d 0a 0d | 0a 2f 2a 0d 0a 09 69 66 |;...}...|./*...if|
|000024a0| 28 20 4c 65 76 65 6c 2e | 4e 65 74 4d 6f 64 65 20 |( Level.|NetMode |
|000024b0| 3d 3d 20 4e 4d 5f 4c 69 | 73 74 65 6e 53 65 72 76 |== NM_Li|stenServ|
|000024c0| 65 72 20 29 0d 0a 09 7b | 0d 0a 09 09 4c 6f 67 28 |er )...{|....Log(|
|000024d0| 22 54 68 69 73 20 69 73 | 20 61 20 4c 69 73 74 65 |"This is| a Liste|
|000024e0| 6e 20 73 65 72 76 65 72 | 2e 20 20 4e 6f 74 20 63 |n server|. Not c|
|000024f0| 6f 6e 6e 65 63 74 69 6e | 67 20 74 6f 20 4d 61 73 |onnectin|g to Mas|
|00002500| 74 65 72 20 53 65 72 76 | 65 72 2e 22 29 3b 0d 0a |ter Serv|er.");..|
|00002510| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 2a |..return|;...}..*|
|00002520| 2f 0d 0a 0d 0a 09 2f 2f | 20 46 69 6e 64 20 61 20 |/.....//| Find a |
|00002530| 74 68 65 20 73 65 72 76 | 65 72 20 71 75 65 72 79 |the serv|er query|
|00002540| 20 68 61 6e 64 6c 65 72 | 2e 0d 0a 09 66 6f 72 65 | handler|....fore|
|00002550| 61 63 68 20 41 6c 6c 41 | 63 74 6f 72 73 28 63 6c |ach AllA|ctors(cl|
|00002560| 61 73 73 27 55 64 70 53 | 65 72 76 65 72 51 75 65 |ass'UdpS|erverQue|
|00002570| 72 79 27 2c 20 51 75 65 | 72 79 2c 20 54 61 72 67 |ry', Que|ry, Targ|
|00002580| 65 74 51 75 65 72 79 4e | 61 6d 65 29 0d 0a 09 09 |etQueryN|ame)....|
|00002590| 62 72 65 61 6b 3b 0d 0a | 0d 0a 09 69 66 28 20 51 |break;..|...if( Q|
|000025a0| 75 65 72 79 3d 3d 4e 6f | 6e 65 20 29 0d 0a 09 7b |uery==No|ne )...{|
|000025b0| 0d 0a 09 09 4c 6f 67 28 | 22 55 64 70 53 65 72 76 |....Log(|"UdpServ|
|000025c0| 65 72 55 70 6c 69 6e 6b | 3a 20 43 6f 75 6c 64 20 |erUplink|: Could |
|000025d0| 6e 6f 74 20 66 69 6e 64 | 20 61 20 55 64 70 53 65 |not find| a UdpSe|
|000025e0| 72 76 65 72 51 75 65 72 | 79 20 6f 62 6a 65 63 74 |rverQuer|y object|
|000025f0| 2c 20 61 62 6f 72 74 69 | 6e 67 2e 22 29 3b 0d 0a |, aborti|ng.");..|
|00002600| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00002610| 0a 09 2f 2f 20 53 65 74 | 20 68 65 61 72 74 62 65 |..// Set| heartbe|
|00002620| 61 74 20 6d 65 73 73 61 | 67 65 2e 0d 0a 09 48 65 |at messa|ge....He|
|00002630| 61 72 74 62 65 61 74 4d | 65 73 73 61 67 65 20 3d |artbeatM|essage =|
|00002640| 20 22 5c 5c 68 65 61 72 | 74 62 65 61 74 5c 5c 22 | "\\hear|tbeat\\"|
|00002650| 24 51 75 65 72 79 2e 50 | 6f 72 74 24 22 5c 5c 67 |$Query.P|ort$"\\g|
|00002660| 61 6d 65 6e 61 6d 65 5c | 5c 22 24 51 75 65 72 79 |amename\|\"$Query|
|00002670| 2e 47 61 6d 65 4e 61 6d | 65 3b 0d 0a 0d 0a 09 2f |.GameNam|e;...../|
|00002680| 2f 20 53 65 74 20 74 68 | 65 20 50 6f 72 74 2e 0d |/ Set th|e Port..|
|00002690| 0a 09 4d 61 73 74 65 72 | 53 65 72 76 65 72 49 70 |..Master|ServerIp|
|000026a0| 41 64 64 72 2e 50 6f 72 | 74 20 3d 20 4d 61 73 74 |Addr.Por|t = Mast|
|000026b0| 65 72 53 65 72 76 65 72 | 50 6f 72 74 3b 0d 0a 0d |erServer|Port;...|
|000026c0| 0a 09 2f 2f 20 52 65 73 | 6f 6c 76 65 20 74 68 65 |..// Res|olve the|
|000026d0| 20 41 64 64 72 65 73 73 | 2e 0d 0a 09 69 66 28 20 | Address|....if( |
|000026e0| 4d 61 73 74 65 72 53 65 | 72 76 65 72 41 64 64 72 |MasterSe|rverAddr|
|000026f0| 65 73 73 3d 3d 22 22 20 | 29 0d 0a 09 09 4d 61 73 |ess=="" |)....Mas|
|00002700| 74 65 72 53 65 72 76 65 | 72 41 64 64 72 65 73 73 |terServe|rAddress|
|00002710| 20 3d 20 22 6d 61 73 74 | 65 72 22 24 52 65 67 69 | = "mast|er"$Regi|
|00002720| 6f 6e 24 22 2e 67 61 6d | 65 73 70 79 2e 63 6f 6d |on$".gam|espy.com|
|00002730| 22 3b 0d 0a 09 52 65 73 | 6f 6c 76 65 28 20 4d 61 |";...Res|olve( Ma|
|00002740| 73 74 65 72 53 65 72 76 | 65 72 41 64 64 72 65 73 |sterServ|erAddres|
|00002750| 73 20 29 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 57 68 |s );..}.|...// Wh|
|00002760| 65 6e 20 6d 61 73 74 65 | 72 20 73 65 72 76 65 72 |en maste|r server|
|00002770| 20 61 64 64 72 65 73 73 | 20 69 73 20 72 65 73 6f | address| is reso|
|00002780| 6c 76 65 64 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |lved...f|unction |
|00002790| 52 65 73 6f 6c 76 65 64 | 28 20 49 70 41 64 64 72 |Resolved|( IpAddr|
|000027a0| 20 41 64 64 72 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 | Addr ).|.{...loc|
|000027b0| 61 6c 20 69 6e 74 20 55 | 70 6c 69 6e 6b 50 6f 72 |al int U|plinkPor|
|000027c0| 74 3b 0d 0a 0d 0a 09 2f | 2f 20 53 65 74 20 74 68 |t;...../|/ Set th|
|000027d0| 65 20 61 64 64 72 65 73 | 73 0d 0a 09 4d 61 73 74 |e addres|s...Mast|
|000027e0| 65 72 53 65 72 76 65 72 | 49 70 41 64 64 72 2e 41 |erServer|IpAddr.A|
|000027f0| 64 64 72 20 3d 20 41 64 | 64 72 2e 41 64 64 72 3b |ddr = Ad|dr.Addr;|
|00002800| 0d 0a 0d 0a 09 2f 2f 20 | 48 61 6e 64 6c 65 20 66 |.....// |Handle f|
|00002810| 61 69 6c 75 72 65 2e 0d | 0a 09 69 66 28 20 4d 61 |ailure..|..if( Ma|
|00002820| 73 74 65 72 53 65 72 76 | 65 72 49 70 41 64 64 72 |sterServ|erIpAddr|
|00002830| 2e 41 64 64 72 20 3d 3d | 20 30 20 29 0d 0a 09 7b |.Addr ==| 0 )...{|
|00002840| 0d 0a 09 09 4c 6f 67 28 | 22 55 64 70 53 65 72 76 |....Log(|"UdpServ|
|00002850| 65 72 55 70 6c 69 6e 6b | 3a 20 49 6e 76 61 6c 69 |erUplink|: Invali|
|00002860| 64 20 6d 61 73 74 65 72 | 20 73 65 72 76 65 72 20 |d master| server |
|00002870| 61 64 64 72 65 73 73 2c | 20 61 62 6f 72 74 69 6e |address,| abortin|
|00002880| 67 2e 22 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |g.");...|.return;|
|00002890| 0d 0a 09 7d 0d 0a 0d 0a | 09 2f 2f 20 44 69 73 70 |...}....|.// Disp|
|000028a0| 6c 61 79 20 73 75 63 63 | 65 73 73 20 6d 65 73 73 |lay succ|ess mess|
|000028b0| 61 67 65 2e 0d 0a 09 4c | 6f 67 28 22 55 64 70 53 |age....L|og("UdpS|
|000028c0| 65 72 76 65 72 55 70 6c | 69 6e 6b 3a 20 4d 61 73 |erverUpl|ink: Mas|
|000028d0| 74 65 72 20 53 65 72 76 | 65 72 20 69 73 20 22 24 |ter Serv|er is "$|
|000028e0| 4d 61 73 74 65 72 53 65 | 72 76 65 72 41 64 64 72 |MasterSe|rverAddr|
|000028f0| 65 73 73 24 22 3a 22 24 | 4d 61 73 74 65 72 53 65 |ess$":"$|MasterSe|
|00002900| 72 76 65 72 49 70 41 64 | 64 72 2e 50 6f 72 74 29 |rverIpAd|dr.Port)|
|00002910| 3b 0d 0a 09 0d 0a 09 2f | 2f 20 42 69 6e 64 20 74 |;....../|/ Bind t|
|00002920| 68 65 20 6c 6f 63 61 6c | 20 70 6f 72 74 2e 0d 0a |he local| port...|
|00002930| 09 55 70 6c 69 6e 6b 50 | 6f 72 74 20 3d 20 51 75 |.UplinkP|ort = Qu|
|00002940| 65 72 79 2e 50 6f 72 74 | 20 2b 20 31 3b 0d 0a 09 |ery.Port| + 1;...|
|00002950| 69 66 28 20 42 69 6e 64 | 50 6f 72 74 28 55 70 6c |if( Bind|Port(Upl|
|00002960| 69 6e 6b 50 6f 72 74 2c | 20 74 72 75 65 29 20 3d |inkPort,| true) =|
|00002970| 3d 20 30 20 29 0d 0a 09 | 7b 0d 0a 09 09 4c 6f 67 |= 0 )...|{....Log|
|00002980| 28 20 22 55 64 70 53 65 | 72 76 65 72 55 70 6c 69 |( "UdpSe|rverUpli|
|00002990| 6e 6b 3a 20 45 72 72 6f | 72 20 62 69 6e 64 69 6e |nk: Erro|r bindin|
|000029a0| 67 20 70 6f 72 74 2c 20 | 61 62 6f 72 74 69 6e 67 |g port, |aborting|
|000029b0| 2e 22 20 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |." );...|.return;|
|000029c0| 0d 0a 09 7d 0d 0a 09 4c | 6f 67 28 22 55 64 70 53 |...}...L|og("UdpS|
|000029d0| 65 72 76 65 72 55 70 6c | 69 6e 6b 3a 20 50 6f 72 |erverUpl|ink: Por|
|000029e0| 74 20 22 24 55 70 6c 69 | 6e 6b 50 6f 72 74 24 22 |t "$Upli|nkPort$"|
|000029f0| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 62 6f | success|fully bo|
|00002a00| 75 6e 64 2e 22 29 3b 0d | 0a 0d 0a 09 2f 2f 20 53 |und.");.|....// S|
|00002a10| 74 61 72 74 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |tart tra|nsmittin|
|00002a20| 67 2e 0d 0a 09 52 65 73 | 75 6d 65 28 29 3b 0d 0a |g....Res|ume();..|
|00002a30| 7d 0d 0a 0d 0a 2f 2f 20 | 48 6f 73 74 20 72 65 73 |}....// |Host res|
|00002a40| 6f 6c 75 74 69 6f 6e 20 | 66 61 69 6c 75 65 2e 0d |olution |failue..|
|00002a50| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 73 6f 6c 76 |.functio|n Resolv|
|00002a60| 65 46 61 69 6c 65 64 28 | 29 0d 0a 7b 0d 0a 09 4c |eFailed(|)..{...L|
|00002a70| 6f 67 28 22 55 64 70 53 | 65 72 76 65 72 55 70 6c |og("UdpS|erverUpl|
|00002a80| 69 6e 6b 3a 20 46 61 69 | 6c 65 64 20 74 6f 20 72 |ink: Fai|led to r|
|00002a90| 65 73 6f 6c 76 65 20 6d | 61 73 74 65 72 20 73 65 |esolve m|aster se|
|00002aa0| 72 76 65 72 20 61 64 64 | 72 65 73 73 2c 20 61 62 |rver add|ress, ab|
|00002ab0| 6f 72 74 69 6e 67 2e 22 | 29 3b 0d 0a 7d 0d 0a 0d |orting."|);..}...|
|00002ac0| 0a 2f 2f 20 4e 6f 74 69 | 66 79 20 74 68 65 20 4d |.// Noti|fy the M|
|00002ad0| 61 73 74 65 72 53 65 72 | 76 65 72 20 77 65 20 65 |asterSer|ver we e|
|00002ae0| 78 69 73 74 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |xist...f|unction |
|00002af0| 54 69 6d 65 72 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |Timer().|.{...loc|
|00002b00| 61 6c 20 62 6f 6f 6c 20 | 52 65 73 75 6c 74 3b 0d |al bool |Result;.|
|00002b10| 0a 0d 0a 09 52 65 73 75 | 6c 74 20 3d 20 53 65 6e |....Resu|lt = Sen|
|00002b20| 64 54 65 78 74 28 20 4d | 61 73 74 65 72 53 65 72 |dText( M|asterSer|
|00002b30| 76 65 72 49 70 41 64 64 | 72 2c 20 48 65 61 72 74 |verIpAdd|r, Heart|
|00002b40| 62 65 61 74 4d 65 73 73 | 61 67 65 20 29 3b 0d 0a |beatMess|age );..|
|00002b50| 09 69 66 20 28 20 21 52 | 65 73 75 6c 74 20 29 0d |.if ( !R|esult ).|
|00002b60| 0a 09 09 4c 6f 67 28 20 | 22 46 61 69 6c 65 64 20 |...Log( |"Failed |
|00002b70| 74 6f 20 73 65 6e 64 20 | 68 65 61 72 74 62 65 61 |to send |heartbea|
|00002b80| 74 20 74 6f 20 6d 61 73 | 74 65 72 20 73 65 72 76 |t to mas|ter serv|
|00002b90| 65 72 2e 22 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |er.");..|}....// |
|00002ba0| 53 74 6f 70 20 74 68 65 | 20 75 70 6c 69 6e 6b 2e |Stop the| uplink.|
|00002bb0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 48 61 6c 74 28 |..functi|on Halt(|
|00002bc0| 29 0d 0a 7b 0d 0a 09 53 | 65 74 54 69 6d 65 72 28 |)..{...S|etTimer(|
|00002bd0| 30 2e 30 2c 20 66 61 6c | 73 65 29 3b 0d 0a 7d 0d |0.0, fal|se);..}.|
|00002be0| 0a 0d 0a 2f 2f 20 52 65 | 73 75 6d 65 20 74 68 65 |...// Re|sume the|
|00002bf0| 20 75 70 6c 69 6e 6b 2e | 0d 0a 66 75 6e 63 74 69 | uplink.|..functi|
|00002c00| 6f 6e 20 52 65 73 75 6d | 65 28 29 0d 0a 7b 0d 0a |on Resum|e()..{..|
|00002c10| 09 53 65 74 54 69 6d 65 | 72 28 55 70 64 61 74 65 |.SetTime|r(Update|
|00002c20| 4d 69 6e 75 74 65 73 20 | 2a 20 36 30 2c 20 74 72 |Minutes |* 60, tr|
|00002c30| 75 65 29 3b 0d 0a 09 54 | 69 6d 65 72 28 29 3b 0d |ue);...T|imer();.|
|00002c40| 0a 7d 0d 0a 0d 0a 2f 2f | 20 52 65 63 65 69 76 65 |.}....//| Receive|
|00002c50| 64 20 61 20 71 75 65 72 | 79 20 72 65 71 75 65 73 |d a quer|y reques|
|00002c60| 74 2e 0d 0a 65 76 65 6e | 74 20 52 65 63 65 69 76 |t...even|t Receiv|
|00002c70| 65 64 54 65 78 74 28 20 | 49 70 41 64 64 72 20 41 |edText( |IpAddr A|
|00002c80| 64 64 72 2c 20 73 74 72 | 69 6e 67 20 54 65 78 74 |ddr, str|ing Text|
|00002c90| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 | )..{...|local st|
|00002ca0| 72 69 6e 67 20 51 75 65 | 72 79 3b 0d 0a 09 6c 6f |ring Que|ry;...lo|
|00002cb0| 63 61 6c 20 62 6f 6f 6c | 20 51 75 65 72 79 52 65 |cal bool| QueryRe|
|00002cc0| 6d 61 69 6e 69 6e 67 3b | 0d 0a 09 6c 6f 63 61 6c |maining;|...local|
|00002cd0| 20 69 6e 74 20 20 51 75 | 65 72 79 4e 75 6d 2c 20 | int Qu|eryNum, |
|00002ce0| 50 61 63 6b 65 74 4e 75 | 6d 3b 0d 0a 0d 0a 09 2f |PacketNu|m;...../|
|00002cf0| 2f 20 41 73 73 69 67 6e | 20 74 68 69 73 20 70 61 |/ Assign| this pa|
|00002d00| 63 6b 65 74 20 61 20 75 | 6e 69 71 75 65 20 76 61 |cket a u|nique va|
|00002d10| 6c 75 65 20 66 72 6f 6d | 20 31 20 74 6f 20 31 30 |lue from| 1 to 10|
|00002d20| 30 0d 0a 09 43 75 72 72 | 65 6e 74 51 75 65 72 79 |0...Curr|entQuery|
|00002d30| 4e 75 6d 2b 2b 3b 0d 0a | 09 69 66 20 28 43 75 72 |Num++;..|.if (Cur|
|00002d40| 72 65 6e 74 51 75 65 72 | 79 4e 75 6d 20 3e 20 31 |rentQuer|yNum > 1|
|00002d50| 30 30 29 0d 0a 09 09 43 | 75 72 72 65 6e 74 51 75 |00)....C|urrentQu|
|00002d60| 65 72 79 4e 75 6d 20 3d | 20 31 3b 0d 0a 09 51 75 |eryNum =| 1;...Qu|
|00002d70| 65 72 79 4e 75 6d 20 3d | 20 43 75 72 72 65 6e 74 |eryNum =| Current|
|00002d80| 51 75 65 72 79 4e 75 6d | 3b 0d 0a 0d 0a 09 51 75 |QueryNum|;.....Qu|
|00002d90| 65 72 79 20 3d 20 54 65 | 78 74 3b 0d 0a 09 69 66 |ery = Te|xt;...if|
|00002da0| 20 28 51 75 65 72 79 20 | 3d 3d 20 22 22 29 09 09 | (Query |== "")..|
|00002db0| 2f 2f 20 49 66 20 74 68 | 65 20 73 74 72 69 6e 67 |// If th|e string|
|00002dc0| 20 69 73 20 65 6d 70 74 | 79 2c 20 64 6f 6e 27 74 | is empt|y, don't|
|00002dd0| 20 70 61 72 73 65 20 69 | 74 0d 0a 09 09 51 75 65 | parse i|t....Que|
|00002de0| 72 79 52 65 6d 61 69 6e | 69 6e 67 20 3d 20 66 61 |ryRemain|ing = fa|
|00002df0| 6c 73 65 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 51 |lse;...e|lse....Q|
|00002e00| 75 65 72 79 52 65 6d 61 | 69 6e 69 6e 67 20 3d 20 |ueryRema|ining = |
|00002e10| 74 72 75 65 3b 0d 0a 09 | 0d 0a 09 77 68 69 6c 65 |true;...|...while|
|00002e20| 20 28 51 75 65 72 79 52 | 65 6d 61 69 6e 69 6e 67 | (QueryR|emaining|
|00002e30| 29 20 7b 0d 0a 09 09 51 | 75 65 72 79 20 3d 20 50 |) {....Q|uery = P|
|00002e40| 61 72 73 65 51 75 65 72 | 79 28 41 64 64 72 2c 20 |arseQuer|y(Addr, |
|00002e50| 51 75 65 72 79 2c 20 51 | 75 65 72 79 4e 75 6d 2c |Query, Q|ueryNum,|
|00002e60| 20 50 61 63 6b 65 74 4e | 75 6d 29 3b 0d 0a 09 09 | PacketN|um);....|
|00002e70| 69 66 20 28 51 75 65 72 | 79 20 3d 3d 20 22 22 29 |if (Quer|y == "")|
|00002e80| 0d 0a 09 09 09 51 75 65 | 72 79 52 65 6d 61 69 6e |.....Que|ryRemain|
|00002e90| 69 6e 67 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |ing = fa|lse;....|
|00002ea0| 65 6c 73 65 0d 0a 09 09 | 09 51 75 65 72 79 52 65 |else....|.QueryRe|
|00002eb0| 6d 61 69 6e 69 6e 67 20 | 3d 20 74 72 75 65 3b 0d |maining |= true;.|
|00002ec0| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |..}..}..|..functi|
|00002ed0| 6f 6e 20 62 6f 6f 6c 20 | 50 61 72 73 65 4e 65 78 |on bool |ParseNex|
|00002ee0| 74 51 75 65 72 79 28 20 | 73 74 72 69 6e 67 20 51 |tQuery( |string Q|
|00002ef0| 75 65 72 79 2c 20 6f 75 | 74 20 73 74 72 69 6e 67 |uery, ou|t string|
|00002f00| 20 51 75 65 72 79 54 79 | 70 65 2c 20 6f 75 74 20 | QueryTy|pe, out |
|00002f10| 73 74 72 69 6e 67 20 51 | 75 65 72 79 56 61 6c 75 |string Q|ueryValu|
|00002f20| 65 2c 20 6f 75 74 20 73 | 74 72 69 6e 67 20 51 75 |e, out s|tring Qu|
|00002f30| 65 72 79 52 65 73 74 2c | 20 6f 75 74 20 73 74 72 |eryRest,| out str|
|00002f40| 69 6e 67 20 46 69 6e 61 | 6c 50 61 63 6b 65 74 20 |ing Fina|lPacket |
|00002f50| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |)..{...l|ocal str|
|00002f60| 69 6e 67 20 54 65 6d 70 | 51 75 65 72 79 3b 0d 0a |ing Temp|Query;..|
|00002f70| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 43 6c 6f 73 69 |.local i|nt Closi|
|00002f80| 6e 67 53 6c 61 73 68 3b | 0d 0a 0d 0a 09 69 66 20 |ngSlash;|.....if |
|00002f90| 28 51 75 65 72 79 20 3d | 3d 20 22 22 29 0d 0a 09 |(Query =|= "")...|
|00002fa0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00002fb0| 0d 0a 09 2f 2f 20 51 75 | 65 72 79 20 73 68 6f 75 |...// Qu|ery shou|
|00002fc0| 6c 64 20 62 65 3a 0d 0a | 09 2f 2f 20 20 20 5c 5b |ld be:..|.// \[|
|00002fd0| 74 79 70 65 5d 5c 3c 76 | 61 6c 75 65 3e 0d 0a 09 |type]\<v|alue>...|
|00002fe0| 69 66 20 28 4c 65 66 74 | 28 51 75 65 72 79 2c 20 |if (Left|(Query, |
|00002ff0| 31 29 20 3d 3d 20 22 5c | 5c 22 29 0d 0a 09 7b 0d |1) == "\|\")...{.|
|00003000| 0a 09 09 2f 2f 20 43 68 | 65 63 6b 20 74 6f 20 73 |...// Ch|eck to s|
|00003010| 65 65 20 69 66 20 63 6c | 6f 73 65 64 2e 0d 0a 09 |ee if cl|osed....|
|00003020| 09 43 6c 6f 73 69 6e 67 | 53 6c 61 73 68 20 3d 20 |.Closing|Slash = |
|00003030| 49 6e 53 74 72 28 52 69 | 67 68 74 28 51 75 65 72 |InStr(Ri|ght(Quer|
|00003040| 79 2c 20 4c 65 6e 28 51 | 75 65 72 79 29 2d 31 29 |y, Len(Q|uery)-1)|
|00003050| 2c 20 22 5c 5c 22 29 3b | 0d 0a 09 09 69 66 20 28 |, "\\");|....if (|
|00003060| 43 6c 6f 73 69 6e 67 53 | 6c 61 73 68 20 3d 3d 20 |ClosingS|lash == |
|00003070| 30 29 0d 0a 09 09 09 72 | 65 74 75 72 6e 20 66 61 |0).....r|eturn fa|
|00003080| 6c 73 65 3b 0d 0a 0d 0a | 09 09 54 65 6d 70 51 75 |lse;....|..TempQu|
|00003090| 65 72 79 20 3d 20 51 75 | 65 72 79 3b 0d 0a 0d 0a |ery = Qu|ery;....|
|000030a0| 09 09 2f 2f 20 51 75 65 | 72 79 20 6c 6f 6f 6b 73 |..// Que|ry looks|
|000030b0| 20 6c 69 6b 65 3a 0d 0a | 09 09 2f 2f 20 20 5c 5b | like:..|..// \[|
|000030c0| 74 79 70 65 5d 5c 0d 0a | 09 09 51 75 65 72 79 54 |type]\..|..QueryT|
|000030d0| 79 70 65 20 3d 20 52 69 | 67 68 74 28 51 75 65 72 |ype = Ri|ght(Quer|
|000030e0| 79 2c 20 4c 65 6e 28 51 | 75 65 72 79 29 2d 31 29 |y, Len(Q|uery)-1)|
|000030f0| 3b 0d 0a 09 09 51 75 65 | 72 79 54 79 70 65 20 3d |;....Que|ryType =|
|00003100| 20 4c 65 66 74 28 51 75 | 65 72 79 54 79 70 65 2c | Left(Qu|eryType,|
|00003110| 20 43 6c 6f 73 69 6e 67 | 53 6c 61 73 68 29 3b 0d | Closing|Slash);.|
|00003120| 0a 0d 0a 09 09 51 75 65 | 72 79 52 65 73 74 20 3d |.....Que|ryRest =|
|00003130| 20 52 69 67 68 74 28 51 | 75 65 72 79 2c 20 4c 65 | Right(Q|uery, Le|
|00003140| 6e 28 51 75 65 72 79 29 | 20 2d 20 28 4c 65 6e 28 |n(Query)| - (Len(|
|00003150| 51 75 65 72 79 54 79 70 | 65 29 20 2b 20 32 29 29 |QueryTyp|e) + 2))|
|00003160| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 28 51 75 65 72 |;......i|f ((Quer|
|00003170| 79 52 65 73 74 20 3d 3d | 20 22 22 29 20 7c 7c 20 |yRest ==| "") || |
|00003180| 28 4c 65 6e 28 51 75 65 | 72 79 52 65 73 74 29 20 |(Len(Que|ryRest) |
|00003190| 3d 3d 20 31 29 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |== 1))..|..{.....|
|000031a0| 46 69 6e 61 6c 50 61 63 | 6b 65 74 20 3d 20 22 66 |FinalPac|ket = "f|
|000031b0| 69 6e 61 6c 22 3b 0d 0a | 09 09 09 72 65 74 75 72 |inal";..|...retur|
|000031c0| 6e 20 74 72 75 65 3b 0d | 0a 09 09 7d 20 65 6c 73 |n true;.|...} els|
|000031d0| 65 20 69 66 20 28 4c 65 | 66 74 28 51 75 65 72 79 |e if (Le|ft(Query|
|000031e0| 52 65 73 74 2c 20 31 29 | 20 3d 3d 20 22 5c 5c 22 |Rest, 1)| == "\\"|
|000031f0| 29 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |).....re|turn tru|
|00003200| 65 3b 09 2f 2f 20 5c 74 | 79 70 65 5c 5c 0d 0a 0d |e;.// \t|ype\\...|
|00003210| 0a 09 09 2f 2f 20 51 75 | 65 72 79 20 6c 6f 6f 6b |...// Qu|ery look|
|00003220| 73 20 6c 69 6b 65 3a 0d | 0a 09 09 2f 2f 20 20 5c |s like:.|...// \|
|00003230| 74 79 70 65 5c 76 61 6c | 75 65 0d 0a 09 09 43 6c |type\val|ue....Cl|
|00003240| 6f 73 69 6e 67 53 6c 61 | 73 68 20 3d 20 49 6e 53 |osingSla|sh = InS|
|00003250| 74 72 28 51 75 65 72 79 | 52 65 73 74 2c 20 22 5c |tr(Query|Rest, "\|
|00003260| 5c 22 29 3b 0d 0a 09 09 | 69 66 20 28 43 6c 6f 73 |\");....|if (Clos|
|00003270| 69 6e 67 53 6c 61 73 68 | 20 3e 3d 20 30 29 0d 0a |ingSlash| >= 0)..|
|00003280| 09 09 09 51 75 65 72 79 | 56 61 6c 75 65 20 3d 20 |...Query|Value = |
|00003290| 4c 65 66 74 28 51 75 65 | 72 79 52 65 73 74 2c 20 |Left(Que|ryRest, |
|000032a0| 43 6c 6f 73 69 6e 67 53 | 6c 61 73 68 29 3b 0d 0a |ClosingS|lash);..|
|000032b0| 09 09 65 6c 73 65 0d 0a | 09 09 09 51 75 65 72 79 |..else..|...Query|
|000032c0| 56 61 6c 75 65 20 3d 20 | 51 75 65 72 79 52 65 73 |Value = |QueryRes|
|000032d0| 74 3b 0d 0a 0d 0a 09 09 | 51 75 65 72 79 52 65 73 |t;......|QueryRes|
|000032e0| 74 20 3d 20 52 69 67 68 | 74 28 51 75 65 72 79 2c |t = Righ|t(Query,|
|000032f0| 20 4c 65 6e 28 51 75 65 | 72 79 29 20 2d 20 28 4c | Len(Que|ry) - (L|
|00003300| 65 6e 28 51 75 65 72 79 | 54 79 70 65 29 20 2b 20 |en(Query|Type) + |
|00003310| 4c 65 6e 28 51 75 65 72 | 79 56 61 6c 75 65 29 20 |Len(Quer|yValue) |
|00003320| 2b 20 33 29 29 3b 0d 0a | 09 09 69 66 20 28 51 75 |+ 3));..|..if (Qu|
|00003330| 65 72 79 52 65 73 74 20 | 3d 3d 20 22 22 29 0d 0a |eryRest |== "")..|
|00003340| 09 09 7b 0d 0a 09 09 09 | 46 69 6e 61 6c 50 61 63 |..{.....|FinalPac|
|00003350| 6b 65 74 20 3d 20 22 66 | 69 6e 61 6c 22 3b 0d 0a |ket = "f|inal";..|
|00003360| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00003370| 0a 09 09 7d 20 65 6c 73 | 65 0d 0a 09 09 09 72 65 |...} els|e.....re|
|00003380| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 7d 20 65 |turn tru|e;...} e|
|00003390| 6c 73 65 20 7b 0d 0a 09 | 09 72 65 74 75 72 6e 20 |lse {...|.return |
|000033a0| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |false;..|.}..}...|
|000033b0| 0a 66 75 6e 63 74 69 6f | 6e 20 73 74 72 69 6e 67 |.functio|n string|
|000033c0| 20 50 61 72 73 65 51 75 | 65 72 79 28 20 49 70 41 | ParseQu|ery( IpA|
|000033d0| 64 64 72 20 41 64 64 72 | 2c 20 63 6f 65 72 63 65 |ddr Addr|, coerce|
|000033e0| 20 73 74 72 69 6e 67 20 | 51 75 65 72 79 53 74 72 | string |QueryStr|
|000033f0| 2c 20 69 6e 74 20 51 75 | 65 72 79 4e 75 6d 2c 20 |, int Qu|eryNum, |
|00003400| 6f 75 74 20 69 6e 74 20 | 50 61 63 6b 65 74 4e 75 |out int |PacketNu|
|00003410| 6d 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 73 |m )..{..|.local s|
|00003420| 74 72 69 6e 67 20 51 75 | 65 72 79 54 79 70 65 2c |tring Qu|eryType,|
|00003430| 20 51 75 65 72 79 56 61 | 6c 75 65 2c 20 51 75 65 | QueryVa|lue, Que|
|00003440| 72 79 52 65 73 74 2c 20 | 56 61 6c 69 64 61 74 69 |ryRest, |Validati|
|00003450| 6f 6e 53 74 72 69 6e 67 | 3b 0d 0a 09 6c 6f 63 61 |onString|;...loca|
|00003460| 6c 20 62 6f 6f 6c 20 52 | 65 73 75 6c 74 3b 0d 0a |l bool R|esult;..|
|00003470| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 46 69 |.local s|tring Fi|
|00003480| 6e 61 6c 50 61 63 6b 65 | 74 3b 0d 0a 09 0d 0a 09 |nalPacke|t;......|
|00003490| 52 65 73 75 6c 74 20 3d | 20 50 61 72 73 65 4e 65 |Result =| ParseNe|
|000034a0| 78 74 51 75 65 72 79 28 | 51 75 65 72 79 53 74 72 |xtQuery(|QueryStr|
|000034b0| 2c 20 51 75 65 72 79 54 | 79 70 65 2c 20 51 75 65 |, QueryT|ype, Que|
|000034c0| 72 79 56 61 6c 75 65 2c | 20 51 75 65 72 79 52 65 |ryValue,| QueryRe|
|000034d0| 73 74 2c 20 46 69 6e 61 | 6c 50 61 63 6b 65 74 29 |st, Fina|lPacket)|
|000034e0| 3b 0d 0a 09 69 66 28 20 | 21 52 65 73 75 6c 74 20 |;...if( |!Result |
|000034f0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 22 22 3b 0d |)....ret|urn "";.|
|00003500| 0a 0d 0a 09 69 66 28 20 | 51 75 65 72 79 54 79 70 |....if( |QueryTyp|
|00003510| 65 3d 3d 22 62 61 73 69 | 63 22 20 29 0d 0a 09 7b |e=="basi|c" )...{|
|00003520| 0d 0a 09 09 2f 2f 20 49 | 67 6e 6f 72 65 2e 0d 0a |....// I|gnore...|
|00003530| 09 09 52 65 73 75 6c 74 | 20 3d 20 74 72 75 65 3b |..Result| = true;|
|00003540| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 20 69 66 28 20 |...}...e|lse if( |
|00003550| 51 75 65 72 79 54 79 70 | 65 3d 3d 22 73 65 63 75 |QueryTyp|e=="secu|
|00003560| 72 65 22 20 29 0d 0a 09 | 7b 0d 0a 09 09 56 61 6c |re" )...|{....Val|
|00003570| 69 64 61 74 69 6f 6e 53 | 74 72 69 6e 67 20 3d 20 |idationS|tring = |
|00003580| 22 5c 5c 76 61 6c 69 64 | 61 74 65 5c 5c 22 24 56 |"\\valid|ate\\"$V|
|00003590| 61 6c 69 64 61 74 65 28 | 51 75 65 72 79 56 61 6c |alidate(|QueryVal|
|000035a0| 75 65 2c 20 51 75 65 72 | 79 2e 47 61 6d 65 4e 61 |ue, Quer|y.GameNa|
|000035b0| 6d 65 29 3b 0d 0a 09 09 | 52 65 73 75 6c 74 20 3d |me);....|Result =|
|000035c0| 20 53 65 6e 64 51 75 65 | 72 79 50 61 63 6b 65 74 | SendQue|ryPacket|
|000035d0| 28 41 64 64 72 2c 20 56 | 61 6c 69 64 61 74 69 6f |(Addr, V|alidatio|
|000035e0| 6e 53 74 72 69 6e 67 2c | 20 51 75 65 72 79 4e 75 |nString,| QueryNu|
|000035f0| 6d 2c 20 2b 2b 50 61 63 | 6b 65 74 4e 75 6d 2c 20 |m, ++Pac|ketNum, |
|00003600| 46 69 6e 61 6c 50 61 63 | 6b 65 74 29 3b 0d 0a 09 |FinalPac|ket);...|
|00003610| 7d 0d 0a 09 65 6c 73 65 | 0d 0a 09 7b 0d 0a 09 09 |}...else|...{....|
|00003620| 4c 6f 67 28 22 55 64 70 | 53 65 72 76 65 72 51 75 |Log("Udp|ServerQu|
|00003630| 65 72 79 3a 20 55 6e 6b | 6e 6f 77 6e 20 71 75 65 |ery: Unk|nown que|
|00003640| 72 79 3a 20 22 24 51 75 | 65 72 79 54 79 70 65 29 |ry: "$Qu|eryType)|
|00003650| 3b 0d 0a 09 7d 0d 0a 09 | 69 66 28 20 21 52 65 73 |;...}...|if( !Res|
|00003660| 75 6c 74 20 29 0d 0a 09 | 09 4c 6f 67 28 22 55 64 |ult )...|.Log("Ud|
|00003670| 70 53 65 72 76 65 72 51 | 75 65 72 79 3a 20 45 72 |pServerQ|uery: Er|
|00003680| 72 6f 72 20 72 65 73 70 | 6f 6e 64 69 6e 67 20 74 |ror resp|onding t|
|00003690| 6f 20 71 75 65 72 79 2e | 22 29 3b 0d 0a 09 72 65 |o query.|");...re|
|000036a0| 74 75 72 6e 20 51 75 65 | 72 79 52 65 73 74 3b 0d |turn Que|ryRest;.|
|000036b0| 0a 7d 0d 0a 0d 0a 2f 2f | 20 53 65 6e 64 51 75 65 |.}....//| SendQue|
|000036c0| 72 79 50 61 63 6b 65 74 | 20 69 73 20 61 20 77 72 |ryPacket| is a wr|
|000036d0| 61 70 70 65 72 20 66 6f | 72 20 53 65 6e 64 54 65 |apper fo|r SendTe|
|000036e0| 78 74 20 74 68 61 74 20 | 61 6c 6c 6f 77 73 20 66 |xt that |allows f|
|000036f0| 6f 72 20 70 61 63 6b 65 | 74 20 6e 75 6d 62 65 72 |or packe|t number|
|00003700| 69 6e 67 2e 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |ing...fu|nction b|
|00003710| 6f 6f 6c 20 53 65 6e 64 | 51 75 65 72 79 50 61 63 |ool Send|QueryPac|
|00003720| 6b 65 74 28 49 70 41 64 | 64 72 20 41 64 64 72 2c |ket(IpAd|dr Addr,|
|00003730| 20 63 6f 65 72 63 65 20 | 73 74 72 69 6e 67 20 53 | coerce |string S|
|00003740| 65 6e 64 53 74 72 69 6e | 67 2c 20 69 6e 74 20 51 |endStrin|g, int Q|
|00003750| 75 65 72 79 4e 75 6d 2c | 20 69 6e 74 20 50 61 63 |ueryNum,| int Pac|
|00003760| 6b 65 74 4e 75 6d 2c 20 | 73 74 72 69 6e 67 20 46 |ketNum, |string F|
|00003770| 69 6e 61 6c 50 61 63 6b | 65 74 29 0d 0a 7b 0d 0a |inalPack|et)..{..|
|00003780| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 52 65 73 75 |.local b|ool Resu|
|00003790| 6c 74 3b 0d 0a 09 69 66 | 20 28 46 69 6e 61 6c 50 |lt;...if| (FinalP|
|000037a0| 61 63 6b 65 74 20 3d 3d | 20 22 66 69 6e 61 6c 22 |acket ==| "final"|
|000037b0| 29 20 7b 0d 0a 09 09 53 | 65 6e 64 53 74 72 69 6e |) {....S|endStrin|
|000037c0| 67 20 3d 20 53 65 6e 64 | 53 74 72 69 6e 67 24 22 |g = Send|String$"|
|000037d0| 5c 5c 66 69 6e 61 6c 5c | 5c 22 3b 0d 0a 09 7d 0d |\\final\|\";...}.|
|000037e0| 0a 09 53 65 6e 64 53 74 | 72 69 6e 67 20 3d 20 53 |..SendSt|ring = S|
|000037f0| 65 6e 64 53 74 72 69 6e | 67 24 22 5c 5c 71 75 65 |endStrin|g$"\\que|
|00003800| 72 79 69 64 5c 5c 22 24 | 51 75 65 72 79 4e 75 6d |ryid\\"$|QueryNum|
|00003810| 24 22 2e 22 24 50 61 63 | 6b 65 74 4e 75 6d 3b 0d |$"."$Pac|ketNum;.|
|00003820| 0a 0d 0a 09 52 65 73 75 | 6c 74 20 3d 20 53 65 6e |....Resu|lt = Sen|
|00003830| 64 54 65 78 74 28 41 64 | 64 72 2c 20 53 65 6e 64 |dText(Ad|dr, Send|
|00003840| 53 74 72 69 6e 67 29 3b | 0d 0a 0d 0a 09 72 65 74 |String);|.....ret|
|00003850| 75 72 6e 20 52 65 73 75 | 6c 74 3b 0d 0a 7d 0d 0a |urn Resu|lt;..}..|
|00003860| 0d 0a 00 00 00 4f 02 00 | 0a 09 5c 01 00 00 1d 26 |.....O..|..\....&|
|00003870| 00 00 b7 02 00 00 0f 00 | 02 70 70 70 1f 5c 70 6c |........|.ppp.\pl|
|00003880| 61 79 65 72 5f 00 53 00 | 08 16 1f 5c 00 16 19 19 |ayer_.S.|...\....|
|00003890| 00 0a 05 00 04 01 99 05 | 00 00 01 b0 16 0f 00 02 |........|........|
|000038a0| 70 70 70 70 00 02 1f 5c | 66 72 61 67 73 5f 00 16 |pppp...\|frags_..|
|000038b0| 53 00 08 16 1f 5c 00 16 | 53 44 19 19 00 0a 05 00 |S....\..|SD......|
|000038c0| 04 01 99 05 00 04 01 b1 | 16 0f 00 02 70 70 70 70 |........|....pppp|
|000038d0| 00 02 1f 5c 70 69 6e 67 | 5f 00 16 53 00 08 16 1f |...\ping|_..S....|
|000038e0| 5c 00 16 19 00 0a 0f 00 | 00 1b 29 1f 47 45 54 50 |\.......|..).GETP|
|000038f0| 49 4e 47 00 16 16 0f 00 | 02 70 70 70 70 00 02 1f |ING.....|.pppp...|
|00003900| 5c 74 65 61 6d 5f 00 16 | 53 00 08 16 1f 5c 00 16 |\team_..|S....\..|
|00003910| 52 19 19 00 0a 05 00 04 | 01 99 05 00 01 01 aa 16 |R.......|........|
|00003920| 0f 00 02 70 70 70 70 00 | 02 1f 5c 6d 65 73 68 5f |...pppp.|..\mesh_|
|00003930| 00 16 53 00 08 16 1f 5c | 00 16 19 00 0a 05 00 00 |..S....\|........|
|00003940| 01 b5 16 07 a5 01 72 19 | 00 0a 05 00 04 01 a3 2a |......r.|.......*|
|00003950| 16 19 00 0a 15 00 00 1b | 20 00 0a 00 47 01 00 48 |........| ...G..H|
|00003960| 01 16 0f 00 02 70 70 70 | 70 00 02 1f 5c 73 6b 69 |.....ppp|p...\ski|
|00003970| 6e 5f 00 16 53 00 08 16 | 1f 5c 00 16 00 47 01 16 |n_..S...|.\...G..|
|00003980| 0f 00 02 70 70 70 70 00 | 02 1f 5c 66 61 63 65 5f |...pppp.|..\face_|
|00003990| 00 16 53 00 08 16 1f 5c | 00 16 00 48 01 16 06 fe |..S....\|...H....|
|000039a0| 01 0f 00 02 70 70 70 70 | 00 02 1f 5c 73 6b 69 6e |....pppp|...\skin|
|000039b0| 5f 00 16 53 00 08 16 1f | 5c 00 16 56 19 00 0a 05 |_..S....|\..V....|
|000039c0| 00 04 01 a3 16 0f 00 02 | 70 70 70 00 02 1f 5c 66 |........|ppp...\f|
|000039d0| 61 63 65 5f 00 16 53 00 | 08 16 1f 5c 4e 6f 6e 65 |ace_..S.|...\None|
|000039e0| 00 16 07 45 02 19 19 00 | 0a 05 00 04 01 99 06 00 |...E....|........|
|000039f0| 04 2d 01 af 0f 00 02 70 | 70 70 00 02 1f 5c 6e 67 |.-.....p|pp...\ng|
|00003a00| 73 65 63 72 65 74 5f 00 | 16 53 00 08 16 1f 5c 62 |secret_.|.S....\b|
|00003a10| 6f 74 00 16 06 af 02 07 | 84 02 19 00 0a 06 00 04 |ot......|........|
|00003a20| 2d 01 b6 0f 00 02 70 70 | 70 00 02 1f 5c 6e 67 73 |-.....pp|p...\ngs|
|00003a30| 65 63 72 65 74 5f 00 16 | 53 00 08 16 1f 5c 74 72 |ecret_..|S....\tr|
|00003a40| 75 65 00 16 06 af 02 0f | 00 02 70 70 70 00 02 1f |ue......|..ppp...|
|00003a50| 5c 6e 67 73 65 63 72 65 | 74 5f 00 16 53 00 08 16 |\ngsecre|t_..S...|
|00003a60| 1f 5c 66 61 6c 73 65 00 | 16 04 00 02 04 0b 00 00 |.\false.|........|
|00003a70| 00 02 00 00 00 00 00 0d | 01 00 00 00 80 05 40 00 |........|......@.|
|00003a80| 00 00 00 16 01 00 00 00 | 80 05 40 00 00 95 00 4a |........|..@....J|
|00003a90| 02 50 02 02 ff ff ff ff | ff ff ff ff 00 00 00 00 |.P......|........|
|00003aa0| 00 01 00 00 00 00 00 00 | ff ff ff ff ff ff ff ff |........|........|
|00003ab0| ff ff 00 00 00 00 1e 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 06 4e 02 01 00 00 |........|...N....|
|00003ad0| 00 66 00 d9 40 95 01 00 | 00 00 36 16 1f 85 18 00 |.f..@...|..6.....|
|00003ae0| 00 00 00 36 59 f4 96 18 | 00 00 00 00 36 59 f4 96 |...6Y...|....6Y..|
|00003af0| 18 00 00 00 00 36 59 f4 | 96 18 00 00 00 00 36 59 |.....6Y.|......6Y|
|00003b00| f4 96 04 16 1a 0c 0d 96 | 15 2b 22 01 00 00 00 1f |........|.+".....|
|00003b10| 22 fc 6c 00 00 23 06 12 | 14 01 00 00 00 00 57 02 |".l..#..|......W.|
|00003b20| 00 4d 02 03 48 01 00 00 | e6 23 00 00 ed 00 00 00 |.M..H...|.#......|
|00003b30| 0f 00 16 19 19 01 87 05 | 00 04 01 8c 06 00 00 1b |........|........|
|00003b40| 03 16 07 81 00 7b 19 19 | 19 01 87 05 00 04 01 8c |.....{..|........|
|00003b50| 05 00 04 01 94 05 00 00 | 01 a0 1f 00 16 0f 00 16 |........|........|
|00003b60| 70 70 00 16 1f 5c 41 64 | 6d 69 6e 4e 61 6d 65 5c |pp...\Ad|minName\|
|00003b70| 00 16 19 19 19 01 87 05 | 00 04 01 8c 05 00 04 01 |........|........|
|00003b80| 94 05 00 00 01 a0 16 07 | e5 00 7b 19 19 19 01 87 |........|..{.....|
|00003b90| 05 00 04 01 8c 05 00 04 | 01 94 05 00 00 01 a1 1f |........|........|
|00003ba0| 00 16 0f 00 16 70 70 00 | 16 1f 5c 41 64 6d 69 6e |.....pp.|..\Admin|
|00003bb0| 45 4d 61 69 6c 5c 00 16 | 19 19 19 01 87 05 00 04 |EMail\..|........|
|00003bc0| 01 8c 05 00 04 01 94 05 | 00 00 01 a1 16 04 00 16 |........|........|
|00003bd0| 04 0b 00 00 00 02 00 00 | 00 00 00 44 02 00 69 01 |........|...D..i.|
|00003be0| 01 f6 00 00 00 84 19 00 | 00 74 00 00 00 07 27 00 |........|.t....'.|
|00003bf0| 7a 00 58 01 1f 66 69 6e | 61 6c 00 16 0f 00 1b 70 |z.X..fin|al.....p|
|00003c00| 00 1b 1f 5c 66 69 6e 61 | 6c 5c 00 16 0f 00 1b 70 |...\fina|l\.....p|
|00003c10| 70 70 70 00 1b 1f 5c 71 | 75 65 72 79 69 64 5c 00 |ppp...\q|ueryid\.|
|00003c20| 16 53 00 5a 01 16 1f 2e | 00 16 53 00 59 01 16 14 |.S.Z....|..S.Y...|
|00003c30| 2d 00 3e 1b 0b 00 69 01 | 00 1b 16 04 2d 00 3e 04 |-.>...i.|....-.>.|
|00003c40| 0b 00 00 00 02 00 00 00 | 00 00 4f 01 01 00 00 00 |........|..O.....|
|00003c50| 80 05 40 00 00 00 00 00 | 00 00 00 00 00 00 51 bf |..@.....|......Q.|
|00003c60| 01 2f 2f 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//=====|========|
|00003c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003c80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003c90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ca0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003cb0| 0d 0a 2f 2f 20 55 64 70 | 53 65 72 76 65 72 51 75 |..// Udp|ServerQu|
|00003cc0| 65 72 79 0d 0a 2f 2f 0d | 0a 2f 2f 20 56 65 72 73 |ery..//.|.// Vers|
|00003cd0| 69 6f 6e 3a 20 31 2e 35 | 0d 0a 2f 2f 0d 0a 2f 2f |ion: 1.5|..//..//|
|00003ce0| 20 54 68 69 73 20 71 75 | 65 72 79 20 73 65 72 76 | This qu|ery serv|
|00003cf0| 65 72 20 69 73 20 63 6f | 6d 70 6c 69 61 6e 74 20 |er is co|mpliant |
|00003d00| 77 69 74 68 20 74 68 65 | 20 47 61 6d 65 53 70 79 |with the| GameSpy|
|00003d10| 20 55 70 6c 69 6e 6b 20 | 53 70 65 63 69 66 69 63 | Uplink |Specific|
|00003d20| 61 74 69 6f 6e 2e 0d 0a | 2f 2f 20 54 68 65 20 73 |ation...|// The s|
|00003d30| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 69 73 20 |pecifica|tion is |
|00003d40| 61 76 61 69 6c 61 62 6c | 65 20 61 74 20 68 74 74 |availabl|e at htt|
|00003d50| 70 3a 2f 2f 77 77 77 2e | 67 61 6d 65 73 70 79 2e |p://www.|gamespy.|
|00003d60| 63 6f 6d 2f 64 65 76 65 | 6c 6f 70 65 72 0d 0a 2f |com/deve|loper../|
|00003d70| 2f 20 61 6e 64 20 6d 69 | 67 68 74 20 62 65 20 6f |/ and mi|ght be o|
|00003d80| 66 20 75 73 65 20 74 6f | 20 70 72 6f 67 61 6d 6d |f use to| progamm|
|00003d90| 65 72 73 20 77 68 6f 20 | 61 72 65 20 77 72 69 74 |ers who |are writ|
|00003da0| 69 6e 67 20 6f 72 20 6d | 61 69 6e 74 61 69 6e 69 |ing or m|aintaini|
|00003db0| 6e 67 0d 0a 2f 2f 20 74 | 68 65 69 72 20 6f 77 6e |ng..// t|heir own|
|00003dc0| 20 73 74 61 74 20 67 61 | 74 68 65 72 69 6e 67 2f | stat ga|thering/|
|00003dd0| 67 61 6d 65 20 71 75 65 | 72 79 69 6e 67 20 73 6f |game que|rying so|
|00003de0| 66 74 77 61 72 65 2e 0d | 0a 2f 2f 0d 0a 2f 2f 20 |ftware..|.//..// |
|00003df0| 4e 6f 74 65 3a 20 43 75 | 72 72 65 6e 74 6c 79 2c |Note: Cu|rrently,|
|00003e00| 20 53 65 6e 64 54 65 78 | 74 20 72 65 74 75 72 6e | SendTex|t return|
|00003e10| 73 20 66 61 6c 73 65 20 | 69 66 20 73 75 63 63 65 |s false |if succe|
|00003e20| 73 73 66 75 6c 2e 0d 0a | 2f 2f 0d 0a 2f 2f 20 46 |ssful...|//..// F|
|00003e30| 75 6c 6c 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |ull docu|mentatio|
|00003e40| 6e 20 6f 6e 20 74 68 69 | 73 20 63 6c 61 73 73 20 |n on thi|s class |
|00003e50| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 61 74 20 |is avail|able at |
|00003e60| 68 74 74 70 3a 2f 2f 75 | 6e 72 65 61 6c 2e 65 70 |http://u|nreal.ep|
|00003e70| 69 63 67 61 6d 65 73 2e | 63 6f 6d 2f 0d 0a 2f 2f |icgames.|com/..//|
|00003e80| 0d 0a 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..//====|========|
|00003e90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ea0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003eb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ec0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ed0| 3d 0d 0a 63 6c 61 73 73 | 20 55 64 70 53 65 72 76 |=..class| UdpServ|
|00003ee0| 65 72 51 75 65 72 79 20 | 65 78 74 65 6e 64 73 20 |erQuery |extends |
|00003ef0| 55 64 70 4c 69 6e 6b 20 | 63 6f 6e 66 69 67 3b 0d |UdpLink |config;.|
|00003f00| 0a 0d 0a 2f 2f 20 47 61 | 6d 65 20 53 65 72 76 65 |...// Ga|me Serve|
|00003f10| 72 20 43 6f 6e 66 69 67 | 2e 0d 0a 76 61 72 28 29 |r Config|...var()|
|00003f20| 20 6e 61 6d 65 09 09 09 | 09 09 51 75 65 72 79 4e | name...|..QueryN|
|00003f30| 61 6d 65 3b 09 09 09 2f | 2f 20 4e 61 6d 65 20 74 |ame;.../|/ Name t|
|00003f40| 6f 20 73 65 74 20 74 68 | 69 73 20 6f 62 6a 65 63 |o set th|is objec|
|00003f50| 74 27 73 20 54 61 67 20 | 74 6f 2e 0d 0a 76 61 72 |t's Tag |to...var|
|00003f60| 20 69 6e 74 09 09 09 09 | 09 20 20 20 20 43 75 72 | int....|. Cur|
|00003f70| 72 65 6e 74 51 75 65 72 | 79 4e 75 6d 3b 09 2f 2f |rentQuer|yNum;.//|
|00003f80| 20 51 75 65 72 79 20 49 | 44 20 4e 75 6d 62 65 72 | Query I|D Number|
|00003f90| 2e 0d 0a 76 61 72 20 67 | 6c 6f 62 61 6c 63 6f 6e |...var g|lobalcon|
|00003fa0| 66 69 67 20 73 74 72 69 | 6e 67 09 09 47 61 6d 65 |fig stri|ng..Game|
|00003fb0| 4e 61 6d 65 3b 0d 0a 2f | 2f 63 72 74 0d 0a 76 61 |Name;../|/crt..va|
|00003fc0| 72 20 73 74 72 69 6e 67 | 20 52 65 70 6c 79 44 61 |r string| ReplyDa|
|00003fd0| 74 61 3b 0d 0a 0d 0a 76 | 61 72 20 67 6c 6f 62 61 |ta;....v|ar globa|
|00003fe0| 6c 63 6f 6e 66 69 67 20 | 69 6e 74 09 09 4d 69 6e |lconfig |int..Min|
|00003ff0| 4e 65 74 56 65 72 3b 0d | 0a 0d 0a 2f 2f 20 49 6e |NetVer;.|...// In|
|00004000| 69 74 69 61 6c 69 7a 65 | 2e 0d 0a 66 75 6e 63 74 |itialize|...funct|
|00004010| 69 6f 6e 20 50 72 65 42 | 65 67 69 6e 50 6c 61 79 |ion PreB|eginPlay|
|00004020| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |()..{...|local in|
|00004030| 74 20 62 6f 75 6e 64 70 | 6f 72 74 3b 0d 0a 0d 0a |t boundp|ort;....|
|00004040| 09 2f 2f 20 53 65 74 20 | 74 68 65 20 54 61 67 0d |.// Set |the Tag.|
|00004050| 0a 09 54 61 67 20 3d 20 | 51 75 65 72 79 4e 61 6d |..Tag = |QueryNam|
|00004060| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 42 69 6e 64 20 74 |e;...../|/ Bind t|
|00004070| 68 65 20 6c 69 73 74 65 | 6e 20 73 6f 63 6b 65 74 |he liste|n socket|
|00004080| 0d 0a 09 62 6f 75 6e 64 | 70 6f 72 74 20 3d 20 42 |...bound|port = B|
|00004090| 69 6e 64 50 6f 72 74 28 | 4c 65 76 65 6c 2e 47 61 |indPort(|Level.Ga|
|000040a0| 6d 65 2e 47 65 74 53 65 | 72 76 65 72 50 6f 72 74 |me.GetSe|rverPort|
|000040b0| 28 29 2c 20 74 72 75 65 | 29 3b 0d 0a 09 69 66 28 |(), true|);...if(|
|000040c0| 20 62 6f 75 6e 64 70 6f | 72 74 20 3d 3d 20 30 20 | boundpo|rt == 0 |
|000040d0| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 67 28 22 55 64 |)...{...|.Log("Ud|
|000040e0| 70 53 65 72 76 65 72 51 | 75 65 72 79 3a 20 50 6f |pServerQ|uery: Po|
|000040f0| 72 74 20 66 61 69 6c 65 | 64 20 74 6f 20 62 69 6e |rt faile|d to bin|
|00004100| 64 2e 22 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |d.");...|.return;|
|00004110| 0d 0a 09 7d 0d 0a 09 4c | 6f 67 28 22 55 64 70 53 |...}...L|og("UdpS|
|00004120| 65 72 76 65 72 51 75 65 | 72 79 28 63 72 74 29 3a |erverQue|ry(crt):|
|00004130| 20 50 6f 72 74 20 22 24 | 62 6f 75 6e 64 70 6f 72 | Port "$|boundpor|
|00004140| 74 24 22 20 73 75 63 63 | 65 73 73 66 75 6c 6c 79 |t$" succ|essfully|
|00004150| 20 62 6f 75 6e 64 2e 22 | 29 3b 0d 0a 7d 0d 0a 0d | bound."|);..}...|
|00004160| 0a 66 75 6e 63 74 69 6f | 6e 20 50 6f 73 74 42 65 |.functio|n PostBe|
|00004170| 67 69 6e 50 6c 61 79 28 | 29 0d 0a 7b 0d 0a 09 6c |ginPlay(|)..{...l|
|00004180| 6f 63 61 6c 20 55 64 70 | 42 65 61 63 6f 6e 09 42 |ocal Udp|Beacon.B|
|00004190| 65 61 63 6f 6e 3b 0d 0a | 0d 0a 09 66 6f 72 65 61 |eacon;..|...forea|
|000041a0| 63 68 20 41 6c 6c 41 63 | 74 6f 72 73 28 63 6c 61 |ch AllAc|tors(cla|
|000041b0| 73 73 27 55 64 70 42 65 | 61 63 6f 6e 27 2c 20 42 |ss'UdpBe|acon', B|
|000041c0| 65 61 63 6f 6e 29 0d 0a | 09 7b 0d 0a 09 09 42 65 |eacon)..|.{....Be|
|000041d0| 61 63 6f 6e 2e 55 64 70 | 53 65 72 76 65 72 51 75 |acon.Udp|ServerQu|
|000041e0| 65 72 79 50 6f 72 74 20 | 3d 20 50 6f 72 74 3b 0d |eryPort |= Port;.|
|000041f0| 0a 09 7d 0d 0a 09 53 75 | 70 65 72 2e 50 6f 73 74 |..}...Su|per.Post|
|00004200| 42 65 67 69 6e 50 6c 61 | 79 28 29 3b 0d 0a 7d 0d |BeginPla|y();..}.|
|00004210| 0a 0d 0a 2f 2f 20 52 65 | 63 65 69 76 65 64 20 61 |...// Re|ceived a|
|00004220| 20 71 75 65 72 79 20 72 | 65 71 75 65 73 74 2e 0d | query r|equest..|
|00004230| 0a 65 76 65 6e 74 20 52 | 65 63 65 69 76 65 64 54 |.event R|eceivedT|
|00004240| 65 78 74 28 20 49 70 41 | 64 64 72 20 41 64 64 72 |ext( IpA|ddr Addr|
|00004250| 2c 20 73 74 72 69 6e 67 | 20 54 65 78 74 20 29 0d |, string| Text ).|
|00004260| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |.{...loc|al strin|
|00004270| 67 20 51 75 65 72 79 3b | 0d 0a 09 6c 6f 63 61 6c |g Query;|...local|
|00004280| 20 62 6f 6f 6c 20 51 75 | 65 72 79 52 65 6d 61 69 | bool Qu|eryRemai|
|00004290| 6e 69 6e 67 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |ning;...|local in|
|000042a0| 74 20 20 51 75 65 72 79 | 4e 75 6d 2c 20 50 61 63 |t Query|Num, Pac|
|000042b0| 6b 65 74 4e 75 6d 3b 0d | 0a 0d 0a 09 2f 2f 20 41 |ketNum;.|....// A|
|000042c0| 73 73 69 67 6e 20 74 68 | 69 73 20 70 61 63 6b 65 |ssign th|is packe|
|000042d0| 74 20 61 20 75 6e 69 71 | 75 65 20 76 61 6c 75 65 |t a uniq|ue value|
|000042e0| 20 66 72 6f 6d 20 31 20 | 74 6f 20 31 30 30 0d 0a | from 1 |to 100..|
|000042f0| 09 43 75 72 72 65 6e 74 | 51 75 65 72 79 4e 75 6d |.Current|QueryNum|
|00004300| 2b 2b 3b 0d 0a 09 69 66 | 20 28 43 75 72 72 65 6e |++;...if| (Curren|
|00004310| 74 51 75 65 72 79 4e 75 | 6d 20 3e 20 31 30 30 29 |tQueryNu|m > 100)|
|00004320| 0d 0a 09 09 43 75 72 72 | 65 6e 74 51 75 65 72 79 |....Curr|entQuery|
|00004330| 4e 75 6d 20 3d 20 31 3b | 0d 0a 09 51 75 65 72 79 |Num = 1;|...Query|
|00004340| 4e 75 6d 20 3d 20 43 75 | 72 72 65 6e 74 51 75 65 |Num = Cu|rrentQue|
|00004350| 72 79 4e 75 6d 3b 0d 0a | 0d 0a 09 51 75 65 72 79 |ryNum;..|...Query|
|00004360| 20 3d 20 54 65 78 74 3b | 0d 0a 09 69 66 20 28 51 | = Text;|...if (Q|
|00004370| 75 65 72 79 20 3d 3d 20 | 22 22 29 09 09 2f 2f 20 |uery == |"")..// |
|00004380| 49 66 20 74 68 65 20 73 | 74 72 69 6e 67 20 69 73 |If the s|tring is|
|00004390| 20 65 6d 70 74 79 2c 20 | 64 6f 6e 27 74 20 70 61 | empty, |don't pa|
|000043a0| 72 73 65 20 69 74 0d 0a | 09 09 51 75 65 72 79 52 |rse it..|..QueryR|
|000043b0| 65 6d 61 69 6e 69 6e 67 | 20 3d 20 66 61 6c 73 65 |emaining| = false|
|000043c0| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 51 75 65 72 |;...else|....Quer|
|000043d0| 79 52 65 6d 61 69 6e 69 | 6e 67 20 3d 20 74 72 75 |yRemaini|ng = tru|
|000043e0| 65 3b 0d 0a 09 2f 2f 63 | 72 74 0d 0a 09 50 61 63 |e;...//c|rt...Pac|
|000043f0| 6b 65 74 4e 75 6d 20 3d | 20 20 30 3b 0d 0a 09 52 |ketNum =| 0;...R|
|00004400| 65 70 6c 79 44 61 74 61 | 20 3d 20 22 22 3b 0d 0a |eplyData| = "";..|
|00004410| 09 77 68 69 6c 65 20 28 | 51 75 65 72 79 52 65 6d |.while (|QueryRem|
|00004420| 61 69 6e 69 6e 67 29 20 | 7b 0d 0a 09 09 51 75 65 |aining) |{....Que|
|00004430| 72 79 20 3d 20 50 61 72 | 73 65 51 75 65 72 79 28 |ry = Par|seQuery(|
|00004440| 41 64 64 72 2c 20 51 75 | 65 72 79 2c 20 51 75 65 |Addr, Qu|ery, Que|
|00004450| 72 79 4e 75 6d 2c 20 50 | 61 63 6b 65 74 4e 75 6d |ryNum, P|acketNum|
|00004460| 29 3b 0d 0a 09 09 69 66 | 20 28 51 75 65 72 79 20 |);....if| (Query |
|00004470| 3d 3d 20 22 22 29 0d 0a | 09 09 09 51 75 65 72 79 |== "")..|...Query|
|00004480| 52 65 6d 61 69 6e 69 6e | 67 20 3d 20 66 61 6c 73 |Remainin|g = fals|
|00004490| 65 3b 0d 0a 09 09 65 6c | 73 65 0d 0a 09 09 09 51 |e;....el|se.....Q|
|000044a0| 75 65 72 79 52 65 6d 61 | 69 6e 69 6e 67 20 3d 20 |ueryRema|ining = |
|000044b0| 74 72 75 65 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |true;...|}..}....|
|000044c0| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 50 61 |function| bool Pa|
|000044d0| 72 73 65 4e 65 78 74 51 | 75 65 72 79 28 20 73 74 |rseNextQ|uery( st|
|000044e0| 72 69 6e 67 20 51 75 65 | 72 79 2c 20 6f 75 74 20 |ring Que|ry, out |
|000044f0| 73 74 72 69 6e 67 20 51 | 75 65 72 79 54 79 70 65 |string Q|ueryType|
|00004500| 2c 20 6f 75 74 20 73 74 | 72 69 6e 67 20 51 75 65 |, out st|ring Que|
|00004510| 72 79 56 61 6c 75 65 2c | 20 6f 75 74 20 73 74 72 |ryValue,| out str|
|00004520| 69 6e 67 20 51 75 65 72 | 79 52 65 73 74 2c 20 6f |ing Quer|yRest, o|
|00004530| 75 74 20 69 6e 74 20 62 | 46 69 6e 61 6c 50 61 63 |ut int b|FinalPac|
|00004540| 6b 65 74 20 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ket )..{|...local|
|00004550| 20 73 74 72 69 6e 67 20 | 54 65 6d 70 51 75 65 72 | string |TempQuer|
|00004560| 79 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 43 |y;...loc|al int C|
|00004570| 6c 6f 73 69 6e 67 53 6c | 61 73 68 3b 0d 0a 0d 0a |losingSl|ash;....|
|00004580| 09 69 66 20 28 51 75 65 | 72 79 20 3d 3d 20 22 22 |.if (Que|ry == ""|
|00004590| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |)....ret|urn fals|
|000045a0| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 51 75 65 72 79 20 |e;...../|/ Query |
|000045b0| 73 68 6f 75 6c 64 20 62 | 65 3a 0d 0a 09 2f 2f 20 |should b|e:...// |
|000045c0| 20 20 5c 5b 74 79 70 65 | 5d 5c 3c 76 61 6c 75 65 | \[type|]\<value|
|000045d0| 3e 0d 0a 09 69 66 20 28 | 4c 65 66 74 28 51 75 65 |>...if (|Left(Que|
|000045e0| 72 79 2c 20 31 29 20 3d | 3d 20 22 5c 5c 22 29 0d |ry, 1) =|= "\\").|
|000045f0| 0a 09 7b 0d 0a 09 09 2f | 2f 20 43 68 65 63 6b 20 |..{..../|/ Check |
|00004600| 74 6f 20 73 65 65 20 69 | 66 20 63 6c 6f 73 65 64 |to see i|f closed|
|00004610| 2e 0d 0a 09 09 43 6c 6f | 73 69 6e 67 53 6c 61 73 |.....Clo|singSlas|
|00004620| 68 20 3d 20 49 6e 53 74 | 72 28 52 69 67 68 74 28 |h = InSt|r(Right(|
|00004630| 51 75 65 72 79 2c 20 4c | 65 6e 28 51 75 65 72 79 |Query, L|en(Query|
|00004640| 29 2d 31 29 2c 20 22 5c | 5c 22 29 3b 0d 0a 09 09 |)-1), "\|\");....|
|00004650| 69 66 20 28 43 6c 6f 73 | 69 6e 67 53 6c 61 73 68 |if (Clos|ingSlash|
|00004660| 20 3d 3d 20 30 29 0d 0a | 09 09 09 72 65 74 75 72 | == 0)..|...retur|
|00004670| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 09 54 65 |n false;|......Te|
|00004680| 6d 70 51 75 65 72 79 20 | 3d 20 51 75 65 72 79 3b |mpQuery |= Query;|
|00004690| 0d 0a 0d 0a 09 09 2f 2f | 20 51 75 65 72 79 20 6c |......//| Query l|
|000046a0| 6f 6f 6b 73 20 6c 69 6b | 65 3a 0d 0a 09 09 2f 2f |ooks lik|e:....//|
|000046b0| 20 20 5c 5b 74 79 70 65 | 5d 5c 0d 0a 09 09 51 75 | \[type|]\....Qu|
|000046c0| 65 72 79 54 79 70 65 20 | 3d 20 52 69 67 68 74 28 |eryType |= Right(|
|000046d0| 51 75 65 72 79 2c 20 4c | 65 6e 28 51 75 65 72 79 |Query, L|en(Query|
|000046e0| 29 2d 31 29 3b 0d 0a 09 | 09 51 75 65 72 79 54 79 |)-1);...|.QueryTy|
|000046f0| 70 65 20 3d 20 4c 65 66 | 74 28 51 75 65 72 79 54 |pe = Lef|t(QueryT|
|00004700| 79 70 65 2c 20 43 6c 6f | 73 69 6e 67 53 6c 61 73 |ype, Clo|singSlas|
|00004710| 68 29 3b 0d 0a 0d 0a 09 | 09 51 75 65 72 79 52 65 |h);.....|.QueryRe|
|00004720| 73 74 20 3d 20 52 69 67 | 68 74 28 51 75 65 72 79 |st = Rig|ht(Query|
|00004730| 2c 20 4c 65 6e 28 51 75 | 65 72 79 29 20 2d 20 28 |, Len(Qu|ery) - (|
|00004740| 4c 65 6e 28 51 75 65 72 | 79 54 79 70 65 29 20 2b |Len(Quer|yType) +|
|00004750| 20 32 29 29 3b 0d 0a 0d | 0a 09 09 69 66 20 28 28 | 2));...|...if ((|
|00004760| 51 75 65 72 79 52 65 73 | 74 20 3d 3d 20 22 22 29 |QueryRes|t == "")|
|00004770| 20 7c 7c 20 28 4c 65 6e | 28 51 75 65 72 79 52 65 | || (Len|(QueryRe|
|00004780| 73 74 29 20 3d 3d 20 31 | 29 29 0d 0a 09 09 7b 0d |st) == 1|))....{.|
|00004790| 0a 09 09 09 62 46 69 6e | 61 6c 50 61 63 6b 65 74 |....bFin|alPacket|
|000047a0| 20 3d 20 31 3b 0d 0a 09 | 09 09 72 65 74 75 72 6e | = 1;...|..return|
|000047b0| 20 74 72 75 65 3b 0d 0a | 09 09 7d 20 65 6c 73 65 | true;..|..} else|
|000047c0| 20 69 66 20 28 4c 65 66 | 74 28 51 75 65 72 79 52 | if (Lef|t(QueryR|
|000047d0| 65 73 74 2c 20 31 29 20 | 3d 3d 20 22 5c 5c 22 29 |est, 1) |== "\\")|
|000047e0| 0d 0a 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|000047f0| 3b 09 2f 2f 20 5c 74 79 | 70 65 5c 5c 0d 0a 0d 0a |;.// \ty|pe\\....|
|00004800| 09 09 2f 2f 20 51 75 65 | 72 79 20 6c 6f 6f 6b 73 |..// Que|ry looks|
|00004810| 20 6c 69 6b 65 3a 0d 0a | 09 09 2f 2f 20 20 5c 74 | like:..|..// \t|
|00004820| 79 70 65 5c 76 61 6c 75 | 65 0d 0a 09 09 43 6c 6f |ype\valu|e....Clo|
|00004830| 73 69 6e 67 53 6c 61 73 | 68 20 3d 20 49 6e 53 74 |singSlas|h = InSt|
|00004840| 72 28 51 75 65 72 79 52 | 65 73 74 2c 20 22 5c 5c |r(QueryR|est, "\\|
|00004850| 22 29 3b 0d 0a 09 09 69 | 66 20 28 43 6c 6f 73 69 |");....i|f (Closi|
|00004860| 6e 67 53 6c 61 73 68 20 | 3e 3d 20 30 29 0d 0a 09 |ngSlash |>= 0)...|
|00004870| 09 09 51 75 65 72 79 56 | 61 6c 75 65 20 3d 20 4c |..QueryV|alue = L|
|00004880| 65 66 74 28 51 75 65 72 | 79 52 65 73 74 2c 20 43 |eft(Quer|yRest, C|
|00004890| 6c 6f 73 69 6e 67 53 6c | 61 73 68 29 3b 0d 0a 09 |losingSl|ash);...|
|000048a0| 09 65 6c 73 65 0d 0a 09 | 09 09 51 75 65 72 79 56 |.else...|..QueryV|
|000048b0| 61 6c 75 65 20 3d 20 51 | 75 65 72 79 52 65 73 74 |alue = Q|ueryRest|
|000048c0| 3b 0d 0a 0d 0a 09 09 51 | 75 65 72 79 52 65 73 74 |;......Q|ueryRest|
|000048d0| 20 3d 20 52 69 67 68 74 | 28 51 75 65 72 79 2c 20 | = Right|(Query, |
|000048e0| 4c 65 6e 28 51 75 65 72 | 79 29 20 2d 20 28 4c 65 |Len(Quer|y) - (Le|
|000048f0| 6e 28 51 75 65 72 79 54 | 79 70 65 29 20 2b 20 4c |n(QueryT|ype) + L|
|00004900| 65 6e 28 51 75 65 72 79 | 56 61 6c 75 65 29 20 2b |en(Query|Value) +|
|00004910| 20 33 29 29 3b 0d 0a 09 | 09 69 66 20 28 51 75 65 | 3));...|.if (Que|
|00004920| 72 79 52 65 73 74 20 3d | 3d 20 22 22 29 0d 0a 09 |ryRest =|= "")...|
|00004930| 09 7b 0d 0a 09 09 09 62 | 46 69 6e 61 6c 50 61 63 |.{.....b|FinalPac|
|00004940| 6b 65 74 20 3d 20 31 3b | 0d 0a 09 09 09 72 65 74 |ket = 1;|.....ret|
|00004950| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 09 7d 20 65 |urn true|;....} e|
|00004960| 6c 73 65 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 74 |lse.....|return t|
|00004970| 72 75 65 3b 0d 0a 09 7d | 20 65 6c 73 65 20 7b 0d |rue;...}| else {.|
|00004980| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00004990| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |...}..}.|...funct|
|000049a0| 69 6f 6e 20 73 74 72 69 | 6e 67 20 50 61 72 73 65 |ion stri|ng Parse|
|000049b0| 51 75 65 72 79 28 20 49 | 70 41 64 64 72 20 41 64 |Query( I|pAddr Ad|
|000049c0| 64 72 2c 20 63 6f 65 72 | 63 65 20 73 74 72 69 6e |dr, coer|ce strin|
|000049d0| 67 20 51 75 65 72 79 2c | 20 69 6e 74 20 51 75 65 |g Query,| int Que|
|000049e0| 72 79 4e 75 6d 2c 20 6f | 75 74 20 69 6e 74 20 50 |ryNum, o|ut int P|
|000049f0| 61 63 6b 65 74 4e 75 6d | 20 29 0d 0a 7b 0d 0a 09 |acketNum| )..{...|
|00004a00| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 20 51 75 65 |local st|ring Que|
|00004a10| 72 79 54 79 70 65 2c 20 | 51 75 65 72 79 56 61 6c |ryType, |QueryVal|
|00004a20| 75 65 2c 20 51 75 65 72 | 79 52 65 73 74 2c 20 56 |ue, Quer|yRest, V|
|00004a30| 61 6c 69 64 61 74 69 6f | 6e 53 74 72 69 6e 67 3b |alidatio|nString;|
|00004a40| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 52 65 |...local| bool Re|
|00004a50| 73 75 6c 74 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |sult;...|local in|
|00004a60| 74 20 62 46 69 6e 61 6c | 50 61 63 6b 65 74 3b 0d |t bFinal|Packet;.|
|00004a70| 0a 09 0d 0a 09 62 46 69 | 6e 61 6c 50 61 63 6b 65 |.....bFi|nalPacke|
|00004a80| 74 20 3d 20 30 3b 0d 0a | 09 52 65 73 75 6c 74 20 |t = 0;..|.Result |
|00004a90| 3d 20 50 61 72 73 65 4e | 65 78 74 51 75 65 72 79 |= ParseN|extQuery|
|00004aa0| 28 51 75 65 72 79 2c 20 | 51 75 65 72 79 54 79 70 |(Query, |QueryTyp|
|00004ab0| 65 2c 20 51 75 65 72 79 | 56 61 6c 75 65 2c 20 51 |e, Query|Value, Q|
|00004ac0| 75 65 72 79 52 65 73 74 | 2c 20 62 46 69 6e 61 6c |ueryRest|, bFinal|
|00004ad0| 50 61 63 6b 65 74 29 3b | 0d 0a 09 69 66 28 20 21 |Packet);|...if( !|
|00004ae0| 52 65 73 75 6c 74 20 29 | 0d 0a 09 09 72 65 74 75 |Result )|....retu|
|00004af0| 72 6e 20 22 22 3b 0d 0a | 0d 0a 09 2f 2f 4c 6f 67 |rn "";..|...//Log|
|00004b00| 28 22 47 6f 74 20 20 51 | 75 65 72 79 3a 20 22 20 |("Got Q|uery: " |
|00004b10| 20 24 20 51 75 65 72 79 | 4e 75 6d 20 24 20 22 2e | $ Query|Num $ ".|
|00004b20| 22 20 24 20 50 61 63 6b | 65 74 4e 75 6d 20 24 20 |" $ Pack|etNum $ |
|00004b30| 22 3a 22 20 24 20 51 75 | 65 72 79 54 79 70 65 29 |":" $ Qu|eryType)|
|00004b40| 3b 0d 0a 0d 0a 09 69 66 | 28 20 51 75 65 72 79 54 |;.....if|( QueryT|
|00004b50| 79 70 65 3d 3d 22 62 61 | 73 69 63 22 20 29 0d 0a |ype=="ba|sic" )..|
|00004b60| 09 7b 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 53 |.{....Re|sult = S|
|00004b70| 65 6e 64 51 75 65 72 79 | 50 61 63 6b 65 74 28 41 |endQuery|Packet(A|
|00004b80| 64 64 72 2c 20 47 65 74 | 42 61 73 69 63 28 29 2c |ddr, Get|Basic(),|
|00004b90| 20 51 75 65 72 79 4e 75 | 6d 2c 20 50 61 63 6b 65 | QueryNu|m, Packe|
|00004ba0| 74 4e 75 6d 2c 20 62 46 | 69 6e 61 6c 50 61 63 6b |tNum, bF|inalPack|
|00004bb0| 65 74 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |et);...}|...else |
|00004bc0| 69 66 28 20 51 75 65 72 | 79 54 79 70 65 3d 3d 22 |if( Quer|yType=="|
|00004bd0| 69 6e 66 6f 22 20 29 0d | 0a 09 7b 0d 0a 09 09 52 |info" ).|..{....R|
|00004be0| 65 73 75 6c 74 20 3d 20 | 53 65 6e 64 51 75 65 72 |esult = |SendQuer|
|00004bf0| 79 50 61 63 6b 65 74 28 | 41 64 64 72 2c 20 47 65 |yPacket(|Addr, Ge|
|00004c00| 74 49 6e 66 6f 28 29 2c | 20 51 75 65 72 79 4e 75 |tInfo(),| QueryNu|
|00004c10| 6d 2c 20 50 61 63 6b 65 | 74 4e 75 6d 2c 20 62 46 |m, Packe|tNum, bF|
|00004c20| 69 6e 61 6c 50 61 63 6b | 65 74 29 3b 0d 0a 09 7d |inalPack|et);...}|
|00004c30| 0d 0a 09 65 6c 73 65 20 | 69 66 28 20 51 75 65 72 |...else |if( Quer|
|00004c40| 79 54 79 70 65 3d 3d 22 | 72 75 6c 65 73 22 20 29 |yType=="|rules" )|
|00004c50| 0d 0a 09 7b 0d 0a 09 09 | 52 65 73 75 6c 74 20 3d |...{....|Result =|
|00004c60| 20 53 65 6e 64 51 75 65 | 72 79 50 61 63 6b 65 74 | SendQue|ryPacket|
|00004c70| 28 41 64 64 72 2c 20 47 | 65 74 52 75 6c 65 73 28 |(Addr, G|etRules(|
|00004c80| 29 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 50 61 63 |), Query|Num, Pac|
|00004c90| 6b 65 74 4e 75 6d 2c 20 | 62 46 69 6e 61 6c 50 61 |ketNum, |bFinalPa|
|00004ca0| 63 6b 65 74 29 3b 0d 0a | 09 7d 0d 0a 09 65 6c 73 |cket);..|.}...els|
|00004cb0| 65 20 69 66 28 20 51 75 | 65 72 79 54 79 70 65 3d |e if( Qu|eryType=|
|00004cc0| 3d 22 70 6c 61 79 65 72 | 73 22 20 29 0d 0a 09 7b |="player|s" )...{|
|00004cd0| 0d 0a 09 09 69 66 28 20 | 4c 65 76 65 6c 2e 47 61 |....if( |Level.Ga|
|00004ce0| 6d 65 2e 4e 75 6d 50 6c | 61 79 65 72 73 20 3e 20 |me.NumPl|ayers > |
|00004cf0| 30 20 29 0d 0a 09 09 09 | 52 65 73 75 6c 74 20 3d |0 ).....|Result =|
|00004d00| 20 53 65 6e 64 50 6c 61 | 79 65 72 73 28 41 64 64 | SendPla|yers(Add|
|00004d10| 72 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 50 61 63 |r, Query|Num, Pac|
|00004d20| 6b 65 74 4e 75 6d 2c 20 | 62 46 69 6e 61 6c 50 61 |ketNum, |bFinalPa|
|00004d30| 63 6b 65 74 29 3b 0d 0a | 09 09 65 6c 73 65 0d 0a |cket);..|..else..|
|00004d40| 09 09 09 52 65 73 75 6c | 74 20 3d 20 53 65 6e 64 |...Resul|t = Send|
|00004d50| 51 75 65 72 79 50 61 63 | 6b 65 74 28 41 64 64 72 |QueryPac|ket(Addr|
|00004d60| 2c 20 22 22 2c 20 51 75 | 65 72 79 4e 75 6d 2c 20 |, "", Qu|eryNum, |
|00004d70| 50 61 63 6b 65 74 4e 75 | 6d 2c 20 62 46 69 6e 61 |PacketNu|m, bFina|
|00004d80| 6c 50 61 63 6b 65 74 29 | 3b 0d 0a 09 7d 0d 0a 09 |lPacket)|;...}...|
|00004d90| 65 6c 73 65 20 69 66 28 | 20 51 75 65 72 79 54 79 |else if(| QueryTy|
|00004da0| 70 65 3d 3d 22 73 74 61 | 74 75 73 22 20 29 0d 0a |pe=="sta|tus" )..|
|00004db0| 09 7b 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 53 |.{....Re|sult = S|
|00004dc0| 65 6e 64 51 75 65 72 79 | 50 61 63 6b 65 74 28 41 |endQuery|Packet(A|
|00004dd0| 64 64 72 2c 20 47 65 74 | 42 61 73 69 63 28 29 2c |ddr, Get|Basic(),|
|00004de0| 20 51 75 65 72 79 4e 75 | 6d 2c 20 50 61 63 6b 65 | QueryNu|m, Packe|
|00004df0| 74 4e 75 6d 2c 20 30 29 | 3b 0d 0a 09 09 52 65 73 |tNum, 0)|;....Res|
|00004e00| 75 6c 74 20 3d 20 53 65 | 6e 64 51 75 65 72 79 50 |ult = Se|ndQueryP|
|00004e10| 61 63 6b 65 74 28 41 64 | 64 72 2c 20 47 65 74 49 |acket(Ad|dr, GetI|
|00004e20| 6e 66 6f 28 29 2c 20 51 | 75 65 72 79 4e 75 6d 2c |nfo(), Q|ueryNum,|
|00004e30| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 30 29 3b 0d | PacketN|um, 0);.|
|00004e40| 0a 09 09 69 66 28 20 4c | 65 76 65 6c 2e 47 61 6d |...if( L|evel.Gam|
|00004e50| 65 2e 4e 75 6d 50 6c 61 | 79 65 72 73 20 3d 3d 20 |e.NumPla|yers == |
|00004e60| 30 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 52 65 73 |0 )....{|.....Res|
|00004e70| 75 6c 74 20 3d 20 53 65 | 6e 64 51 75 65 72 79 50 |ult = Se|ndQueryP|
|00004e80| 61 63 6b 65 74 28 41 64 | 64 72 2c 20 47 65 74 52 |acket(Ad|dr, GetR|
|00004e90| 75 6c 65 73 28 29 2c 20 | 51 75 65 72 79 4e 75 6d |ules(), |QueryNum|
|00004ea0| 2c 20 50 61 63 6b 65 74 | 4e 75 6d 2c 20 62 46 69 |, Packet|Num, bFi|
|00004eb0| 6e 61 6c 50 61 63 6b 65 | 74 29 3b 0d 0a 09 09 7d |nalPacke|t);....}|
|00004ec0| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00004ed0| 09 09 52 65 73 75 6c 74 | 20 3d 20 53 65 6e 64 51 |..Result| = SendQ|
|00004ee0| 75 65 72 79 50 61 63 6b | 65 74 28 41 64 64 72 2c |ueryPack|et(Addr,|
|00004ef0| 20 47 65 74 52 75 6c 65 | 73 28 29 2c 20 51 75 65 | GetRule|s(), Que|
|00004f00| 72 79 4e 75 6d 2c 20 50 | 61 63 6b 65 74 4e 75 6d |ryNum, P|acketNum|
|00004f10| 2c 20 30 29 3b 0d 0a 09 | 09 09 52 65 73 75 6c 74 |, 0);...|..Result|
|00004f20| 20 3d 20 53 65 6e 64 50 | 6c 61 79 65 72 73 28 41 | = SendP|layers(A|
|00004f30| 64 64 72 2c 20 51 75 65 | 72 79 4e 75 6d 2c 20 50 |ddr, Que|ryNum, P|
|00004f40| 61 63 6b 65 74 4e 75 6d | 2c 20 62 46 69 6e 61 6c |acketNum|, bFinal|
|00004f50| 50 61 63 6b 65 74 29 3b | 0d 0a 09 09 7d 0d 0a 09 |Packet);|....}...|
|00004f60| 7d 0d 0a 09 65 6c 73 65 | 20 69 66 28 20 51 75 65 |}...else| if( Que|
|00004f70| 72 79 54 79 70 65 3d 3d | 22 65 63 68 6f 22 20 29 |ryType==|"echo" )|
|00004f80| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 20 52 65 73 70 6f |...{....|// Respo|
|00004f90| 6e 64 20 74 6f 20 61 6e | 20 65 63 68 6f 20 77 69 |nd to an| echo wi|
|00004fa0| 74 68 20 74 68 65 20 73 | 61 6d 65 20 73 74 72 69 |th the s|ame stri|
|00004fb0| 6e 67 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 53 |ng....Re|sult = S|
|00004fc0| 65 6e 64 51 75 65 72 79 | 50 61 63 6b 65 74 28 41 |endQuery|Packet(A|
|00004fd0| 64 64 72 2c 20 22 5c 5c | 65 63 68 6f 5c 5c 22 24 |ddr, "\\|echo\\"$|
|00004fe0| 51 75 65 72 79 56 61 6c | 75 65 2c 20 51 75 65 72 |QueryVal|ue, Quer|
|00004ff0| 79 4e 75 6d 2c 20 50 61 | 63 6b 65 74 4e 75 6d 2c |yNum, Pa|cketNum,|
|00005000| 20 62 46 69 6e 61 6c 50 | 61 63 6b 65 74 29 3b 0d | bFinalP|acket);.|
|00005010| 0a 09 7d 0d 0a 09 65 6c | 73 65 20 69 66 28 20 51 |..}...el|se if( Q|
|00005020| 75 65 72 79 54 79 70 65 | 3d 3d 22 73 65 63 75 72 |ueryType|=="secur|
|00005030| 65 22 20 29 0d 0a 09 7b | 0d 0a 09 09 56 61 6c 69 |e" )...{|....Vali|
|00005040| 64 61 74 69 6f 6e 53 74 | 72 69 6e 67 20 3d 20 22 |dationSt|ring = "|
|00005050| 5c 5c 76 61 6c 69 64 61 | 74 65 5c 5c 22 24 56 61 |\\valida|te\\"$Va|
|00005060| 6c 69 64 61 74 65 28 51 | 75 65 72 79 56 61 6c 75 |lidate(Q|ueryValu|
|00005070| 65 2c 20 47 61 6d 65 4e | 61 6d 65 29 3b 0d 0a 09 |e, GameN|ame);...|
|00005080| 09 52 65 73 75 6c 74 20 | 3d 20 53 65 6e 64 51 75 |.Result |= SendQu|
|00005090| 65 72 79 50 61 63 6b 65 | 74 28 41 64 64 72 2c 20 |eryPacke|t(Addr, |
|000050a0| 56 61 6c 69 64 61 74 69 | 6f 6e 53 74 72 69 6e 67 |Validati|onString|
|000050b0| 2c 20 51 75 65 72 79 4e | 75 6d 2c 20 50 61 63 6b |, QueryN|um, Pack|
|000050c0| 65 74 4e 75 6d 2c 20 62 | 46 69 6e 61 6c 50 61 63 |etNum, b|FinalPac|
|000050d0| 6b 65 74 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |ket);...|}...else|
|000050e0| 20 69 66 28 20 51 75 65 | 72 79 54 79 70 65 3d 3d | if( Que|ryType==|
|000050f0| 22 6c 65 76 65 6c 5f 70 | 72 6f 70 65 72 74 79 22 |"level_p|roperty"|
|00005100| 20 29 0d 0a 09 7b 0d 0a | 09 09 52 65 73 75 6c 74 | )...{..|..Result|
|00005110| 20 3d 20 53 65 6e 64 51 | 75 65 72 79 50 61 63 6b | = SendQ|ueryPack|
|00005120| 65 74 28 41 64 64 72 2c | 20 47 65 74 4c 65 76 65 |et(Addr,| GetLeve|
|00005130| 6c 50 72 6f 70 65 72 74 | 79 28 51 75 65 72 79 56 |lPropert|y(QueryV|
|00005140| 61 6c 75 65 29 2c 20 51 | 75 65 72 79 4e 75 6d 2c |alue), Q|ueryNum,|
|00005150| 20 50 61 63 6b 65 74 4e | 75 6d 2c 20 62 46 69 6e | PacketN|um, bFin|
|00005160| 61 6c 50 61 63 6b 65 74 | 29 3b 0d 0a 09 7d 0d 0a |alPacket|);...}..|
|00005170| 09 65 6c 73 65 20 69 66 | 28 20 51 75 65 72 79 54 |.else if|( QueryT|
|00005180| 79 70 65 3d 3d 22 67 61 | 6d 65 5f 70 72 6f 70 65 |ype=="ga|me_prope|
|00005190| 72 74 79 22 20 29 0d 0a | 09 7b 0d 0a 09 09 09 52 |rty" )..|.{.....R|
|000051a0| 65 73 75 6c 74 20 3d 20 | 53 65 6e 64 51 75 65 72 |esult = |SendQuer|
|000051b0| 79 50 61 63 6b 65 74 28 | 41 64 64 72 2c 20 47 65 |yPacket(|Addr, Ge|
|000051c0| 74 47 61 6d 65 50 72 6f | 70 65 72 74 79 28 51 75 |tGamePro|perty(Qu|
|000051d0| 65 72 79 56 61 6c 75 65 | 29 2c 20 51 75 65 72 79 |eryValue|), Query|
|000051e0| 4e 75 6d 2c 20 50 61 63 | 6b 65 74 4e 75 6d 2c 20 |Num, Pac|ketNum, |
|000051f0| 62 46 69 6e 61 6c 50 61 | 63 6b 65 74 29 3b 0d 0a |bFinalPa|cket);..|
|00005200| 09 7d 0d 0a 09 65 6c 73 | 65 20 69 66 28 20 51 75 |.}...els|e if( Qu|
|00005210| 65 72 79 54 79 70 65 3d | 3d 22 70 6c 61 79 65 72 |eryType=|="player|
|00005220| 5f 70 72 6f 70 65 72 74 | 79 22 20 29 0d 0a 09 7b |_propert|y" )...{|
|00005230| 0d 0a 09 09 52 65 73 75 | 6c 74 20 3d 20 53 65 6e |....Resu|lt = Sen|
|00005240| 64 51 75 65 72 79 50 61 | 63 6b 65 74 28 41 64 64 |dQueryPa|cket(Add|
|00005250| 72 2c 20 47 65 74 50 6c | 61 79 65 72 50 72 6f 70 |r, GetPl|ayerProp|
|00005260| 65 72 74 79 28 51 75 65 | 72 79 56 61 6c 75 65 29 |erty(Que|ryValue)|
|00005270| 2c 20 51 75 65 72 79 4e | 75 6d 2c 20 50 61 63 6b |, QueryN|um, Pack|
|00005280| 65 74 4e 75 6d 2c 20 62 | 46 69 6e 61 6c 50 61 63 |etNum, b|FinalPac|
|00005290| 6b 65 74 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |ket);...|}...else|
|000052a0| 0d 0a 09 7b 0d 0a 09 09 | 4c 6f 67 28 22 55 64 70 |...{....|Log("Udp|
|000052b0| 53 65 72 76 65 72 51 75 | 65 72 79 3a 20 55 6e 6b |ServerQu|ery: Unk|
|000052c0| 6e 6f 77 6e 20 71 75 65 | 72 79 3a 20 22 24 51 75 |nown que|ry: "$Qu|
|000052d0| 65 72 79 54 79 70 65 29 | 3b 0d 0a 09 7d 0d 0a 09 |eryType)|;...}...|
|000052e0| 69 66 28 20 21 52 65 73 | 75 6c 74 20 29 0d 0a 09 |if( !Res|ult )...|
|000052f0| 09 4c 6f 67 28 22 55 64 | 70 53 65 72 76 65 72 51 |.Log("Ud|pServerQ|
|00005300| 75 65 72 79 3a 20 45 72 | 72 6f 72 20 72 65 73 70 |uery: Er|ror resp|
|00005310| 6f 6e 64 69 6e 67 20 74 | 6f 20 71 75 65 72 79 2e |onding t|o query.|
|00005320| 22 29 3b 0d 0a 09 72 65 | 74 75 72 6e 20 51 75 65 |");...re|turn Que|
|00005330| 72 79 52 65 73 74 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |ryRest;.|.}....fu|
|00005340| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 53 65 6e 64 |nction b|ool Send|
|00005350| 41 50 61 63 6b 65 74 28 | 49 70 41 64 64 72 20 41 |APacket(|IpAddr A|
|00005360| 64 64 72 2c 20 69 6e 74 | 20 51 75 65 72 79 4e 75 |ddr, int| QueryNu|
|00005370| 6d 2c 20 6f 75 74 20 69 | 6e 74 20 50 61 63 6b 65 |m, out i|nt Packe|
|00005380| 74 4e 75 6d 2c 20 69 6e | 74 20 62 46 69 6e 61 6c |tNum, in|t bFinal|
|00005390| 50 61 63 6b 65 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |Packet).|.{...loc|
|000053a0| 61 6c 20 62 6f 6f 6c 20 | 52 65 73 75 6c 74 3b 0d |al bool |Result;.|
|000053b0| 0a 0d 0a 09 52 65 70 6c | 79 44 61 74 61 20 3d 20 |....Repl|yData = |
|000053c0| 52 65 70 6c 79 44 61 74 | 61 24 22 5c 5c 71 75 65 |ReplyDat|a$"\\que|
|000053d0| 72 79 69 64 5c 5c 22 24 | 51 75 65 72 79 4e 75 6d |ryid\\"$|QueryNum|
|000053e0| 24 22 2e 22 24 2b 2b 50 | 61 63 6b 65 74 4e 75 6d |$"."$++P|acketNum|
|000053f0| 3b 0d 0a 09 69 66 20 28 | 62 46 69 6e 61 6c 50 61 |;...if (|bFinalPa|
|00005400| 63 6b 65 74 20 3d 3d 20 | 31 29 20 7b 0d 0a 09 09 |cket == |1) {....|
|00005410| 52 65 70 6c 79 44 61 74 | 61 20 3d 20 52 65 70 6c |ReplyDat|a = Repl|
|00005420| 79 44 61 74 61 20 24 20 | 22 5c 5c 66 69 6e 61 6c |yData $ |"\\final|
|00005430| 5c 5c 22 3b 0d 0a 09 7d | 0d 0a 09 52 65 73 75 6c |\\";...}|...Resul|
|00005440| 74 20 3d 20 53 65 6e 64 | 54 65 78 74 28 41 64 64 |t = Send|Text(Add|
|00005450| 72 2c 20 52 65 70 6c 79 | 44 61 74 61 29 3b 0d 0a |r, Reply|Data);..|
|00005460| 09 52 65 70 6c 79 44 61 | 74 61 20 3d 20 22 22 3b |.ReplyDa|ta = "";|
|00005470| 0d 0a 09 0d 0a 09 72 65 | 74 75 72 6e 20 52 65 73 |......re|turn Res|
|00005480| 75 6c 74 3b 0d 0a 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |ult;....|}....// |
|00005490| 53 65 6e 64 51 75 65 72 | 79 50 61 63 6b 65 74 20 |SendQuer|yPacket |
|000054a0| 69 73 20 61 20 77 72 61 | 70 70 65 72 20 66 6f 72 |is a wra|pper for|
|000054b0| 20 53 65 6e 64 54 65 78 | 74 20 74 68 61 74 20 61 | SendTex|t that a|
|000054c0| 6c 6c 6f 77 73 20 66 6f | 72 20 70 61 63 6b 65 74 |llows fo|r packet|
|000054d0| 20 6e 75 6d 62 65 72 69 | 6e 67 2e 0d 0a 66 75 6e | numberi|ng...fun|
|000054e0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 65 6e 64 51 |ction bo|ol SendQ|
|000054f0| 75 65 72 79 50 61 63 6b | 65 74 28 49 70 41 64 64 |ueryPack|et(IpAdd|
|00005500| 72 20 41 64 64 72 2c 20 | 63 6f 65 72 63 65 20 73 |r Addr, |coerce s|
|00005510| 74 72 69 6e 67 20 53 65 | 6e 64 53 74 72 69 6e 67 |tring Se|ndString|
|00005520| 2c 20 69 6e 74 20 51 75 | 65 72 79 4e 75 6d 2c 20 |, int Qu|eryNum, |
|00005530| 6f 75 74 20 69 6e 74 20 | 50 61 63 6b 65 74 4e 75 |out int |PacketNu|
|00005540| 6d 2c 20 69 6e 74 20 62 | 46 69 6e 61 6c 50 61 63 |m, int b|FinalPac|
|00005550| 6b 65 74 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ket)..{.|..local |
|00005560| 62 6f 6f 6c 20 52 65 73 | 75 6c 74 3b 0d 0a 09 0d |bool Res|ult;....|
|00005570| 0a 09 2f 2f 4c 6f 67 28 | 22 53 65 6e 64 20 51 75 |..//Log(|"Send Qu|
|00005580| 65 72 79 3a 20 22 20 20 | 24 20 51 75 65 72 79 4e |ery: " |$ QueryN|
|00005590| 75 6d 20 24 20 22 2e 22 | 20 24 20 50 61 63 6b 65 |um $ "."| $ Packe|
|000055a0| 74 4e 75 6d 20 24 20 22 | 3a 22 20 24 20 62 46 69 |tNum $ "|:" $ bFi|
|000055b0| 6e 61 6c 50 61 63 6b 65 | 74 29 3b 0d 0a 09 72 65 |nalPacke|t);...re|
|000055c0| 73 75 6c 74 20 3d 20 74 | 72 75 65 3b 0d 0a 09 69 |sult = t|rue;...i|
|000055d0| 66 20 28 6c 65 6e 28 52 | 65 70 6c 79 44 61 74 61 |f (len(R|eplyData|
|000055e0| 29 20 2b 20 6c 65 6e 28 | 53 65 6e 64 53 74 72 69 |) + len(|SendStri|
|000055f0| 6e 67 29 20 3e 20 31 30 | 30 30 29 0d 0a 09 09 72 |ng) > 10|00)....r|
|00005600| 65 73 75 6c 74 20 3d 20 | 53 65 6e 64 41 50 61 63 |esult = |SendAPac|
|00005610| 6b 65 74 28 41 64 64 72 | 2c 20 51 75 65 72 79 4e |ket(Addr|, QueryN|
|00005620| 75 6d 2c 20 50 61 63 6b | 65 74 4e 75 6d 2c 20 30 |um, Pack|etNum, 0|
|00005630| 29 3b 0d 0a 09 0d 0a 09 | 52 65 70 6c 79 44 61 74 |);......|ReplyDat|
|00005640| 61 20 3d 20 52 65 70 6c | 79 44 61 74 61 20 24 20 |a = Repl|yData $ |
|00005650| 53 65 6e 64 53 74 72 69 | 6e 67 3b 0d 0a 09 0d 0a |SendStri|ng;.....|
|00005660| 09 69 66 20 28 62 46 69 | 6e 61 6c 50 61 63 6b 65 |.if (bFi|nalPacke|
|00005670| 74 20 3d 3d 20 31 29 0d | 0a 09 09 72 65 73 75 6c |t == 1).|...resul|
|00005680| 74 20 3d 20 53 65 6e 64 | 41 50 61 63 6b 65 74 28 |t = Send|APacket(|
|00005690| 41 64 64 72 2c 20 51 75 | 65 72 79 4e 75 6d 2c 20 |Addr, Qu|eryNum, |
|000056a0| 50 61 63 6b 65 74 4e 75 | 6d 2c 20 62 46 69 6e 61 |PacketNu|m, bFina|
|000056b0| 6c 50 61 63 6b 65 74 29 | 3b 0d 0a 09 09 0d 0a 09 |lPacket)|;.......|
|000056c0| 72 65 74 75 72 6e 20 52 | 65 73 75 6c 74 3b 0d 0a |return R|esult;..|
|000056d0| 7d 0d 0a 0d 0a 2f 2f 20 | 52 65 74 75 72 6e 20 61 |}....// |Return a|
|000056e0| 20 73 74 72 69 6e 67 20 | 6f 66 20 62 61 73 69 63 | string |of basic|
|000056f0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 0d 0a 66 | informa|tion...f|
|00005700| 75 6e 63 74 69 6f 6e 20 | 73 74 72 69 6e 67 20 47 |unction |string G|
|00005710| 65 74 42 61 73 69 63 28 | 29 20 7b 0d 0a 09 6c 6f |etBasic(|) {...lo|
|00005720| 63 61 6c 20 73 74 72 69 | 6e 67 20 52 65 73 75 6c |cal stri|ng Resul|
|00005730| 74 53 65 74 3b 0d 0a 0d | 0a 09 2f 2f 20 54 68 65 |tSet;...|..// The|
|00005740| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 67 61 | name of| this ga|
|00005750| 6d 65 2e 0d 0a 09 52 65 | 73 75 6c 74 53 65 74 20 |me....Re|sultSet |
|00005760| 3d 20 22 5c 5c 67 61 6d | 65 6e 61 6d 65 5c 5c 22 |= "\\gam|ename\\"|
|00005770| 24 47 61 6d 65 4e 61 6d | 65 3b 0d 0a 0d 0a 09 2f |$GameNam|e;...../|
|00005780| 2f 20 54 68 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |/ The ve|rsion of|
|00005790| 20 74 68 69 73 20 67 61 | 6d 65 2e 0d 0a 09 52 65 | this ga|me....Re|
|000057a0| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|000057b0| 53 65 74 24 22 5c 5c 67 | 61 6d 65 76 65 72 5c 5c |Set$"\\g|amever\\|
|000057c0| 22 24 4c 65 76 65 6c 2e | 45 6e 67 69 6e 65 56 65 |"$Level.|EngineVe|
|000057d0| 72 73 69 6f 6e 3b 0d 0a | 0d 0a 09 2f 2f 20 54 68 |rsion;..|...// Th|
|000057e0| 65 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 6e 65 |e most r|ecent ne|
|000057f0| 74 77 6f 72 6b 20 63 6f | 6d 70 61 74 69 62 6c 65 |twork co|mpatible|
|00005800| 20 76 65 72 73 69 6f 6e | 2e 0d 0a 09 69 66 28 20 | version|....if( |
|00005810| 4d 69 6e 4e 65 74 56 65 | 72 20 3e 3d 20 49 6e 74 |MinNetVe|r >= Int|
|00005820| 28 4c 65 76 65 6c 2e 4d | 69 6e 4e 65 74 56 65 72 |(Level.M|inNetVer|
|00005830| 73 69 6f 6e 29 20 26 26 | 20 0d 0a 09 09 4d 69 6e |sion) &&| ....Min|
|00005840| 4e 65 74 56 65 72 20 3c | 3d 20 49 6e 74 28 4c 65 |NetVer <|= Int(Le|
|00005850| 76 65 6c 2e 45 6e 67 69 | 6e 65 56 65 72 73 69 6f |vel.Engi|neVersio|
|00005860| 6e 29 20 29 0d 0a 09 09 | 52 65 73 75 6c 74 53 65 |n) )....|ResultSe|
|00005870| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005880| 5c 6d 69 6e 6e 65 74 76 | 65 72 5c 5c 22 24 73 74 |\minnetv|er\\"$st|
|00005890| 72 69 6e 67 28 4d 69 6e | 4e 65 74 56 65 72 29 3b |ring(Min|NetVer);|
|000058a0| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 52 65 73 75 6c |...else.|...Resul|
|000058b0| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|000058c0| 24 22 5c 5c 6d 69 6e 6e | 65 74 76 65 72 5c 5c 22 |$"\\minn|etver\\"|
|000058d0| 24 4c 65 76 65 6c 2e 4d | 69 6e 4e 65 74 56 65 72 |$Level.M|inNetVer|
|000058e0| 73 69 6f 6e 3b 0d 0a 0d | 0a 09 2f 2f 20 54 68 65 |sion;...|..// The|
|000058f0| 20 72 65 67 69 6f 6e 61 | 6c 20 6c 6f 63 61 74 69 | regiona|l locati|
|00005900| 6f 6e 20 6f 66 20 74 68 | 69 73 20 67 61 6d 65 2e |on of th|is game.|
|00005910| 0d 0a 09 52 65 73 75 6c | 74 53 65 74 20 3d 20 52 |...Resul|tSet = R|
|00005920| 65 73 75 6c 74 53 65 74 | 24 22 5c 5c 6c 6f 63 61 |esultSet|$"\\loca|
|00005930| 74 69 6f 6e 5c 5c 22 24 | 4c 65 76 65 6c 2e 47 61 |tion\\"$|Level.Ga|
|00005940| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|00005950| 6f 6e 49 6e 66 6f 2e 52 | 65 67 69 6f 6e 3b 0d 0a |onInfo.R|egion;..|
|00005960| 09 0d 0a 09 72 65 74 75 | 72 6e 20 52 65 73 75 6c |....retu|rn Resul|
|00005970| 74 53 65 74 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 20 52 |tSet;..}|....// R|
|00005980| 65 74 75 72 6e 20 61 20 | 73 74 72 69 6e 67 20 6f |eturn a |string o|
|00005990| 66 20 69 6d 70 6f 72 74 | 61 6e 74 20 73 79 73 74 |f import|ant syst|
|000059a0| 65 6d 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0d |em infor|mation..|
|000059b0| 0a 66 75 6e 63 74 69 6f | 6e 20 73 74 72 69 6e 67 |.functio|n string|
|000059c0| 20 47 65 74 49 6e 66 6f | 28 29 20 7b 0d 0a 09 6c | GetInfo|() {...l|
|000059d0| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 52 65 73 75 |ocal str|ing Resu|
|000059e0| 6c 74 53 65 74 3b 0d 0a | 0d 0a 09 2f 2f 20 54 68 |ltSet;..|...// Th|
|000059f0| 65 20 73 65 72 76 65 72 | 20 6e 61 6d 65 2c 20 69 |e server| name, i|
|00005a00| 2e 65 2e 3a 20 42 6f 62 | 27 73 20 53 65 72 76 65 |.e.: Bob|'s Serve|
|00005a10| 72 0d 0a 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |r...Resu|ltSet = |
|00005a20| 22 5c 5c 68 6f 73 74 6e | 61 6d 65 5c 5c 22 24 4c |"\\hostn|ame\\"$L|
|00005a30| 65 76 65 6c 2e 47 61 6d | 65 2e 47 61 6d 65 52 65 |evel.Gam|e.GameRe|
|00005a40| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 53 65 |plicatio|nInfo.Se|
|00005a50| 72 76 65 72 4e 61 6d 65 | 3b 0d 0a 0d 0a 09 2f 2f |rverName|;.....//|
|00005a60| 20 54 68 65 20 73 68 6f | 72 74 20 73 65 72 76 65 | The sho|rt serve|
|00005a70| 72 20 6e 61 6d 65 0d 0a | 09 2f 2f 52 65 73 75 6c |r name..|.//Resul|
|00005a80| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|00005a90| 24 22 5c 5c 73 68 6f 72 | 74 6e 61 6d 65 5c 5c 22 |$"\\shor|tname\\"|
|00005aa0| 24 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 47 61 6d 65 |$Level.G|ame.Game|
|00005ab0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00005ac0| 53 68 6f 72 74 4e 61 6d | 65 3b 0d 0a 0d 0a 09 2f |ShortNam|e;...../|
|00005ad0| 2f 20 54 68 65 20 73 65 | 72 76 65 72 20 70 6f 72 |/ The se|rver por|
|00005ae0| 74 2e 0d 0a 09 52 65 73 | 75 6c 74 53 65 74 20 3d |t....Res|ultSet =|
|00005af0| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 68 6f | ResultS|et$"\\ho|
|00005b00| 73 74 70 6f 72 74 5c 5c | 22 24 4c 65 76 65 6c 2e |stport\\|"$Level.|
|00005b10| 47 61 6d 65 2e 47 65 74 | 53 65 72 76 65 72 50 6f |Game.Get|ServerPo|
|00005b20| 72 74 28 29 3b 0d 0a 0d | 0a 09 2f 2f 20 28 6f 70 |rt();...|..// (op|
|00005b30| 74 69 6f 6e 61 6c 29 20 | 54 68 65 20 73 65 72 76 |tional) |The serv|
|00005b40| 65 72 20 49 50 0d 0a 09 | 2f 2f 20 69 66 20 28 53 |er IP...|// if (S|
|00005b50| 65 72 76 65 72 49 50 20 | 21 3d 20 22 22 29 0d 0a |erverIP |!= "")..|
|00005b60| 09 2f 2f 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |.//.Resu|ltSet = |
|00005b70| 52 65 73 75 6c 74 53 65 | 74 24 22 5c 5c 68 6f 73 |ResultSe|t$"\\hos|
|00005b80| 74 69 70 5c 5c 22 24 53 | 65 72 76 65 72 49 50 3b |tip\\"$S|erverIP;|
|00005b90| 0d 0a 0d 0a 09 2f 2f 20 | 54 68 65 20 6d 61 70 2f |.....// |The map/|
|00005ba0| 6c 65 76 65 6c 20 74 69 | 74 6c 65 0d 0a 09 52 65 |level ti|tle...Re|
|00005bb0| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|00005bc0| 53 65 74 24 22 5c 5c 6d | 61 70 74 69 74 6c 65 5c |Set$"\\m|aptitle\|
|00005bd0| 5c 22 24 4c 65 76 65 6c | 2e 54 69 74 6c 65 3b 0d |\"$Level|.Title;.|
|00005be0| 0a 09 0d 0a 09 2f 2f 20 | 4d 61 70 20 6e 61 6d 65 |.....// |Map name|
|00005bf0| 0d 0a 09 52 65 73 75 6c | 74 53 65 74 20 3d 20 52 |...Resul|tSet = R|
|00005c00| 65 73 75 6c 74 53 65 74 | 24 22 5c 5c 6d 61 70 6e |esultSet|$"\\mapn|
|00005c10| 61 6d 65 5c 5c 22 24 4c | 65 66 74 28 73 74 72 69 |ame\\"$L|eft(stri|
|00005c20| 6e 67 28 4c 65 76 65 6c | 29 2c 20 49 6e 53 74 72 |ng(Level|), InStr|
|00005c30| 28 73 74 72 69 6e 67 28 | 4c 65 76 65 6c 29 2c 20 |(string(|Level), |
|00005c40| 22 2e 22 29 29 3b 0d 0a | 0d 0a 09 2f 2f 20 54 68 |"."));..|...// Th|
|00005c50| 65 20 6d 6f 64 20 6f 72 | 20 67 61 6d 65 20 74 79 |e mod or| game ty|
|00005c60| 70 65 0d 0a 09 52 65 73 | 75 6c 74 53 65 74 20 3d |pe...Res|ultSet =|
|00005c70| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 67 61 | ResultS|et$"\\ga|
|00005c80| 6d 65 74 79 70 65 5c 5c | 22 24 47 65 74 49 74 65 |metype\\|"$GetIte|
|00005c90| 6d 4e 61 6d 65 28 73 74 | 72 69 6e 67 28 4c 65 76 |mName(st|ring(Lev|
|00005ca0| 65 6c 2e 47 61 6d 65 2e | 43 6c 61 73 73 29 29 3b |el.Game.|Class));|
|00005cb0| 0d 0a 0d 0a 09 2f 2f 20 | 54 68 65 20 6e 75 6d 62 |.....// |The numb|
|00005cc0| 65 72 20 6f 66 20 70 6c | 61 79 65 72 73 0d 0a 09 |er of pl|ayers...|
|00005cd0| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
|00005ce0| 6c 74 53 65 74 24 22 5c | 5c 6e 75 6d 70 6c 61 79 |ltSet$"\|\numplay|
|00005cf0| 65 72 73 5c 5c 22 24 4c | 65 76 65 6c 2e 47 61 6d |ers\\"$L|evel.Gam|
|00005d00| 65 2e 4e 75 6d 50 6c 61 | 79 65 72 73 3b 0d 0a 0d |e.NumPla|yers;...|
|00005d10| 0a 09 2f 2f 20 54 68 65 | 20 6d 61 78 69 6d 75 6d |..// The| maximum|
|00005d20| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 6c 61 79 65 | number |of playe|
|00005d30| 72 73 0d 0a 09 52 65 73 | 75 6c 74 53 65 74 20 3d |rs...Res|ultSet =|
|00005d40| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 6d 61 | ResultS|et$"\\ma|
|00005d50| 78 70 6c 61 79 65 72 73 | 5c 5c 22 24 4c 65 76 65 |xplayers|\\"$Leve|
|00005d60| 6c 2e 47 61 6d 65 2e 4d | 61 78 50 6c 61 79 65 72 |l.Game.M|axPlayer|
|00005d70| 73 3b 0d 0a 0d 0a 09 2f | 2f 20 54 68 65 20 67 61 |s;...../|/ The ga|
|00005d80| 6d 65 20 6d 6f 64 65 3a | 20 6f 70 65 6e 70 6c 61 |me mode:| openpla|
|00005d90| 79 69 6e 67 0d 0a 09 52 | 65 73 75 6c 74 53 65 74 |ying...R|esultSet|
|00005da0| 20 3d 20 52 65 73 75 6c | 74 53 65 74 24 22 5c 5c | = Resul|tSet$"\\|
|00005db0| 67 61 6d 65 6d 6f 64 65 | 5c 5c 6f 70 65 6e 70 6c |gamemode|\\openpl|
|00005dc0| 61 79 69 6e 67 22 3b 0d | 0a 0d 0a 09 2f 2f 20 54 |aying";.|....// T|
|00005dd0| 68 65 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |he versi|on of th|
|00005de0| 69 73 20 67 61 6d 65 2e | 0d 0a 09 52 65 73 75 6c |is game.|...Resul|
|00005df0| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|00005e00| 24 22 5c 5c 67 61 6d 65 | 76 65 72 5c 5c 22 24 4c |$"\\game|ver\\"$L|
|00005e10| 65 76 65 6c 2e 45 6e 67 | 69 6e 65 56 65 72 73 69 |evel.Eng|ineVersi|
|00005e20| 6f 6e 3b 0d 0a 0d 0a 09 | 2f 2f 20 54 68 65 20 6d |on;.....|// The m|
|00005e30| 6f 73 74 20 72 65 63 65 | 6e 74 20 6e 65 74 77 6f |ost rece|nt netwo|
|00005e40| 72 6b 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 76 65 |rk compa|tible ve|
|00005e50| 72 73 69 6f 6e 2e 0d 0a | 09 69 66 28 20 4d 69 6e |rsion...|.if( Min|
|00005e60| 4e 65 74 56 65 72 20 3e | 3d 20 49 6e 74 28 4c 65 |NetVer >|= Int(Le|
|00005e70| 76 65 6c 2e 4d 69 6e 4e | 65 74 56 65 72 73 69 6f |vel.MinN|etVersio|
|00005e80| 6e 29 20 26 26 20 0d 0a | 09 09 4d 69 6e 4e 65 74 |n) && ..|..MinNet|
|00005e90| 56 65 72 20 3c 3d 20 49 | 6e 74 28 4c 65 76 65 6c |Ver <= I|nt(Level|
|00005ea0| 2e 45 6e 67 69 6e 65 56 | 65 72 73 69 6f 6e 29 20 |.EngineV|ersion) |
|00005eb0| 29 0d 0a 09 09 52 65 73 | 75 6c 74 53 65 74 20 3d |)....Res|ultSet =|
|00005ec0| 20 52 65 73 75 6c 74 53 | 65 74 24 22 5c 5c 6d 69 | ResultS|et$"\\mi|
|00005ed0| 6e 6e 65 74 76 65 72 5c | 5c 22 24 73 74 72 69 6e |nnetver\|\"$strin|
|00005ee0| 67 28 4d 69 6e 4e 65 74 | 56 65 72 29 3b 0d 0a 09 |g(MinNet|Ver);...|
|00005ef0| 65 6c 73 65 0d 0a 09 09 | 52 65 73 75 6c 74 53 65 |else....|ResultSe|
|00005f00| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005f10| 5c 6d 69 6e 6e 65 74 76 | 65 72 5c 5c 22 24 4c 65 |\minnetv|er\\"$Le|
|00005f20| 76 65 6c 2e 4d 69 6e 4e | 65 74 56 65 72 73 69 6f |vel.MinN|etVersio|
|00005f30| 6e 3b 0d 0a 0d 0a 09 52 | 65 73 75 6c 74 53 65 74 |n;.....R|esultSet|
|00005f40| 20 3d 20 52 65 73 75 6c | 74 53 65 74 24 4c 65 76 | = Resul|tSet$Lev|
|00005f50| 65 6c 2e 47 61 6d 65 2e | 47 65 74 49 6e 66 6f 28 |el.Game.|GetInfo(|
|00005f60| 29 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 52 65 |);.....r|eturn Re|
|00005f70| 73 75 6c 74 53 65 74 3b | 0d 0a 7d 0d 0a 0d 0a 2f |sultSet;|..}..../|
|00005f80| 2f 20 52 65 74 75 72 6e | 20 61 20 73 74 72 69 6e |/ Return| a strin|
|00005f90| 67 20 6f 66 20 6d 69 73 | 63 65 6c 6c 61 6e 65 6f |g of mis|cellaneo|
|00005fa0| 75 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0d |us infor|mation..|
|00005fb0| 0a 2f 2f 20 47 61 6d 65 | 20 73 70 65 63 69 66 69 |.// Game| specifi|
|00005fc0| 63 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 75 |c inform|ation, u|
|00005fd0| 73 65 72 20 64 65 66 69 | 6e 65 64 20 64 61 74 61 |ser defi|ned data|
|00005fe0| 2c 20 63 75 73 74 6f 6d | 20 70 61 72 61 6d 65 74 |, custom| paramet|
|00005ff0| 65 72 73 20 66 6f 72 20 | 74 68 65 20 63 6f 6d 6d |ers for |the comm|
|00006000| 61 6e 64 20 6c 69 6e 65 | 2e 0d 0a 66 75 6e 63 74 |and line|...funct|
|00006010| 69 6f 6e 20 73 74 72 69 | 6e 67 20 47 65 74 52 75 |ion stri|ng GetRu|
|00006020| 6c 65 73 28 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |les()..{|...local|
|00006030| 20 73 74 72 69 6e 67 20 | 52 65 73 75 6c 74 53 65 | string |ResultSe|
|00006040| 74 3b 0d 0a 0d 0a 09 52 | 65 73 75 6c 74 53 65 74 |t;.....R|esultSet|
|00006050| 20 3d 20 4c 65 76 65 6c | 2e 47 61 6d 65 2e 47 65 | = Level|.Game.Ge|
|00006060| 74 52 75 6c 65 73 28 29 | 3b 0d 0a 0d 0a 09 2f 2f |tRules()|;.....//|
|00006070| 20 41 64 6d 69 6e 27 73 | 20 4e 61 6d 65 0d 0a 09 | Admin's| Name...|
|00006080| 69 66 28 20 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |if( Leve|l.Game.G|
|00006090| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|000060a0| 66 6f 2e 41 64 6d 69 6e | 4e 61 6d 65 20 21 3d 20 |fo.Admin|Name != |
|000060b0| 22 22 20 29 0d 0a 09 09 | 52 65 73 75 6c 74 53 65 |"" )....|ResultSe|
|000060c0| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|000060d0| 5c 41 64 6d 69 6e 4e 61 | 6d 65 5c 5c 22 24 4c 65 |\AdminNa|me\\"$Le|
|000060e0| 76 65 6c 2e 47 61 6d 65 | 2e 47 61 6d 65 52 65 70 |vel.Game|.GameRep|
|000060f0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 41 64 6d |lication|Info.Adm|
|00006100| 69 6e 4e 61 6d 65 3b 0d | 0a 09 0d 0a 09 2f 2f 20 |inName;.|.....// |
|00006110| 41 64 6d 69 6e 27 73 20 | 45 6d 61 69 6c 0d 0a 09 |Admin's |Email...|
|00006120| 69 66 28 20 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |if( Leve|l.Game.G|
|00006130| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00006140| 66 6f 2e 41 64 6d 69 6e | 45 6d 61 69 6c 20 21 3d |fo.Admin|Email !=|
|00006150| 20 22 22 20 29 0d 0a 09 | 09 52 65 73 75 6c 74 53 | "" )...|.ResultS|
|00006160| 65 74 20 3d 20 52 65 73 | 75 6c 74 53 65 74 24 22 |et = Res|ultSet$"|
|00006170| 5c 5c 41 64 6d 69 6e 45 | 4d 61 69 6c 5c 5c 22 24 |\\AdminE|Mail\\"$|
|00006180| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 47 61 6d 65 52 |Level.Ga|me.GameR|
|00006190| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 41 |eplicati|onInfo.A|
|000061a0| 64 6d 69 6e 45 6d 61 69 | 6c 3b 0d 0a 0d 0a 09 72 |dminEmai|l;.....r|
|000061b0| 65 74 75 72 6e 20 52 65 | 73 75 6c 74 53 65 74 3b |eturn Re|sultSet;|
|000061c0| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 20 52 65 74 75 72 6e |..}..../|/ Return|
|000061d0| 20 61 20 73 74 72 69 6e | 67 20 6f 66 20 69 6e 66 | a strin|g of inf|
|000061e0| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 61 20 70 6c |ormation| on a pl|
|000061f0| 61 79 65 72 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |ayer...f|unction |
|00006200| 73 74 72 69 6e 67 20 47 | 65 74 50 6c 61 79 65 72 |string G|etPlayer|
|00006210| 28 20 50 6c 61 79 65 72 | 50 61 77 6e 20 50 2c 20 |( Player|Pawn P, |
|00006220| 69 6e 74 20 50 6c 61 79 | 65 72 4e 75 6d 20 29 0d |int Play|erNum ).|
|00006230| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |.{...loc|al strin|
|00006240| 67 20 52 65 73 75 6c 74 | 53 65 74 3b 0d 0a 09 6c |g Result|Set;...l|
|00006250| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 53 6b 69 6e |ocal str|ing Skin|
|00006260| 4e 61 6d 65 2c 20 46 61 | 63 65 4e 61 6d 65 3b 0d |Name, Fa|ceName;.|
|00006270| 0a 0d 0a 09 2f 2f 20 4e | 61 6d 65 0d 0a 09 52 65 |....// N|ame...Re|
|00006280| 73 75 6c 74 53 65 74 20 | 3d 20 22 5c 5c 70 6c 61 |sultSet |= "\\pla|
|00006290| 79 65 72 5f 22 24 50 6c | 61 79 65 72 4e 75 6d 24 |yer_"$Pl|ayerNum$|
|000062a0| 22 5c 5c 22 24 50 2e 50 | 6c 61 79 65 72 52 65 70 |"\\"$P.P|layerRep|
|000062b0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 50 6c 61 |lication|Info.Pla|
|000062c0| 79 65 72 4e 61 6d 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |yerName;|.....// |
|000062d0| 46 72 61 67 73 0d 0a 09 | 52 65 73 75 6c 74 53 65 |Frags...|ResultSe|
|000062e0| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|000062f0| 5c 66 72 61 67 73 5f 22 | 24 50 6c 61 79 65 72 4e |\frags_"|$PlayerN|
|00006300| 75 6d 24 22 5c 5c 22 24 | 69 6e 74 28 50 2e 50 6c |um$"\\"$|int(P.Pl|
|00006310| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00006320| 6e 66 6f 2e 53 63 6f 72 | 65 29 3b 0d 0a 0d 0a 09 |nfo.Scor|e);.....|
|00006330| 2f 2f 20 50 69 6e 67 0d | 0a 09 52 65 73 75 6c 74 |// Ping.|..Result|
|00006340| 53 65 74 20 3d 20 52 65 | 73 75 6c 74 53 65 74 24 |Set = Re|sultSet$|
|00006350| 22 5c 5c 70 69 6e 67 5f | 22 24 50 6c 61 79 65 72 |"\\ping_|"$Player|
|00006360| 4e 75 6d 24 22 5c 5c 22 | 24 50 2e 43 6f 6e 73 6f |Num$"\\"|$P.Conso|
|00006370| 6c 65 43 6f 6d 6d 61 6e | 64 28 22 47 45 54 50 49 |leComman|d("GETPI|
|00006380| 4e 47 22 29 3b 0d 0a 0d | 0a 09 2f 2f 20 54 65 61 |NG");...|..// Tea|
|00006390| 6d 0d 0a 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |m...Resu|ltSet = |
|000063a0| 52 65 73 75 6c 74 53 65 | 74 24 22 5c 5c 74 65 61 |ResultSe|t$"\\tea|
|000063b0| 6d 5f 22 24 50 6c 61 79 | 65 72 4e 75 6d 24 22 5c |m_"$Play|erNum$"\|
|000063c0| 5c 22 24 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |\"$P.Pla|yerRepli|
|000063d0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 3b |cationIn|fo.Team;|
|000063e0| 0d 0a 0d 0a 09 2f 2f 20 | 43 6c 61 73 73 0d 0a 09 |.....// |Class...|
|000063f0| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.