gamedig / node-gamedig

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

Multi-Server Space Engineers instances not providing player names #375

Open yavolfoxxen opened 1 year ago

yavolfoxxen commented 1 year ago

In a multi-server space engineers main lobby at port 27036: gamedig does give player names but once player teleports to another instance at port 27037: gamedig does not provide player names, but the number of players count is correct.

ie: "players":[{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}},{"name":"","raw":{}}]

yavolfoxxen commented 1 year ago

Found that running with the --debug gives player times, but not names on 27037 Q#0 Registered RTT: 4ms Q#0 Received full packet Q#0 Received 0x44 expected 0x44 Q#0 UDP send finished by callback Q#0 Found player: 0 2839.310302734375 Q#0 Found player: 0 2838.862060546875 Q#0 Found player: 0 2836.619384765625 Q#0 Found player: 0 2835.9765625 Q#0 Found player: 0 2835.975341796875 Q#0 Found player: 0 2835.57177734375 Q#0 Found player: 0 2834.38623046875 Q#0 Found player: 0 2834.145751953125 Q#0 Found player: 0 2832.682861328125 Q#0 Found player: 0 2831.5126953125 Q#0 Found player: 0 2797.76708984375 Q#0 Found player: 0 2793.533935546875 Q#0 Found player: 0 2773.97998046875 Q#0 Found player: 0 2524.007080078125 Q#0 Found player: 0 2490.5595703125 Q#0 Found player: 0 2297.415283203125 Q#0 Found player: 0 2222.88818359375 Q#0 Found player: 0 2052.026611328125 Q#0 Found player: 0 1487.3282470703125 Q#0 Found player: 0 1223.0430908203125 Q#0 Found player: 0 795.960693359375 Q#0 Found player: 0 153.44517517089844 Q#0 Found player: 0 95.89175415039062 Q#0 Found player: 0 27.423370361328125 Q#0 Size of players array: 24 Q#0 Size of bots array: 0 Q#0 Query was successful

CosminPerRam commented 11 months ago

Hey, sorry for responding so late, does this still apply? If so, could you give a complete query logs output with --debug?

podrivo commented 10 months ago

@yavolfoxxen Would you mind testing one more time, using --debug, and share with us? We've had some updates about players, and was curious to see if something have changed.

yavolfoxxen commented 4 days ago

Sorry for the late reply, here's the debug output.

gamedig --type spaceengineers [IP:PORT REDACTED] --debug Q#0 Starting Q#0 Protocol: valve Q#0 Options: { socketTimeout: 2000, attemptTimeout: 10000, maxRetries: 1, stripColors: true, portCache: true, noBreadthOrder: false, ipFamily: 0, requestPlayers: true, port: [PORT REDACTED], protocol: 'valve', pretty: false, debug: true, givenPortOnly: false, requestRules: false, requestRulesRequired: false, requestPlayersRequired: false, checkOldIDs: false, rejectUnauthorized: false, type: 'spaceengineers', host: '[IP REDACTED]' } Q#0 DNS Lookup: [IP REDACTED] Q#0 Raw IP Address: [IP REDACTED] Q#0 Requesting info ... [IP:PORT REDACTED] UDP(47279)--> Buffer length: 25 bytes ff ff ff ff 54 53 6f 75 72 63 65 20 45 6e 67 69 6e 65 20 51 75 T S o u r c e E n g i n e Q u 65 72 79 00 e r y

[IP:PORT REDACTED] <--UDP(47279) Buffer length: 9 bytes ff ff ff ff 41 48 2c 44 53 A H , D S

Q#0 Registered RTT: 3ms Q#0 Received full packet Q#0 Received 0x41 expected 0x49 Q#0 Received new challenge key: 0x53442c48 Q#0 UDP send finished by callback [IP:PORT REDACTED] UDP(47279)--> Buffer length: 29 bytes ff ff ff ff 54 53 6f 75 72 63 65 20 45 6e 67 69 6e 65 20 51 75 T S o u r c e E n g i n e Q u 65 72 79 00 48 2c 44 53 e r y H , D S

[IP:PORT REDACTED] <--UDP(47279) Buffer length: 205 bytes ff ff ff ff 49 11 54 49 4f 53 79 73 74 65 6d 00 00 53 70 61 63 I T I O S y s t e m S p a c 65 20 45 6e 67 69 6e 65 65 72 73 00 53 70 61 63 65 20 45 6e 67 e E n g i n e e r s S p a c e E n g 69 6e 65 65 72 73 00 00 00 01 00 00 64 77 00 01 31 32 30 35 30 i n e e r s d w 1 2 0 5 0 32 36 00 b1 9f 69 10 a8 8f f3 96 7c 40 01 67 72 6f 75 70 49 64 2 6 i | @ g r o u p I d 30 20 76 65 72 73 69 6f 6e 31 32 30 35 30 32 36 20 64 61 74 61 0 v e r s i o n 1 2 0 5 0 2 6 d a t a 68 61 73 68 53 4c 46 59 35 59 39 7a 4f 36 4f 55 64 6d 62 4a 38 h a s h S L F Y 5 Y 9 z O 6 O U d m b J 8 79 77 59 68 6c 6a 53 44 39 73 3d 20 6d 6f 64 73 34 32 20 67 61 y w Y h l j S D 9 s = m o d s 4 2 g a 6d 65 6d 6f 64 65 53 31 30 2d 35 2d 33 2d 33 20 76 69 65 77 31 m e m o d e S 1 0 - 5 - 3 - 3 v i e w 1 30 30 30 30 20 6d 6f 64 73 54 6f 74 61 6c 53 69 7a 65 33 31 35 0 0 0 0 m o d s T o t a l S i z e 3 1 5 38 32 39 38 37 30 32 00 72 bc 03 00 00 00 00 00 8 2 9 8 7 0 2 r

Q#0 Registered RTT: 3ms Q#0 Received full packet Q#0 Received 0x49 expected 0x49 Q#0 UDP send finished by callback Q#0 INFO: { protocol: 17, folder: 'Space Engineers', game: 'Space Engineers', appId: 244850, numbots: 0, listentype: 'd', environment: 'w', secure: 1, steamid: '[STEAMID REDACTED]', tags: [ 'groupId0 version1205026 datahashSLFY5Y9zO6OUdmbJ8ywYhljSD9s= mods42 gamemod eS10-5-3-3 view10000 modsTotalSize3158298702' ] } Q#0 Requesting player list ... [IP:PORT REDACTED] UDP(47279)--> Buffer length: 9 bytes ff ff ff ff 55 48 2c 44 53 U H , D S

[IP:PORT REDACTED] <--UDP(47279) Buffer length: 16 bytes ff ff ff ff 44 01 00 00 00 00 00 00 51 84 3e 44 D Q > D

Q#0 Registered RTT: 1ms Q#0 Received full packet Q#0 Received 0x44 expected 0x44 Q#0 UDP send finished by callback Q#0 Found player: 0 762.0674438476562 Q#0 Size of players array: 1 Q#0 Size of bots array: 0 Q#0 Query was successful { "name": "TIOSystem", "map": "", "password": false, "raw": { "protocol": 17, "folder": "Space Engineers", "game": "Space Engineers", "appId": 244850, "numbots": 0, "listentype": "d", "environment": "w", "secure": 1, "steamid": "[STEAMID REDACTED]", "tags": [ "groupId0 version1205026 datahashSLFY5Y9zO6OUdmbJ8ywYhljSD9s= mods42 gamem odeS10-5-3-3 view10000 modsTotalSize3158298702" ], "players": [ { "name": "", "score": 0, "time": 762.0674438476562 } ] }, "version": "1205026", "maxplayers": 0, "numplayers": 1, "players": [ { "name": "", "raw": { "score": 0, "time": 762.0674438476562 } } ], "bots": [], "queryPort": [PORT REDACTED], "connect": "[IP:PORT REDACTED]", "ping": 1