Giter VIP home page Giter VIP logo

srcds-tools's People

Contributors

jimbru avatar steverobbins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

steverobbins

srcds-tools's Issues

Can't receive more than 1435 bytes in rcon

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.

IndexError: list index out of range

$ ./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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.