Author Topic: Server: rcon status giving a different name for a connected player  (Read 6097 times)

xrichardx

  • 68 Carbine
  • Posts: 295
I can't give instructions on how to reproduce it, but sometimes it happens that a server gives a different name for the same player when issuing rcon status

For, example, I get these results (and i can repeat the commands, the name still is wrong with rcon status, so its not just that the player disconnected and another player connected). The IP addresses, however, match in rcon sv listuserip and rcon status. I've replaced them with zeros for privacy reasons.

You can see that player number 23 is called [aMw]wQZ in status, but noname4720 in sv players and sv listuserip.

Code: [Select]
//----------------------------------------------------------------
rcon status

print
map              : shazam33
num score ping name            lastmsg address               qport
--- ----- ---- --------------- ------- --------------------- ------
  0     0  150 mitchell2002          6 0                     15708
  1    14   27 Grrson                5 0                     40307
  2     1   39 [uKn]matzey           1 0                     55797
  3    25   76 noname                7 0                     10963
  4     5  590 FL_ONON              46 0                     54094
  5    10   61 Chris*-*              4 0                     21015
  6     0   55 suarez7              13 0                     38453
  7     7   79 MajoTheDestroyer     18 0                     53565
  8     2  132 noname910            11 0                     24824
  9    17  144 bdog                 92 0                     8438
 11     5   65 destiinyxpvp         19 0                     11510
 12    16  246 SPECS_Leoni          10 0                     44775
 13     3   62 jseppa04             20 0                     22808
 14    13   63 buergja              52 0                     45757
 15     0   50 cazyphantom           9 0                     44097
 16     8   38 [BYbM]Taimatsu       16 0                     34574
 17     0   37 XOXOELI##            11 0                     35285
 19    13   42 Theodor              15 0                     35653
 21     3   71 melis                 4 0                     63440
 22     3   64 richberk7           101 0                     34885
 23     2  162 [aMw]wQZ            195 0                     2466

 
//----------------------------------------------------------------
rcon sv players

print
 0 (223563)] * mitchell2002 (b40)
 1 (129426)] * Grrson (b40)
 2 (92047)] * [uKn]matzey (b40)
 3 ] * noname6528 (b40)
 4 (221445)] * [aMw]technyk32 (b40)
 5 ] * Chris*-* (b40)
 7 (223560)] * MajoTheDestroyer (b40)
 8 ] * noname910 (b40)
 9 (5265)] * bdog (b40)
11 ] * destiinyxpvp (b40)
12 ] * SPECS_Leoni (b40)
13 (218005)] * jseppa04 (b40)
15 ] * cazyphantom (b40)
16 (216695)] * [BYbM]Taimatsu (b40)
17 ] * XOXOELI## (b40)
19 (194234)] * Theodor (b40)
21 (157881)] * melis (b40)
22 (222934)] * richberk7 (b40)
23 ] * noname4720 (b40)

//----------------------------------------------------------------
rcon sv listuserip

print
 mitchell2002 [0]
admin is listing IP for mitchell2002 [0]
 Grrson [0]
admin is listing IP for Grrson [0]
 [uKn]matzey [0]
admin is listing IP for [uKn]matzey [0]
 noname6528 [0]
admin is listing IP for noname6528 [0]
 [aMw]technyk32 [0]
admin is listing IP for [aMw]technyk32 [0]
 Chris*-* [0]
admin is listing IP for Chris*-* [0]
 MajoTheDestroyer [0]
admin is listing IP for MajoTheDestroyer [0]
 noname910 [0]
admin is listing IP for noname910 [0]
 bdog [0]
admin is listing IP for bdog [0]
 destiinyxpvp [0]
admin is listing IP for destiinyxpvp [0]
 SPECS_Leoni [0]
admin is listing IP for SPECS_Leoni [0]
 jseppa04 [0]
admin is listing IP for jseppa04 [0]
 cazyphantom [0]
admin is listing IP for cazyphantom [0]
 [BYbM]Taimatsu [0]
admin is listing IP for [BYbM]Taimatsu [0]
 XOXOELI## [0]
admin is listing IP for XOXOELI## [0]
 Theodor [0]
admin is listing IP for Theodor [0]
 melis [0]
admin is listing IP for melis [0]
 richberk7 [0]
admin is listing IP for richberk7 [0]
 noname4720 [0]
admin is listing IP for noname4720 [0]

technyk32

  • PGP
  • Posts: 11
Re: Server: rcon status giving a different name for a connected player
« Reply #1 on: January 13, 2015, 06:44:55 PM »
Maybe they changed their name to that after entering the game?

xrichardx

  • 68 Carbine
  • Posts: 295
Re: Server: rcon status giving a different name for a connected player
« Reply #2 on: January 14, 2015, 07:33:42 AM »
Maybe they changed their name to that after entering the game?

i can repeat the commands, the name still is wrong with rcon status

Probably, I should have put the rcon status answer in the middle so everyone can see that this is not about unlucky timing. As I said, issuing "rcon status" again after those three rcon commands gave me the same wrong name for the player while repeating sv player always gave the right one. Actually, I would have never noticed if I had not tried to automatically extract all information from both, the sv players and the status command, and put them together. This sometimes fails because status gives a different name for the same player number.

I just found a way to reproduce that bug:
Go to a server.

Change names until the server doesnt allow you to change it anymore by just ignoring your namechange.
(for me, changing "1" to "2", "2" to "3", "3" to "4" and "4" to "5" worked, but the server did not apply "5" to "6")

rcon status will give the name that you tried to change to lastly / the value of your local "name" cvar ("6")

rcon sv players will give you the name you had and still have ingame because all name changes after that were not accepted by the server. ("5")

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Server: rcon status giving a different name for a connected player
« Reply #3 on: February 15, 2015, 11:04:28 PM »
If I remember correctly, the rcon status command is at the engine level, so it returns the name based on the configstring the client passed in because it doesn't have access to the actual player name string used in-game.  Anything that forces your name to be different from what you specified in your "name" cvar will cause this discrepancy.