gorcon / rcon

Source RCON Protocol implementation in Go.
MIT License
79 stars 8 forks source link

SQUAD ListPlayers result limited to 23 playters of 100 (handle multiple packets?) #9

Open romanvoloboev opened 4 months ago

romanvoloboev commented 4 months ago

I faced with issue when I'm executing ListPlayers comand in SQUAD game on full server. Every execution of ListPlayers returns only 23 players. So to get full list of players I need run this command 5 (!) times. Moreover, when I run it 6th time - it returns some random server logs instead of players (2nd screen). Please fix this strange behaviour.

1 image
romanvoloboev commented 4 months ago

the problem happens because your lib didn't continue reading data if packet size is more than 4kb currently i'm using java rcon lib https://github.com/ribasco/async-gamequery-lib where this fucntionallity implemented and working good please, take a look on it

image
iamalone98 commented 3 months ago

@romanvoloboev If you still need to read packets for squad, then I implemented mine specifically for squad, you can try using

https://github.com/iamalone98/squad-rcon-go