gamedig / node-gamedig

Query game servers and not only! Node.JS/Deno or Bash (via the CLI).
https://www.npmjs.com/package/gamedig
MIT License
587 stars 143 forks source link

bug: TeamSpeak2 server name not showing #543

Closed podrivo closed 4 months ago

podrivo commented 4 months ago

Describe the bug Querying a TeamSpeak2 have no name, despite having the name in the state.raw.server_name.

Screenshots or Data Query response:

gamedig --type protocol-teamspeak2 130.44.23.184:9112 --pretty

{
  "name": "",
  "map": "",
  "password": false,
  "raw": {
    "server_id": "1",
    "server_name": "*\\0/* #PALMWAYGIRLS *\\0/*",
    "server_platform": "Win32",
    "server_welcomemessage": "The TS3 will remain open for Misc. Live Shows. Voice Cheer Chat will still be Avalible for those that can't be in Studio. TS2 is our Backup Voice Chat to Studio...",
    "server_webpost_linkurl": "",
    "server_webpost_posturl": "",
    "server_password": "1",
    "server_clan_server": "0",
    "server_udpport": "9112",
    "server_maxusers": "5",
    "server_allow_codec_celp51": "0",
    "server_allow_codec_celp63": "0",
    "server_allow_codec_gsm148": "0",
    "server_allow_codec_gsm164": "0",
    "server_allow_codec_windowscelp52": "0",
    "server_allow_codec_speex2150": "0",
    "server_allow_codec_speex3950": "0",
    "server_allow_codec_speex5950": "0",
    "server_allow_codec_speex8000": "0",
    "server_allow_codec_speex11000": "0",
    "server_allow_codec_speex15000": "0",
    "server_allow_codec_speex18200": "0",
    "server_allow_codec_speex24600": "-1",
    "server_packetssend": "42008031",
    "server_bytessend": "5095618654",
    "server_packetsreceived": "35229703",
    "server_bytesreceived": "2732893069",
    "server_uptime": "32403181",
    "server_currentusers": "1",
    "server_currentchannels": "4",
    "server_bwinlastsec": "0",
    "server_bwoutlastsec": "23",
    "server_bwinlastmin": "19",
    "server_bwoutlastmin": "24",
    "channels": [
      {
        "id": "1",
        "codec": "12",
        "parent": "-1",
        "order": "0",
        "maxusers": "5",
        "name": "CATS HANGOUT",
        "flags": "0",
        "password": "0",
        "topic": "Classmates and Cheer Lobby"
      },
      {
        "id": "2",
        "codec": "12",
        "parent": "-1",
        "order": "20",
        "maxusers": "10",
        "name": "AWAY AWAY AWAY",
        "flags": "6",
        "password": "1",
        "topic": "-- The Quite Place --"
      },
      {
        "id": "3",
        "codec": "12",
        "parent": "-1",
        "order": "10",
        "maxusers": "10",
        "name": "WILDCAT RADIO",
        "flags": "4",
        "password": "1",
        "topic": " LIVE RADIO LINK"
      },
      {
        "id": "6",
        "codec": "12",
        "parent": "-1",
        "order": "50",
        "maxusers": "5",
        "name": "WELCOME LOBBY",
        "flags": "16",
        "password": "0",
        "topic": "Yep, You Are Here!!"
      }
    ]
  },
  "version": "",
  "maxplayers": 0,
  "numplayers": 1,
  "players": [
    {
      "name": "KendallRadio",
      "raw": {
        "p_id": "1",
        "c_id": "3",
        "ps": "3337759",
        "bs": "80107744",
        "pr": "9",
        "br": "436",
        "pl": "0",
        "ping": "43",
        "logintime": "3471651",
        "idletime": "3471646",
        "cprivs": "0",
        "pprivs": "5",
        "pflags": "0",
        "ip": "0.0.0.0",
        "loginname": "nicole"
      }
    }
  ],
  "bots": [],
  "queryPort": 9112,
  "connect": "130.44.23.184:9112",
  "ping": 152
}
CosminPerRam commented 4 months ago

Closed by #544, feel free to reopen if there are still problems.