startersclan / PSSourceQuery

Powershell implementation of Query and Rcon for Source and Goldsource games.
MIT License
2 stars 1 forks source link

CS2 Support for Query #24

Closed NPetersenDK closed 1 year ago

NPetersenDK commented 1 year ago

Hi there!

I have been using the SourceQuery to many things the last like year and a half, to many things. It seems like there is some issues with it on CS2 (Source2) even tho the rcon and those things seems kinda the same. Is it something you want to look into making support for CS2/Source 2?

Basically it seems like the info type is making a lot of gibberish: image

The players one seem to work slightly better: image

Environment: Debian Linux PowerShell Core 7.3.9

Thanks, Nikolaj

leojonathanoh commented 1 year ago

You're right, there's a bit of change with cs2 queries where it needs to trim off some control characters to parse the values correctly. Let me see what i can do over the next few days, will report back asap :)

leojonathanoh commented 1 year ago

good news :) managed to find out the problem, that cs2 changed to require challenge for info type, so i added that in an viola. 😄

this is very useful for even myself, because I was scratching my head about this a few days ago. It isn't documented in the wiki, but now we know 😸

leojonathanoh commented 1 year ago

Just wanted to drop a note here that cs2 seems to no longer publish the names of player names in players query, and rules query also no longer seems to return any rules. Unless they restore the old behavior, the only way to get these is by rcon. Perhaps, it is to combat against scrapers or attacks on query port.