PazerOP / tf2_bot_detector

Automatically detects and votekicks cheaters/bots in TF2 casual.
MIT License
401 stars 55 forks source link

[Question] How do you even send commands to the client #427

Closed home-gihub closed 8 months ago

home-gihub commented 8 months ago

I have been looking around everywhere but they all said about sending commands to the server, not the client.

ChrisChrome commented 8 months ago

Iirc the client has a launch argument that allows RCON connections just like the server It's been a while since I've messed with it, so I don't know the flags off the top of my head.

ChrisChrome commented 8 months ago

Iirc the client has a launch argument that allows RCON connections just like the server It's been a while since I've messed with it, so I don't know the flags off the top of my head.

There are some references to command line arguments when launching the client in this file, Id recommend taking a look there to get an idea of what you'd need to do to enable RCON on your client https://github.com/PazerOP/tf2_bot_detector/blob/master/tf2_bot_detector/SetupFlow/TF2CommandLinePage.cpp

home-gihub commented 8 months ago

thx

home-gihub commented 8 months ago

I don't know what they do and I have no idea how th write c++

ClusterConsultant commented 8 months ago

The client and the server are very similar applications, nearly identical. TF2BD uses rcon as described in https://developer.valvesoftware.com/wiki/Source_RCON_Protocol. As ChrisChrome pointed out, https://github.com/PazerOP/tf2_bot_detector/blob/44f7a803d5dce93ad4f8aa9f1fd83b4ffffae625/tf2_bot_detector/SetupFlow/TF2CommandLinePage.cpp#L212-L230 those are the flags tf2bd uses. Depending on what you are trying to do, the discord server may be more verbose about a specific implementation

home-gihub commented 8 months ago

I don't have discord.