Add getdfstatus: extended server query with player details#64
Open
neyoneit wants to merge 1 commit intoDefrag-racing:mainfrom
Open
Add getdfstatus: extended server query with player details#64neyoneit wants to merge 1 commit intoDefrag-racing:mainfrom
neyoneit wants to merge 1 commit intoDefrag-racing:mainfrom
Conversation
Add new UDP command 'getdfstatus' that returns extended player info for the defrag website scraper, eliminating the need for multiple rcon calls (score, dumpuser) per player. Player line format: clientId dfscore ping "name" "spectating" "tld" "model" "headmodel" uid "color1" - Internally executes mod's 'score' command to get MDD UIDs without rcon - Copies Info_ValueForKey results to local buffers to avoid static buffer overwrite - Same rate limiting as getstatus Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
LLM/AI generated code is of unknown source and incompatible with the GPL this software is under. |
Member
Author
I am the maintainer of this repository and the author of this PR. I take full responsibility for the code and its GPL compliance. Using an AI assistant does not transfer authorship. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add new UDP command
getdfstatusthat returns extended player info for the defrag website scraper, eliminating the need for multiple rcon calls (score,dumpuser) per player.Player line format
2dfscore0cl->ping17cl->name"[gt]neiT."""tld"CZ"model"worm"headmodel"worm"scoreXML<uid>2640color1"twitch.tv/neyoneit"Implementation details
scorecommand viaCom_BeginRedirectto get MDD UIDs without rconInfo_ValueForKeyresults to local buffers to avoid static buffer overwrite (only 2 rotating buffers)getstatusNo sensitive data exposed
All fields are either already public via
getstatus, visible in-game, or set by the player themselves. No IPs, GUIDs, or passwords.Credits
getdfstatusimplementation by KG7X (base function with dfscore, ping, name, spectating)Testing
Tested on a live server connected to the MDD database with logged-in players, confirming correct output of all fields including MDD UIDs retrieved via internal
scorecommand. Verified that no sensitive data (IPs, GUIDs, passwords, rcon) is exposed — all fields are either already public viagetstatusor set by the player themselves.