jimbru / srcds-tools Goto Github PK
View Code? Open in Web Editor NEWUtilities for Managing Source Dedicated Servers
Utilities for Managing Source Dedicated Servers
So I'm noticing I'm getting incomplete responses when sending rcon commands:
$ rconvsh sm plugins list
Sending rcon to 68.232.169.12: 'sm plugins list' ...
[SM] Listing 60 plugins:
01 "Basic Comm Control" (1.6.4-dev+4609) by AlliedModders LLC
02 "Sound Commands" (1.6.3-dev+4580) by AlliedModders LLC
03 "Fake and Force" (1.3.1) by MasterOfTheXP
04 "Rock The Vote" (1.5.0-dev+3764) by AlliedModders LLC
05 "DeadChat" (2.0) by Greyscale
06 "[Any] SteamTools Game Description Override" (1.1.3) by Dr. McKay
07 "Client Preferences" (1.6.4-dev+4609) by AlliedModders LLC
08 "Disconnect Message Removal" (1.1.0) by atom0s
09 "Map Nominations" (1.5.0-dev+3764) by AlliedModders LLC
10 "Spray Tracer" (5.8) by Nican132, CptMoore, Lebson506th
11 "Basic Info Triggers" (1.6.4-dev+4609) by AlliedModders LLC
12 "TF2items In-game Backpack Viewer" (1.0) by n00berific
13 "[ANY] Automatic Steam Update" (1.9.1) by Dr. McKay
14 "sm_allinfo" (2.1.1) by {7~11} TROLL
15 "Anti-Flood" (1.6.4-dev+4609) by AlliedModders LLC
16 "Basic Ban Commands" (1.6.4-dev+4609) by AlliedModders LLC
17 "[TF2] TF2Attributes" (1.1.1) by FlaminSarge
18 "Admin Menu" (1.6.4-dev+4609) by AlliedModders LLC
19 "TeamSwitch" (1.3) by MistaGee
20 "Basic Chat" (1.6.4-dev+4609) by AlliedModders LLC
21 "SUPER AWESOME HOSTNAME SETTER" (1.0) by Taz
22 "Goomba Stomp Core" (2.0.2) by Flyflo
23 "MapChooser" (1.5.3-dev+3955) by AlliedModders LLC
24 "Admin File Reader" (1.6.4-dev+4609) by AlliedModders LLC
25 "Admin loggin" (1.0) by vIr-Dan
26 "[TF2Items] Manager" (1.4.1) by Damizean
[ DONE ]
Should be 60 plugins but only 26 shown
Or
$ rconvsh status
Sending rcon to 68.232.169.12: 'status' ...
hostname: 7~11 Vs Saxton Hale | HLstatsX
version : 2560108/24 2560108 secure
udp/ip : 68.232.169.12:27015 (public ip: 68.232.169.12)
steamid : [A:1:739683337:5031] (90093601267559433)
account : not logged in (No account specified)
map : arena_polar_final at: 0 x, 0 y, 0 z
players : 23 humans, 0 bots (24 max)
edicts : 483 used of 2048 max
Spawns Points Kills Deaths Assists
Scout 9161 5966 370 3320 127
Sniper 4007 10437 2070 1763 53
Soldier 4372 17238 8510 2684 29
Demoman 4014 9630 1498 2028 37
Medic 2702 6373 45 1270 63
Heavy 1561 2518 62 567 23
Pyro 3715 3323 141 1525 53
Spy 3732 6969 152 1660 22
Engineer 4218 6548 1364 1711 48
# userid name uniqueid connected ping loss state adr
# 2842 "rageheavy" [U:1:92783482] 08:48 221 0 active 98.85.33.6:27005
# 2767 "Spooks" [U:1:71108504] 2:16:16 99 0 active 96.54.210.181:27005
# 2836 "Acidtoolz382" [U:1:209864006] 23:24 89 0 active 75.137.220.223:27005
# 2799 "•VidlerOnTheRoof•" [U:1:35002227] 1:28:33 113 0 active 96.50.180.192:27005
# 2843 "ian.bounds" [U:1:205250042] 08:35 490 0 active 66.182.232.252:1027
# 2840 "Nerah" [U:1:211407410] 19:07 192 0 active 92.89.48.83:
[ DONE ]
Should be 23 players but only 6 shown, last line incomplete (Notice the special characters in userid 2799)
Plug both these responses into https://mothereff.in/byte-counter and you'll see they're each 1435.
$ ./srctool rcon ***.***.***.*** *********** status
Sending rcon @ ***.***.***.*** (***********): 'status' ...
Connecting to ***.***.***.*** with rcon password of ***********
Traceback (most recent call last):
File "./bin/rcon.py", line 559, in <module>
print s.rcon_command(' '.join(args))
File "./bin/rcon.py", line 223, in rcon_command
return self._any_rcon_response(command)
File "./bin/rcon.py", line 196, in _any_rcon_response
return self._any_rcon_response_hl2(command)[3]
File "./bin/rcon.py", line 206, in _any_rcon_response_hl2
result = self.read_packet()
File "./bin/rcon.py", line 161, in read_packet
return (packetlen, req_id, command, strs[0], strs[1])
IndexError: list index out of range
[ ERROR ]
My Python skills are limited so I just changed the line to return (packetlen, req_id, command, strs[0], '')
and it seems to print half of the full status
This is a TF2 server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.