yourmnbbn / tiny-csgo-server

Tiny csgo server for logging on to steam game servers, basically it's a fake server, not for real server purpose.
GNU General Public License v3.0
34 stars 4 forks source link

Fake players are not displayed #8

Closed 0-BuTaJIuK-0 closed 1 year ago

0-BuTaJIuK-0 commented 1 year ago

image

//Configs
_DECL_CONST CONFIG_HANDLE_QUERY_BY_STEAM = 1;

//Server information
_DECL_CONST SERVER_NAME = "Tiny csgo server";
_DECL_CONST SERVER_MAP = "de_tinycsgomap";
_DECL_CONST SERVER_GAME_FOLDER = "csgo";
_DECL_CONST SERVER_DESCRIPTION = "Counter-Strike: Global Offensive";
_DECL_CONST SERVER_APPID = 730;
_DECL_CONST SERVER_NUM_CLIENTS = 10;
_DECL_CONST SERVER_MAX_CLIENTS = 12;
_DECL_CONST SERVER_NUM_FAKE_CLIENTS = 8;
_DECL_CONST SERVER_TYPE = 'd';
_DECL_CONST SERVER_OS = 'w';
_DECL_CONST SERVER_PASSWD_NEEDED = 0;
_DECL_CONST SERVER_VAC_STATES = 1;
_DECL_CONST SERVER_TAG = "pure, vac, tiny-csgo-server";
_DECL_CONST SERVER_DCFRIENDSREQD = 0;
_DECL_CONST SERVER_VALVE_OFFICIAL = 0;
0-BuTaJIuK-0 commented 1 year ago

Without fake clients, everything shows

0-BuTaJIuK-0 commented 1 year ago

image

yourmnbbn commented 1 year ago

To fake online players count, you have to authenticate players, whether by using tiny client connection or implementing authentication process in the tiny server yourself.

0-BuTaJIuK-0 commented 1 year ago

And then what is responsible for _DECL_CONST SERVER_NUM_FAKE_CLIENTS = 8;

yourmnbbn commented 1 year ago

This is only valid when you set CONFIG_HANDLE_QUERY_BY_STEAM = 0. The tiny server will build A2S response itself instead of letting steamclient library do the job. And this value will only affect player number outside of the internet tab of the browser. When client requests server lists(which will be listed in the Internet tab of the browser) from GC, GC responses with the player count which is counted by GC itself(through player app ticket authentication), not the one that server reported to it.

0-BuTaJIuK-0 commented 1 year ago

Senk Interestingly, it is displayed normally in favorites

And still, I didn't quite understand what the parameter is responsible for CONFIG_HANDLE_QUERY_BY_STEAM )))))

0-BuTaJIuK-0 commented 1 year ago

I understood correctly. It is not possible to emulate players on the "Internet". Just somehow log in from your accounts. And if you create 1 server (with your clients) and somehow redirect traffic to other servers?

0-BuTaJIuK-0 commented 1 year ago

image image Do they really have so many accounts? 32 in each)

0-BuTaJIuK-0 commented 1 year ago

image Here is something similar to the truth, but each has 4 users with the same name Но тут берётся онлайн с одного сервера и дублируется на разные.

yourmnbbn commented 1 year ago

And still, I didn't quite understand what the parameter is responsible for CONFIG_HANDLE_QUERY_BY_STEAM )))))

Look at the code where it's referenced and you'll understand.

It is not possible to emulate players on the "Internet"

Not true, it's possible. Those fake servers are implemented in javascript with the help of this library which contains all the interfaces you need to implementing your own fake servers like them. And you can also use this tiny server and use that library to implement authentication.

0-BuTaJIuK-0 commented 1 year ago

Thank you for answering in detail)