Client ID problem
Hello, I don't know if its a new update or something because I havn't noticed that before but its f***** up all my plugins..
when you write Status in the console its shows players' ID and lets say someone is id 2, when he disconnects, the server automaticlly changing id 3 to id 2 to sort the list, and when id 2 reconnect to the server, its resorting again and moving him back to id 2 and putting id 3 again to id 3. its doing that so it will be sorted in the status from 1 to current online players How to change it back to what it was, when id 2 disconnects, it remaining as a hole and when the next player connect he will take id 2? |
Re: Client ID problem
Quote:
here, look at this: Code:
# 1 "Player 1" 2 STEAM_0:0:xxxxxxx 0 1:12:45 13 0Code:
# 1 "Player 1" 2 STEAM_0:0:xxxxxxx 0 1:12:45 13 0Code:
# 1 "Player 1" 2 STEAM_0:0:xxxxxxx 0 1:12:45 13 0 |
Re: Client ID problem
You can't change the client id, nor modify the "status" command.
|
Re: Client ID problem
Quote:
im not trying to change, im asking if it is a bug or something new, and how I should deal with that? because I save things like cash on players' id and when they disconnected its saving into a file, so if someone with id 3 becoming id 2 and id 4 becoming id 3, it will give the the 3rd player cash to the 4th player, because his id is now 3 |
Re: Client ID problem
1. the output above does not show any "id-changing". The id should not be given a second time.
2 use STEAM_ID instead of ID to store whatever you want to store, this is unique and therefore no one can get the others data/saved stats/whatever |
Re: Client ID problem
Quote:
|
Re: Client ID problem
@Fuck For Fun what the hell are you talking about
Quote:
|
Re: Client ID problem
This is not a bug that's the normal behaviour.
The list of numbers after # are not ids they are either listing numbers or you can also call them slots. |
Re: Client ID problem
No, it is not normal behavior. The first column is indeed the entity number (sometimes referred to as "slot"; the same entity number used in plugins for most user-specific functions) and will not change for a player that hasn't left the server regardless of if people with a lower id leave.
When "Player 2" leaves, every player above slot/id 2 will remain with the same slot/id that they had before "Player 2" left. I.e. it is common to see skipped numbers in that first column when people leave. The next person to join will get the lowest available slot. So, if "Player 2" leaves and comes back before someone else joins, he will get slot 2 again. If "Player 2" leaves and "Player 12" joins then "Player 12" will get slot 2. If this is indeed happening like you say then you likely have a corrupt/illegitimate version of the server. Make sure that you download your server via SteamCMD only and don't add anything that tries to bypass Steam authentication. The only exception that I can think of is if Valve changed it for Counter-Strike only because I verified with Day of Defeat but that is extremely unlikely since they are both based on the Half-Life engine. |
Re: Client ID problem
Quote:
https://github.com/dreamstalker/rehl...t_cmd.cpp#L624 |
| All times are GMT -4. The time now is 17:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.