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
33 stars 4 forks source link

Region ID #10

Closed ArtemSushkov closed 1 year ago

ArtemSushkov commented 1 year ago

How i can change server region id, it always give -1

<appid>730</appid>
<gamedir>csgo</gamedir>
<region>-1</region>
<secure>true</secure>
<lan>false</lan>
<gameport>27015</gameport>
yourmnbbn commented 1 year ago

Region can be set by ISteamGameServer::SetRegion. The following code is copied from isteamgameserver.h.

/// Region identifier.  This is an optional field, the default value is empty, meaning the "world" region
virtual void SetRegion( const char *pszRegion ) = 0;

You can set it here. https://github.com/yourmnbbn/tiny-csgo-server/blob/08243f2a2457827ff8b0c795e3eeb699aa98ce0c/src/server.hpp#L252-L264

ArtemSushkov commented 1 year ago

Very thanks! All works!