-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DayZ player count inaccurate? #440
Comments
The GameDig implementation queries both For DayZ (or this server at least), it seems that they provide the correct one in the Leaving this open until we'll figure it out. Feel free to give in some more thoughts, thanks! |
Thank you so much for the reply @CosminPerRam! I did some testing around the You can get the exact player count via node-gamedig/protocols/valve.js Line 220 in 26a6ee1
|
Hmm, this might be a problem on BattleMetric's side, on dayz-servers.or it lists this server as being 126/127, gamedig says 125/127 (a margin this small might indicate that the server did the query some time ago and isn't real time). This could be verified for sure if you join the server on the game, but I don't have it, I'll around some friends to check it. I've also tested some other servers (with the #449 patch):
Numbers look alright to me (4 out of 6 are very close (again, battlemetrics does queries every 5 minutes so we can't get their exact reported players count)). |
Thank you for getting more info about it! 🙌 It appears that there's an exploit on how servers handle player count on DayZ, and some server owners are using this to make it seems their player count is larger than it is. BattleMetrics seems to be the one that found a way around it. I've asked about this in their discord, but they didn't want to share more info, as to avoid a new exploit being developed. Found this on: https://www.reddit.com/r/dayz/comments/13wlbxf/server_botting_is_on_an_all_time_high_list/ I wonder if dayz-servers.org is also using the same |
Apparently we commented at the same time haha.
Well, I guess that goes for it.
Most likely. |
We hit "Comment" at the same second haha. 😅 I guess this is safe to close, as it's more of a DayZ side of things than GameDig's. I have a separate implementation that is built on top of GameDig, that I'll test other ways to fetch this info. Thank you so much for you support @CosminPerRam! 🙌 |
That's the case, if eventually we find a way to report more realistic player counts we will add it. |
Hello @CosminPerRam! I was testing the latest version in So for example, this server But this other one What do you think? Thank you! 🙏 I've added logs inside |
Taking a closer look, it looks like that DayZ doesn't provide an ingame name in the server query (#240), so node-gamedig/protocols/valve.js Line 192 in 90b3c60
That's why there's a gap between : and 0 in the debug log Edit: Just saw that there's a branch and commit (fc2791f) specifically about this. I think this might be way to go! 😃 |
I'm sorry @CosminPerRam, I just realized you mentioned this in your reply (#440 (comment)) days ago and somehow it slipped through me. This patch (#449) makes it obvious to see a difference in player count. By testing the same server Servers botting player count will look something like this: "players": [], // 0 or lower than 'numplayers'
"numplayers": 120, // this will always vary between 120 and 125, sometimes goes higher than max
"maxplayers": 127 Other servers to test: Well, considering all this, I think if having the players array filled with the players encountered in the servers, I can just count this array and use this instead of So yeah, I think this solves it! Fantastic! ✨ Thank you! 🙌 |
Not sure of it, will notify you. |
Awesome! Thank you! (: |
Hello!
I was testing DayZ player count on some servers and noticed something odd, when comparing it to BattleMetrics.
Take for example this server:
194.147.90.234:27023
In BattleMetrics it says 0/127, but on
gamedig
it says 124/127.I'm not sure if this is a bug or just different implementations, but it would be good to have other people take a look to help me understand what is going on. I'm not sure, but I think
gamedig
uses A2S_INFO to query player data, but perhaps a more accurate way of querying is to use A2S_PLAYER? Just thinking out loud here.Here are images for comparison:
Thank you!
The text was updated successfully, but these errors were encountered: