home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 2-2.iso / Nerf / NERFDEMO.EXE / System / IpServer.u < prev    next >
Unreal Engine 3 Package  |  1999-10-21  |  28.6 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

ConfidenceProgramDetectionMatch TypeSupport
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 68, names: 125, imports: 58, exports: 143 default
99% file data default
100% TrID UE3 Unreal Package (LE) default
100% detectItEasy Format: UnrealEngine\Unreal Package(68,0) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| c1 83 2a 9e 44 00 00 00 | 01 00 00 00 7d 00 00 00 |..*.D...|....}...|
|00000010| 40 00 00 00 8f 00 00 00 | 0d 6a 00 00 3a 00 00 00 |@.......|.j..:...|
|00000020| 1a 68 00 00 4a a4 10 f6 | c1 87 d3 11 9e b0 00 80 |.h..J...|........|
|00000030| c8 52 3a 67 01 00 00 00 | 8f 00 00 00 7d 00 00 00 |.R:g....|....}...|
|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 0f 50 61 72 73 65 | 4e 65 78 74 51 75 65 72 |...Parse|NextQuer|
|00000090| 79 00 10 00 07 00 0b 50 | 61 72 73 65 51 75 65 72 |y......P|arseQuer|
|000000a0| 79 00 10 00 07 00 08 47 | 65 74 49 6e 66 6f 00 10 |y......G|etInfo..|
|000000b0| 00 07 00 0a 47 65 74 50 | 6c 61 79 65 72 00 10 00 |....GetP|layer...|
|000000c0| 07 00 09 47 65 74 42 61 | 73 69 63 00 10 00 07 00 |...GetBa|sic.....|
|000000d0| 0c 53 65 6e 64 50 6c 61 | 79 65 72 73 00 10 00 07 |.SendPla|yers....|
|000000e0| 00 09 53 65 6e 64 54 65 | 78 74 00 10 00 07 04 07 |..SendTe|xt......|
|000000f0| 45 6e 67 69 6e 65 00 10 | 00 07 04 05 43 6f 72 65 |Engine..|....Core|
|00000100| 00 10 00 07 04 07 52 65 | 73 75 6d 65 00 10 00 07 |......Re|sume....|
|00000110| 00 06 49 70 44 72 76 00 | 10 00 07 00 0e 47 65 74 |..IpDrv.|.....Get|
|00000120| 53 65 72 76 65 72 50 6f | 72 74 00 10 00 07 00 06 |ServerPo|rt......|
|00000130| 54 69 6d 65 72 00 10 00 | 07 04 11 47 65 74 4c 65 |Timer...|...GetLe|
|00000140| 76 65 6c 50 72 6f 70 65 | 72 74 79 00 10 00 07 00 |velPrope|rty.....|
|00000150| 0d 4d 61 73 74 65 72 55 | 70 6c 69 6e 6b 00 10 00 |.MasterU|plink...|
|00000160| 07 00 12 47 65 74 50 6c | 61 79 65 72 50 72 6f 70 |...GetPl|ayerProp|
|00000170| 65 72 74 79 00 10 00 07 | 00 0b 52 65 6d 6f 74 65 |erty....|..Remote|
|00000180| 52 6f 6c 65 00 10 00 07 | 04 07 53 79 73 74 65 6d |Role....|..System|
|00000190| 00 10 00 07 04 10 47 65 | 74 47 61 6d 65 50 72 6f |......Ge|tGamePro|
|000001a0| 70 65 72 74 79 00 10 00 | 07 00 0d 50 72 65 42 65 |perty...|...PreBe|
|000001b0| 67 69 6e 50 6c 61 79 00 | 10 00 07 04 0f 55 64 70 |ginPlay.|.....Udp|
|000001c0| 53 65 72 76 65 72 51 75 | 65 72 79 00 10 00 07 00 |ServerQu|ery.....|
|000001d0| 09 49 70 53 65 72 76 65 | 72 00 10 00 07 00 0d 52 |.IpServe|r......R|
|000001e0| 65 63 65 69 76 65 64 54 | 65 78 74 00 10 00 07 00 |eceivedT|ext.....|
|000001f0| 09 42 69 6e 64 50 6f 72 | 74 00 10 00 07 00 09 56 |.BindPor|t......V|
|00000200| 61 6c 69 64 61 74 65 00 | 10 00 07 00 0b 50 6c 61 |alidate.|.....Pla|
|00000210| 79 65 72 50 61 77 6e 00 | 10 00 07 00 10 54 61 72 |yerPawn.|.....Tar|
|00000220| 67 65 74 51 75 65 72 79 | 4e 61 6d 65 00 10 00 07 |getQuery|Name....|
|00000230| 00 09 52 65 73 6f 6c 76 | 65 64 00 10 00 07 00 08 |..Resolv|ed......|
|00000240| 52 65 73 6f 6c 76 65 00 | 10 00 07 00 0e 50 6f 73 |Resolve.|.....Pos|
|00000250| 74 42 65 67 69 6e 50 6c | 61 79 00 10 00 07 04 0e |tBeginPl|ay......|
|00000260| 52 65 73 6f 6c 76 65 46 | 61 69 6c 65 64 00 10 00 |ResolveF|ailed...|
|00000270| 07 00 0c 47 65 74 49 74 | 65 6d 4e 61 6d 65 00 10 |...GetIt|emName..|
|00000280| 00 07 00 11 4d 61 73 74 | 65 72 53 65 72 76 65 72 |....Mast|erServer|
|00000290| 50 6f 72 74 00 10 00 07 | 00 0d 47 65 74 4d 75 6c |Port....|..GetMul|
|000002a0| 74 69 53 6b 69 6e 00 10 | 00 07 00 09 47 61 6d 65 |tiSkin..|....Game|
|000002b0| 4e 61 6d 65 00 10 00 07 | 00 0a 51 75 65 72 79 4e |Name....|..QueryN|
|000002c0| 61 6d 65 00 10 00 07 00 | 0f 43 6f 6e 73 6f 6c 65 |ame.....|.Console|
|000002d0| 43 6f 6d 6d 61 6e 64 00 | 10 00 07 00 0e 55 70 64 |Command.|.....Upd|
|000002e0| 61 74 65 4d 69 6e 75 74 | 65 73 00 10 00 07 00 05 |ateMinut|es......|
|000002f0| 48 61 6c 74 00 10 00 07 | 00 07 52 65 67 69 6f 6e |Halt....|..Region|
|00000300| 00 10 00 07 00 10 47 65 | 74 50 72 6f 70 65 72 74 |......Ge|tPropert|
|00000310| 79 54 65 78 74 00 10 00 | 07 00 05 53 6b 69 6e 00 |yText...|...Skin.|
|00000320| 10 00 07 00 05 54 65 78 | 74 00 10 00 07 00 09 46 |.....Tex|t......F|
|00000330| 61 63 65 4e 61 6d 65 00 | 10 00 07 00 09 47 61 6d |aceName.|.....Gam|
|00000340| 65 49 6e 66 6f 00 10 00 | 07 00 0b 53 63 72 69 70 |eInfo...|...Scrip|
|00000350| 74 54 65 78 74 00 10 00 | 07 00 02 69 00 10 00 07 |tText...|...i....|
|00000360| 00 0b 53 65 72 76 65 72 | 4e 61 6d 65 00 10 00 07 |..Server|Name....|
|00000370| 00 0c 52 65 74 75 72 6e | 56 61 6c 75 65 00 10 00 |..Return|Value...|
|00000380| 07 00 09 53 6b 69 6e 4e | 61 6d 65 00 10 00 07 00 |...SkinN|ame.....|
|00000390| 02 50 00 10 00 07 00 09 | 6e 65 78 74 50 61 77 6e |.P......|nextPawn|
|000003a0| 00 10 00 07 00 05 54 65 | 61 6d 00 10 00 07 00 06 |......Te|am......|
|000003b0| 53 63 6f 72 65 00 10 00 | 07 00 05 47 61 6d 65 00 |Score...|...Game.|
|000003c0| 10 00 07 00 0e 45 6e 67 | 69 6e 65 56 65 72 73 69 |.....Eng|ineVersi|
|000003d0| 6f 6e 00 10 00 07 00 09 | 4d 65 6e 75 4e 61 6d 65 |on......|MenuName|
|000003e0| 00 10 00 07 00 07 52 65 | 73 75 6c 74 00 10 00 07 |......Re|sult....|
|000003f0| 00 07 53 74 72 75 63 74 | 00 10 04 07 04 0b 4e 75 |..Struct|......Nu|
|00000400| 6d 50 6c 61 79 65 72 73 | 00 10 00 07 00 0c 53 74 |mPlayers|......St|
|00000410| 72 50 72 6f 70 65 72 74 | 79 00 10 00 07 04 0a 52 |rPropert|y......R|
|00000420| 65 73 75 6c 74 53 65 74 | 00 10 00 07 00 0f 53 74 |esultSet|......St|
|00000430| 72 75 63 74 50 72 6f 70 | 65 72 74 79 00 10 00 07 |ructProp|erty....|
|00000440| 04 0a 53 68 6f 72 74 4e | 61 6d 65 00 10 00 07 00 |..ShortN|ame.....|
|00000450| 08 50 61 63 6b 61 67 65 | 00 10 04 07 04 08 55 64 |.Package|......Ud|
|00000460| 70 4c 69 6e 6b 00 10 00 | 07 00 0d 49 6e 74 65 72 |pLink...|...Inter|
|00000470| 6e 65 74 4c 69 6e 6b 00 | 10 00 07 00 0a 55 64 70 |netLink.|.....Udp|
|00000480| 42 65 61 63 6f 6e 00 10 | 00 07 00 07 49 70 41 64 |Beacon..|....IpAd|
|00000490| 64 72 00 10 00 07 00 05 | 41 64 64 72 00 10 00 07 |dr......|Addr....|
|000004a0| 00 0a 41 64 6d 69 6e 4e | 61 6d 65 00 10 00 07 00 |..AdminN|ame.....|
|000004b0| 0b 41 64 6d 69 6e 45 6d | 61 69 6c 00 10 00 07 00 |.AdminEm|ail.....|
|000004c0| 16 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000004d0| 6f 6e 49 6e 66 6f 00 10 | 00 07 00 11 56 61 6c 69 |onInfo..|....Vali|
|000004e0| 64 61 74 69 6f 6e 53 74 | 72 69 6e 67 00 10 00 07 |dationSt|ring....|
|000004f0| 00 0b 50 6c 61 79 65 72 | 4e 61 6d 65 00 10 00 07 |..Player|Name....|
|00000500| 00 0e 4d 69 6e 4e 65 74 | 56 65 72 73 69 6f 6e 00 |..MinNet|Version.|
|00000510| 10 00 07 00 14 47 61 6d | 65 52 65 70 6c 69 63 61 |.....Gam|eReplica|
|00000520| 74 69 6f 6e 49 6e 66 6f | 00 10 00 07 00 06 4c 65 |tionInfo|......Le|
|00000530| 76 65 6c 00 10 00 07 00 | 13 55 64 70 53 65 72 76 |vel.....|.UdpServ|
|00000540| 65 72 51 75 65 72 79 50 | 6f 72 74 00 10 00 07 00 |erQueryP|ort.....|
|00000550| 0a 62 6f 75 6e 64 70 6f | 72 74 00 10 00 07 00 13 |.boundpo|rt......|
|00000560| 4d 61 73 74 65 72 53 65 | 72 76 65 72 49 70 41 64 |MasterSe|rverIpAd|
|00000570| 64 72 00 10 00 07 00 14 | 4d 61 73 74 65 72 53 65 |dr......|MasterSe|
|00000580| 72 76 65 72 41 64 64 72 | 65 73 73 00 10 00 07 00 |rverAddr|ess.....|
|00000590| 06 51 75 65 72 79 00 10 | 00 07 00 06 41 63 74 6f |.Query..|....Acto|
|000005a0| 72 00 10 00 07 00 05 50 | 61 77 6e 00 10 00 07 00 |r......P|awn.....|
|000005b0| 0e 43 6c 61 73 73 50 72 | 6f 70 65 72 74 79 00 10 |.ClassPr|operty..|
|000005c0| 00 07 04 0a 4c 65 76 65 | 6c 49 6e 66 6f 00 10 00 |....Leve|lInfo...|
|000005d0| 07 00 10 43 75 72 72 65 | 6e 74 51 75 65 72 79 4e |...Curre|ntQueryN|
|000005e0| 75 6d 00 10 00 07 00 07 | 42 65 61 63 6f 6e 00 10 |um......|Beacon..|
|000005f0| 00 07 00 0f 51 75 65 72 | 79 52 65 6d 61 69 6e 69 |....Quer|yRemaini|
|00000600| 6e 67 00 10 00 07 00 09 | 51 75 65 72 79 4e 75 6d |ng......|QueryNum|
|00000610| 00 10 00 07 00 0a 50 61 | 63 6b 65 74 4e 75 6d 00 |......Pa|cketNum.|
|00000620| 10 00 07 00 0d 4e 61 6d | 65 50 72 6f 70 65 72 74 |.....Nam|ePropert|
|00000630| 79 00 10 00 07 04 0a 51 | 75 65 72 79 54 79 70 65 |y......Q|ueryType|
|00000640| 00 10 00 07 00 0b 51 75 | 65 72 79 56 61 6c 75 65 |......Qu|eryValue|
|00000650| 00 10 00 07 00 0a 51 75 | 65 72 79 52 65 73 74 00 |......Qu|eryRest.|
|00000660| 10 00 07 00 0c 46 69 6e | 61 6c 50 61 63 6b 65 74 |.....Fin|alPacket|
|00000670| 00 10 00 07 00 0a 54 65 | 6d 70 51 75 65 72 79 00 |......Te|mpQuery.|
|00000680| 10 00 07 00 0d 43 6c 6f | 73 69 6e 67 53 6c 61 73 |.....Clo|singSlas|
|00000690| 68 00 10 00 07 00 0f 4f | 62 6a 65 63 74 50 72 6f |h......O|bjectPro|
|000006a0| 70 65 72 74 79 00 10 00 | 07 04 0e 46 6c 6f 61 74 |perty...|...Float|
|000006b0| 50 72 6f 70 65 72 74 79 | 00 10 00 07 04 0b 53 65 |Property|......Se|
|000006c0| 6e 64 53 74 72 69 6e 67 | 00 10 00 07 00 0d 42 6f |ndString|......Bo|
|000006d0| 6f 6c 50 72 6f 70 65 72 | 74 79 00 10 00 07 04 0c |olProper|ty......|
|000006e0| 49 6e 74 50 72 6f 70 65 | 72 74 79 00 10 00 07 04 |IntPrope|rty.....|
|000006f0| 0a 50 6c 61 79 65 72 4e | 75 6d 00 10 00 07 00 0d |.PlayerN|um......|
|00000700| 42 79 74 65 50 72 6f 70 | 65 72 74 79 00 10 00 07 |ByteProp|erty....|
|00000710| 04 0b 53 65 6e 64 52 65 | 73 75 6c 74 00 10 00 07 |..SendRe|sult....|
|00000720| 00 09 46 75 6e 63 74 69 | 6f 6e 00 10 04 07 04 05 |..Functi|on......|
|00000730| 50 72 6f 70 00 10 00 07 | 00 06 54 69 74 6c 65 00 |Prop....|..Title.|
|00000740| 10 00 07 04 04 54 61 67 | 00 10 00 07 04 06 43 6c |.....Tag|......Cl|
|00000750| 61 73 73 00 10 04 07 04 | 09 44 6f 55 70 6c 69 6e |ass.....|.DoUplin|
|00000760| 6b 00 10 00 07 00 05 50 | 6f 72 74 00 10 00 07 00 |k......P|ort.....|
|00000770| 0b 54 65 78 74 42 75 66 | 66 65 72 00 10 00 07 04 |.TextBuf|fer.....|
|00000780| 07 4f 62 6a 65 63 74 00 | 10 00 07 04 11 48 65 61 |.Object.|.....Hea|
|00000790| 72 74 62 65 61 74 4d 65 | 73 73 61 67 65 00 10 00 |rtbeatMe|ssage...|
|000007a0| 07 00 0b 55 70 6c 69 6e | 6b 50 6f 72 74 00 10 00 |...Uplin|kPort...|
|000007b0| 07 00 09 50 61 77 6e 4c | 69 73 74 00 10 00 07 00 |...PawnL|ist.....|
|000007c0| 0b 4d 61 78 50 6c 61 79 | 65 72 73 00 10 00 07 00 |.MaxPlay|ers.....|
|000007d0| 09 51 75 65 72 79 53 74 | 72 00 10 00 07 00 00 00 |.QuerySt|r.......|
|000007e0| 00 01 00 00 00 00 00 40 | 00 00 00 00 3e 01 00 00 |.......@|....>...|
|000007f0| 00 00 00 40 00 00 00 00 | 07 01 00 00 00 00 00 00 |...@....|........|
|00000800| 00 00 00 00 50 01 01 00 | 00 00 80 00 00 00 00 8e |....P...|........|
|00000810| 00 00 4f 02 01 00 00 00 | 80 01 00 00 00 00 00 05 |..O.....|........|
|00000820| 01 00 00 00 80 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00000830| 00 00 40 00 00 00 00 15 | 01 00 00 00 00 00 40 00 |..@.....|......@.|
|00000840| 00 00 00 1d 01 00 00 00 | 80 00 40 00 00 00 00 19 |........|..@.....|
|00000850| 01 00 00 00 80 00 40 00 | 00 00 00 33 01 00 00 00 |......@.|...3....|
|00000860| 80 01 40 00 00 00 00 0d | 01 00 00 00 80 00 00 00 |..@.....|........|
|00000870| 00 8f 00 00 6f 01 01 00 | 00 00 80 00 00 00 00 00 |....o...|........|
|00000880| 00 3a 01 00 00 00 80 01 | 40 00 00 00 00 00 01 00 |.:......|@.......|
|00000890| 00 00 00 00 40 00 00 00 | 00 26 01 00 00 00 00 00 |....@...|.&......|
|000008a0| 00 00 00 12 00 00 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 95 00 4a 02 71 01 18 ff | ff ff ff ff ff ff ff 00 |..J.q...|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 ff ff ff ff ff |........|........|
|000008d0| ff ff ff ff ff 00 00 00 | 00 1e 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 45 01 12 |........|.....E..|
|000008f0| 01 00 00 00 e8 bb ba b0 | 95 01 00 00 00 36 16 1f |........|.....6..|
|00000900| 85 8f 00 00 00 00 59 ba | 23 9c 84 00 00 00 00 0a |......Y.|#.......|
|00000910| 9f dd f7 86 00 00 00 00 | ba 2d 3a db 84 00 00 00 |........|.-:.....|
|00000920| 00 0a 9f dd f7 84 00 00 | 00 00 0a 9f dd f7 84 00 |........|........|
|00000930| 00 00 00 0a 9f dd f7 86 | 00 00 00 00 ba 2d 3a db |........|.....-:.|
|00000940| 92 00 00 00 00 d2 11 d6 | 04 84 00 00 00 00 0a 9f |........|........|
|00000950| dd f7 86 00 00 00 00 ba | 2d 3a db 92 00 00 00 00 |........|-:......|
|00000960| d2 11 d6 04 8f 00 00 00 | 00 59 ba 23 9c 96 00 00 |........|.Y.#....|
|00000970| 00 00 5d 32 9d 75 8f 00 | 00 00 00 59 ba 23 9c 96 |..]2.u..|...Y.#..|
|00000980| 00 00 00 00 5d 32 9d 75 | 8f 00 00 00 00 59 ba 23 |....]2.u|.....Y.#|
|00000990| 9c 8f 00 00 00 00 59 ba | 23 9c 96 00 00 00 00 5d |......Y.|#......]|
|000009a0| 32 9d 75 8f 00 00 00 00 | 59 ba 23 9c 8f 00 00 00 |2.u.....|Y.#.....|
|000009b0| 00 59 ba 23 9c 8f 00 00 | 00 00 59 ba 23 9c 8f 00 |.Y.#....|..Y.#...|
|000009c0| 00 00 00 59 ba 23 9c 84 | 00 00 00 00 0a 9f dd f7 |...Y.#..|........|
|000009d0| 86 00 00 00 00 ba 2d 3a | db 84 00 00 00 00 0a 9f |......-:|........|
|000009e0| dd f7 86 00 00 00 00 ba | 2d 3a db 90 00 00 00 00 |........|-:......|
|000009f0| f3 46 6b f7 84 00 00 00 | 00 0a 9f dd f7 86 00 00 |.Fk.....|........|
|00000a00| 00 00 ba 2d 3a db 90 00 | 00 00 00 f3 46 6b f7 84 |...-:...|....Fk..|
|00000a10| 00 00 00 00 0a 9f dd f7 | 86 00 00 00 00 ba 2d 3a |........|......-:|
|00000a20| db 90 00 00 00 00 f3 46 | 6b f7 84 00 00 00 00 0a |.......F|k.......|
|00000a30| 9f dd f7 86 00 00 00 00 | ba 2d 3a db 90 00 00 00 |........|.-:.....|
|00000a40| 00 f3 46 6b f7 84 00 00 | 00 00 0a 9f dd f7 86 00 |..Fk....|........|
|00000a50| 00 00 00 ba 2d 3a db 90 | 00 00 00 00 f3 46 6b f7 |....-:..|.....Fk.|
|00000a60| 84 00 00 00 00 0a 9f dd | f7 86 00 00 00 00 ba 2d |........|.......-|
|00000a70| 3a db 90 00 00 00 00 f3 | 46 6b f7 84 00 00 00 00 |:.......|Fk......|
|00000a80| 0a 9f dd f7 86 00 00 00 | 00 ba 2d 3a db 84 00 00 |........|..-:....|
|00000a90| 00 00 0a 9f dd f7 84 00 | 00 00 00 0a 9f dd f7 86 |........|........|
|00000aa0| 00 00 00 00 ba 2d 3a db | 84 00 00 00 00 0a 9f dd |.....-:.|........|
|00000ab0| f7 86 00 00 00 00 ba 2d | 3a db 84 00 00 00 00 0a |.......-|:.......|
|00000ac0| 9f dd f7 86 00 00 00 00 | ba 2d 3a db 84 00 00 00 |........|.-:.....|
|00000ad0| 00 0a 9f dd f7 84 00 00 | 00 00 0a 9f dd f7 84 00 |........|........|
|00000ae0| 00 00 00 0a 9f dd f7 86 | 00 00 00 00 ba 2d 3a db |........|.....-:.|
|00000af0| 84 00 00 00 00 0a 9f dd | f7 84 00 00 00 00 0a 9f |........|........|
|00000b00| dd f7 84 00 00 00 00 0a | 9f dd f7 86 00 00 00 00 |........|........|
|00000b10| ba 2d 3a db 90 00 00 00 | 00 f3 46 6b f7 84 00 00 |.-:.....|..Fk....|
|00000b20| 00 00 0a 9f dd f7 86 00 | 00 00 00 ba 2d 3a db 84 |........|....-:..|
|00000b30| 00 00 00 00 0a 9f dd f7 | 86 00 00 00 00 ba 2d 3a |........|......-:|
|00000b40| db 99 00 00 00 00 99 1d | 4e 35 84 00 00 00 00 0a |........|N5......|
|00000b50| 9f dd f7 86 00 00 00 00 | ba 2d 3a db 04 19 0e 0b |........|.-:.....|
|00000b60| 0c 94 15 27 06 12 26 5d | 0b 0a 6e 65 72 66 61 72 |...'..&]|..nerfar|
|00000b70| 65 6e 61 00 14 01 00 00 | 00 00 1c 01 00 00 00 00 |ena.....|........|
|00000b80| 00 00 00 00 92 00 00 00 | 01 00 00 00 00 00 40 00 |........|......@.|
|00000b90| 00 00 00 3b 01 00 00 00 | 00 00 40 00 00 00 00 00 |...;....|..@.....|
|00000ba0| 01 00 00 00 00 00 00 00 | 00 00 00 40 01 01 00 00 |........|...@....|
|00000bb0| 00 00 00 00 00 00 8e 00 | 00 1a 01 00 00 00 00 00 |........|........|
|00000bc0| 40 00 00 00 00 2b 01 00 | 00 00 80 01 40 00 00 00 |@....+..|....@...|
|00000bd0| 00 46 01 01 00 00 00 00 | 00 00 00 00 00 00 1f 01 |.F......|........|
|00000be0| 00 00 00 00 00 40 00 00 | 00 00 24 01 00 00 00 00 |.....@..|..$.....|
|00000bf0| 00 00 00 00 00 00 2d 01 | 00 00 00 80 01 40 00 00 |......-.|.....@..|
|00000c00| 00 00 49 01 01 00 00 00 | 80 08 40 00 00 00 00 37 |..I.....|..@....7|
|00000c10| 01 00 00 00 00 00 00 00 | 00 00 00 32 01 00 00 00 |........|...2....|
|00000c20| 00 00 00 00 00 00 00 54 | 01 01 00 00 00 80 08 40 |.......T|.......@|
|00000c30| 00 00 00 00 00 01 00 00 | 00 00 40 44 00 00 00 00 |........|..@D....|
|00000c40| 22 01 00 00 00 00 00 00 | 00 00 00 00 2a 01 00 00 |".......|....*...|
|00000c50| 00 00 00 00 00 00 00 00 | 52 01 01 00 00 00 01 40 |........|R......@|
|00000c60| 40 00 02 00 00 00 01 00 | 00 00 00 00 00 00 00 00 |@.......|........|
|00000c70| 00 31 01 00 00 00 00 00 | 40 00 00 00 00 00 01 00 |.1......|@.......|
|00000c80| 00 00 00 00 00 00 00 00 | 00 3d 01 00 00 00 00 00 |........|.=......|
|00000c90| 40 00 00 00 00 00 01 00 | 00 00 00 00 00 00 00 00 |@.......|........|
|00000ca0| 00 0e 01 00 00 00 80 01 | 40 00 00 00 00 00 01 00 |........|@.......|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 0b 01 00 00 00 80 01 |........|........|
|00000cc0| 40 00 00 00 00 20 01 00 | 00 00 00 00 40 00 00 00 |@.... ..|....@...|
|00000cd0| 00 00 01 00 00 00 00 00 | 00 00 00 00 00 2e 01 00 |........|........|
|00000ce0| 00 00 00 00 40 00 00 00 | 00 30 01 00 00 00 00 00 |....@...|.0......|
|00000cf0| 40 00 00 00 00 00 01 00 | 00 00 00 00 40 00 00 00 |@.......|....@...|
|00000d00| 00 79 01 01 00 00 00 80 | 01 40 00 00 00 00 00 01 |.y......|.@......|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 51 01 01 00 00 00 |........|..Q.....|
|00000d20| 80 01 00 00 00 00 00 35 | 01 00 00 00 80 00 00 00 |.......5|........|
|00000d30| 00 00 00 5f 01 01 00 00 | 00 00 00 00 00 00 00 00 |..._....|........|
|00000d40| 00 01 00 00 00 00 00 00 | 00 00 99 00 00 00 01 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 4b 02 01 00 00 00 80 |........|.K......|
|00000d60| 01 40 00 00 00 00 47 01 | 01 00 00 00 00 00 40 00 |.@....G.|......@.|
|00000d70| 00 00 00 40 02 01 00 00 | 00 80 00 40 00 00 00 00 |...@....|...@....|
|00000d80| 48 01 01 00 00 00 00 00 | 00 00 00 00 00 3f 01 00 |H.......|.....?..|
|00000d90| 00 00 00 00 40 00 00 00 | 00 00 01 00 00 00 00 00 |....@...|........|
|00000da0| 40 00 00 00 00 10 01 00 | 00 00 00 00 40 00 00 00 |@.......|....@...|
|00000db0| 00 36 01 00 00 00 80 00 | 00 00 00 8e 00 00 49 02 |.6......|......I.|
|00000dc0| 01 00 00 00 80 00 40 00 | 00 00 00 00 01 00 00 00 |......@.|........|
|00000dd0| 00 00 40 00 00 00 00 00 | 01 00 00 00 00 00 40 00 |..@.....|......@.|
|00000de0| 00 00 00 77 01 01 00 00 | 00 80 00 40 00 00 00 00 |...w....|...@....|
|00000df0| 4e 01 01 00 00 00 00 00 | 00 00 00 00 00 03 01 00 |N.......|........|
|00000e00| 00 00 00 00 40 00 00 00 | 00 00 01 00 00 00 00 00 |....@...|........|
|00000e10| 00 00 00 8f 00 00 4d 01 | 01 00 00 00 80 00 00 00 |......M.|........|
|00000e20| 00 00 00 45 02 01 00 00 | 00 80 00 40 00 00 00 00 |...E....|...@....|
|00000e30| 1e 01 00 00 00 80 00 00 | 00 00 8e 00 00 18 01 00 |........|........|
|00000e40| 00 00 80 00 40 00 00 00 | 00 4a 01 01 00 00 00 80 |....@...|.J......|
|00000e50| 00 00 00 00 00 00 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 16 01 00 00 00 00 | 00 40 00 00 00 00 06 01 |........|.@......|
|00000e70| 00 00 00 80 08 40 00 00 | 00 00 6c 01 01 00 00 00 |.....@..|..l.....|
|00000e80| 80 00 40 00 00 00 00 5c | 01 01 00 00 00 01 40 00 |..@....\|......@.|
|00000e90| 00 02 00 00 55 01 01 00 | 00 00 80 00 00 00 00 00 |....U...|........|
|00000ea0| 00 53 01 01 00 00 00 80 | 00 00 00 00 00 00 4e 02 |.S......|......N.|
|00000eb0| 01 00 00 00 80 00 40 00 | 00 00 00 5a 01 01 00 00 |......@.|...Z....|
|00000ec0| 00 80 00 00 00 00 00 00 | 56 01 01 00 00 00 80 08 |........|V.......|
|00000ed0| 40 00 00 00 00 59 01 01 | 00 00 00 01 40 00 00 02 |@....Y..|....@...|
|00000ee0| 00 00 25 01 00 00 00 01 | 40 00 00 02 00 00 41 02 |..%.....|@.....A.|
|00000ef0| 01 00 00 00 80 01 00 00 | 00 00 00 6e 01 01 00 00 |........|...n....|
|00000f00| 00 80 00 00 00 00 8e 00 | 00 5d 01 01 00 00 00 01 |........|.]......|
|00000f10| 40 00 00 02 00 00 17 01 | 00 00 00 01 00 00 00 02 |@.......|........|
|00000f20| 00 00 4c 01 01 00 00 00 | 80 00 00 00 00 8e 00 00 |..L.....|........|
|00000f30| 00 01 00 00 00 00 00 00 | 00 00 00 00 21 01 00 00 |........|....!...|
|00000f40| 00 80 00 00 00 00 8e 00 | 00 63 01 01 00 00 00 80 |........|.c......|
|00000f50| 00 00 00 00 8e 00 00 23 | 01 00 00 00 01 00 00 00 |.......#|........|
|00000f60| 18 00 00 1b 01 00 00 00 | 80 00 40 00 00 00 00 57 |........|..@....W|
|00000f70| 01 01 00 00 00 80 00 00 | 00 00 8e 00 00 11 01 00 |........|........|
|00000f80| 00 00 00 00 40 00 00 00 | a0 4c 02 00 5e 01 1a 3c |....@...|.L..^..<|
|00000f90| 00 00 00 49 06 00 00 9c | 00 00 00 a5 01 23 16 07 |...I....|.....#..|
|00000fa0| 1a 00 97 01 23 2c 64 16 | 0f 01 23 26 0f 00 46 01 |....#,d.|..#&..F.|
|00000fb0| 01 23 0f 00 18 00 4c 01 | 07 47 00 7a 00 18 1f 00 |.#....L.|.G.z....|
|00000fc0| 16 14 2d 00 1a 28 06 4f | 00 14 2d 00 1a 27 07 9a |..-..(.O|..-..'..|
|00000fd0| 00 2d 00 1a 0f 00 18 1b | 05 00 5e 01 00 18 00 46 |.-......|..^....F|
|00000fe0| 01 00 4e 01 16 07 8f 00 | 7a 00 18 1f 00 16 14 2d |..N.....|z......-|
|00000ff0| 00 1a 28 06 97 00 14 2d | 00 1a 27 06 4f 00 04 0b |..(....-|..'.O...|
|00001000| 00 00 00 02 08 00 00 00 | ac 6d 01 00 39 10 6b 00 |........|.m..9.k.|
|00001010| 00 00 8b 0c 00 00 52 00 | 00 00 14 2d 00 39 1b 0a |......R.|...-.9..|
|00001020| 01 17 01 40 01 16 07 50 | 00 81 2d 00 39 16 e7 1f |...@...P|..-.9...|
|00001030| 46 61 69 6c 65 64 20 74 | 6f 20 73 65 6e 64 20 68 |Failed t|o send h|
|00001040| 65 61 72 74 62 65 61 74 | 20 74 6f 20 6d 61 73 74 |eartbeat| to mast|
|00001050| 65 72 20 73 65 72 76 65 | 72 2e 00 16 04 0b 00 00 |er serve|r.......|
|00001060| 00 02 00 00 00 00 9f 58 | 01 00 00 17 24 00 00 00 |.......X|....$...|
|00001070| 1f 06 00 00 45 01 00 00 | 07 47 00 81 2d 01 58 01 |....E...|.G..-.X.|
|00001080| 16 e7 1f 44 6f 55 70 6c | 69 6e 6b 20 69 73 20 6e |...DoUpl|ink is n|
|00001090| 6f 74 20 73 65 74 2e 20 | 20 4e 6f 74 20 63 6f 6e |ot set. | Not con|
|000010a0| 6e 65 63 74 69 6e 67 20 | 74 6f 20 4d 61 73 74 65 |necting |to Maste|
|000010b0| 72 20 53 65 72 76 65 72 | 2e 00 16 04 0b 2f 61 30 |r Server|...../a0|
|000010c0| 20 12 01 10 01 5d 01 16 | 60 00 06 60 00 31 30 07 | ....]..|`..`.10.|
|000010d0| b4 00 72 01 10 2a 16 e7 | 1f 55 64 70 53 65 72 76 |..r..*..|.UdpServ|
|000010e0| 65 72 55 70 6c 69 6e 6b | 3a 20 43 6f 75 6c 64 20 |erUplink|: Could |
|000010f0| 6e 6f 74 20 66 69 6e 64 | 20 61 20 55 64 70 53 65 |not find| a UdpSe|
|00001100| 72 76 65 72 51 75 65 72 | 79 20 6f 62 6a 65 63 74 |rverQuer|y object|
|00001110| 2c 20 61 62 6f 72 74 69 | 6e 67 2e 00 16 04 0b 0f |, aborti|ng......|
|00001120| 01 40 01 70 70 70 1f 5c | 68 65 61 72 74 62 65 61 |.@.ppp.\|heartbea|
|00001130| 74 5c 00 53 19 01 10 05 | 00 04 01 9c 16 1f 5c 67 |t\.S....|......\g|
|00001140| 61 6d 65 6e 61 6d 65 5c | 00 16 19 01 10 05 00 00 |amename\|........|
|00001150| 01 22 16 0f 36 a3 01 17 | 01 52 01 07 38 01 7a 01 |."..6...|.R..8.z.|
|00001160| 25 1f 00 16 0f 01 25 70 | 70 1f 6d 61 73 74 65 72 |%.....%p|p.master|
|00001170| 00 53 01 5c 01 16 1f 2e | 67 61 6d 65 73 70 79 2e |.S.\....|gamespy.|
|00001180| 63 6f 6d 00 16 1b 20 01 | 25 16 04 0b 00 00 00 02 |com... .|%.......|
|00001190| 00 00 00 00 b7 68 01 00 | 5b 01 1f 47 00 00 00 53 |.....h..|[..G...S|
|000011a0| 09 00 00 42 01 00 00 0f | 36 9d 01 17 36 9d 00 5b |...B....|6...6..[|
|000011b0| 01 07 64 00 9a 36 9d 01 | 17 25 16 e7 1f 55 64 70 |..d..6..|.%...Udp|
|000011c0| 53 65 72 76 65 72 55 70 | 6c 69 6e 6b 3a 20 49 6e |ServerUp|link: In|
|000011d0| 76 61 6c 69 64 20 6d 61 | 73 74 65 72 20 73 65 72 |valid ma|ster ser|
|000011e0| 76 65 72 20 61 64 64 72 | 65 73 73 2c 20 61 62 6f |ver addr|ess, abo|
|000011f0| 72 74 69 6e 67 2e 00 16 | 04 0b e7 70 70 70 1f 55 |rting...|...ppp.U|
|00001200| 64 70 53 65 72 76 65 72 | 55 70 6c 69 6e 6b 3a 20 |dpServer|Uplink: |
|00001210| 4d 61 73 74 65 72 20 53 | 65 72 76 65 72 20 69 73 |Master S|erver is|
|00001220| 20 00 01 25 16 1f 3a 00 | 16 53 36 a3 01 17 16 16 | ..%..:.|.S6.....|
|00001230| 0f 00 28 92 19 01 10 05 | 00 04 01 9c 26 16 07 00 |..(.....|....&...|
|00001240| 01 9a 1b 1b 00 28 27 16 | 25 16 e7 1f 55 64 70 53 |.....('.|%...UdpS|
|00001250| 65 72 76 65 72 55 70 6c | 69 6e 6b 3a 20 45 72 72 |erverUpl|ink: Err|
|00001260| 6f 72 20 62 69 6e 64 69 | 6e 67 20 70 6f 72 74 2c |or bindi|ng port,|
|00001270| 20 61 62 6f 72 74 69 6e | 67 2e 00 16 04 0b e7 70 | abortin|g......p|
|00001280| 70 1f 55 64 70 53 65 72 | 76 65 72 55 70 6c 69 6e |p.UdpSer|verUplin|
|00001290| 6b 3a 20 50 6f 72 74 20 | 00 53 00 28 16 1f 20 73 |k: Port |.S.(.. s|
|000012a0| 75 63 63 65 73 73 66 75 | 6c 6c 79 20 62 6f 75 6e |uccessfu|lly boun|
|000012b0| 64 2e 00 16 16 1b 0d 16 | 04 0b 00 00 00 02 00 00 |d.......|........|
|000012c0| 00 00 00 66 01 00 0a 04 | 55 00 00 00 b2 08 00 00 |...f....|U.......|
|000012d0| 67 01 00 00 07 0e 00 7a | 00 0a 1f 00 16 04 28 07 |g......z|......(.|
|000012e0| 63 01 7a 80 00 0a 26 16 | 1f 5c 00 16 0f 00 16 7e |c.z...&.|.\.....~|
|000012f0| ea 00 0a 93 7d 00 0a 16 | 26 16 16 1f 5c 00 16 07 |....}...|&...\...|
|00001300| 47 00 9a 00 16 25 16 04 | 28 0f 00 4f 01 00 0a 0f |G....%..|(..O....|
|00001310| 00 19 ea 00 0a 93 7d 00 | 0a 16 26 16 16 0f 00 19 |......}.|..&.....|
|00001320| 80 00 19 00 16 16 0f 00 | 0e ea 00 0a 93 7d 00 0a |........|.....}..|
|00001330| 16 92 7d 00 19 16 2c 02 | 16 16 16 07 c9 00 84 7a |..}...,.|.......z|
|00001340| 00 0e 1f 00 16 18 0b 00 | 9a 7d 00 0e 16 26 16 16 |........|.}...&..|
|00001350| 0f 00 3a 1f 66 69 6e 61 | 6c 00 04 27 06 db 00 07 |..:.fina|l..'....|
|00001360| db 00 7a 80 00 0e 26 16 | 1f 5c 00 16 04 27 0f 00 |..z...&.|.\...'..|
|00001370| 16 7e 00 0e 1f 5c 00 16 | 07 0b 01 99 00 16 25 16 |.~...\..|......%.|
|00001380| 0f 00 2b 80 00 0e 00 16 | 16 06 16 01 0f 00 2b 00 |..+.....|......+.|
|00001390| 0e 0f 00 0e ea 00 0a 93 | 7d 00 0a 16 92 92 7d 00 |........|}.....}.|
|000013a0| 19 16 7d 00 2b 16 16 2c | 03 16 16 16 07 5e 01 7a |..}.+..,|.....^.z|
|000013b0| 00 0e 1f 00 16 0f 00 3a | 1f 66 69 6e 61 6c 00 04 |.......:|.final..|
|000013c0| 27 06 60 01 04 27 06 65 | 01 04 28 04 0b 00 00 00 |'.`..'.e|..(.....|
|000013d0| 02 00 00 00 00 00 72 01 | 00 41 01 09 5d 01 00 00 |......r.|.A..]...|
|000013e0| 24 26 00 00 39 01 00 00 | 14 2d 00 24 28 0f 00 13 |$&..9...|.-.$(...|
|000013f0| 19 01 88 05 00 04 01 b9 | 07 30 01 96 00 1c 19 19 |........|.0......|
|00001400| 01 88 05 00 04 01 8c 05 | 00 04 01 98 16 07 19 01 |........|........|
|00001410| 19 00 13 08 00 04 61 2f | 21 1d 16 07 c5 00 82 9a |......a/|!.......|
|00001420| 00 1c 93 19 19 01 88 05 | 00 04 01 8c 05 00 04 01 |........|........|
|00001430| 98 26 16 16 18 0f 00 7a | 00 51 01 1f 66 69 6e 61 |.&.....z|.Q..fina|
|00001440| 6c 00 16 16 14 2d 00 2a | 1b 01 00 41 01 1b 07 2e |l....-.*|...A....|
|00001450| 8f 00 13 00 1c 16 00 36 | a3 00 35 16 1f 66 69 6e |.......6|..5..fin|
|00001460| 61 6c 00 16 06 fa 00 14 | 2d 00 2a 1b 01 00 41 01 |al......|-.*...A.|
|00001470| 1b 07 2e 8f 00 13 00 1c | 16 00 36 a3 00 35 16 1f |........|..6..5..|
|00001480| 00 16 14 2d 00 24 84 2d | 00 2a 18 07 00 2d 00 24 |...-.$.-|.*...-.$|
|00001490| 16 a5 00 1c 16 0f 00 13 | 19 00 13 05 00 04 01 b2 |........|........|
|000014a0| 06 1c 00 04 2d 00 24 04 | 0b 00 00 00 02 00 00 00 |....-.$.|........|
|000014b0| 00 00 13 01 00 00 00 80 | 05 00 00 00 00 b8 69 01 |........|......i.|
|000014c0| 00 00 22 63 00 00 00 e6 | 0b 00 00 49 00 00 00 e7 |.."c....|...I....|
|000014d0| 1f 55 64 70 53 65 72 76 | 65 72 55 70 6c 69 6e 6b |.UdpServ|erUplink|
|000014e0| 3a 20 46 61 69 6c 65 64 | 20 74 6f 20 72 65 73 6f |: Failed| to reso|
|000014f0| 6c 76 65 20 6d 61 73 74 | 65 72 20 73 65 72 76 65 |lve mast|er serve|
|00001500| 72 20 61 64 64 72 65 73 | 73 2c 20 61 62 6f 72 74 |r addres|s, abort|
|00001510| 69 6e 67 2e 00 16 04 0b | 00 00 00 02 00 00 00 00 |ing.....|........|
|00001520| 00 28 01 00 00 00 00 00 | 00 00 00 00 00 02 01 00 |.(......|........|
|00001530| 00 00 80 05 40 00 00 00 | 00 7a 01 00 42 01 16 80 |....@...|.z..B...|
|00001540| 01 00 00 64 29 00 00 3c | 00 00 00 0f 00 43 01 70 |...d)..<|.....C.p|
|00001550| 70 70 1f 5c 00 00 42 01 | 16 1f 5c 00 16 19 19 01 |pp.\..B.|..\.....|
|00001560| 88 05 00 04 01 8c 0b 00 | 00 1c 9a 00 42 01 16 16 |........|....B...|
|00001570| 04 00 43 01 04 0b 00 00 | 00 02 00 00 00 00 00 70 |..C.....|.......p|
|00001580| 01 00 3c 13 8c 01 00 00 | 65 2a 00 00 60 00 00 00 |..<.....|e*..`...|
|00001590| 2f 61 30 20 8f 00 48 01 | 16 57 00 a5 00 3d 16 0f |/a0 ..H.|.W...=..|
|000015a0| 00 29 70 70 70 70 70 70 | 00 29 1f 5c 00 16 00 3c |.)pppppp|.).\...<|
|000015b0| 16 1f 5f 00 16 53 00 3d | 16 1f 5c 00 16 19 00 48 |.._..S.=|..\....H|
|000015c0| 01 0b 00 00 1c 9a 00 3c | 16 16 31 30 04 00 29 04 |.......<|..10..).|
|000015d0| 0b 00 00 00 02 00 00 00 | 00 00 74 01 00 0c 07 38 |........|..t....8|
|000015e0| 01 00 00 3f 22 00 00 06 | 02 00 00 0f 00 02 70 70 |...?"...|......pp|
|000015f0| 70 1f 5c 70 6c 61 79 65 | 72 5f 00 53 00 0d 16 1f |p.\playe|r_.S....|
|00001600| 5c 00 16 19 19 00 0c 05 | 00 04 01 9b 05 00 00 01 |\.......|........|
|00001610| b1 16 0f 00 02 70 70 70 | 70 00 02 1f 5c 66 72 61 |.....ppp|p...\fra|
|00001620| 67 73 5f 00 16 53 00 0d | 16 1f 5c 00 16 53 44 19 |gs_..S..|..\..SD.|
|00001630| 19 00 0c 05 00 04 01 9b | 05 00 04 01 ad 16 0f 00 |........|........|
|00001640| 02 70 70 70 70 00 02 1f | 5c 70 69 6e 67 5f 00 16 |.pppp...|\ping_..|
|00001650| 53 00 0d 16 1f 5c 00 16 | 19 00 0c 0f 00 00 1b 28 |S....\..|.......(|
|00001660| 1f 47 45 54 50 49 4e 47 | 00 16 16 0f 00 02 70 70 |.GETPING|......pp|
|00001670| 70 70 00 02 1f 5c 74 65 | 61 6d 5f 00 16 53 00 0d |pp...\te|am_..S..|
|00001680| 16 1f 5c 00 16 52 19 19 | 00 0c 05 00 04 01 9b 05 |..\..R..|........|
|00001690| 00 01 01 ae 16 0f 00 02 | 70 70 70 70 00 02 1f 5c |........|pppp...\|
|000016a0| 6d 65 73 68 5f 00 16 53 | 00 0d 16 1f 5c 00 16 19 |mesh_..S|....\...|
|000016b0| 00 0c 05 00 00 01 b6 16 | 07 a5 01 72 19 00 0c 05 |........|...r....|
|000016c0| 00 04 01 a8 2a 16 19 00 | 0c 15 00 00 1b 25 00 0c |....*...|.....%..|
|000016d0| 00 3e 00 3f 16 0f 00 02 | 70 70 70 70 00 02 1f 5c |.>.?....|pppp...\|
|000016e0| 73 6b 69 6e 5f 00 16 53 | 00 0d 16 1f 5c 00 16 00 |skin_..S|....\...|
|000016f0| 3e 16 0f 00 02 70 70 70 | 70 00 02 1f 5c 66 61 63 |>....ppp|p...\fac|
|00001700| 65 5f 00 16 53 00 0d 16 | 1f 5c 00 16 00 3f 16 06 |e_..S...|.\...?..|
|00001710| fe 01 0f 00 02 70 70 70 | 70 00 02 1f 5c 73 6b 69 |.....ppp|p...\ski|
|00001720| 6e 5f 00 16 53 00 0d 16 | 1f 5c 00 16 56 19 00 0c |n_..S...|.\..V...|
|00001730| 05 00 04 01 a8 16 0f 00 | 02 70 70 70 00 02 1f 5c |........|.ppp...\|
|00001740| 66 61 63 65 5f 00 16 53 | 00 0d 16 1f 5c 4e 6f 6e |face_..S|....\Non|
|00001750| 65 00 16 04 00 02 04 0b | 00 00 00 02 00 00 00 00 |e.......|........|
|00001760| 00 7d 01 00 09 04 9e 00 | 00 00 04 11 00 00 67 01 |.}......|......g.|
|00001770| 00 00 07 0e 00 7a 00 09 | 1f 00 16 04 28 07 63 01 |.....z..|....(.c.|
|00001780| 7a 80 00 09 26 16 1f 5c | 00 16 0f 00 11 7e ea 00 |z...&..\|.....~..|
|00001790| 09 93 7d 00 09 16 26 16 | 16 1f 5c 00 16 07 47 00 |..}...&.|..\...G.|
|000017a0| 9a 00 11 25 16 04 28 0f | 00 65 01 00 09 0f 00 1d |...%..(.|.e......|
|000017b0| ea 00 09 93 7d 00 09 16 | 26 16 16 0f 00 1d 80 00 |....}...|&.......|
|000017c0| 1d 00 11 16 0f 00 0b ea | 00 09 93 7d 00 09 16 92 |........|...}....|
|000017d0| 7d 00 1d 16 2c 02 16 16 | 16 07 c9 00 84 7a 00 0b |}...,...|.....z..|
|000017e0| 1f 00 16 18 0b 00 9a 7d | 00 0b 16 26 16 16 0f 00 |.......}|...&....|
|000017f0| 33 1f 66 69 6e 61 6c 00 | 04 27 06 db 00 07 db 00 |3.final.|.'......|
|00001800| 7a 80 00 0b 26 16 1f 5c | 00 16 04 27 0f 00 11 7e |z...&..\|...'...~|
|00001810| 00 0b 1f 5c 00 16 07 0b | 01 99 00 11 25 16 0f 00 |...\....|....%...|
|00001820| 2d 80 00 0b 00 11 16 06 | 16 01 0f 00 2d 00 0b 0f |-.......|....-...|
|00001830| 00 0b ea 00 09 93 7d 00 | 09 16 92 92 7d 00 1d 16 |......}.|....}...|
|00001840| 7d 00 2d 16 16 2c 03 16 | 16 16 07 5e 01 7a 00 0b |}.-..,..|...^.z..|
|00001850| 1f 00 16 0f 00 33 1f 66 | 69 6e 61 6c 00 04 27 06 |.....3.f|inal..'.|
|00001860| 60 01 04 27 06 65 01 04 | 28 04 0b 00 00 00 02 00 |`..'.e..|(.......|
|00001870| 00 00 00 00 78 01 00 4d | 02 03 24 01 00 00 08 20 |....x..M|..$.... |
|00001880| 00 00 ed 00 00 00 0f 00 | 14 19 19 01 88 05 00 04 |........|........|
|00001890| 01 8c 06 00 00 1b 03 16 | 07 81 00 7b 19 19 19 01 |........|...{....|
|000018a0| 88 05 00 04 01 8c 05 00 | 04 01 93 05 00 00 01 a1 |........|........|
|000018b0| 1f 00 16 0f 00 14 70 70 | 00 14 1f 5c 41 64 6d 69 |......pp|...\Admi|
|000018c0| 6e 4e 61 6d 65 5c 00 16 | 19 19 19 01 88 05 00 04 |nName\..|........|
|000018d0| 01 8c 05 00 04 01 93 05 | 00 00 01 a1 16 07 e5 00 |........|........|
|000018e0| 7b 19 19 19 01 88 05 00 | 04 01 8c 05 00 04 01 93 |{.......|........|
|000018f0| 05 00 00 01 a2 1f 00 16 | 0f 00 14 70 70 00 14 1f |........|...pp...|
|00001900| 5c 41 64 6d 69 6e 45 4d | 61 69 6c 5c 00 16 19 19 |\AdminEM|ail\....|
|00001910| 19 01 88 05 00 04 01 8c | 05 00 04 01 93 05 00 00 |........|........|
|00001920| 01 a2 16 04 00 14 04 0b | 00 00 00 02 00 00 00 00 |........|........|
|00001930| 9f 62 01 00 2c 17 1d 00 | 00 00 af 03 00 00 a0 00 |.b..,...|........|
|00001940| 00 00 0f 01 af 01 62 01 | 0f 00 2c 1b 1b 19 19 01 |......b.|..,.....|
|00001950| 88 05 00 04 01 8c 06 00 | 04 1b 0f 16 27 16 07 65 |........|....'..e|
|00001960| 00 9a 00 2c 25 16 e7 1f | 55 64 70 53 65 72 76 65 |...,%...|UdpServe|
|00001970| 72 51 75 65 72 79 3a 20 | 50 6f 72 74 20 66 61 69 |rQuery: |Port fai|
|00001980| 6c 65 64 20 74 6f 20 62 | 69 6e 64 2e 00 16 04 0b |led to b|ind.....|
|00001990| e7 70 70 1f 55 64 70 53 | 65 72 76 65 72 51 75 65 |.pp.UdpS|erverQue|
|000019a0| 72 79 3a 20 50 6f 72 74 | 20 00 53 00 2c 16 1f 20 |ry: Port| .S.,.. |
|000019b0| 73 75 63 63 65 73 73 66 | 75 6c 6c 79 20 62 6f 75 |successf|ully bou|
|000019c0| 6e 64 2e 00 16 16 04 0b | 00 00 00 02 00 00 00 00 |nd......|........|
|000019d0| 00 01 01 00 00 00 80 05 | 40 00 00 00 00 44 01 01 |........|@....D..|
|000019e0| 00 00 00 80 05 40 00 00 | 00 00 44 02 00 76 01 06 |.....@..|..D..v..|
|000019f0| f5 00 00 00 76 1a 00 00 | 40 02 00 00 0f 00 01 70 |....v...|@......p|
|00001a00| 1f 5c 68 6f 73 74 6e 61 | 6d 65 5c 00 19 19 19 01 |.\hostna|me\.....|
|00001a10| 88 05 00 04 01 8c 05 00 | 04 01 93 05 00 00 01 b4 |........|........|
|00001a20| 16 0f 00 01 70 70 00 01 | 1f 5c 73 68 6f 72 74 6e |....pp..|.\shortn|
|00001a30| 61 6d 65 5c 00 16 19 19 | 19 01 88 05 00 04 01 8c |ame\....|........|
|00001a40| 05 00 04 01 93 05 00 00 | 01 b3 16 0f 00 01 70 70 |........|......pp|
|00001a50| 00 01 1f 5c 68 6f 73 74 | 70 6f 72 74 5c 00 16 53 |...\host|port\..S|
|00001a60| 19 19 01 88 05 00 04 01 | 8c 06 00 04 1b 0f 16 16 |........|........|
|00001a70| 0f 00 01 70 70 00 01 1f | 5c 6d 61 70 74 69 74 6c |...pp...|\maptitl|
|00001a80| 65 5c 00 16 19 01 88 05 | 00 00 01 aa 16 0f 00 01 |e\......|........|
|00001a90| 70 70 00 01 1f 5c 6d 61 | 70 6e 61 6d 65 5c 00 16 |pp...\ma|pname\..|
|00001aa0| 80 56 01 88 7e 56 01 88 | 1f 2e 00 16 16 16 0f 00 |.V..~V..|........|
|00001ab0| 01 70 70 00 01 1f 5c 67 | 61 6d 65 74 79 70 65 5c |.pp...\g|ametype\|
|00001ac0| 00 16 1b 23 56 19 19 01 | 88 05 00 04 01 8c 05 00 |...#V...|........|
|00001ad0| 04 01 b0 16 16 0f 00 01 | 70 70 00 01 1f 5c 6e 75 |........|pp...\nu|
|00001ae0| 6d 70 6c 61 79 65 72 73 | 5c 00 16 53 19 19 01 88 |mplayers|\..S....|
|00001af0| 05 00 04 01 8c 05 00 04 | 01 98 16 0f 00 01 70 70 |........|......pp|
|00001b00| 00 01 1f 5c 6d 61 78 70 | 6c 61 79 65 72 73 5c 00 |...\maxp|layers\.|
|00001b10| 16 53 19 19 01 88 05 00 | 04 01 8c 05 00 04 01 b5 |.S......|........|
|00001b20| 16 0f 00 01 70 00 01 1f | 5c 67 61 6d 65 6d 6f 64 |....p...|\gamemod|
|00001b30| 65 5c 6f 70 65 6e 70 6c | 61 79 69 6e 67 00 16 0f |e\openpl|aying...|
|00001b40| 00 01 70 70 00 01 1f 5c | 67 61 6d 65 76 65 72 5c |..pp...\|gamever\|
|00001b50| 00 16 19 01 88 05 00 00 | 01 a7 16 0f 00 01 70 70 |........|......pp|
|00001b60| 00 01 1f 5c 6d 69 6e 6e | 65 74 76 65 72 5c 00 16 |...\minn|etver\..|
|00001b70| 19 01 88 05 00 00 01 a5 | 16 0f 00 01 70 00 01 19 |........|....p...|
|00001b80| 19 01 88 05 00 04 01 8c | 06 00 00 1b 06 16 16 04 |........|........|
|00001b90| 00 01 04 0b 00 00 00 02 | 00 00 00 00 00 65 01 01 |........|.....e..|
|00001ba0| 00 00 00 80 05 00 00 00 | 00 00 6b 01 00 45 01 11 |........|..k..E..|
|00001bb0| 76 01 00 00 8b 28 00 00 | 33 00 00 00 0f 00 44 01 |v....(..|3.....D.|
|00001bc0| 70 70 70 1f 5c 00 00 45 | 01 16 1f 5c 00 16 19 01 |ppp.\..E|...\....|
|00001bd0| 88 0b 00 00 1c 9a 00 45 | 01 16 16 04 00 44 01 04 |.......E|.....D..|
|00001be0| 0b 00 00 00 02 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 5a 67 2f 2f 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.Zg//===|========|
|00001c00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001c40| 3d 3d 0d 0a 2f 2f 20 55 | 64 70 53 65 72 76 65 72 |==..// U|dpServer|
|00001c50| 55 70 6c 69 6e 6b 0d 0a | 2f 2f 0d 0a 2f 2f 20 56 |Uplink..|//..// V|
|00001c60| 65 72 73 69 6f 6e 3a 20 | 31 2e 33 0d 0a 2f 2f 0d |ersion: |1.3..//.|
|00001c70| 0a 2f 2f 20 54 68 69 73 | 20 75 70 6c 69 6e 6b 20 |.// This| uplink |
|00001c80| 69 73 20 63 6f 6d 70 6c | 69 61 6e 74 20 77 69 74 |is compl|iant wit|
|00001c90| 68 20 74 68 65 20 47 61 | 6d 65 53 70 79 20 55 70 |h the Ga|meSpy Up|
|00001ca0| 6c 69 6e 6b 20 53 70 65 | 63 69 66 69 63 61 74 69 |link Spe|cificati|
|00001cb0| 6f 6e 2e 0d 0a 2f 2f 20 | 54 68 65 20 73 70 65 63 |on...// |The spec|
|00001cc0| 69 66 69 63 61 74 69 6f | 6e 20 69 73 20 61 76 61 |ificatio|n is ava|
|00001cd0| 69 6c 61 62 6c 65 20 61 | 74 20 68 74 74 70 3a 2f |ilable a|t http:/|
|00001ce0| 2f 77 77 77 2e 67 61 6d | 65 73 70 79 2e 63 6f 6d |/www.gam|espy.com|
|00001cf0| 2f 64 65 76 65 6c 6f 70 | 65 72 0d 0a 2f 2f 20 61 |/develop|er..// a|
|00001d00| 6e 64 20 6d 69 67 68 74 | 20 62 65 20 6f 66 20 75 |nd might| be of u|
|00001d10| 73 65 20 74 6f 20 70 72 | 6f 67 61 6d 6d 65 72 73 |se to pr|ogammers|
|00001d20| 20 77 68 6f 20 77 61 6e | 74 20 74 6f 20 61 64 61 | who wan|t to ada|
|00001d30| 70 74 20 74 68 65 69 72 | 20 6f 77 6e 0d 0a 2f 2f |pt their| own..//|
|00001d40| 20 73 65 72 76 65 72 20 | 75 70 6c 69 6e 6b 73 2e | server |uplinks.|
|00001d50| 0d 0a 2f 2f 0d 0a 2f 2f | 20 55 64 70 53 65 72 76 |..//..//| UdpServ|
|00001d60| 65 72 55 70 6c 69 6e 6b | 20 73 65 6e 64 73 20 61 |erUplink| sends a|
|00001d70| 20 68 65 61 72 74 62 65 | 61 74 20 74 6f 20 74 68 | heartbe|at to th|
|00001d80| 65 20 73 70 65 63 69 66 | 69 65 64 20 6d 61 73 74 |e specif|ied mast|
|00001d90| 65 72 20 73 65 72 76 65 | 72 0d 0a 2f 2f 20 65 76 |er serve|r..// ev|
|00001da0| 65 72 79 20 66 69 76 65 | 20 6d 69 6e 75 74 65 73 |ery five| minutes|
|00001db0| 2e 20 20 54 68 65 20 68 | 65 61 72 74 62 65 61 74 |. The h|eartbeat|
|00001dc0| 20 69 73 20 69 6e 20 74 | 68 65 20 66 6f 72 6d 3a | is in t|he form:|
|00001dd0| 0d 0a 2f 2f 20 20 20 20 | 5c 68 65 61 72 74 62 65 |..// |\heartbe|
|00001de0| 61 74 5c 51 75 65 72 79 | 50 6f 72 74 5c 67 61 6d |at\Query|Port\gam|
|00001df0| 65 6e 61 6d 65 5c 75 6e | 72 65 61 6c 0d 0a 2f 2f |ename\un|real..//|
|00001e00| 0d 0a 2f 2f 20 46 75 6c | 6c 20 64 6f 63 75 6d 65 |..// Ful|l docume|
|00001e10| 6e 74 61 74 69 6f 6e 20 | 6f 6e 20 74 68 69 73 20 |ntation |on this |
|00001e20| 63 6c 61 73 73 20 69 73 | 20 61 76 61 69 6c 61 62 |class is| availab|
|00001e30| 6c 65 20 61 74 20 68 74 | 74 70 3a 2f 2f 75 6e 72 |le at ht|tp://unr|
|00001e40| 65 61 6c 2e 65 70 69 63 | 67 61 6d 65 73 2e 63 6f |eal.epic|games.co|
|00001e50| 6d 2f 0d 0a 2f 2f 0d 0a | 2f 2f 3d 3d 3d 3d 3d 3d |m/..//..|//======|
|00001e60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001e90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001ea0| 3d 3d 3d 3d 3d 3d 3d 0d | 0a 63 6c 61 73 73 20 55 |=======.|.class U|
|00001eb0| 64 70 53 65 72 76 65 72 | 55 70 6c 69 6e 6b 20 65 |dpServer|Uplink e|
|00001ec0| 78 74 65 6e 64 73 20 55 | 64 70 4c 69 6e 6b 20 63 |xtends U|dpLink c|
|00001ed0| 6f 6e 66 69 67 3b 0d 0a | 0d 0a 2f 2f 20 4d 61 73 |onfig;..|..// Mas|
|00001ee0| 74 65 72 20 55 70 6c 69 | 6e 6b 20 43 6f 6e 66 69 |ter Upli|nk Confi|
|00001ef0| 67 2e 0d 0a 76 61 72 28 | 29 20 63 6f 6e 66 69 67 |g...var(|) config|
|00001f00| 20 62 6f 6f 6c 09 09 44 | 6f 55 70 6c 69 6e 6b 3b | bool..D|oUplink;|
|00001f10| 09 09 09 09 2f 2f 20 49 | 66 20 74 72 75 65 2c 20 |....// I|f true, |
|00001f20| 64 6f 20 74 68 65 20 75 | 70 6c 69 6e 6b 0d 0a 76 |do the u|plink..v|
|00001f30| 61 72 28 29 20 63 6f 6e | 66 69 67 20 69 6e 74 09 |ar() con|fig int.|
|00001f40| 09 55 70 64 61 74 65 4d | 69 6e 75 74 65 73 3b 09 |.UpdateM|inutes;.|
|00001f50| 09 09 2f 2f 20 50 65 72 | 69 6f 64 20 6f 66 20 75 |..// Per|iod of u|
|00001f60| 70 64 61 74 65 20 28 69 | 6e 20 6d 69 6e 75 74 65 |pdate (i|n minute|
|00001f70| 73 29 0d 0a 76 61 72 28 | 29 20 63 6f 6e 66 69 67 |s)..var(|) config|
|00001f80| 20 73 74 72 69 6e 67 20 | 20 20 20 20 4d 61 73 74 | string | Mast|
|00001f90| 65 72 53 65 72 76 65 72 | 41 64 64 72 65 73 73 3b |erServer|Address;|
|00001fa0| 09 2f 2f 20 41 64 64 72 | 65 73 73 20 6f 66 20 74 |.// Addr|ess of t|
|00001fb0| 68 65 20 6d 61 73 74 65 | 72 20 73 65 72 76 65 72 |he maste|r server|
|00001fc0| 0d 0a 76 61 72 28 29 20 | 63 6f 6e 66 69 67 20 69 |..var() |config i|
|00001fd0| 6e 74 09 09 4d 61 73 74 | 65 72 53 65 72 76 65 72 |nt..Mast|erServer|
|00001fe0| 50 6f 72 74 3b 09 09 2f | 2f 20 4f 70 74 69 6f 6e |Port;../|/ Option|
|00001ff0| 61 6c 20 70 6f 72 74 20 | 74 68 61 74 20 74 68 65 |al port |that the|
|00002000| 20 6d 61 73 74 65 72 20 | 73 65 72 76 65 72 20 69 | master |server i|
|00002010| 73 20 6c 69 73 74 65 6e | 69 6e 67 20 6f 6e 0d 0a |s listen|ing on..|
|00002020| 76 61 72 28 29 20 63 6f | 6e 66 69 67 20 69 6e 74 |var() co|nfig int|
|00002030| 20 09 09 52 65 67 69 6f | 6e 3b 09 09 09 09 09 2f | ..Regio|n;...../|
|00002040| 2f 20 52 65 67 69 6f 6e | 20 6f 66 20 74 68 65 20 |/ Region| of the |
|00002050| 67 61 6d 65 20 73 65 72 | 76 65 72 0d 0a 76 61 72 |game ser|ver..var|
|00002060| 28 29 20 6e 61 6d 65 09 | 09 09 09 54 61 72 67 65 |() name.|...Targe|
|00002070| 74 51 75 65 72 79 4e 61 | 6d 65 3b 09 09 2f 2f 20 |tQueryNa|me;..// |
|00002080| 4e 61 6d 65 20 6f 66 20 | 74 68 65 20 71 75 65 72 |Name of |the quer|
|00002090| 79 20 73 65 72 76 65 72 | 20 6f 62 6a 65 63 74 20 |y server| object |
|000020a0| 74 6f 20 75 73 65 2e 0d | 0a 76 61 72 20 49 70 41 |to use..|.var IpA|
|000020b0| 64 64 72 09 09 09 09 4d | 61 73 74 65 72 53 65 72 |ddr....M|asterSer|
|000020c0| 76 65 72 49 70 41 64 64 | 72 3b 09 09 2f 2f 20 4d |verIpAdd|r;..// M|
|000020d0| 61 73 74 65 72 20 73 65 | 72 76 65 72 27 73 20 61 |aster se|rver's a|
|000020e0| 64 64 72 65 73 73 2e 0d | 0a 76 61 72 20 73 74 72 |ddress..|.var str|
|000020f0| 69 6e 67 09 09 20 20 20 | 20 20 20 20 20 48 65 61 |ing.. | Hea|
|00002100| 72 74 62 65 61 74 4d 65 | 73 73 61 67 65 3b 09 09 |rtbeatMe|ssage;..|
|00002110| 2f 2f 20 54 68 65 20 6d | 65 73 73 61 67 65 20 74 |// The m|essage t|
|00002120| 68 61 74 20 69 73 20 73 | 65 6e 74 20 74 6f 20 74 |hat is s|ent to t|
|00002130| 68 65 20 6d 61 73 74 65 | 72 20 73 65 72 76 65 72 |he maste|r server|
|00002140| 2e 0d 0a 76 61 72 20 55 | 64 70 53 65 72 76 65 72 |...var U|dpServer|
|00002150| 51 75 65 72 79 20 20 20 | 20 20 20 51 75 65 72 79 |Query | Query|
|00002160| 3b 09 09 09 09 09 2f 2f | 20 54 68 65 20 71 75 65 |;.....//| The que|
|00002170| 72 79 20 6f 62 6a 65 63 | 74 2e 0d 0a 76 61 72 20 |ry objec|t...var |
|00002180| 69 6e 74 09 09 09 09 20 | 20 20 20 43 75 72 72 65 |int.... | Curre|
|00002190| 6e 74 51 75 65 72 79 4e | 75 6d 3b 09 09 2f 2f 20 |ntQueryN|um;..// |
|000021a0| 51 75 65 72 79 20 49 44 | 20 4e 75 6d 62 65 72 2e |Query ID| Number.|
|000021b0| 0d 0a 0d 0a 2f 2f 20 49 | 6e 69 74 69 61 6c 69 7a |....// I|nitializ|
|000021c0| 65 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 50 72 65 |e...func|tion Pre|
|000021d0| 42 65 67 69 6e 50 6c 61 | 79 28 29 0d 0a 7b 0d 0a |BeginPla|y()..{..|
|000021e0| 09 2f 2f 20 49 66 20 6d | 61 73 74 65 72 20 73 65 |.// If m|aster se|
|000021f0| 72 76 65 72 20 75 70 6c | 69 6e 6b 20 69 73 6e 27 |rver upl|ink isn'|
|00002200| 74 20 77 61 6e 74 65 64 | 2c 20 65 78 69 74 2e 0d |t wanted|, exit..|
|00002210| 0a 09 69 66 28 20 21 44 | 6f 55 70 6c 69 6e 6b 20 |..if( !D|oUplink |
|00002220| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 67 28 22 44 6f |)...{...|.Log("Do|
|00002230| 55 70 6c 69 6e 6b 20 69 | 73 20 6e 6f 74 20 73 65 |Uplink i|s not se|
|00002240| 74 2e 20 20 4e 6f 74 20 | 63 6f 6e 6e 65 63 74 69 |t. Not |connecti|
|00002250| 6e 67 20 74 6f 20 4d 61 | 73 74 65 72 20 53 65 72 |ng to Ma|ster Ser|
|00002260| 76 65 72 2e 22 29 3b 0d | 0a 09 09 72 65 74 75 72 |ver.");.|...retur|
|00002270| 6e 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 2f 2f 20 46 69 |n;...}..|...// Fi|
|00002280| 6e 64 20 61 20 74 68 65 | 20 73 65 72 76 65 72 20 |nd a the| server |
|00002290| 71 75 65 72 79 20 68 61 | 6e 64 6c 65 72 2e 0d 0a |query ha|ndler...|
|000022a0| 09 66 6f 72 65 61 63 68 | 20 41 6c 6c 41 63 74 6f |.foreach| AllActo|
|000022b0| 72 73 28 63 6c 61 73 73 | 27 55 64 70 53 65 72 76 |rs(class|'UdpServ|
|000022c0| 65 72 51 75 65 72 79 27 | 2c 20 51 75 65 72 79 2c |erQuery'|, Query,|
|000022d0| 20 54 61 72 67 65 74 51 | 75 65 72 79 4e 61 6d 65 | TargetQ|ueryName|
|000022e0| 29 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 0d 0a 09 |)....bre|ak;.....|
|000022f0| 69 66 28 20 51 75 65 72 | 79 3d 3d 4e 6f 6e 65 20 |if( Quer|y==None |
|00002300| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 67 28 22 55 64 |)...{...|.Log("Ud|
|00002310| 70 53 65 72 76 65 72 55 | 70 6c 69 6e 6b 3a 20 43 |pServerU|plink: C|
|00002320| 6f 75 6c 64 20 6e 6f 74 | 20 66 69 6e 64 20 61 20 |ould not| find a |
|00002330| 55 64 70 53 65 72 76 65 | 72 51 75 65 72 79 20 6f |UdpServe|rQuery o|
|00002340| 62 6a 65 63 74 2c 20 61 | 62 6f 72 74 69 6e 67 2e |bject, a|borting.|
|00002350| 22 29 3b 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |");....r|eturn;..|
|00002360| 09 7d 0d 0a 0d 0a 09 2f | 2f 20 53 65 74 20 68 65 |.}...../|/ Set he|
|00002370| 61 72 74 62 65 61 74 20 | 6d 65 73 73 61 67 65 2e |artbeat |message.|
|00002380| 0d 0a 09 48 65 61 72 74 | 62 65 61 74 4d 65 73 73 |...Heart|beatMess|
|00002390| 61 67 65 20 3d 20 22 5c | 5c 68 65 61 72 74 62 65 |age = "\|\heartbe|
|000023a0| 61 74 5c 5c 22 24 51 75 | 65 72 79 2e 50 6f 72 74 |at\\"$Qu|ery.Port|
|000023b0| 24 22 5c 5c 67 61 6d 65 | 6e 61 6d 65 5c 5c 22 24 |$"\\game|name\\"$|
|000023c0| 51 75 65 72 79 2e 47 61 | 6d 65 4e 61 6d 65 3b 0d |Query.Ga|meName;.|
|000023d0| 0a 0d 0a 09 2f 2f 20 53 | 65 74 20 74 68 65 20 50 |....// S|et the P|
|000023e0| 6f 72 74 2e 0d 0a 09 4d | 61 73 74 65 72 53 65 72 |ort....M|asterSer|
|000023f0| 76 65 72 49 70 41 64 64 | 72 2e 50 6f 72 74 20 3d |verIpAdd|r.Port =|
|00002400| 20 4d 61 73 74 65 72 53 | 65 72 76 65 72 50 6f 72 | MasterS|erverPor|
|00002410| 74 3b 0d 0a 0d 0a 09 2f | 2f 20 52 65 73 6f 6c 76 |t;...../|/ Resolv|
|00002420| 65 20 74 68 65 20 41 64 | 64 72 65 73 73 2e 0d 0a |e the Ad|dress...|
|00002430| 09 69 66 28 20 4d 61 73 | 74 65 72 53 65 72 76 65 |.if( Mas|terServe|
|00002440| 72 41 64 64 72 65 73 73 | 3d 3d 22 22 20 29 0d 0a |rAddress|=="" )..|
|00002450| 09 09 4d 61 73 74 65 72 | 53 65 72 76 65 72 41 64 |..Master|ServerAd|
|00002460| 64 72 65 73 73 20 3d 20 | 22 6d 61 73 74 65 72 22 |dress = |"master"|
|00002470| 24 52 65 67 69 6f 6e 24 | 22 2e 67 61 6d 65 73 70 |$Region$|".gamesp|
|00002480| 79 2e 63 6f 6d 22 3b 0d | 0a 09 52 65 73 6f 6c 76 |y.com";.|..Resolv|
|00002490| 65 28 20 4d 61 73 74 65 | 72 53 65 72 76 65 72 41 |e( Maste|rServerA|
|000024a0| 64 64 72 65 73 73 20 29 | 3b 0d 0a 7d 0d 0a 0d 0a |ddress )|;..}....|
|000024b0| 2f 2f 20 57 68 65 6e 20 | 6d 61 73 74 65 72 20 73 |// When |master s|
|000024c0| 65 72 76 65 72 20 61 64 | 64 72 65 73 73 20 69 73 |erver ad|dress is|
|000024d0| 20 72 65 73 6f 6c 76 65 | 64 2e 0d 0a 66 75 6e 63 | resolve|d...func|
|000024e0| 74 69 6f 6e 20 52 65 73 | 6f 6c 76 65 64 28 20 49 |tion Res|olved( I|
|000024f0| 70 41 64 64 72 20 41 64 | 64 72 20 29 0d 0a 7b 0d |pAddr Ad|dr )..{.|
|00002500| 0a 09 6c 6f 63 61 6c 20 | 62 6f 6f 6c 20 52 65 73 |..local |bool Res|
|00002510| 75 6c 74 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |ult;...l|ocal int|
|00002520| 20 55 70 6c 69 6e 6b 50 | 6f 72 74 3b 0d 0a 0d 0a | UplinkP|ort;....|
|00002530| 09 2f 2f 20 53 65 74 20 | 74 68 65 20 61 64 64 72 |.// Set |the addr|
|00002540| 65 73 73 0d 0a 09 4d 61 | 73 74 65 72 53 65 72 76 |ess...Ma|sterServ|
|00002550| 65 72 49 70 41 64 64 72 | 2e 41 64 64 72 20 3d 20 |erIpAddr|.Addr = |
|00002560| 41 64 64 72 2e 41 64 64 | 72 3b 0d 0a 0d 0a 09 2f |Addr.Add|r;...../|
|00002570| 2f 20 48 61 6e 64 6c 65 | 20 66 61 69 6c 75 72 65 |/ Handle| failure|
|00002580| 2e 0d 0a 09 69 66 28 20 | 4d 61 73 74 65 72 53 65 |....if( |MasterSe|
|00002590| 72 76 65 72 49 70 41 64 | 64 72 2e 41 64 64 72 20 |rverIpAd|dr.Addr |
|000025a0| 3d 3d 20 30 20 29 0d 0a | 09 7b 0d 0a 09 09 4c 6f |== 0 )..|.{....Lo|
|000025b0| 67 28 22 55 64 70 53 65 | 72 76 65 72 55 70 6c 69 |g("UdpSe|rverUpli|
|000025c0| 6e 6b 3a 20 49 6e 76 61 | 6c 69 64 20 6d 61 73 74 |nk: Inva|lid mast|
|000025d0| 65 72 20 73 65 72 76 65 | 72 20 61 64 64 72 65 73 |er serve|r addres|
|000025e0| 73 2c 20 61 62 6f 72 74 | 69 6e 67 2e 22 29 3b 0d |s, abort|ing.");.|
|000025f0| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 7d 0d 0a |...retur|n;...}..|
|00002600| 0d 0a 09 2f 2f 20 44 69 | 73 70 6c 61 79 20 73 75 |...// Di|splay su|
|00002610| 63 63 65 73 73 20 6d 65 | 73 73 61 67 65 2e 0d 0a |ccess me|ssage...|
|00002620| 09 4c 6f 67 28 22 55 64 | 70 53 65 72 76 65 72 55 |.Log("Ud|pServerU|
|00002630| 70 6c 69 6e 6b 3a 20 4d | 61 73 74 65 72 20 53 65 |plink: M|aster Se|
|00002640| 72 76 65 72 20 69 73 20 | 22 24 4d 61 73 74 65 72 |rver is |"$Master|
|00002650| 53 65 72 76 65 72 41 64 | 64 72 65 73 73 24 22 3a |ServerAd|dress$":|
|00002660| 22 24 4d 61 73 74 65 72 | 53 65 72 76 65 72 49 70 |"$Master|ServerIp|
|00002670| 41 64 64 72 2e 50 6f 72 | 74 29 3b 0d 0a 09 0d 0a |Addr.Por|t);.....|
|00002680| 09 2f 2f 20 42 69 6e 64 | 20 74 68 65 20 6c 6f 63 |.// Bind| the loc|
|00002690| 61 6c 20 70 6f 72 74 2e | 0d 0a 09 55 70 6c 69 6e |al port.|...Uplin|
|000026a0| 6b 50 6f 72 74 20 3d 20 | 51 75 65 72 79 2e 50 6f |kPort = |Query.Po|
|000026b0| 72 74 20 2b 20 31 3b 0d | 0a 09 69 66 28 20 42 69 |rt + 1;.|..if( Bi|
|000026c0| 6e 64 50 6f 72 74 28 55 | 70 6c 69 6e 6b 50 6f 72 |ndPort(U|plinkPor|
|000026d0| 74 2c 20 74 72 75 65 29 | 20 3d 3d 20 30 20 29 0d |t, true)| == 0 ).|
|000026e0| 0a 09 7b 0d 0a 09 09 4c | 6f 67 28 20 22 55 64 70 |..{....L|og( "Udp|
|000026f0| 53 65 72 76 65 72 55 70 | 6c 69 6e 6b 3a 20 45 72 |ServerUp|link: Er|
|00002700| 72 6f 72 20 62 69 6e 64 | 69 6e 67 20 70 6f 72 74 |ror bind|ing port|
|00002710| 2c 20 61 62 6f 72 74 69 | 6e 67 2e 22 20 29 3b 0d |, aborti|ng." );.|
|00002720| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 7d 0d 0a |...retur|n;...}..|
|00002730| 09 4c 6f 67 28 22 55 64 | 70 53 65 72 76 65 72 55 |.Log("Ud|pServerU|
|00002740| 70 6c 69 6e 6b 3a 20 50 | 6f 72 74 20 22 24 55 70 |plink: P|ort "$Up|
|00002750| 6c 69 6e 6b 50 6f 72 74 | 24 22 20 73 75 63 63 65 |linkPort|$" succe|
|00002760| 73 73 66 75 6c 6c 79 20 | 62 6f 75 6e 64 2e 22 29 |ssfully |bound.")|
|00002770| 3b 0d 0a 0d 0a 09 2f 2f | 20 53 74 61 72 74 20 74 |;.....//| Start t|
|00002780| 72 61 6e 73 6d 69 74 74 | 69 6e 67 2e 0d 0a 09 52 |ransmitt|ing....R|
|00002790| 65 73 75 6d 65 28 29 3b | 0d 0a 7d 0d 0a 0d 0a 2f |esume();|..}..../|
|000027a0| 2f 20 48 6f 73 74 20 72 | 65 73 6f 6c 75 74 69 6f |/ Host r|esolutio|
|000027b0| 6e 20 66 61 69 6c 75 65 | 2e 0d 0a 66 75 6e 63 74 |n failue|...funct|
|000027c0| 69 6f 6e 20 52 65 73 6f | 6c 76 65 46 61 69 6c 65 |ion Reso|lveFaile|
|000027d0| 64 28 29 0d 0a 7b 0d 0a | 09 4c 6f 67 28 22 55 64 |d()..{..|.Log("Ud|
|000027e0| 70 53 65 72 76 65 72 55 | 70 6c 69 6e 6b 3a 20 46 |pServerU|plink: F|
|000027f0| 61 69 6c 65 64 20 74 6f | 20 72 65 73 6f 6c 76 65 |ailed to| resolve|
|00002800| 20 6d 61 73 74 65 72 20 | 73 65 72 76 65 72 20 61 | master |server a|
|00002810| 64 64 72 65 73 73 2c 20 | 61 62 6f 72 74 69 6e 67 |ddress, |aborting|
|00002820| 2e 22 29 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 4e 6f |.");..}.|...// No|
|00002830| 74 69 66 79 20 74 68 65 | 20 4d 61 73 74 65 72 53 |tify the| MasterS|
|00002840| 65 72 76 65 72 20 77 65 | 20 65 78 69 73 74 2e 0d |erver we| exist..|
|00002850| 0a 66 75 6e 63 74 69 6f | 6e 20 54 69 6d 65 72 28 |.functio|n Timer(|
|00002860| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |)..{...l|ocal boo|
|00002870| 6c 20 52 65 73 75 6c 74 | 3b 0d 0a 0d 0a 09 52 65 |l Result|;.....Re|
|00002880| 73 75 6c 74 20 3d 20 53 | 65 6e 64 54 65 78 74 28 |sult = S|endText(|
|00002890| 20 4d 61 73 74 65 72 53 | 65 72 76 65 72 49 70 41 | MasterS|erverIpA|
|000028a0| 64 64 72 2c 20 48 65 61 | 72 74 62 65 61 74 4d 65 |ddr, Hea|rtbeatMe|
|000028b0| 73 73 61 67 65 20 29 3b | 0d 0a 09 69 66 20 28 20 |ssage );|...if ( |
|000028c0| 21 52 65 73 75 6c 74 20 | 29 0d 0a 09 09 4c 6f 67 |!Result |)....Log|
|000028d0| 28 20 22 46 61 69 6c 65 | 64 20 74 6f 20 73 65 6e |( "Faile|d to sen|
|000028e0| 64 20 68 65 61 72 74 62 | 65 61 74 20 74 6f 20 6d |d heartb|eat to m|
|000028f0| 61 73 74 65 72 20 73 65 | 72 76 65 72 2e 22 29 3b |aster se|rver.");|
|00002900| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 20 53 74 6f 70 20 74 |..}..../|/ Stop t|
|00002910| 68 65 20 75 70 6c 69 6e | 6b 2e 0d 0a 66 75 6e 63 |he uplin|k...func|
|00002920| 74 69 6f 6e 20 48 61 6c | 74 28 29 0d 0a 7b 0d 0a |tion Hal|t()..{..|
|00002930| 09 53 65 74 54 69 6d 65 | 72 28 30 2e 30 2c 20 66 |.SetTime|r(0.0, f|
|00002940| 61 6c 73 65 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |alse);..|}....// |
|00002950| 52 65 73 75 6d 65 20 74 | 68 65 20 75 70 6c 69 6e |Resume t|he uplin|
|00002960| 6b 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 52 65 73 |k...func|tion Res|
|00002970| 75 6d 65 28 29 0d 0a 7b | 0d 0a 09 53 65 74 54 69 |ume()..{|...SetTi|
|00002980| 6d 65 72 28 55 70 64 61 | 74 65 4d 69 6e 75 74 65 |mer(Upda|teMinute|
|00002990| 73 20 2a 20 36 30 2c 20 | 74 72 75 65 29 3b 0d 0a |s * 60, |true);..|
|000029a0| 09 54 69 6d 65 72 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |.Timer()|;..}....|
|000029b0| 2f 2f 20 52 65 63 65 69 | 76 65 64 20 61 20 71 75 |// Recei|ved a qu|
|000029c0| 65 72 79 20 72 65 71 75 | 65 73 74 2e 0d 0a 65 76 |ery requ|est...ev|
|000029d0| 65 6e 74 20 52 65 63 65 | 69 76 65 64 54 65 78 74 |ent Rece|ivedText|
|000029e0| 28 20 49 70 41 64 64 72 | 20 41 64 64 72 2c 20 73 |( IpAddr| Addr, s|
|000029f0| 74 72 69 6e 67 20 54 65 | 78 74 20 29 0d 0a 7b 0d |tring Te|xt )..{.|
|00002a00| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 51 |..local |string Q|
|00002a10| 75 65 72 79 3b 0d 0a 09 | 6c 6f 63 61 6c 20 62 6f |uery;...|local bo|
|00002a20| 6f 6c 20 51 75 65 72 79 | 52 65 6d 61 69 6e 69 6e |ol Query|Remainin|
|00002a30| 67 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 20 |g;...loc|al int |
|00002a40| 51 75 65 72 79 4e 75 6d | 2c 20 50 61 63 6b 65 74 |QueryNum|, Packet|
|00002a50| 4e 75 6d 3b 0d 0a 0d 0a | 09 2f 2f 20 41 73 73 69 |Num;....|.// Assi|
|00002a60| 67 6e 20 74 68 69 73 20 | 70 61 63 6b 65 74 20 61 |gn this |packet a|
|00002a70| 20 75 6e 69 71 75 65 20 | 76 61 6c 75 65 20 66 72 | unique |value fr|
|00002a80| 6f 6d 20 31 20 74 6f 20 | 31 30 30 0d 0a 09 43 75 |om 1 to |100...Cu|
|00002a90| 72 72 65 6e 74 51 75 65 | 72 79 4e 75 6d 2b 2b 3b |rrentQue|ryNum++;|
|00002aa0| 0d 0a 09 69 66 20 28 43 | 75 72 72 65 6e 74 51 75 |...if (C|urrentQu|
|00002ab0| 65 72 79 4e 75 6d 20 3e | 20 31 30 30 29 0d 0a 09 |eryNum >| 100)...|
|00002ac0| 09 43 75 72 72 65 6e 74 | 51 75 65 72 79 4e 75 6d |.Current|QueryNum|
|00002ad0| 20 3d 20 31 3b 0d 0a 09 | 51 75 65 72 79 4e 75 6d | = 1;...|QueryNum|
|00002ae0| 20 3d 20 43 75 72 72 65 | 6e 74 51 75 65 72 79 4e | = Curre|ntQueryN|
|00002af0| 75 6d 3b 0d 0a 0d 0a 09 | 51 75 65 72 79 20 3d 20 |um;.....|Query = |
|00002b00| 54 65 78 74 3b 0d 0a 09 | 69 66 20 28 51 75 65 72 |Text;...|if (Quer|
|00002b10| 79 20 3d 3d 20 22 22 29 | 09 09 2f 2f 20 49 66 20 |y == "")|..// If |
|00002b20| 74 68 65 20 73 74 72 69 | 6e 67 20 69 73 20 65 6d |the stri|ng is em|
|00002b30| 70 74 79 2c 20 64 6f 6e | 27 74 20 70 61 72 73 65 |pty, don|'t parse|
|00002b40| 20 69 74 0d 0a 09 09 51 | 75 65 72 79 52 65 6d 61 | it....Q|ueryRema|
|00002b50| 69 6e 69 6e 67 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |ining = |false;..|
|00002b60| 09 65 6c 73 65 0d 0a 09 | 09 51 75 65 72 79 52 65 |.else...|.QueryRe|
|00002b70| 6d 61 69 6e 69 6e 67 20 | 3d 20 74 72 75 65 3b 0d |maining |= true;.|
|00002b80| 0a 09 0d 0a 09 77 68 69 | 6c 65 20 28 51 75 65 72 |.....whi|le (Quer|
|00002b90| 79 52 65 6d 61 69 6e 69 | 6e 67 29 20 7b 0d 0a 09 |yRemaini|ng) {...|
|00002ba0| 09 51 75 65 72 79 20 3d | 20 50 61 72 73 65 51 75 |.Query =| ParseQu|
|00002bb0| 65 72 79 28 41 64 64 72 | 2c 20 51 75 65 72 79 2c |ery(Addr|, Query,|
|00002bc0| 20 51 75 65 72 79 4e 75 | 6d 2c 20 50 61 63 6b 65 | QueryNu|m, Packe|
|00002bd0| 74 4e 75 6d 29 3b 0d 0a | 09 09 69 66 20 28 51 75 |tNum);..|..if (Qu|
|00002be0| 65 72 79 20 3d 3d 20 22 | 22 29 0d 0a 09 09 09 51 |ery == "|").....Q|
|00002bf0| 75 65 72 79 52 65 6d 61 | 69 6e 69 6e 67 20 3d 20 |ueryRema|ining = |
|00002c00| 66 61 6c 73 65 3b 0d 0a | 09 09 65 6c 73 65 0d 0a |false;..|..else..|
|00002c10| 09 09 09 51 75 65 72 79 | 52 65 6d 61 69 6e 69 6e |...Query|Remainin|
|00002c20| 67 20 3d 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 7d |g = true|;...}..}|
|00002c30| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00002c40| 6c 20 50 61 72 73 65 4e | 65 78 74 51 75 65 72 79 |l ParseN|extQuery|
|00002c50| 28 20 73 74 72 69 6e 67 | 20 51 75 65 72 79 2c 20 |( string| Query, |
|00002c60| 6f 75 74 20 73 74 72 69 | 6e 67 20 51 75 65 72 79 |out stri|ng Query|
|00002c70| 54 79 70 65 2c 20 6f 75 | 74 20 73 74 72 69 6e 67 |Type, ou|t string|
|00002c80| 20 51 75 65 72 79 56 61 | 6c 75 65 2c 20 6f 75 74 | QueryVa|lue, out|
|00002c90| 20 73 74 72 69 6e 67 20 | 51 75 65 72 79 52 65 73 | string |QueryRes|
|00002ca0| 74 2c 20 6f 75 74 20 73 | 74 72 69 6e 67 20 46 69 |t, out s|tring Fi|
|00002cb0| 6e 61 6c 50 61 63 6b 65 | 74 20 29 0d 0a 7b 0d 0a |nalPacke|t )..{..|
|00002cc0| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 54 65 |.local s|tring Te|
|00002cd0| 6d 70 51 75 65 72 79 3b | 0d 0a 09 6c 6f 63 61 6c |mpQuery;|...local|
|00002ce0| 20 69 6e 74 20 43 6c 6f | 73 69 6e 67 53 6c 61 73 | int Clo|singSlas|
|00002cf0| 68 3b 0d 0a 0d 0a 09 69 | 66 20 28 51 75 65 72 79 |h;.....i|f (Query|
|00002d00| 20 3d 3d 20 22 22 29 0d | 0a 09 09 72 65 74 75 72 | == "").|...retur|
|00002d10| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |n false;|.....// |
|00002d20| 51 75 65 72 79 20 73 68 | 6f 75 6c 64 20 62 65 3a |Query sh|ould be:|
|00002d30| 0d 0a 09 2f 2f 20 20 20 | 5c 5b 74 79 70 65 5d 5c |...// |\[type]\|
|00002d40| 3c 76 61 6c 75 65 3e 0d | 0a 09 69 66 20 28 4c 65 |<value>.|..if (Le|
|00002d50| 66 74 28 51 75 65 72 79 | 2c 20 31 29 20 3d 3d 20 |ft(Query|, 1) == |
|00002d60| 22 5c 5c 22 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 20 |"\\")...|{....// |
|00002d70| 43 68 65 63 6b 20 74 6f | 20 73 65 65 20 69 66 20 |Check to| see if |
|00002d80| 63 6c 6f 73 65 64 2e 0d | 0a 09 09 43 6c 6f 73 69 |closed..|...Closi|
|00002d90| 6e 67 53 6c 61 73 68 20 | 3d 20 49 6e 53 74 72 28 |ngSlash |= InStr(|
|00002da0| 52 69 67 68 74 28 51 75 | 65 72 79 2c 20 4c 65 6e |Right(Qu|ery, Len|
|00002db0| 28 51 75 65 72 79 29 2d | 31 29 2c 20 22 5c 5c 22 |(Query)-|1), "\\"|
|00002dc0| 29 3b 0d 0a 09 09 69 66 | 20 28 43 6c 6f 73 69 6e |);....if| (Closin|
|00002dd0| 67 53 6c 61 73 68 20 3d | 3d 20 30 29 0d 0a 09 09 |gSlash =|= 0)....|
|00002de0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00002df0| 0d 0a 09 09 54 65 6d 70 | 51 75 65 72 79 20 3d 20 |....Temp|Query = |
|00002e00| 51 75 65 72 79 3b 0d 0a | 0d 0a 09 09 2f 2f 20 51 |Query;..|....// Q|
|00002e10| 75 65 72 79 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 3a |uery loo|ks like:|
|00002e20| 0d 0a 09 09 2f 2f 20 20 | 5c 5b 74 79 70 65 5d 5c |....// |\[type]\|
|00002e30| 0d 0a 09 09 51 75 65 72 | 79 54 79 70 65 20 3d 20 |....Quer|yType = |
|00002e40| 52 69 67 68 74 28 51 75 | 65 72 79 2c 20 4c 65 6e |Right(Qu|ery, Len|
|00002e50| 28 51 75 65 72 79 29 2d | 31 29 3b 0d 0a 09 09 51 |(Query)-|1);....Q|
|00002e60| 75 65 72 79 54 79 70 65 | 20 3d 20 4c 65 66 74 28 |ueryType| = Left(|
|00002e70| 51 75 65 72 79 54 79 70 | 65 2c 20 43 6c 6f 73 69 |QueryTyp|e, Closi|
|00002e80| 6e 67 53 6c 61 73 68 29 | 3b 0d 0a 0d 0a 09 09 51 |ngSlash)|;......Q|
|00002e90| 75 65 72 79 52 65 73 74 | 20 3d 20 52 69 67 68 74 |ueryRest| = Right|
|00002ea0| 28 51 75 65 72 79 2c 20 | 4c 65 6e 28 51 75 65 72 |(Query, |Len(Quer|
|00002eb0| 79 29 20 2d 20 28 4c 65 | 6e 28 51 75 65 72 79 54 |y) - (Le|n(QueryT|
|00002ec0| 79 70 65 29 20 2b 20 32 | 29 29 3b 0d 0a 0d 0a 09 |ype) + 2|));.....|
|00002ed0| 09 69 66 20 28 28 51 75 | 65 72 79 52 65 73 74 20 |.if ((Qu|eryRest |
|00002ee0| 3d 3d 20 22 22 29 20 7c | 7c 20 28 4c 65 6e 28 51 |== "") ||| (Len(Q|
|00002ef0| 75 65 72 79 52 65 73 74 | 29 20 3d 3d 20 31 29 29 |ueryRest|) == 1))|
|00002f00| 0d 0a 09 09 7b 0d 0a 09 | 09 09 46 69 6e 61 6c 50 |....{...|..FinalP|
|00002f10| 61 63 6b 65 74 20 3d 20 | 22 66 69 6e 61 6c 22 3b |acket = |"final";|
|00002f20| 0d 0a 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00002f30| 3b 0d 0a 09 09 7d 20 65 | 6c 73 65 20 69 66 20 28 |;....} e|lse if (|
|00002f40| 4c 65 66 74 28 51 75 65 | 72 79 52 65 73 74 2c 20 |Left(Que|ryRest, |
|00002f50| 31 29 20 3d 3d 20 22 5c | 5c 22 29 0d 0a 09 09 09 |1) == "\|\").....|
|00002f60| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 09 2f 2f 20 |return t|rue;.// |
|00002f70| 5c 74 79 70 65 5c 5c 0d | 0a 0d 0a 09 09 2f 2f 20 |\type\\.|.....// |
|00002f80| 51 75 65 72 79 20 6c 6f | 6f 6b 73 20 6c 69 6b 65 |Query lo|oks like|
|00002f90| 3a 0d 0a 09 09 2f 2f 20 | 20 5c 74 79 70 65 5c 76 |:....// | \type\v|
|00002fa0| 61 6c 75 65 0d 0a 09 09 | 43 6c 6f 73 69 6e 67 53 |alue....|ClosingS|
|00002fb0| 6c 61 73 68 20 3d 20 49 | 6e 53 74 72 28 51 75 65 |lash = I|nStr(Que|
|00002fc0| 72 79 52 65 73 74 2c 20 | 22 5c 5c 22 29 3b 0d 0a |ryRest, |"\\");..|
|00002fd0| 09 09 69 66 20 28 43 6c | 6f 73 69 6e 67 53 6c 61 |..if (Cl|osingSla|
|00002fe0| 73 68 20 3e 3d 20 30 29 | 0d 0a 09 09 09 51 75 65 |sh >= 0)|.....Que|
|00002ff0| 72 79 56 61 6c 75 65 20 | 3d 20 4c 65 66 74 28 51 |ryValue |= Left(Q|
|00003000| 75 65 72 79 52 65 73 74 | 2c 20 43 6c 6f 73 69 6e |ueryRest|, Closin|
|00003010| 67 53 6c 61 73 68 29 3b | 0d 0a 09 09 65 6c 73 65 |gSlash);|....else|
|00003020| 0d 0a 09 09 09 51 75 65 | 72 79 56 61 6c 75 65 20 |.....Que|ryValue |
|00003030| 3d 20 51 75 65 72 79 52 | 65 73 74 3b 0d 0a 0d 0a |= QueryR|est;....|
|00003040| 09 09 51 75 65 72 79 52 | 65 73 74 20 3d 20 52 69 |..QueryR|est = Ri|
|00003050| 67 68 74 28 51 75 65 72 | 79 2c 20 4c 65 6e 28 51 |ght(Quer|y, Len(Q|
|00003060| 75 65 72 79 29 20 2d 20 | 28 4c 65 6e 28 51 75 65 |uery) - |(Len(Que|
|00003070| 72 79 54 79 70 65 29 20 | 2b 20 4c 65 6e 28 51 75 |ryType) |+ Len(Qu|
|00003080| 65 72 79 56 61 6c 75 65 | 29 20 2b 20 33 29 29 3b |eryValue|) + 3));|
|00003090| 0d 0a 09 09 69 66 20 28 | 51 75 65 72 79 52 65 73 |....if (|QueryRes|
|000030a0| 74 20 3d 3d 20 22 22 29 | 0d 0a 09 09 7b 0d 0a 09 |t == "")|....{...|
|000030b0| 09 09 46 69 6e 61 6c 50 | 61 63 6b 65 74 20 3d 20 |..FinalP|acket = |
|000030c0| 22 66 69 6e 61 6c 22 3b | 0d 0a 09 09 09 72 65 74 |"final";|.....ret|
|000030d0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 09 7d 20 65 |urn true|;....} e|
|000030e0| 6c 73 65 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 74 |lse.....|return t|
|000030f0| 72 75 65 3b 0d 0a 09 7d | 20 65 6c 73 65 20 7b 0d |rue;...}| else {.|
|00003100| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00003110| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |...}..}.|...funct|
|00003120| 69 6f 6e 20 73 74 72 69 | 6e 67 20 50 61 72 73 65 |ion stri|ng Parse|
|00003130| 51 75 65 72 79 28 20 49 | 70 41 64 64 72 20 41 64 |Query( I|pAddr Ad|
|00003140| 64 72 2c 20 63 6f 65 72 | 63 65 20 73 74 72 69 6e |dr, coer|ce strin|
|00003150| 67 20 51 75 65 72 79 53 | 74 72 2c 20 69 6e 74 20 |g QueryS|tr, int |
|00003160| 51 75 65 72 79 4e 75 6d | 2c 20 6f 75 74 20 69 6e |QueryNum|, out in|
|00003170| 74 20 50 61 63 6b 65 74 | 4e 75 6d 20 29 0d 0a 7b |t Packet|Num )..{|
|00003180| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00003190| 51 75 65 72 79 54 79 70 | 65 2c 20 51 75 65 72 79 |QueryTyp|e, Query|
|000031a0| 56 61 6c 75 65 2c 20 51 | 75 65 72 79 52 65 73 74 |Value, Q|ueryRest|
|000031b0| 2c 20 56 61 6c 69 64 61 | 74 69 6f 6e 53 74 72 69 |, Valida|tionStri|
|000031c0| 6e 67 3b 0d 0a 09 6c 6f | 63 61 6c 20 62 6f 6f 6c |ng;...lo|cal bool|
|000031d0| 20 52 65 73 75 6c 74 3b | 0d 0a 09 6c 6f 63 61 6c | Result;|...local|
|000031e0| 20 73 74 72 69 6e 67 20 | 46 69 6e 61 6c 50 61 63 | string |FinalPac|
|000031f0| 6b 65 74 3b 0d 0a 09 0d | 0a 09 52 65 73 75 6c 74 |ket;....|..Result|
|00003200| 20 3d 20 50 61 72 73 65 | 4e 65 78 74 51 75 65 72 | = Parse|NextQuer|
|00003210| 79 28 51 75 65 72 79 53 | 74 72 2c 20 51 75 65 72 |y(QueryS|tr, Quer|
|00003220| 79 54 79 70 65 2c 20 51 | 75 65 72 79 56 61 6c 75 |yType, Q|ueryValu|
|00003230| 65 2c 20 51 75 65 72 79 | 52 65 73 74 2c 20 46 69 |e, Query|Rest, Fi|
|00003240| 6e 61 6c 50 61 63 6b 65 | 74 29 3b 0d 0a 09 69 66 |nalPacke|t);...if|
|00003250| 28 20 21 52 65 73 75 6c | 74 20 29 0d 0a 09 09 72 |( !Resul|t )....r|
|00003260| 65 74 75 72 6e 20 22 22 | 3b 0d 0a 0d 0a 09 69 66 |eturn ""|;.....if|
|00003270| 28 20 51 75 65 72 79 54 | 79 70 65 3d 3d 22 62 61 |( QueryT|ype=="ba|
|00003280| 73 69 63 22 20 29 0d 0a | 09 7b 0d 0a 09 09 2f 2f |sic" )..|.{....//|
|00003290| 20 49 67 6e 6f 72 65 2e | 0d 0a 09 09 52 65 73 75 | Ignore.|....Resu|
|000032a0| 6c 74 20 3d 20 74 72 75 | 65 3b 0d 0a 09 7d 0d 0a |lt = tru|e;...}..|
|000032b0| 09 65 6c 73 65 20 69 66 | 28 20 51 75 65 72 79 54 |.else if|( QueryT|
|000032c0| 79 70 65 3d 3d 22 73 65 | 63 75 72 65 22 20 29 0d |ype=="se|cure" ).|
|000032d0| 0a 09 7b 0d 0a 09 09 56 | 61 6c 69 64 61 74 69 6f |..{....V|alidatio|
|000032e0| 6e 53 74 72 69 6e 67 20 | 3d 20 22 5c 5c 76 61 6c |nString |= "\\val|
|000032f0| 69 64 61 74 65 5c 5c 22 | 24 56 61 6c 69 64 61 74 |idate\\"|$Validat|
|00003300| 65 28 51 75 65 72 79 56 | 61 6c 75 65 2c 20 51 75 |e(QueryV|alue, Qu|
|00003310| 65 72 79 2e 47 61 6d 65 | 4e 61 6d 65 29 3b 0d 0a |ery.Game|Name);..|
|00003320| 09 09 52 65 73 75 6c 74 | 20 3d 20 53 65 6e 64 51 |..Result| = SendQ|
|00003330| 75 65 72 79 50 61 63 6b | 65 74 28 41 64 64 72 2c |ueryPack|et(Addr,|
|00003340| 20 56 61 6c 69 64 61 74 | 69 6f 6e 53 74 72 69 6e | Validat|ionStrin|
|00003350| 67 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 2b 2b 50 |g, Query|Num, ++P|
|00003360| 61 63 6b 65 74 4e 75 6d | 2c 20 46 69 6e 61 6c 50 |acketNum|, FinalP|
|00003370| 61 63 6b 65 74 29 3b 0d | 0a 09 7d 0d 0a 09 65 6c |acket);.|..}...el|
|00003380| 73 65 0d 0a 09 7b 0d 0a | 09 09 4c 6f 67 28 22 55 |se...{..|..Log("U|
|00003390| 64 70 53 65 72 76 65 72 | 51 75 65 72 79 3a 20 55 |dpServer|Query: U|
|000033a0| 6e 6b 6e 6f 77 6e 20 71 | 75 65 72 79 3a 20 22 24 |nknown q|uery: "$|
|000033b0| 51 75 65 72 79 54 79 70 | 65 29 3b 0d 0a 09 7d 0d |QueryTyp|e);...}.|
|000033c0| 0a 09 69 66 28 20 21 52 | 65 73 75 6c 74 20 29 0d |..if( !R|esult ).|
|000033d0| 0a 09 09 4c 6f 67 28 22 | 55 64 70 53 65 72 76 65 |...Log("|UdpServe|
|000033e0| 72 51 75 65 72 79 3a 20 | 45 72 72 6f 72 20 72 65 |rQuery: |Error re|
|000033f0| 73 70 6f 6e 64 69 6e 67 | 20 74 6f 20 71 75 65 72 |sponding| to quer|
|00003400| 79 2e 22 29 3b 0d 0a 09 | 72 65 74 75 72 6e 20 51 |y.");...|return Q|
|00003410| 75 65 72 79 52 65 73 74 | 3b 0d 0a 7d 0d 0a 0d 0a |ueryRest|;..}....|
|00003420| 2f 2f 20 53 65 6e 64 51 | 75 65 72 79 50 61 63 6b |// SendQ|ueryPack|
|00003430| 65 74 20 69 73 20 61 20 | 77 72 61 70 70 65 72 20 |et is a |wrapper |
|00003440| 66 6f 72 20 53 65 6e 64 | 54 65 78 74 20 74 68 61 |for Send|Text tha|
|00003450| 74 20 61 6c 6c 6f 77 73 | 20 66 6f 72 20 70 61 63 |t allows| for pac|
|00003460| 6b 65 74 20 6e 75 6d 62 | 65 72 69 6e 67 2e 0d 0a |ket numb|ering...|
|00003470| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 53 65 |function| bool Se|
|00003480| 6e 64 51 75 65 72 79 50 | 61 63 6b 65 74 28 49 70 |ndQueryP|acket(Ip|
|00003490| 41 64 64 72 20 41 64 64 | 72 2c 20 63 6f 65 72 63 |Addr Add|r, coerc|
|000034a0| 65 20 73 74 72 69 6e 67 | 20 53 65 6e 64 53 74 72 |e string| SendStr|
|000034b0| 69 6e 67 2c 20 69 6e 74 | 20 51 75 65 72 79 4e 75 |ing, int| QueryNu|
|000034c0| 6d 2c 20 69 6e 74 20 50 | 61 63 6b 65 74 4e 75 6d |m, int P|acketNum|
|000034d0| 2c 20 73 74 72 69 6e 67 | 20 46 69 6e 61 6c 50 61 |, string| FinalPa|
|000034e0| 63 6b 65 74 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |cket)..{|...local|
|000034f0| 20 62 6f 6f 6c 20 52 65 | 73 75 6c 74 3b 0d 0a 09 | bool Re|sult;...|
|00003500| 69 66 20 28 46 69 6e 61 | 6c 50 61 63 6b 65 74 20 |if (Fina|lPacket |
|00003510| 3d 3d 20 22 66 69 6e 61 | 6c 22 29 20 7b 0d 0a 09 |== "fina|l") {...|
|00003520| 09 53 65 6e 64 53 74 72 | 69 6e 67 20 3d 20 53 65 |.SendStr|ing = Se|
|00003530| 6e 64 53 74 72 69 6e 67 | 24 22 5c 5c 66 69 6e 61 |ndString|$"\\fina|
|00003540| 6c 5c 5c 22 3b 0d 0a 09 | 7d 0d 0a 09 53 65 6e 64 |l\\";...|}...Send|
|00003550| 53 74 72 69 6e 67 20 3d | 20 53 65 6e 64 53 74 72 |String =| SendStr|
|00003560| 69 6e 67 24 22 5c 5c 71 | 75 65 72 79 69 64 5c 5c |ing$"\\q|ueryid\\|
|00003570| 22 24 51 75 65 72 79 4e | 75 6d 24 22 2e 22 24 50 |"$QueryN|um$"."$P|
|00003580| 61 63 6b 65 74 4e 75 6d | 3b 0d 0a 0d 0a 09 52 65 |acketNum|;.....Re|
|00003590| 73 75 6c 74 20 3d 20 53 | 65 6e 64 54 65 78 74 28 |sult = S|endText(|
|000035a0| 41 64 64 72 2c 20 53 65 | 6e 64 53 74 72 69 6e 67 |Addr, Se|ndString|
|000035b0| 29 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 52 65 |);.....r|eturn Re|
|000035c0| 73 75 6c 74 3b 0d 0a 7d | 0d 0a 0d 0a 00 00 00 73 |sult;..}|.......s|
|000035d0| 01 00 64 01 05 d4 00 00 | 00 07 16 00 00 25 01 00 |..d.....|.....%..|
|000035e0| 00 14 2d 00 20 1b 04 00 | 57 01 00 27 00 31 00 30 |..-. ...|W..'.1.0|
|000035f0| 00 32 16 07 34 00 81 2d | 00 20 16 04 1f 00 07 50 |.2..4..-|. .....P|
|00003600| 00 7a 00 27 1f 62 61 73 | 69 63 00 16 14 2d 00 20 |.z.'.bas|ic...-. |
|00003610| 27 06 e4 00 07 ba 00 7a | 00 27 1f 73 65 63 75 72 |'......z|.'.secur|
|00003620| 65 00 16 0f 00 2e 70 1f | 5c 76 61 6c 69 64 61 74 |e.....p.|\validat|
|00003630| 65 5c 00 1b 1c 00 31 19 | 01 10 05 00 00 01 22 16 |e\....1.|......".|
|00003640| 16 14 2d 00 20 1b 01 00 | 64 01 00 2e 00 56 01 a3 |..-. ...|d....V..|
|00003650| 00 5a 01 16 00 32 16 06 | e4 00 e7 70 1f 55 64 70 |.Z...2..|...p.Udp|
|00003660| 53 65 72 76 65 72 51 75 | 65 72 79 3a 20 55 6e 6b |ServerQu|ery: Unk|
|00003670| 6e 6f 77 6e 20 71 75 65 | 72 79 3a 20 00 00 27 16 |nown que|ry: ..'.|
|00003680| 16 07 1d 01 81 2d 00 20 | 16 e7 1f 55 64 70 53 65 |.....-. |...UdpSe|
|00003690| 72 76 65 72 51 75 65 72 | 79 3a 20 45 72 72 6f 72 |rverQuer|y: Error|
|000036a0| 20 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 71 | respond|ing to q|
|000036b0| 75 65 72 79 2e 00 16 04 | 00 30 04 0b 00 00 00 02 |uery....|.0......|
|000036c0| 00 00 00 00 a0 7f 01 00 | 61 01 1a 85 00 00 00 9b |........|a.......|
|000036d0| 0e 00 00 9c 00 00 00 a5 | 01 26 16 07 1a 00 97 01 |........|.&......|
|000036e0| 26 2c 64 16 0f 01 26 26 | 0f 00 37 01 26 0f 00 1b |&,d...&&|..7.&...|
|000036f0| 00 63 01 07 47 00 7a 00 | 1b 1f 00 16 14 2d 00 1f |.c..G.z.|.....-..|
|00003700| 28 06 4f 00 14 2d 00 1f | 27 07 9a 00 2d 00 1f 0f |(.O..-..|'...-...|
|00003710| 00 1b 1b 05 00 61 01 00 | 1b 00 37 00 5f 01 16 07 |.....a..|..7._...|
|00003720| 8f 00 7a 00 1b 1f 00 16 | 14 2d 00 1f 28 06 97 00 |..z.....|.-..(...|
|00003730| 14 2d 00 1f 27 06 4f 00 | 04 0b 00 00 00 02 08 00 |.-..'.O.|........|
|00003740| 00 00 00 67 01 00 00 2a | 73 00 00 00 3e 0d 00 00 |...g...*|s...>...|
|00003750| 0b 00 00 00 61 18 1e 00 | 00 00 00 28 16 04 0b 00 |....a...|...(....|
|00003760| 00 00 02 00 00 00 00 00 | 7e 01 00 00 0d 79 00 00 |........|~....y..|
|00003770| 00 88 0d 00 00 16 00 00 | 00 61 18 3f 90 01 59 01 |........|.a.?..Y.|
|00003780| 2c 3c 16 27 16 1b 10 16 | 04 0b 00 00 00 02 00 00 |,<.'....|........|
|00003790| 00 00 00 29 01 00 00 00 | 80 05 40 00 00 00 00 27 |...)....|..@....'|
|000037a0| 01 00 00 00 80 05 40 00 | 00 00 00 6a 01 00 04 05 |......@.|...j....|
|000037b0| 8b 00 00 00 b2 0d 00 00 | 47 04 00 00 14 2d 00 03 |........|G....-..|
|000037c0| 1b 04 00 50 01 00 08 00 | 15 00 3b 00 07 16 07 34 |...P....|..;....4|
|000037d0| 00 81 2d 00 03 16 04 1f | 00 07 71 00 7a 00 08 1f |..-.....|..q.z...|
|000037e0| 62 61 73 69 63 00 16 14 | 2d 00 03 1b 01 00 04 1b |basic...|-.......|
|000037f0| 08 16 00 06 a3 00 05 16 | 00 07 16 06 06 04 07 ad |........|........|
|00003800| 00 7a 00 08 1f 69 6e 66 | 6f 00 16 14 2d 00 03 1b |.z...inf|o...-...|
|00003810| 01 00 04 1b 06 16 00 06 | a3 00 05 16 00 07 16 06 |........|........|
|00003820| 06 04 07 ea 00 7a 00 08 | 1f 72 75 6c 65 73 00 16 |.....z..|.rules..|
|00003830| 14 2d 00 03 1b 01 00 04 | 1b 03 16 00 06 a3 00 05 |.-......|........|
|00003840| 16 00 07 16 06 06 04 07 | 64 01 7a 00 08 1f 70 6c |........|d.z...pl|
|00003850| 61 79 65 72 73 00 16 07 | 3e 01 97 19 19 01 88 05 |ayers...|>.......|
|00003860| 00 04 01 8c 05 00 04 01 | 98 25 16 14 2d 00 03 1b |........|.%..-...|
|00003870| 09 00 04 00 06 00 05 00 | 07 16 06 61 01 14 2d 00 |........|...a..-.|
|00003880| 03 1b 01 00 04 1f 00 00 | 06 00 05 00 07 16 06 06 |........|........|
|00003890| 04 07 55 02 7a 00 08 1f | 73 74 61 74 75 73 00 16 |..U.z...|status..|
|000038a0| 14 2d 00 03 1b 01 00 04 | 1b 08 16 00 06 a3 00 05 |.-......|........|
|000038b0| 16 1f 00 16 14 2d 00 03 | 1b 01 00 04 1b 06 16 00 |.....-..|........|
|000038c0| 06 a3 00 05 16 1f 00 16 | 07 0b 02 9a 19 19 01 88 |........|........|
|000038d0| 05 00 04 01 8c 05 00 04 | 01 98 25 16 14 2d 00 03 |........|..%..-..|
|000038e0| 1b 01 00 04 1b 03 16 00 | 06 a3 00 05 16 00 07 16 |........|........|
|000038f0| 06 52 02 14 2d 00 03 1b | 01 00 04 1b 03 16 00 06 |.R..-...|........|
|00003900| a3 00 05 16 1f 00 16 14 | 2d 00 03 1b 09 00 04 00 |........|-.......|
|00003910| 06 00 05 00 07 16 06 06 | 04 07 9a 02 7a 00 08 1f |........|....z...|
|00003920| 65 63 68 6f 00 16 14 2d | 00 03 1b 01 00 04 70 1f |echo...-|......p.|
|00003930| 5c 65 63 68 6f 5c 00 00 | 15 16 00 06 a3 00 05 16 |\echo\..|........|
|00003940| 00 07 16 06 06 04 07 fb | 02 7a 00 08 1f 73 65 63 |........|.z...sec|
|00003950| 75 72 65 00 16 0f 00 47 | 01 70 1f 5c 76 61 6c 69 |ure....G|.p.\vali|
|00003960| 64 61 74 65 5c 00 1b 1c | 00 15 01 22 16 16 14 2d |date\...|..."...-|
|00003970| 00 03 1b 01 00 04 00 47 | 01 00 06 a3 00 05 16 00 |.......G|........|
|00003980| 07 16 06 06 04 07 46 03 | 7a 00 08 1f 6c 65 76 65 |......F.|z...leve|
|00003990| 6c 5f 70 72 6f 70 65 72 | 74 79 00 16 14 2d 00 03 |l_proper|ty...-..|
|000039a0| 1b 01 00 04 1b 11 00 15 | 16 00 06 a3 00 05 16 00 |........|........|
|000039b0| 07 16 06 06 04 07 90 03 | 7a 00 08 1f 67 61 6d 65 |........|z...game|
|000039c0| 5f 70 72 6f 70 65 72 74 | 79 00 16 14 2d 00 03 1b |_propert|y...-...|
|000039d0| 01 00 04 1b 16 00 15 16 | 00 06 a3 00 05 16 00 07 |........|........|
|000039e0| 16 06 06 04 07 dc 03 7a | 00 08 1f 70 6c 61 79 65 |.......z|...playe|
|000039f0| 72 5f 70 72 6f 70 65 72 | 74 79 00 16 14 2d 00 03 |r_proper|ty...-..|
|00003a00| 1b 01 00 04 1b 13 00 15 | 16 00 06 a3 00 05 16 00 |........|........|
|00003a10| 07 16 06 06 04 e7 70 1f | 55 64 70 53 65 72 76 65 |......p.|UdpServe|
|00003a20| 72 51 75 65 72 79 3a 20 | 55 6e 6b 6e 6f 77 6e 20 |rQuery: |Unknown |
|00003a30| 71 75 65 72 79 3a 20 00 | 00 08 16 16 07 3f 04 81 |query: .|.....?..|
|00003a40| 2d 00 03 16 e7 1f 55 64 | 70 53 65 72 76 65 72 51 |-.....Ud|pServerQ|
|00003a50| 75 65 72 79 3a 20 45 72 | 72 6f 72 20 72 65 73 70 |uery: Er|ror resp|
|00003a60| 6f 6e 64 69 6e 67 20 74 | 6f 20 71 75 65 72 79 2e |onding t|o query.|
|00003a70| 00 16 04 00 3b 04 0b 00 | 00 00 02 00 00 00 00 00 |....;...|........|
|00003a80| 0f 01 00 00 00 80 05 40 | 00 00 00 00 47 02 00 43 |.......@|....G..C|
|00003a90| 02 08 e2 00 00 00 57 18 | 00 00 af 00 00 00 0f 00 |......W.|........|
|00003aa0| 0f 70 1f 5c 67 61 6d 65 | 6e 61 6d 65 5c 00 01 22 |.p.\game|name\.."|
|00003ab0| 16 0f 00 0f 70 70 00 0f | 1f 5c 67 61 6d 65 76 65 |....pp..|.\gameve|
|00003ac0| 72 5c 00 16 19 01 88 05 | 00 00 01 a7 16 0f 00 0f |r\......|........|
|00003ad0| 70 70 00 0f 1f 5c 6d 69 | 6e 6e 65 74 76 65 72 5c |pp...\mi|nnetver\|
|00003ae0| 00 16 19 01 88 05 00 00 | 01 a5 16 0f 00 0f 70 70 |........|......pp|
|00003af0| 00 0f 1f 5c 6c 6f 63 61 | 74 69 6f 6e 5c 00 16 53 |...\loca|tion\..S|
|00003b00| 19 19 19 01 88 05 00 04 | 01 8c 05 00 04 01 93 05 |........|........|
|00003b10| 00 04 01 ab 16 04 00 0f | 04 0b 00 00 00 02 00 00 |........|........|
|00003b20| 00 00 00 2f 01 00 00 00 | 80 05 00 00 00 95 00 7b |.../....|.......{|
|00003b30| 01 48 02 02 ff ff ff ff | ff ff ff ff 00 00 00 00 |.H......|........|
|00003b40| 00 01 00 00 00 00 00 00 | ff ff ff ff ff ff ff ff |........|........|
|00003b50| ff ff 00 00 00 00 1e 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 06 46 02 01 00 00 |........|...F....|
|00003b70| 00 14 4f 26 14 95 01 00 | 00 00 36 16 1f 85 12 00 |..O&....|..6.....|
|00003b80| 00 00 00 e8 bb ba b0 12 | 00 00 00 00 e8 bb ba b0 |........|........|
|00003b90| 12 00 00 00 00 e8 bb ba | b0 12 00 00 00 00 e8 bb |........|........|
|00003ba0| ba b0 04 19 0e 0b 0c 94 | 15 29 22 01 00 00 00 24 |........|.)"....$|
|00003bb0| 22 fc 6c 00 00 1e 06 12 | 14 01 00 00 00 00 42 02 |".l.....|......B.|
|00003bc0| 00 4b 01 01 d3 00 00 00 | 0a 17 00 00 74 00 00 00 |.K......|....t...|
|00003bd0| 07 27 00 7a 00 4a 01 1f | 66 69 6e 61 6c 00 16 0f |.'.z.J..|final...|
|00003be0| 00 1e 70 00 1e 1f 5c 66 | 69 6e 61 6c 5c 00 16 0f |..p...\f|inal\...|
|00003bf0| 00 1e 70 70 70 70 00 1e | 1f 5c 71 75 65 72 79 69 |..pppp..|.\queryi|
|00003c00| 64 5c 00 16 53 00 49 01 | 16 1f 2e 00 16 53 00 4d |d\..S.I.|.....S.M|
|00003c10| 01 16 14 2d 00 2f 1b 0a | 00 4b 01 00 1e 16 04 2d |...-./..|.K.....-|
|00003c20| 00 2f 04 0b 00 00 00 02 | 00 00 00 00 00 7c 01 00 |./......|.....|..|
|00003c30| 60 01 01 ef 00 00 00 0d | 19 00 00 74 00 00 00 07 |`.......|...t....|
|00003c40| 27 00 7a 00 55 01 1f 66 | 69 6e 61 6c 00 16 0f 00 |'.z.U..f|inal....|
|00003c50| 21 70 00 21 1f 5c 66 69 | 6e 61 6c 5c 00 16 0f 00 |!p.!.\fi|nal\....|
|00003c60| 21 70 70 70 70 00 21 1f | 5c 71 75 65 72 79 69 64 |!pppp.!.|\queryid|
|00003c70| 5c 00 16 53 00 54 01 16 | 1f 2e 00 16 53 00 53 01 |\..S.T..|....S.S.|
|00003c80| 16 14 2d 00 34 1b 0a 00 | 60 01 00 21 16 04 2d 00 |..-.4...|`..!..-.|
|00003c90| 34 04 0b 00 00 00 02 00 | 00 00 00 00 43 01 01 00 |4.......|....C...|
|00003ca0| 00 00 80 05 40 00 00 00 | 00 00 00 00 00 00 00 00 |....@...|........|
|00003cb0| 40 ac 01 2f 2f 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |@..//===|========|
|00003cc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003cd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003cf0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003d00| 3d 3d 0d 0a 2f 2f 20 55 | 64 70 53 65 72 76 65 72 |==..// U|dpServer|
|00003d10| 51 75 65 72 79 0d 0a 2f | 2f 0d 0a 2f 2f 20 56 65 |Query../|/..// Ve|
|00003d20| 72 73 69 6f 6e 3a 20 31 | 2e 35 0d 0a 2f 2f 0d 0a |rsion: 1|.5..//..|
|00003d30| 2f 2f 20 54 68 69 73 20 | 71 75 65 72 79 20 73 65 |// This |query se|
|00003d40| 72 76 65 72 20 69 73 20 | 63 6f 6d 70 6c 69 61 6e |rver is |complian|
|00003d50| 74 20 77 69 74 68 20 74 | 68 65 20 47 61 6d 65 53 |t with t|he GameS|
|00003d60| 70 79 20 55 70 6c 69 6e | 6b 20 53 70 65 63 69 66 |py Uplin|k Specif|
|00003d70| 69 63 61 74 69 6f 6e 2e | 0d 0a 2f 2f 20 54 68 65 |ication.|..// The|
|00003d80| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 20 69 | specifi|cation i|
|00003d90| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 61 74 20 68 |s availa|ble at h|
|00003da0| 74 74 70 3a 2f 2f 77 77 | 77 2e 67 61 6d 65 73 70 |ttp://ww|w.gamesp|
|00003db0| 79 2e 63 6f 6d 2f 64 65 | 76 65 6c 6f 70 65 72 0d |y.com/de|veloper.|
|00003dc0| 0a 2f 2f 20 61 6e 64 20 | 6d 69 67 68 74 20 62 65 |.// and |might be|
|00003dd0| 20 6f 66 20 75 73 65 20 | 74 6f 20 70 72 6f 67 61 | of use |to proga|
|00003de0| 6d 6d 65 72 73 20 77 68 | 6f 20 61 72 65 20 77 72 |mmers wh|o are wr|
|00003df0| 69 74 69 6e 67 20 6f 72 | 20 6d 61 69 6e 74 61 69 |iting or| maintai|
|00003e00| 6e 69 6e 67 0d 0a 2f 2f | 20 74 68 65 69 72 20 6f |ning..//| their o|
|00003e10| 77 6e 20 73 74 61 74 20 | 67 61 74 68 65 72 69 6e |wn stat |gatherin|
|00003e20| 67 2f 67 61 6d 65 20 71 | 75 65 72 79 69 6e 67 20 |g/game q|uerying |
|00003e30| 73 6f 66 74 77 61 72 65 | 2e 0d 0a 2f 2f 0d 0a 2f |software|...//../|
|00003e40| 2f 20 4e 6f 74 65 3a 20 | 43 75 72 72 65 6e 74 6c |/ Note: |Currentl|
|00003e50| 79 2c 20 53 65 6e 64 54 | 65 78 74 20 72 65 74 75 |y, SendT|ext retu|
|00003e60| 72 6e 73 20 66 61 6c 73 | 65 20 69 66 20 73 75 63 |rns fals|e if suc|
|00003e70| 63 65 73 73 66 75 6c 2e | 0d 0a 2f 2f 0d 0a 2f 2f |cessful.|..//..//|
|00003e80| 20 46 75 6c 6c 20 64 6f | 63 75 6d 65 6e 74 61 74 | Full do|cumentat|
|00003e90| 69 6f 6e 20 6f 6e 20 74 | 68 69 73 20 63 6c 61 73 |ion on t|his clas|
|00003ea0| 73 20 69 73 20 61 76 61 | 69 6c 61 62 6c 65 20 61 |s is ava|ilable a|
|00003eb0| 74 20 68 74 74 70 3a 2f | 2f 75 6e 72 65 61 6c 2e |t http:/|/unreal.|
|00003ec0| 65 70 69 63 67 61 6d 65 | 73 2e 63 6f 6d 2f 0d 0a |epicgame|s.com/..|
|00003ed0| 2f 2f 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//..//==|========|
|00003ee0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003ef0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003f20| 3d 3d 3d 0d 0a 63 6c 61 | 73 73 20 55 64 70 53 65 |===..cla|ss UdpSe|
|00003f30| 72 76 65 72 51 75 65 72 | 79 20 65 78 74 65 6e 64 |rverQuer|y extend|
|00003f40| 73 20 55 64 70 4c 69 6e | 6b 20 63 6f 6e 66 69 67 |s UdpLin|k config|
|00003f50| 3b 0d 0a 0d 0a 2f 2f 20 | 47 61 6d 65 20 53 65 72 |;....// |Game Ser|
|00003f60| 76 65 72 20 43 6f 6e 66 | 69 67 2e 0d 0a 76 61 72 |ver Conf|ig...var|
|00003f70| 28 29 20 6e 61 6d 65 09 | 09 09 09 09 51 75 65 72 |() name.|....Quer|
|00003f80| 79 4e 61 6d 65 3b 09 09 | 09 2f 2f 20 4e 61 6d 65 |yName;..|.// Name|
|00003f90| 20 74 6f 20 73 65 74 20 | 74 68 69 73 20 6f 62 6a | to set |this obj|
|00003fa0| 65 63 74 27 73 20 54 61 | 67 20 74 6f 2e 0d 0a 76 |ect's Ta|g to...v|
|00003fb0| 61 72 20 69 6e 74 09 09 | 09 09 09 20 20 20 20 43 |ar int..|... C|
|00003fc0| 75 72 72 65 6e 74 51 75 | 65 72 79 4e 75 6d 3b 09 |urrentQu|eryNum;.|
|00003fd0| 2f 2f 20 51 75 65 72 79 | 20 49 44 20 4e 75 6d 62 |// Query| ID Numb|
|00003fe0| 65 72 2e 0d 0a 76 61 72 | 20 67 6c 6f 62 61 6c 63 |er...var| globalc|
|00003ff0| 6f 6e 66 69 67 20 73 74 | 72 69 6e 67 09 09 47 61 |onfig st|ring..Ga|
|00004000| 6d 65 4e 61 6d 65 3b 0d | 0a 0d 0a 2f 2f 20 49 6e |meName;.|...// In|
|00004010| 69 74 69 61 6c 69 7a 65 | 2e 0d 0a 66 75 6e 63 74 |itialize|...funct|
|00004020| 69 6f 6e 20 50 72 65 42 | 65 67 69 6e 50 6c 61 79 |ion PreB|eginPlay|
|00004030| 28 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |()..{...|local in|
|00004040| 74 20 62 6f 75 6e 64 70 | 6f 72 74 3b 0d 0a 0d 0a |t boundp|ort;....|
|00004050| 09 2f 2f 20 53 65 74 20 | 74 68 65 20 54 61 67 0d |.// Set |the Tag.|
|00004060| 0a 09 54 61 67 20 3d 20 | 51 75 65 72 79 4e 61 6d |..Tag = |QueryNam|
|00004070| 65 3b 0d 0a 0d 0a 09 2f | 2f 20 42 69 6e 64 20 74 |e;...../|/ Bind t|
|00004080| 68 65 20 6c 69 73 74 65 | 6e 20 73 6f 63 6b 65 74 |he liste|n socket|
|00004090| 0d 0a 09 62 6f 75 6e 64 | 70 6f 72 74 20 3d 20 42 |...bound|port = B|
|000040a0| 69 6e 64 50 6f 72 74 28 | 4c 65 76 65 6c 2e 47 61 |indPort(|Level.Ga|
|000040b0| 6d 65 2e 47 65 74 53 65 | 72 76 65 72 50 6f 72 74 |me.GetSe|rverPort|
|000040c0| 28 29 2c 20 74 72 75 65 | 29 3b 0d 0a 09 69 66 28 |(), true|);...if(|
|000040d0| 20 62 6f 75 6e 64 70 6f | 72 74 20 3d 3d 20 30 20 | boundpo|rt == 0 |
|000040e0| 29 0d 0a 09 7b 0d 0a 09 | 09 4c 6f 67 28 22 55 64 |)...{...|.Log("Ud|
|000040f0| 70 53 65 72 76 65 72 51 | 75 65 72 79 3a 20 50 6f |pServerQ|uery: Po|
|00004100| 72 74 20 66 61 69 6c 65 | 64 20 74 6f 20 62 69 6e |rt faile|d to bin|
|00004110| 64 2e 22 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 3b |d.");...|.return;|
|00004120| 0d 0a 09 7d 0d 0a 09 4c | 6f 67 28 22 55 64 70 53 |...}...L|og("UdpS|
|00004130| 65 72 76 65 72 51 75 65 | 72 79 3a 20 50 6f 72 74 |erverQue|ry: Port|
|00004140| 20 22 24 62 6f 75 6e 64 | 70 6f 72 74 24 22 20 73 | "$bound|port$" s|
|00004150| 75 63 63 65 73 73 66 75 | 6c 6c 79 20 62 6f 75 6e |uccessfu|lly boun|
|00004160| 64 2e 22 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |d.");..}|....func|
|00004170| 74 69 6f 6e 20 50 6f 73 | 74 42 65 67 69 6e 50 6c |tion Pos|tBeginPl|
|00004180| 61 79 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ay()..{.|..local |
|00004190| 55 64 70 42 65 61 63 6f | 6e 09 42 65 61 63 6f 6e |UdpBeaco|n.Beacon|
|000041a0| 3b 0d 0a 0d 0a 09 66 6f | 72 65 61 63 68 20 41 6c |;.....fo|reach Al|
|000041b0| 6c 41 63 74 6f 72 73 28 | 63 6c 61 73 73 27 55 64 |lActors(|class'Ud|
|000041c0| 70 42 65 61 63 6f 6e 27 | 2c 20 42 65 61 63 6f 6e |pBeacon'|, Beacon|
|000041d0| 29 0d 0a 09 7b 0d 0a 09 | 09 42 65 61 63 6f 6e 2e |)...{...|.Beacon.|
|000041e0| 55 64 70 53 65 72 76 65 | 72 51 75 65 72 79 50 6f |UdpServe|rQueryPo|
|000041f0| 72 74 20 3d 20 50 6f 72 | 74 3b 0d 0a 09 7d 0d 0a |rt = Por|t;...}..|
|00004200| 09 53 75 70 65 72 2e 50 | 6f 73 74 42 65 67 69 6e |.Super.P|ostBegin|
|00004210| 50 6c 61 79 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2f |Play();.|.}....//|
|00004220| 20 52 65 63 65 69 76 65 | 64 20 61 20 71 75 65 72 | Receive|d a quer|
|00004230| 79 20 72 65 71 75 65 73 | 74 2e 0d 0a 65 76 65 6e |y reques|t...even|
|00004240| 74 20 52 65 63 65 69 76 | 65 64 54 65 78 74 28 20 |t Receiv|edText( |
|00004250| 49 70 41 64 64 72 20 41 | 64 64 72 2c 20 73 74 72 |IpAddr A|ddr, str|
|00004260| 69 6e 67 20 54 65 78 74 | 20 29 0d 0a 7b 0d 0a 09 |ing Text| )..{...|
|00004270| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 20 51 75 65 |local st|ring Que|
|00004280| 72 79 3b 0d 0a 09 6c 6f | 63 61 6c 20 62 6f 6f 6c |ry;...lo|cal bool|
|00004290| 20 51 75 65 72 79 52 65 | 6d 61 69 6e 69 6e 67 3b | QueryRe|maining;|
|000042a0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 20 51 75 |...local| int Qu|
|000042b0| 65 72 79 4e 75 6d 2c 20 | 50 61 63 6b 65 74 4e 75 |eryNum, |PacketNu|
|000042c0| 6d 3b 0d 0a 0d 0a 09 2f | 2f 20 41 73 73 69 67 6e |m;...../|/ Assign|
|000042d0| 20 74 68 69 73 20 70 61 | 63 6b 65 74 20 61 20 75 | this pa|cket a u|
|000042e0| 6e 69 71 75 65 20 76 61 | 6c 75 65 20 66 72 6f 6d |nique va|lue from|
|000042f0| 20 31 20 74 6f 20 31 30 | 30 0d 0a 09 43 75 72 72 | 1 to 10|0...Curr|
|00004300| 65 6e 74 51 75 65 72 79 | 4e 75 6d 2b 2b 3b 0d 0a |entQuery|Num++;..|
|00004310| 09 69 66 20 28 43 75 72 | 72 65 6e 74 51 75 65 72 |.if (Cur|rentQuer|
|00004320| 79 4e 75 6d 20 3e 20 31 | 30 30 29 0d 0a 09 09 43 |yNum > 1|00)....C|
|00004330| 75 72 72 65 6e 74 51 75 | 65 72 79 4e 75 6d 20 3d |urrentQu|eryNum =|
|00004340| 20 31 3b 0d 0a 09 51 75 | 65 72 79 4e 75 6d 20 3d | 1;...Qu|eryNum =|
|00004350| 20 43 75 72 72 65 6e 74 | 51 75 65 72 79 4e 75 6d | Current|QueryNum|
|00004360| 3b 0d 0a 0d 0a 09 51 75 | 65 72 79 20 3d 20 54 65 |;.....Qu|ery = Te|
|00004370| 78 74 3b 0d 0a 09 69 66 | 20 28 51 75 65 72 79 20 |xt;...if| (Query |
|00004380| 3d 3d 20 22 22 29 09 09 | 2f 2f 20 49 66 20 74 68 |== "")..|// If th|
|00004390| 65 20 73 74 72 69 6e 67 | 20 69 73 20 65 6d 70 74 |e string| is empt|
|000043a0| 79 2c 20 64 6f 6e 27 74 | 20 70 61 72 73 65 20 69 |y, don't| parse i|
|000043b0| 74 0d 0a 09 09 51 75 65 | 72 79 52 65 6d 61 69 6e |t....Que|ryRemain|
|000043c0| 69 6e 67 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 65 |ing = fa|lse;...e|
|000043d0| 6c 73 65 0d 0a 09 09 51 | 75 65 72 79 52 65 6d 61 |lse....Q|ueryRema|
|000043e0| 69 6e 69 6e 67 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ining = |true;...|
|000043f0| 0d 0a 09 77 68 69 6c 65 | 20 28 51 75 65 72 79 52 |...while| (QueryR|
|00004400| 65 6d 61 69 6e 69 6e 67 | 29 20 7b 0d 0a 09 09 51 |emaining|) {....Q|
|00004410| 75 65 72 79 20 3d 20 50 | 61 72 73 65 51 75 65 72 |uery = P|arseQuer|
|00004420| 79 28 41 64 64 72 2c 20 | 51 75 65 72 79 2c 20 51 |y(Addr, |Query, Q|
|00004430| 75 65 72 79 4e 75 6d 2c | 20 50 61 63 6b 65 74 4e |ueryNum,| PacketN|
|00004440| 75 6d 29 3b 0d 0a 09 09 | 69 66 20 28 51 75 65 72 |um);....|if (Quer|
|00004450| 79 20 3d 3d 20 22 22 29 | 0d 0a 09 09 09 51 75 65 |y == "")|.....Que|
|00004460| 72 79 52 65 6d 61 69 6e | 69 6e 67 20 3d 20 66 61 |ryRemain|ing = fa|
|00004470| 6c 73 65 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |lse;....|else....|
|00004480| 09 51 75 65 72 79 52 65 | 6d 61 69 6e 69 6e 67 20 |.QueryRe|maining |
|00004490| 3d 20 74 72 75 65 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |= true;.|..}..}..|
|000044a0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|000044b0| 50 61 72 73 65 4e 65 78 | 74 51 75 65 72 79 28 20 |ParseNex|tQuery( |
|000044c0| 73 74 72 69 6e 67 20 51 | 75 65 72 79 2c 20 6f 75 |string Q|uery, ou|
|000044d0| 74 20 73 74 72 69 6e 67 | 20 51 75 65 72 79 54 79 |t string| QueryTy|
|000044e0| 70 65 2c 20 6f 75 74 20 | 73 74 72 69 6e 67 20 51 |pe, out |string Q|
|000044f0| 75 65 72 79 56 61 6c 75 | 65 2c 20 6f 75 74 20 73 |ueryValu|e, out s|
|00004500| 74 72 69 6e 67 20 51 75 | 65 72 79 52 65 73 74 2c |tring Qu|eryRest,|
|00004510| 20 6f 75 74 20 73 74 72 | 69 6e 67 20 46 69 6e 61 | out str|ing Fina|
|00004520| 6c 50 61 63 6b 65 74 20 | 29 0d 0a 7b 0d 0a 09 6c |lPacket |)..{...l|
|00004530| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 54 65 6d 70 |ocal str|ing Temp|
|00004540| 51 75 65 72 79 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |Query;..|.local i|
|00004550| 6e 74 20 43 6c 6f 73 69 | 6e 67 53 6c 61 73 68 3b |nt Closi|ngSlash;|
|00004560| 0d 0a 0d 0a 09 69 66 20 | 28 51 75 65 72 79 20 3d |.....if |(Query =|
|00004570| 3d 20 22 22 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |= "")...|.return |
|00004580| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 2f 2f 20 51 75 |false;..|...// Qu|
|00004590| 65 72 79 20 73 68 6f 75 | 6c 64 20 62 65 3a 0d 0a |ery shou|ld be:..|
|000045a0| 09 2f 2f 20 20 20 5c 5b | 74 79 70 65 5d 5c 3c 76 |.// \[|type]\<v|
|000045b0| 61 6c 75 65 3e 0d 0a 09 | 69 66 20 28 4c 65 66 74 |alue>...|if (Left|
|000045c0| 28 51 75 65 72 79 2c 20 | 31 29 20 3d 3d 20 22 5c |(Query, |1) == "\|
|000045d0| 5c 22 29 0d 0a 09 7b 0d | 0a 09 09 2f 2f 20 43 68 |\")...{.|...// Ch|
|000045e0| 65 63 6b 20 74 6f 20 73 | 65 65 20 69 66 20 63 6c |eck to s|ee if cl|
|000045f0| 6f 73 65 64 2e 0d 0a 09 | 09 43 6c 6f 73 69 6e 67 |osed....|.Closing|
|00004600| 53 6c 61 73 68 20 3d 20 | 49 6e 53 74 72 28 52 69 |Slash = |InStr(Ri|
|00004610| 67 68 74 28 51 75 65 72 | 79 2c 20 4c 65 6e 28 51 |ght(Quer|y, Len(Q|
|00004620| 75 65 72 79 29 2d 31 29 | 2c 20 22 5c 5c 22 29 3b |uery)-1)|, "\\");|
|00004630| 0d 0a 09 09 69 66 20 28 | 43 6c 6f 73 69 6e 67 53 |....if (|ClosingS|
|00004640| 6c 61 73 68 20 3d 3d 20 | 30 29 0d 0a 09 09 09 72 |lash == |0).....r|
|00004650| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|00004660| 09 09 54 65 6d 70 51 75 | 65 72 79 20 3d 20 51 75 |..TempQu|ery = Qu|
|00004670| 65 72 79 3b 0d 0a 0d 0a | 09 09 2f 2f 20 51 75 65 |ery;....|..// Que|
|00004680| 72 79 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 3a 0d 0a |ry looks| like:..|
|00004690| 09 09 2f 2f 20 20 5c 5b | 74 79 70 65 5d 5c 0d 0a |..// \[|type]\..|
|000046a0| 09 09 51 75 65 72 79 54 | 79 70 65 20 3d 20 52 69 |..QueryT|ype = Ri|
|000046b0| 67 68 74 28 51 75 65 72 | 79 2c 20 4c 65 6e 28 51 |ght(Quer|y, Len(Q|
|000046c0| 75 65 72 79 29 2d 31 29 | 3b 0d 0a 09 09 51 75 65 |uery)-1)|;....Que|
|000046d0| 72 79 54 79 70 65 20 3d | 20 4c 65 66 74 28 51 75 |ryType =| Left(Qu|
|000046e0| 65 72 79 54 79 70 65 2c | 20 43 6c 6f 73 69 6e 67 |eryType,| Closing|
|000046f0| 53 6c 61 73 68 29 3b 0d | 0a 0d 0a 09 09 51 75 65 |Slash);.|.....Que|
|00004700| 72 79 52 65 73 74 20 3d | 20 52 69 67 68 74 28 51 |ryRest =| Right(Q|
|00004710| 75 65 72 79 2c 20 4c 65 | 6e 28 51 75 65 72 79 29 |uery, Le|n(Query)|
|00004720| 20 2d 20 28 4c 65 6e 28 | 51 75 65 72 79 54 79 70 | - (Len(|QueryTyp|
|00004730| 65 29 20 2b 20 32 29 29 | 3b 0d 0a 0d 0a 09 09 69 |e) + 2))|;......i|
|00004740| 66 20 28 28 51 75 65 72 | 79 52 65 73 74 20 3d 3d |f ((Quer|yRest ==|
|00004750| 20 22 22 29 20 7c 7c 20 | 28 4c 65 6e 28 51 75 65 | "") || |(Len(Que|
|00004760| 72 79 52 65 73 74 29 20 | 3d 3d 20 31 29 29 0d 0a |ryRest) |== 1))..|
|00004770| 09 09 7b 0d 0a 09 09 09 | 46 69 6e 61 6c 50 61 63 |..{.....|FinalPac|
|00004780| 6b 65 74 20 3d 20 22 66 | 69 6e 61 6c 22 3b 0d 0a |ket = "f|inal";..|
|00004790| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000047a0| 0a 09 09 7d 20 65 6c 73 | 65 20 69 66 20 28 4c 65 |...} els|e if (Le|
|000047b0| 66 74 28 51 75 65 72 79 | 52 65 73 74 2c 20 31 29 |ft(Query|Rest, 1)|
|000047c0| 20 3d 3d 20 22 5c 5c 22 | 29 0d 0a 09 09 09 72 65 | == "\\"|).....re|
|000047d0| 74 75 72 6e 20 74 72 75 | 65 3b 09 2f 2f 20 5c 74 |turn tru|e;.// \t|
|000047e0| 79 70 65 5c 5c 0d 0a 0d | 0a 09 09 2f 2f 20 51 75 |ype\\...|...// Qu|
|000047f0| 65 72 79 20 6c 6f 6f 6b | 73 20 6c 69 6b 65 3a 0d |ery look|s like:.|
|00004800| 0a 09 09 2f 2f 20 20 5c | 74 79 70 65 5c 76 61 6c |...// \|type\val|
|00004810| 75 65 0d 0a 09 09 43 6c | 6f 73 69 6e 67 53 6c 61 |ue....Cl|osingSla|
|00004820| 73 68 20 3d 20 49 6e 53 | 74 72 28 51 75 65 72 79 |sh = InS|tr(Query|
|00004830| 52 65 73 74 2c 20 22 5c | 5c 22 29 3b 0d 0a 09 09 |Rest, "\|\");....|
|00004840| 69 66 20 28 43 6c 6f 73 | 69 6e 67 53 6c 61 73 68 |if (Clos|ingSlash|
|00004850| 20 3e 3d 20 30 29 0d 0a | 09 09 09 51 75 65 72 79 | >= 0)..|...Query|
|00004860| 56 61 6c 75 65 20 3d 20 | 4c 65 66 74 28 51 75 65 |Value = |Left(Que|
|00004870| 72 79 52 65 73 74 2c 20 | 43 6c 6f 73 69 6e 67 53 |ryRest, |ClosingS|
|00004880| 6c 61 73 68 29 3b 0d 0a | 09 09 65 6c 73 65 0d 0a |lash);..|..else..|
|00004890| 09 09 09 51 75 65 72 79 | 56 61 6c 75 65 20 3d 20 |...Query|Value = |
|000048a0| 51 75 65 72 79 52 65 73 | 74 3b 0d 0a 0d 0a 09 09 |QueryRes|t;......|
|000048b0| 51 75 65 72 79 52 65 73 | 74 20 3d 20 52 69 67 68 |QueryRes|t = Righ|
|000048c0| 74 28 51 75 65 72 79 2c | 20 4c 65 6e 28 51 75 65 |t(Query,| Len(Que|
|000048d0| 72 79 29 20 2d 20 28 4c | 65 6e 28 51 75 65 72 79 |ry) - (L|en(Query|
|000048e0| 54 79 70 65 29 20 2b 20 | 4c 65 6e 28 51 75 65 72 |Type) + |Len(Quer|
|000048f0| 79 56 61 6c 75 65 29 20 | 2b 20 33 29 29 3b 0d 0a |yValue) |+ 3));..|
|00004900| 09 09 69 66 20 28 51 75 | 65 72 79 52 65 73 74 20 |..if (Qu|eryRest |
|00004910| 3d 3d 20 22 22 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |== "")..|..{.....|
|00004920| 46 69 6e 61 6c 50 61 63 | 6b 65 74 20 3d 20 22 66 |FinalPac|ket = "f|
|00004930| 69 6e 61 6c 22 3b 0d 0a | 09 09 09 72 65 74 75 72 |inal";..|...retur|
|00004940| 6e 20 74 72 75 65 3b 0d | 0a 09 09 7d 20 65 6c 73 |n true;.|...} els|
|00004950| 65 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |e.....re|turn tru|
|00004960| 65 3b 0d 0a 09 7d 20 65 | 6c 73 65 20 7b 0d 0a 09 |e;...} e|lse {...|
|00004970| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00004980| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00004990| 6e 20 73 74 72 69 6e 67 | 20 50 61 72 73 65 51 75 |n string| ParseQu|
|000049a0| 65 72 79 28 20 49 70 41 | 64 64 72 20 41 64 64 72 |ery( IpA|ddr Addr|
|000049b0| 2c 20 63 6f 65 72 63 65 | 20 73 74 72 69 6e 67 20 |, coerce| string |
|000049c0| 51 75 65 72 79 2c 20 69 | 6e 74 20 51 75 65 72 79 |Query, i|nt Query|
|000049d0| 4e 75 6d 2c 20 6f 75 74 | 20 69 6e 74 20 50 61 63 |Num, out| int Pac|
|000049e0| 6b 65 74 4e 75 6d 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |ketNum )|..{...lo|
|000049f0| 63 61 6c 20 73 74 72 69 | 6e 67 20 51 75 65 72 79 |cal stri|ng Query|
|00004a00| 54 79 70 65 2c 20 51 75 | 65 72 79 56 61 6c 75 65 |Type, Qu|eryValue|
|00004a10| 2c 20 51 75 65 72 79 52 | 65 73 74 2c 20 56 61 6c |, QueryR|est, Val|
|00004a20| 69 64 61 74 69 6f 6e 53 | 74 72 69 6e 67 3b 0d 0a |idationS|tring;..|
|00004a30| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 52 65 73 75 |.local b|ool Resu|
|00004a40| 6c 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 73 74 72 69 |lt;...lo|cal stri|
|00004a50| 6e 67 20 46 69 6e 61 6c | 50 61 63 6b 65 74 3b 0d |ng Final|Packet;.|
|00004a60| 0a 09 0d 0a 09 52 65 73 | 75 6c 74 20 3d 20 50 61 |.....Res|ult = Pa|
|00004a70| 72 73 65 4e 65 78 74 51 | 75 65 72 79 28 51 75 65 |rseNextQ|uery(Que|
|00004a80| 72 79 2c 20 51 75 65 72 | 79 54 79 70 65 2c 20 51 |ry, Quer|yType, Q|
|00004a90| 75 65 72 79 56 61 6c 75 | 65 2c 20 51 75 65 72 79 |ueryValu|e, Query|
|00004aa0| 52 65 73 74 2c 20 46 69 | 6e 61 6c 50 61 63 6b 65 |Rest, Fi|nalPacke|
|00004ab0| 74 29 3b 0d 0a 09 69 66 | 28 20 21 52 65 73 75 6c |t);...if|( !Resul|
|00004ac0| 74 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 22 22 |t )....r|eturn ""|
|00004ad0| 3b 0d 0a 0d 0a 09 69 66 | 28 20 51 75 65 72 79 54 |;.....if|( QueryT|
|00004ae0| 79 70 65 3d 3d 22 62 61 | 73 69 63 22 20 29 0d 0a |ype=="ba|sic" )..|
|00004af0| 09 7b 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 53 |.{....Re|sult = S|
|00004b00| 65 6e 64 51 75 65 72 79 | 50 61 63 6b 65 74 28 41 |endQuery|Packet(A|
|00004b10| 64 64 72 2c 20 47 65 74 | 42 61 73 69 63 28 29 2c |ddr, Get|Basic(),|
|00004b20| 20 51 75 65 72 79 4e 75 | 6d 2c 20 2b 2b 50 61 63 | QueryNu|m, ++Pac|
|00004b30| 6b 65 74 4e 75 6d 2c 20 | 46 69 6e 61 6c 50 61 63 |ketNum, |FinalPac|
|00004b40| 6b 65 74 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |ket);...|}...else|
|00004b50| 20 69 66 28 20 51 75 65 | 72 79 54 79 70 65 3d 3d | if( Que|ryType==|
|00004b60| 22 69 6e 66 6f 22 20 29 | 0d 0a 09 7b 0d 0a 09 09 |"info" )|...{....|
|00004b70| 52 65 73 75 6c 74 20 3d | 20 53 65 6e 64 51 75 65 |Result =| SendQue|
|00004b80| 72 79 50 61 63 6b 65 74 | 28 41 64 64 72 2c 20 47 |ryPacket|(Addr, G|
|00004b90| 65 74 49 6e 66 6f 28 29 | 2c 20 51 75 65 72 79 4e |etInfo()|, QueryN|
|00004ba0| 75 6d 2c 20 2b 2b 50 61 | 63 6b 65 74 4e 75 6d 2c |um, ++Pa|cketNum,|
|00004bb0| 20 46 69 6e 61 6c 50 61 | 63 6b 65 74 29 3b 0d 0a | FinalPa|cket);..|
|00004bc0| 09 7d 0d 0a 09 65 6c 73 | 65 20 69 66 28 20 51 75 |.}...els|e if( Qu|
|00004bd0| 65 72 79 54 79 70 65 3d | 3d 22 72 75 6c 65 73 22 |eryType=|="rules"|
|00004be0| 20 29 0d 0a 09 7b 0d 0a | 09 09 52 65 73 75 6c 74 | )...{..|..Result|
|00004bf0| 20 3d 20 53 65 6e 64 51 | 75 65 72 79 50 61 63 6b | = SendQ|ueryPack|
|00004c00| 65 74 28 41 64 64 72 2c | 20 47 65 74 52 75 6c 65 |et(Addr,| GetRule|
|00004c10| 73 28 29 2c 20 51 75 65 | 72 79 4e 75 6d 2c 20 2b |s(), Que|ryNum, +|
|00004c20| 2b 50 61 63 6b 65 74 4e | 75 6d 2c 20 46 69 6e 61 |+PacketN|um, Fina|
|00004c30| 6c 50 61 63 6b 65 74 29 | 3b 0d 0a 09 7d 0d 0a 09 |lPacket)|;...}...|
|00004c40| 65 6c 73 65 20 69 66 28 | 20 51 75 65 72 79 54 79 |else if(| QueryTy|
|00004c50| 70 65 3d 3d 22 70 6c 61 | 79 65 72 73 22 20 29 0d |pe=="pla|yers" ).|
|00004c60| 0a 09 7b 0d 0a 09 09 69 | 66 28 20 4c 65 76 65 6c |..{....i|f( Level|
|00004c70| 2e 47 61 6d 65 2e 4e 75 | 6d 50 6c 61 79 65 72 73 |.Game.Nu|mPlayers|
|00004c80| 20 3e 20 30 20 29 0d 0a | 09 09 09 52 65 73 75 6c | > 0 )..|...Resul|
|00004c90| 74 20 3d 20 53 65 6e 64 | 50 6c 61 79 65 72 73 28 |t = Send|Players(|
|00004ca0| 41 64 64 72 2c 20 51 75 | 65 72 79 4e 75 6d 2c 20 |Addr, Qu|eryNum, |
|00004cb0| 50 61 63 6b 65 74 4e 75 | 6d 2c 20 46 69 6e 61 6c |PacketNu|m, Final|
|00004cc0| 50 61 63 6b 65 74 29 3b | 0d 0a 09 09 65 6c 73 65 |Packet);|....else|
|00004cd0| 0d 0a 09 09 09 52 65 73 | 75 6c 74 20 3d 20 53 65 |.....Res|ult = Se|
|00004ce0| 6e 64 51 75 65 72 79 50 | 61 63 6b 65 74 28 41 64 |ndQueryP|acket(Ad|
|00004cf0| 64 72 2c 20 22 22 2c 20 | 51 75 65 72 79 4e 75 6d |dr, "", |QueryNum|
|00004d00| 2c 20 50 61 63 6b 65 74 | 4e 75 6d 2c 20 46 69 6e |, Packet|Num, Fin|
|00004d10| 61 6c 50 61 63 6b 65 74 | 29 3b 0d 0a 09 7d 0d 0a |alPacket|);...}..|
|00004d20| 09 65 6c 73 65 20 69 66 | 28 20 51 75 65 72 79 54 |.else if|( QueryT|
|00004d30| 79 70 65 3d 3d 22 73 74 | 61 74 75 73 22 20 29 0d |ype=="st|atus" ).|
|00004d40| 0a 09 7b 0d 0a 09 09 52 | 65 73 75 6c 74 20 3d 20 |..{....R|esult = |
|00004d50| 53 65 6e 64 51 75 65 72 | 79 50 61 63 6b 65 74 28 |SendQuer|yPacket(|
|00004d60| 41 64 64 72 2c 20 47 65 | 74 42 61 73 69 63 28 29 |Addr, Ge|tBasic()|
|00004d70| 2c 20 51 75 65 72 79 4e | 75 6d 2c 20 2b 2b 50 61 |, QueryN|um, ++Pa|
|00004d80| 63 6b 65 74 4e 75 6d 2c | 20 22 22 29 3b 0d 0a 09 |cketNum,| "");...|
|00004d90| 09 52 65 73 75 6c 74 20 | 3d 20 53 65 6e 64 51 75 |.Result |= SendQu|
|00004da0| 65 72 79 50 61 63 6b 65 | 74 28 41 64 64 72 2c 20 |eryPacke|t(Addr, |
|00004db0| 47 65 74 49 6e 66 6f 28 | 29 2c 20 51 75 65 72 79 |GetInfo(|), Query|
|00004dc0| 4e 75 6d 2c 20 2b 2b 50 | 61 63 6b 65 74 4e 75 6d |Num, ++P|acketNum|
|00004dd0| 2c 20 22 22 29 3b 0d 0a | 09 09 69 66 28 20 4c 65 |, "");..|..if( Le|
|00004de0| 76 65 6c 2e 47 61 6d 65 | 2e 4e 75 6d 50 6c 61 79 |vel.Game|.NumPlay|
|00004df0| 65 72 73 20 3d 3d 20 30 | 20 29 0d 0a 09 09 7b 0d |ers == 0| )....{.|
|00004e00| 0a 09 09 09 52 65 73 75 | 6c 74 20 3d 20 53 65 6e |....Resu|lt = Sen|
|00004e10| 64 51 75 65 72 79 50 61 | 63 6b 65 74 28 41 64 64 |dQueryPa|cket(Add|
|00004e20| 72 2c 20 47 65 74 52 75 | 6c 65 73 28 29 2c 20 51 |r, GetRu|les(), Q|
|00004e30| 75 65 72 79 4e 75 6d 2c | 20 2b 2b 50 61 63 6b 65 |ueryNum,| ++Packe|
|00004e40| 74 4e 75 6d 2c 20 46 69 | 6e 61 6c 50 61 63 6b 65 |tNum, Fi|nalPacke|
|00004e50| 74 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |t);....}|....else|
|00004e60| 0d 0a 09 09 7b 0d 0a 09 | 09 09 52 65 73 75 6c 74 |....{...|..Result|
|00004e70| 20 3d 20 53 65 6e 64 51 | 75 65 72 79 50 61 63 6b | = SendQ|ueryPack|
|00004e80| 65 74 28 41 64 64 72 2c | 20 47 65 74 52 75 6c 65 |et(Addr,| GetRule|
|00004e90| 73 28 29 2c 20 51 75 65 | 72 79 4e 75 6d 2c 20 2b |s(), Que|ryNum, +|
|00004ea0| 2b 50 61 63 6b 65 74 4e | 75 6d 2c 20 22 22 29 3b |+PacketN|um, "");|
|00004eb0| 0d 0a 09 09 09 52 65 73 | 75 6c 74 20 3d 20 53 65 |.....Res|ult = Se|
|00004ec0| 6e 64 50 6c 61 79 65 72 | 73 28 41 64 64 72 2c 20 |ndPlayer|s(Addr, |
|00004ed0| 51 75 65 72 79 4e 75 6d | 2c 20 50 61 63 6b 65 74 |QueryNum|, Packet|
|00004ee0| 4e 75 6d 2c 20 46 69 6e | 61 6c 50 61 63 6b 65 74 |Num, Fin|alPacket|
|00004ef0| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 65 6c |);....}.|..}...el|
|00004f00| 73 65 20 69 66 28 20 51 | 75 65 72 79 54 79 70 65 |se if( Q|ueryType|
|00004f10| 3d 3d 22 65 63 68 6f 22 | 20 29 0d 0a 09 7b 0d 0a |=="echo"| )...{..|
|00004f20| 09 09 2f 2f 20 52 65 73 | 70 6f 6e 64 20 74 6f 20 |..// Res|pond to |
|00004f30| 61 6e 20 65 63 68 6f 20 | 77 69 74 68 20 74 68 65 |an echo |with the|
|00004f40| 20 73 61 6d 65 20 73 74 | 72 69 6e 67 0d 0a 09 09 | same st|ring....|
|00004f50| 52 65 73 75 6c 74 20 3d | 20 53 65 6e 64 51 75 65 |Result =| SendQue|
|00004f60| 72 79 50 61 63 6b 65 74 | 28 41 64 64 72 2c 20 22 |ryPacket|(Addr, "|
|00004f70| 5c 5c 65 63 68 6f 5c 5c | 22 24 51 75 65 72 79 56 |\\echo\\|"$QueryV|
|00004f80| 61 6c 75 65 2c 20 51 75 | 65 72 79 4e 75 6d 2c 20 |alue, Qu|eryNum, |
|00004f90| 2b 2b 50 61 63 6b 65 74 | 4e 75 6d 2c 20 46 69 6e |++Packet|Num, Fin|
|00004fa0| 61 6c 50 61 63 6b 65 74 | 29 3b 0d 0a 09 7d 0d 0a |alPacket|);...}..|
|00004fb0| 09 65 6c 73 65 20 69 66 | 28 20 51 75 65 72 79 54 |.else if|( QueryT|
|00004fc0| 79 70 65 3d 3d 22 73 65 | 63 75 72 65 22 20 29 0d |ype=="se|cure" ).|
|00004fd0| 0a 09 7b 0d 0a 09 09 56 | 61 6c 69 64 61 74 69 6f |..{....V|alidatio|
|00004fe0| 6e 53 74 72 69 6e 67 20 | 3d 20 22 5c 5c 76 61 6c |nString |= "\\val|
|00004ff0| 69 64 61 74 65 5c 5c 22 | 24 56 61 6c 69 64 61 74 |idate\\"|$Validat|
|00005000| 65 28 51 75 65 72 79 56 | 61 6c 75 65 2c 20 47 61 |e(QueryV|alue, Ga|
|00005010| 6d 65 4e 61 6d 65 29 3b | 0d 0a 09 09 52 65 73 75 |meName);|....Resu|
|00005020| 6c 74 20 3d 20 53 65 6e | 64 51 75 65 72 79 50 61 |lt = Sen|dQueryPa|
|00005030| 63 6b 65 74 28 41 64 64 | 72 2c 20 56 61 6c 69 64 |cket(Add|r, Valid|
|00005040| 61 74 69 6f 6e 53 74 72 | 69 6e 67 2c 20 51 75 65 |ationStr|ing, Que|
|00005050| 72 79 4e 75 6d 2c 20 2b | 2b 50 61 63 6b 65 74 4e |ryNum, +|+PacketN|
|00005060| 75 6d 2c 20 46 69 6e 61 | 6c 50 61 63 6b 65 74 29 |um, Fina|lPacket)|
|00005070| 3b 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 20 69 66 28 |;...}...|else if(|
|00005080| 20 51 75 65 72 79 54 79 | 70 65 3d 3d 22 6c 65 76 | QueryTy|pe=="lev|
|00005090| 65 6c 5f 70 72 6f 70 65 | 72 74 79 22 20 29 0d 0a |el_prope|rty" )..|
|000050a0| 09 7b 0d 0a 09 09 52 65 | 73 75 6c 74 20 3d 20 53 |.{....Re|sult = S|
|000050b0| 65 6e 64 51 75 65 72 79 | 50 61 63 6b 65 74 28 41 |endQuery|Packet(A|
|000050c0| 64 64 72 2c 20 47 65 74 | 4c 65 76 65 6c 50 72 6f |ddr, Get|LevelPro|
|000050d0| 70 65 72 74 79 28 51 75 | 65 72 79 56 61 6c 75 65 |perty(Qu|eryValue|
|000050e0| 29 2c 20 51 75 65 72 79 | 4e 75 6d 2c 20 2b 2b 50 |), Query|Num, ++P|
|000050f0| 61 63 6b 65 74 4e 75 6d | 2c 20 46 69 6e 61 6c 50 |acketNum|, FinalP|
|00005100| 61 63 6b 65 74 29 3b 0d | 0a 09 7d 0d 0a 09 65 6c |acket);.|..}...el|
|00005110| 73 65 20 69 66 28 20 51 | 75 65 72 79 54 79 70 65 |se if( Q|ueryType|
|00005120| 3d 3d 22 67 61 6d 65 5f | 70 72 6f 70 65 72 74 79 |=="game_|property|
|00005130| 22 20 29 0d 0a 09 7b 0d | 0a 09 09 09 52 65 73 75 |" )...{.|....Resu|
|00005140| 6c 74 20 3d 20 53 65 6e | 64 51 75 65 72 79 50 61 |lt = Sen|dQueryPa|
|00005150| 63 6b 65 74 28 41 64 64 | 72 2c 20 47 65 74 47 61 |cket(Add|r, GetGa|
|00005160| 6d 65 50 72 6f 70 65 72 | 74 79 28 51 75 65 72 79 |meProper|ty(Query|
|00005170| 56 61 6c 75 65 29 2c 20 | 51 75 65 72 79 4e 75 6d |Value), |QueryNum|
|00005180| 2c 20 2b 2b 50 61 63 6b | 65 74 4e 75 6d 2c 20 46 |, ++Pack|etNum, F|
|00005190| 69 6e 61 6c 50 61 63 6b | 65 74 29 3b 0d 0a 09 7d |inalPack|et);...}|
|000051a0| 0d 0a 09 65 6c 73 65 20 | 69 66 28 20 51 75 65 72 |...else |if( Quer|
|000051b0| 79 54 79 70 65 3d 3d 22 | 70 6c 61 79 65 72 5f 70 |yType=="|player_p|
|000051c0| 72 6f 70 65 72 74 79 22 | 20 29 0d 0a 09 7b 0d 0a |roperty"| )...{..|
|000051d0| 09 09 52 65 73 75 6c 74 | 20 3d 20 53 65 6e 64 51 |..Result| = SendQ|
|000051e0| 75 65 72 79 50 61 63 6b | 65 74 28 41 64 64 72 2c |ueryPack|et(Addr,|
|000051f0| 20 47 65 74 50 6c 61 79 | 65 72 50 72 6f 70 65 72 | GetPlay|erProper|
|00005200| 74 79 28 51 75 65 72 79 | 56 61 6c 75 65 29 2c 20 |ty(Query|Value), |
|00005210| 51 75 65 72 79 4e 75 6d | 2c 20 2b 2b 50 61 63 6b |QueryNum|, ++Pack|
|00005220| 65 74 4e 75 6d 2c 20 46 | 69 6e 61 6c 50 61 63 6b |etNum, F|inalPack|
|00005230| 65 74 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |et);...}|...else.|
|00005240| 0a 09 7b 0d 0a 09 09 4c | 6f 67 28 22 55 64 70 53 |..{....L|og("UdpS|
|00005250| 65 72 76 65 72 51 75 65 | 72 79 3a 20 55 6e 6b 6e |erverQue|ry: Unkn|
|00005260| 6f 77 6e 20 71 75 65 72 | 79 3a 20 22 24 51 75 65 |own quer|y: "$Que|
|00005270| 72 79 54 79 70 65 29 3b | 0d 0a 09 7d 0d 0a 09 69 |ryType);|...}...i|
|00005280| 66 28 20 21 52 65 73 75 | 6c 74 20 29 0d 0a 09 09 |f( !Resu|lt )....|
|00005290| 4c 6f 67 28 22 55 64 70 | 53 65 72 76 65 72 51 75 |Log("Udp|ServerQu|
|000052a0| 65 72 79 3a 20 45 72 72 | 6f 72 20 72 65 73 70 6f |ery: Err|or respo|
|000052b0| 6e 64 69 6e 67 20 74 6f | 20 71 75 65 72 79 2e 22 |nding to| query."|
|000052c0| 29 3b 0d 0a 09 72 65 74 | 75 72 6e 20 51 75 65 72 |);...ret|urn Quer|
|000052d0| 79 52 65 73 74 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |yRest;..|}....// |
|000052e0| 53 65 6e 64 51 75 65 72 | 79 50 61 63 6b 65 74 20 |SendQuer|yPacket |
|000052f0| 69 73 20 61 20 77 72 61 | 70 70 65 72 20 66 6f 72 |is a wra|pper for|
|00005300| 20 53 65 6e 64 54 65 78 | 74 20 74 68 61 74 20 61 | SendTex|t that a|
|00005310| 6c 6c 6f 77 73 20 66 6f | 72 20 70 61 63 6b 65 74 |llows fo|r packet|
|00005320| 20 6e 75 6d 62 65 72 69 | 6e 67 2e 0d 0a 66 75 6e | numberi|ng...fun|
|00005330| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 65 6e 64 51 |ction bo|ol SendQ|
|00005340| 75 65 72 79 50 61 63 6b | 65 74 28 49 70 41 64 64 |ueryPack|et(IpAdd|
|00005350| 72 20 41 64 64 72 2c 20 | 63 6f 65 72 63 65 20 73 |r Addr, |coerce s|
|00005360| 74 72 69 6e 67 20 53 65 | 6e 64 53 74 72 69 6e 67 |tring Se|ndString|
|00005370| 2c 20 69 6e 74 20 51 75 | 65 72 79 4e 75 6d 2c 20 |, int Qu|eryNum, |
|00005380| 69 6e 74 20 50 61 63 6b | 65 74 4e 75 6d 2c 20 73 |int Pack|etNum, s|
|00005390| 74 72 69 6e 67 20 46 69 | 6e 61 6c 50 61 63 6b 65 |tring Fi|nalPacke|
|000053a0| 74 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 62 6f |t)..{...|local bo|
|000053b0| 6f 6c 20 52 65 73 75 6c | 74 3b 0d 0a 09 69 66 20 |ol Resul|t;...if |
|000053c0| 28 46 69 6e 61 6c 50 61 | 63 6b 65 74 20 3d 3d 20 |(FinalPa|cket == |
|000053d0| 22 66 69 6e 61 6c 22 29 | 20 7b 0d 0a 09 09 53 65 |"final")| {....Se|
|000053e0| 6e 64 53 74 72 69 6e 67 | 20 3d 20 53 65 6e 64 53 |ndString| = SendS|
|000053f0| 74 72 69 6e 67 24 22 5c | 5c 66 69 6e 61 6c 5c 5c |tring$"\|\final\\|
|00005400| 22 3b 0d 0a 09 7d 0d 0a | 09 53 65 6e 64 53 74 72 |";...}..|.SendStr|
|00005410| 69 6e 67 20 3d 20 53 65 | 6e 64 53 74 72 69 6e 67 |ing = Se|ndString|
|00005420| 24 22 5c 5c 71 75 65 72 | 79 69 64 5c 5c 22 24 51 |$"\\quer|yid\\"$Q|
|00005430| 75 65 72 79 4e 75 6d 24 | 22 2e 22 24 50 61 63 6b |ueryNum$|"."$Pack|
|00005440| 65 74 4e 75 6d 3b 0d 0a | 0d 0a 09 52 65 73 75 6c |etNum;..|...Resul|
|00005450| 74 20 3d 20 53 65 6e 64 | 54 65 78 74 28 41 64 64 |t = Send|Text(Add|
|00005460| 72 2c 20 53 65 6e 64 53 | 74 72 69 6e 67 29 3b 0d |r, SendS|tring);.|
|00005470| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 52 65 73 75 6c |....retu|rn Resul|
|00005480| 74 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2f 20 52 65 74 75 |t;..}...|.// Retu|
|00005490| 72 6e 20 61 20 73 74 72 | 69 6e 67 20 6f 66 20 62 |rn a str|ing of b|
|000054a0| 61 73 69 63 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |asic inf|ormation|
|000054b0| 2e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |...funct|ion stri|
|000054c0| 6e 67 20 47 65 74 42 61 | 73 69 63 28 29 20 7b 0d |ng GetBa|sic() {.|
|000054d0| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 52 |..local |string R|
|000054e0| 65 73 75 6c 74 53 65 74 | 3b 0d 0a 0d 0a 09 2f 2f |esultSet|;.....//|
|000054f0| 20 54 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 69 | The nam|e of thi|
|00005500| 73 20 67 61 6d 65 2e 0d | 0a 09 52 65 73 75 6c 74 |s game..|..Result|
|00005510| 53 65 74 20 3d 20 22 5c | 5c 67 61 6d 65 6e 61 6d |Set = "\|\gamenam|
|00005520| 65 5c 5c 22 24 47 61 6d | 65 4e 61 6d 65 3b 0d 0a |e\\"$Gam|eName;..|
|00005530| 0d 0a 09 2f 2f 20 54 68 | 65 20 76 65 72 73 69 6f |...// Th|e versio|
|00005540| 6e 20 6f 66 20 74 68 69 | 73 20 67 61 6d 65 2e 0d |n of thi|s game..|
|00005550| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |..Result|Set = Re|
|00005560| 73 75 6c 74 53 65 74 24 | 22 5c 5c 67 61 6d 65 76 |sultSet$|"\\gamev|
|00005570| 65 72 5c 5c 22 24 4c 65 | 76 65 6c 2e 45 6e 67 69 |er\\"$Le|vel.Engi|
|00005580| 6e 65 56 65 72 73 69 6f | 6e 3b 0d 0a 0d 0a 09 2f |neVersio|n;...../|
|00005590| 2f 20 54 68 65 20 6d 6f | 73 74 20 72 65 63 65 6e |/ The mo|st recen|
|000055a0| 74 20 6e 65 74 77 6f 72 | 6b 20 63 6f 6d 70 61 74 |t networ|k compat|
|000055b0| 69 62 6c 65 20 76 65 72 | 73 69 6f 6e 2e 0d 0a 09 |ible ver|sion....|
|000055c0| 52 65 73 75 6c 74 53 65 | 74 20 3d 20 52 65 73 75 |ResultSe|t = Resu|
|000055d0| 6c 74 53 65 74 24 22 5c | 5c 6d 69 6e 6e 65 74 76 |ltSet$"\|\minnetv|
|000055e0| 65 72 5c 5c 22 24 4c 65 | 76 65 6c 2e 4d 69 6e 4e |er\\"$Le|vel.MinN|
|000055f0| 65 74 56 65 72 73 69 6f | 6e 3b 0d 0a 0d 0a 09 2f |etVersio|n;...../|
|00005600| 2f 20 54 68 65 20 72 65 | 67 69 6f 6e 61 6c 20 6c |/ The re|gional l|
|00005610| 6f 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 69 73 20 |ocation |of this |
|00005620| 67 61 6d 65 2e 0d 0a 09 | 52 65 73 75 6c 74 53 65 |game....|ResultSe|
|00005630| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005640| 5c 6c 6f 63 61 74 69 6f | 6e 5c 5c 22 24 4c 65 76 |\locatio|n\\"$Lev|
|00005650| 65 6c 2e 47 61 6d 65 2e | 47 61 6d 65 52 65 70 6c |el.Game.|GameRepl|
|00005660| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 52 65 67 69 |icationI|nfo.Regi|
|00005670| 6f 6e 3b 0d 0a 09 0d 0a | 09 72 65 74 75 72 6e 20 |on;.....|.return |
|00005680| 52 65 73 75 6c 74 53 65 | 74 3b 0d 0a 7d 0d 0a 0d |ResultSe|t;..}...|
|00005690| 0a 2f 2f 20 52 65 74 75 | 72 6e 20 61 20 73 74 72 |.// Retu|rn a str|
|000056a0| 69 6e 67 20 6f 66 20 69 | 6d 70 6f 72 74 61 6e 74 |ing of i|mportant|
|000056b0| 20 73 79 73 74 65 6d 20 | 69 6e 66 6f 72 6d 61 74 | system |informat|
|000056c0| 69 6f 6e 2e 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 73 |ion...fu|nction s|
|000056d0| 74 72 69 6e 67 20 47 65 | 74 49 6e 66 6f 28 29 20 |tring Ge|tInfo() |
|000056e0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|000056f0| 20 52 65 73 75 6c 74 53 | 65 74 3b 0d 0a 0d 0a 09 | ResultS|et;.....|
|00005700| 2f 2f 20 54 68 65 20 73 | 65 72 76 65 72 20 6e 61 |// The s|erver na|
|00005710| 6d 65 2c 20 69 2e 65 2e | 3a 20 42 6f 62 92 73 20 |me, i.e.|: Bob.s |
|00005720| 53 65 72 76 65 72 0d 0a | 09 52 65 73 75 6c 74 53 |Server..|.ResultS|
|00005730| 65 74 20 3d 20 22 5c 5c | 68 6f 73 74 6e 61 6d 65 |et = "\\|hostname|
|00005740| 5c 5c 22 24 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |\\"$Leve|l.Game.G|
|00005750| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00005760| 66 6f 2e 53 65 72 76 65 | 72 4e 61 6d 65 3b 0d 0a |fo.Serve|rName;..|
|00005770| 0d 0a 09 2f 2f 20 54 68 | 65 20 73 68 6f 72 74 20 |...// Th|e short |
|00005780| 73 65 72 76 65 72 20 6e | 61 6d 65 0d 0a 09 52 65 |server n|ame...Re|
|00005790| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|000057a0| 53 65 74 24 22 5c 5c 73 | 68 6f 72 74 6e 61 6d 65 |Set$"\\s|hortname|
|000057b0| 5c 5c 22 24 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |\\"$Leve|l.Game.G|
|000057c0| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|000057d0| 66 6f 2e 53 68 6f 72 74 | 4e 61 6d 65 3b 0d 0a 0d |fo.Short|Name;...|
|000057e0| 0a 09 2f 2f 20 54 68 65 | 20 73 65 72 76 65 72 20 |..// The| server |
|000057f0| 70 6f 72 74 2e 0d 0a 09 | 52 65 73 75 6c 74 53 65 |port....|ResultSe|
|00005800| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005810| 5c 68 6f 73 74 70 6f 72 | 74 5c 5c 22 24 4c 65 76 |\hostpor|t\\"$Lev|
|00005820| 65 6c 2e 47 61 6d 65 2e | 47 65 74 53 65 72 76 65 |el.Game.|GetServe|
|00005830| 72 50 6f 72 74 28 29 3b | 0d 0a 0d 0a 09 2f 2f 20 |rPort();|.....// |
|00005840| 28 6f 70 74 69 6f 6e 61 | 6c 29 20 54 68 65 20 73 |(optiona|l) The s|
|00005850| 65 72 76 65 72 20 49 50 | 0d 0a 09 2f 2f 20 69 66 |erver IP|...// if|
|00005860| 20 28 53 65 72 76 65 72 | 49 50 20 21 3d 20 22 22 | (Server|IP != ""|
|00005870| 29 0d 0a 09 2f 2f 09 52 | 65 73 75 6c 74 53 65 74 |)...//.R|esultSet|
|00005880| 20 3d 20 52 65 73 75 6c | 74 53 65 74 24 22 5c 5c | = Resul|tSet$"\\|
|00005890| 68 6f 73 74 69 70 5c 5c | 22 24 53 65 72 76 65 72 |hostip\\|"$Server|
|000058a0| 49 50 3b 0d 0a 0d 0a 09 | 2f 2f 20 54 68 65 20 6d |IP;.....|// The m|
|000058b0| 61 70 2f 6c 65 76 65 6c | 20 74 69 74 6c 65 0d 0a |ap/level| title..|
|000058c0| 09 52 65 73 75 6c 74 53 | 65 74 20 3d 20 52 65 73 |.ResultS|et = Res|
|000058d0| 75 6c 74 53 65 74 24 22 | 5c 5c 6d 61 70 74 69 74 |ultSet$"|\\maptit|
|000058e0| 6c 65 5c 5c 22 24 4c 65 | 76 65 6c 2e 54 69 74 6c |le\\"$Le|vel.Titl|
|000058f0| 65 3b 0d 0a 09 0d 0a 09 | 2f 2f 20 4d 61 70 20 6e |e;......|// Map n|
|00005900| 61 6d 65 0d 0a 09 52 65 | 73 75 6c 74 53 65 74 20 |ame...Re|sultSet |
|00005910| 3d 20 52 65 73 75 6c 74 | 53 65 74 24 22 5c 5c 6d |= Result|Set$"\\m|
|00005920| 61 70 6e 61 6d 65 5c 5c | 22 24 4c 65 66 74 28 73 |apname\\|"$Left(s|
|00005930| 74 72 69 6e 67 28 4c 65 | 76 65 6c 29 2c 20 49 6e |tring(Le|vel), In|
|00005940| 53 74 72 28 73 74 72 69 | 6e 67 28 4c 65 76 65 6c |Str(stri|ng(Level|
|00005950| 29 2c 20 22 2e 22 29 29 | 3b 0d 0a 0d 0a 09 2f 2f |), "."))|;.....//|
|00005960| 20 54 68 65 20 6d 6f 64 | 20 6f 72 20 67 61 6d 65 | The mod| or game|
|00005970| 20 74 79 70 65 0d 0a 09 | 52 65 73 75 6c 74 53 65 | type...|ResultSe|
|00005980| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005990| 5c 67 61 6d 65 74 79 70 | 65 5c 5c 22 24 47 65 74 |\gametyp|e\\"$Get|
|000059a0| 49 74 65 6d 4e 61 6d 65 | 28 73 74 72 69 6e 67 28 |ItemName|(string(|
|000059b0| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 43 6c 61 73 73 |Level.Ga|me.Class|
|000059c0| 29 29 3b 0d 0a 0d 0a 09 | 2f 2f 20 54 68 65 20 6e |));.....|// The n|
|000059d0| 75 6d 62 65 72 20 6f 66 | 20 70 6c 61 79 65 72 73 |umber of| players|
|000059e0| 0d 0a 09 52 65 73 75 6c | 74 53 65 74 20 3d 20 52 |...Resul|tSet = R|
|000059f0| 65 73 75 6c 74 53 65 74 | 24 22 5c 5c 6e 75 6d 70 |esultSet|$"\\nump|
|00005a00| 6c 61 79 65 72 73 5c 5c | 22 24 4c 65 76 65 6c 2e |layers\\|"$Level.|
|00005a10| 47 61 6d 65 2e 4e 75 6d | 50 6c 61 79 65 72 73 3b |Game.Num|Players;|
|00005a20| 0d 0a 0d 0a 09 2f 2f 20 | 54 68 65 20 6d 61 78 69 |.....// |The maxi|
|00005a30| 6d 75 6d 20 6e 75 6d 62 | 65 72 20 6f 66 20 70 6c |mum numb|er of pl|
|00005a40| 61 79 65 72 73 0d 0a 09 | 52 65 73 75 6c 74 53 65 |ayers...|ResultSe|
|00005a50| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005a60| 5c 6d 61 78 70 6c 61 79 | 65 72 73 5c 5c 22 24 4c |\maxplay|ers\\"$L|
|00005a70| 65 76 65 6c 2e 47 61 6d | 65 2e 4d 61 78 50 6c 61 |evel.Gam|e.MaxPla|
|00005a80| 79 65 72 73 3b 0d 0a 0d | 0a 09 2f 2f 20 54 68 65 |yers;...|..// The|
|00005a90| 20 67 61 6d 65 20 6d 6f | 64 65 3a 20 6f 70 65 6e | game mo|de: open|
|00005aa0| 70 6c 61 79 69 6e 67 0d | 0a 09 52 65 73 75 6c 74 |playing.|..Result|
|00005ab0| 53 65 74 20 3d 20 52 65 | 73 75 6c 74 53 65 74 24 |Set = Re|sultSet$|
|00005ac0| 22 5c 5c 67 61 6d 65 6d | 6f 64 65 5c 5c 6f 70 65 |"\\gamem|ode\\ope|
|00005ad0| 6e 70 6c 61 79 69 6e 67 | 22 3b 0d 0a 0d 0a 09 2f |nplaying|";...../|
|00005ae0| 2f 20 54 68 65 20 76 65 | 72 73 69 6f 6e 20 6f 66 |/ The ve|rsion of|
|00005af0| 20 74 68 69 73 20 67 61 | 6d 65 2e 0d 0a 09 52 65 | this ga|me....Re|
|00005b00| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|00005b10| 53 65 74 24 22 5c 5c 67 | 61 6d 65 76 65 72 5c 5c |Set$"\\g|amever\\|
|00005b20| 22 24 4c 65 76 65 6c 2e | 45 6e 67 69 6e 65 56 65 |"$Level.|EngineVe|
|00005b30| 72 73 69 6f 6e 3b 0d 0a | 0d 0a 09 2f 2f 20 54 68 |rsion;..|...// Th|
|00005b40| 65 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 6e 65 |e most r|ecent ne|
|00005b50| 74 77 6f 72 6b 20 63 6f | 6d 70 61 74 69 62 6c 65 |twork co|mpatible|
|00005b60| 20 76 65 72 73 69 6f 6e | 2e 0d 0a 09 52 65 73 75 | version|....Resu|
|00005b70| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00005b80| 74 24 22 5c 5c 6d 69 6e | 6e 65 74 76 65 72 5c 5c |t$"\\min|netver\\|
|00005b90| 22 24 4c 65 76 65 6c 2e | 4d 69 6e 4e 65 74 56 65 |"$Level.|MinNetVe|
|00005ba0| 72 73 69 6f 6e 3b 0d 0a | 0d 0a 09 52 65 73 75 6c |rsion;..|...Resul|
|00005bb0| 74 53 65 74 20 3d 20 52 | 65 73 75 6c 74 53 65 74 |tSet = R|esultSet|
|00005bc0| 24 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 47 65 74 49 |$Level.G|ame.GetI|
|00005bd0| 6e 66 6f 28 29 3b 0d 0a | 0d 0a 09 72 65 74 75 72 |nfo();..|...retur|
|00005be0| 6e 20 52 65 73 75 6c 74 | 53 65 74 3b 0d 0a 7d 0d |n Result|Set;..}.|
|00005bf0| 0a 0d 0a 2f 2f 20 52 65 | 74 75 72 6e 20 61 20 73 |...// Re|turn a s|
|00005c00| 74 72 69 6e 67 20 6f 66 | 20 6d 69 73 63 65 6c 6c |tring of| miscell|
|00005c10| 61 6e 65 6f 75 73 20 69 | 6e 66 6f 72 6d 61 74 69 |aneous i|nformati|
|00005c20| 6f 6e 2e 0d 0a 2f 2f 20 | 47 61 6d 65 20 73 70 65 |on...// |Game spe|
|00005c30| 63 69 66 69 63 20 69 6e | 66 6f 72 6d 61 74 69 6f |cific in|formatio|
|00005c40| 6e 2c 20 75 73 65 72 20 | 64 65 66 69 6e 65 64 20 |n, user |defined |
|00005c50| 64 61 74 61 2c 20 63 75 | 73 74 6f 6d 20 70 61 72 |data, cu|stom par|
|00005c60| 61 6d 65 74 65 72 73 20 | 66 6f 72 20 74 68 65 20 |ameters |for the |
|00005c70| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 2e 0d 0a 66 |command |line...f|
|00005c80| 75 6e 63 74 69 6f 6e 20 | 73 74 72 69 6e 67 20 47 |unction |string G|
|00005c90| 65 74 52 75 6c 65 73 28 | 29 0d 0a 7b 0d 0a 09 6c |etRules(|)..{...l|
|00005ca0| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 52 65 73 75 |ocal str|ing Resu|
|00005cb0| 6c 74 53 65 74 3b 0d 0a | 0d 0a 09 52 65 73 75 6c |ltSet;..|...Resul|
|00005cc0| 74 53 65 74 20 3d 20 4c | 65 76 65 6c 2e 47 61 6d |tSet = L|evel.Gam|
|00005cd0| 65 2e 47 65 74 52 75 6c | 65 73 28 29 3b 0d 0a 0d |e.GetRul|es();...|
|00005ce0| 0a 09 2f 2f 20 41 64 6d | 69 6e 27 73 20 4e 61 6d |..// Adm|in's Nam|
|00005cf0| 65 0d 0a 09 69 66 28 20 | 4c 65 76 65 6c 2e 47 61 |e...if( |Level.Ga|
|00005d00| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|00005d10| 6f 6e 49 6e 66 6f 2e 41 | 64 6d 69 6e 4e 61 6d 65 |onInfo.A|dminName|
|00005d20| 20 21 3d 20 22 22 20 29 | 0d 0a 09 09 52 65 73 75 | != "" )|....Resu|
|00005d30| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00005d40| 74 24 22 5c 5c 41 64 6d | 69 6e 4e 61 6d 65 5c 5c |t$"\\Adm|inName\\|
|00005d50| 22 24 4c 65 76 65 6c 2e | 47 61 6d 65 2e 47 61 6d |"$Level.|Game.Gam|
|00005d60| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00005d70| 2e 41 64 6d 69 6e 4e 61 | 6d 65 3b 0d 0a 09 0d 0a |.AdminNa|me;.....|
|00005d80| 09 2f 2f 20 41 64 6d 69 | 6e 27 73 20 45 6d 61 69 |.// Admi|n's Emai|
|00005d90| 6c 0d 0a 09 69 66 28 20 | 4c 65 76 65 6c 2e 47 61 |l...if( |Level.Ga|
|00005da0| 6d 65 2e 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |me.GameR|eplicati|
|00005db0| 6f 6e 49 6e 66 6f 2e 41 | 64 6d 69 6e 45 6d 61 69 |onInfo.A|dminEmai|
|00005dc0| 6c 20 21 3d 20 22 22 20 | 29 0d 0a 09 09 52 65 73 |l != "" |)....Res|
|00005dd0| 75 6c 74 53 65 74 20 3d | 20 52 65 73 75 6c 74 53 |ultSet =| ResultS|
|00005de0| 65 74 24 22 5c 5c 41 64 | 6d 69 6e 45 4d 61 69 6c |et$"\\Ad|minEMail|
|00005df0| 5c 5c 22 24 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |\\"$Leve|l.Game.G|
|00005e00| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00005e10| 66 6f 2e 41 64 6d 69 6e | 45 6d 61 69 6c 3b 0d 0a |fo.Admin|Email;..|
|00005e20| 0d 0a 09 72 65 74 75 72 | 6e 20 52 65 73 75 6c 74 |...retur|n Result|
|00005e30| 53 65 74 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 52 65 |Set;..}.|...// Re|
|00005e40| 74 75 72 6e 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |turn a s|tring of|
|00005e50| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00005e60| 61 20 70 6c 61 79 65 72 | 2e 0d 0a 66 75 6e 63 74 |a player|...funct|
|00005e70| 69 6f 6e 20 73 74 72 69 | 6e 67 20 47 65 74 50 6c |ion stri|ng GetPl|
|00005e80| 61 79 65 72 28 20 50 6c | 61 79 65 72 50 61 77 6e |ayer( Pl|ayerPawn|
|00005e90| 20 50 2c 20 69 6e 74 20 | 50 6c 61 79 65 72 4e 75 | P, int |PlayerNu|
|00005ea0| 6d 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 73 |m )..{..|.local s|
|00005eb0| 74 72 69 6e 67 20 52 65 | 73 75 6c 74 53 65 74 3b |tring Re|sultSet;|
|00005ec0| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00005ed0| 53 6b 69 6e 4e 61 6d 65 | 2c 20 46 61 63 65 4e 61 |SkinName|, FaceNa|
|00005ee0| 6d 65 3b 0d 0a 0d 0a 09 | 2f 2f 20 4e 61 6d 65 0d |me;.....|// Name.|
|00005ef0| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 22 5c |..Result|Set = "\|
|00005f00| 5c 70 6c 61 79 65 72 5f | 22 24 50 6c 61 79 65 72 |\player_|"$Player|
|00005f10| 4e 75 6d 24 22 5c 5c 22 | 24 50 2e 50 6c 61 79 65 |Num$"\\"|$P.Playe|
|00005f20| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00005f30| 2e 50 6c 61 79 65 72 4e | 61 6d 65 3b 0d 0a 0d 0a |.PlayerN|ame;....|
|00005f40| 09 2f 2f 20 46 72 61 67 | 73 0d 0a 09 52 65 73 75 |.// Frag|s...Resu|
|00005f50| 6c 74 53 65 74 20 3d 20 | 52 65 73 75 6c 74 53 65 |ltSet = |ResultSe|
|00005f60| 74 24 22 5c 5c 66 72 61 | 67 73 5f 22 24 50 6c 61 |t$"\\fra|gs_"$Pla|
|00005f70| 79 65 72 4e 75 6d 24 22 | 5c 5c 22 24 69 6e 74 28 |yerNum$"|\\"$int(|
|00005f80| 50 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |P.Player|Replicat|
|00005f90| 69 6f 6e 49 6e 66 6f 2e | 53 63 6f 72 65 29 3b 0d |ionInfo.|Score);.|
|00005fa0| 0a 0d 0a 09 2f 2f 20 50 | 69 6e 67 0d 0a 09 52 65 |....// P|ing...Re|
|00005fb0| 73 75 6c 74 53 65 74 20 | 3d 20 52 65 73 75 6c 74 |sultSet |= Result|
|00005fc0| 53 65 74 24 22 5c 5c 70 | 69 6e 67 5f 22 24 50 6c |Set$"\\p|ing_"$Pl|
|00005fd0| 61 79 65 72 4e 75 6d 24 | 22 5c 5c 22 24 50 2e 43 |ayerNum$|"\\"$P.C|
|00005fe0| 6f 6e 73 6f 6c 65 43 6f | 6d 6d 61 6e 64 28 22 47 |onsoleCo|mmand("G|
|00005ff0| 45 54 50 49 4e 47 22 29 | 3b 0d 0a 0d 0a 09 2f 2f |ETPING")|;.....//|
|00006000| 20 54 65 61 6d 0d 0a 09 | 52 65 73 75 6c 74 53 65 | Team...|ResultSe|
|00006010| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00006020| 5c 74 65 61 6d 5f 22 24 | 50 6c 61 79 65 72 4e 75 |\team_"$|PlayerNu|
|00006030| 6d 24 22 5c 5c 22 24 50 | 2e 50 6c 61 79 65 72 52 |m$"\\"$P|.PlayerR|
|00006040| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00006050| 65 61 6d 3b 0d 0a 0d 0a | 09 2f 2f 20 43 6c 61 73 |eam;....|.// Clas|
|00006060| 73 0d 0a 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |s...Resu|ltSet = |
|00006070| 52 65 73 75 6c 74 53 65 | 74 24 22 5c 5c 6d 65 73 |ResultSe|t$"\\mes|
|00006080| 68 5f 22 24 50 6c 61 79 | 65 72 4e 75 6d 24 22 5c |h_"$Play|erNum$"\|
|00006090| 5c 22 24 50 2e 4d 65 6e | 75 6e 61 6d 65 3b 0d 0a |\"$P.Men|uname;..|
|000060a0| 0d 0a 09 2f 2f 20 53 6b | 69 6e 0d 0a 09 69 66 28 |...// Sk|in...if(|
|000060b0| 50 2e 53 6b 69 6e 20 3d | 3d 20 4e 6f 6e 65 29 0d |P.Skin =|= None).|
|000060c0| 0a 09 7b 0d 0a 09 09 50 | 2e 73 74 61 74 69 63 2e |..{....P|.static.|
|000060d0| 47 65 74 4d 75 6c 74 69 | 53 6b 69 6e 28 50 2c 20 |GetMulti|Skin(P, |
|000060e0| 53 6b 69 6e 4e 61 6d 65 | 2c 20 46 61 63 65 4e 61 |SkinName|, FaceNa|
|000060f0| 6d 65 29 3b 0d 0a 09 09 | 52 65 73 75 6c 74 53 65 |me);....|ResultSe|
|00006100| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00006110| 5c 73 6b 69 6e 5f 22 24 | 50 6c 61 79 65 72 4e 75 |\skin_"$|PlayerNu|
|00006120| 6d 24 22 5c 5c 22 24 53 | 6b 69 6e 4e 61 6d 65 3b |m$"\\"$S|kinName;|
|00006130| 0d 0a 09 09 52 65 73 75 | 6c 74 53 65 74 20 3d 20 |....Resu|ltSet = |
|00006140| 52 65 73 75 6c 74 53 65 | 74 24 22 5c 5c 66 61 63 |ResultSe|t$"\\fac|
|00006150| 65 5f 22 24 50 6c 61 79 | 65 72 4e 75 6d 24 22 5c |e_"$Play|erNum$"\|
|00006160| 5c 22 24 46 61 63 65 4e | 61 6d 65 3b 0d 0a 09 7d |\"$FaceN|ame;...}|
|00006170| 0d 0a 09 65 6c 73 65 0d | 0a 09 7b 0d 0a 09 09 52 |...else.|..{....R|
|00006180| 65 73 75 6c 74 53 65 74 | 20 3d 20 52 65 73 75 6c |esultSet| = Resul|
|00006190| 74 53 65 74 24 22 5c 5c | 73 6b 69 6e 5f 22 24 50 |tSet$"\\|skin_"$P|
|000061a0| 6c 61 79 65 72 4e 75 6d | 24 22 5c 5c 22 24 73 74 |layerNum|$"\\"$st|
|000061b0| 72 69 6e 67 28 50 2e 53 | 6b 69 6e 29 3b 0d 0a 09 |ring(P.S|kin);...|
|000061c0| 09 52 65 73 75 6c 74 53 | 65 74 20 3d 20 52 65 73 |.ResultS|et = Res|
|000061d0| 75 6c 74 53 65 74 24 22 | 5c 5c 66 61 63 65 5f 22 |ultSet$"|\\face_"|
|000061e0| 24 50 6c 61 79 65 72 4e | 75 6d 24 22 5c 5c 4e 6f |$PlayerN|um$"\\No|
|000061f0| 6e 65 22 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 72 65 74 |ne";...}|.....ret|
|00006200| 75 72 6e 20 52 65 73 75 | 6c 74 53 65 74 3b 0d 0a |urn Resu|ltSet;..|
|00006210| 7d 0d 0a 0d 0a 2f 2f 20 | 53 65 6e 64 20 64 61 74 |}....// |Send dat|
|00006220| 61 20 66 6f 72 20 65 61 | 63 68 20 70 6c 61 79 65 |a for ea|ch playe|
|00006230| 72 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |r..funct|ion bool|
|00006240| 20 53 65 6e 64 50 6c 61 | 79 65 72 73 28 49 70 41 | SendPla|yers(IpA|
|00006250| 64 64 72 20 41 64 64 72 | 2c 20 69 6e 74 20 51 75 |ddr Addr|, int Qu|
|00006260| 65 72 79 4e 75 6d 2c 20 | 6f 75 74 20 69 6e 74 20 |eryNum, |out int |
|00006270| 50 61 63 6b 65 74 4e 75 | 6d 2c 20 73 74 72 69 6e |PacketNu|m, strin|
|00006280| 67 20 46 69 6e 61 6c 50 | 61 63 6b 65 74 29 0d 0a |g FinalP|acket)..|
|00006290| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 50 61 77 6e 20 50 |{...loca|l Pawn P|
|000062a0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |;...loca|l int i;|
|000062b0| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 52 65 |...local| bool Re|
|000062c0| 73 75 6c 74 2c 20 53 65 | 6e 64 52 65 73 75 6c 74 |sult, Se|ndResult|
|000062d0| 3b 0d 0a 09 0d 0a 09 52 | 65 73 75 6c 74 20 3d 20 |;......R|esult = |
|000062e0| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 50 20 3d 20 4c |false;..|...P = L|
|000062f0| 65 76 65 6c 2e 50 61 77 | 6e 4c 69 73 74 3b 0d 0a |evel.Paw|nList;..|
|00006300| 09 77 68 69 6c 65 28 20 | 69 20 3c 20 4c 65 76 65 |.while( |i < Leve|
|00006310| 6c 2e 47 61 6d 65 2e 4e | 75 6d 50 6c 61 79 65 72 |l.Game.N|umPlayer|
|00006320| 73 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 50 |s )...{.|...if (P|
|00006330| 2e 49 73 41 28 27 50 6c | 61 79 65 72 50 61 77 6e |.IsA('Pl|ayerPawn|
|00006340| 27 29 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 28 |'))....{|.....if(|
|00006350| 20 69 3d 3d 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 4e | i==Leve|l.Game.N|
|00006360| 75 6d 50 6c 61 79 65 72 | 73 2d 31 20 26 26 20 46 |umPlayer|s-1 && F|
|00006370| 69 6e 61 6c 50 61 63 6b | 65 74 3d 3d 22 66 69 6e |inalPack|et=="fin|
|00006380| 61 6c 22 20 29 0d 0a 09 | 09 09 09 53 65 6e 64 52 |al" )...|...SendR|
|00006390| 65 73 75 6c 74 20 3d 20 | 53 65 6e 64 51 75 65 72 |esult = |SendQuer|
|000063a0| 79 50 61 63 6b 65 74 28 | 41 64 64 72 2c 20 47 65 |yPacket(|Addr, Ge|
|000063b0| 74 50 6c 61 79 65 72 28 | 50 6c 61 79 65 72 50 61 |tPlayer(|PlayerPa|
|000063c0| 77 6e 28 50 29 2c 20 69 | 29 2c 20 51 75 65 72 79 |wn(P), i|), Query|
|000063d0| 4e 75 6d 2c 20 2b 2b 50 | 61 63 6b 65 74 4e 75 6d |Num, ++P|acketNum|
|000063e0| 2c 20 22 66 69 6e 61 6c | 22 29 3b 0d 0a 09 09 09 |, "final|");.....|
|000063f0| 65 6c 73 65 0d 0a 09 09 | 09 09 53 65 6e 64 52 65 |else....|..SendRe|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.