Git Product home page Git Product logo

tiny-csgo-server's Introduction

tiny-csgo-server

Tiny csgo server for logging on to steam game servers and establish connection with GC, being displayed on the game server browser, not for real server purpose. It's a fake server.

Dependencies

Compile and Run

Windows

  1. Configure path of hl2sdk-csgo and Asio in build.bat.
  2. Run build.bat to compile the project.
  3. Move every file in bin/windows next to tiny-csgo-server.exe.
  4. Run tiny-csgo-server.exe with necessary commandline.

Linux

  1. Configure path of hl2sdk-csgo and Asio in build.sh.
  2. Run build.sh to compile the project.
  3. Move every file in bin/linux next to tiny-csgo-server.
  4. Set the directory constains your executable to LD_LIBRARY_PATH.
  5. Run tiny-csgo-server with necessary commandline.

Command option notes

  • -port Game server listening port.
  • -version Version of current csgo, you can find this value in steam.inf with key name "PatchVersion".
  • -gslt Game server logon token. If you don't set this, game server will logon to anonymous account and will not be displayed in the internet server browser.
  • -rdip Redirect IP Address (e.g. 127.0.0.1:27015). If this is set, server will redirect all connection request to the target address. If this is not set, server will reject all connection request.
  • -vac With this option to enable vac, without to disable.
  • -mirror With this option to enable the displaying of the target redirect server's information and players. The server name, map, max players, player list etc, are going to be the same with the redirect server. The duplicated information is updated every 10 seconds.

Special notice if you're trying to use tiny-steam-client

You have to disable vac, which means without option -vac to fake online players. But you can change the information variable SERVER_VAC_STATES = 1 to fake a vac enabled status in the browser.

Example usage

Assuming the GSLT is 5AB2234D9C490DCG406AET0763DE5813, game server port is 27015, server version is 1.38.5.5.

Windows:
tiny-csgo-server.exe -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813

Linux:
./tiny-csgo-server -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813
  • If you want to redirect the players trying to connect this tiny server, assuming the target server is 127.0.0.1:27016
Windows:
tiny-csgo-server.exe -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813 -rdip 127.0.0.1:27016

Linux:
./tiny-csgo-server -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813 -rdip 127.0.0.1:27016
  • If you want to redirect the players trying to connect this tiny server, and copy the information of the target server and online players, assuming the target server is 127.0.0.1:27016
Windows:
tiny-csgo-server.exe -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813 -rdip 127.0.0.1:27016 -mirror

Linux:
./tiny-csgo-server -port 27015 -version 1.38.5.5 -gslt 5AB2234D9C490DCG406AET0763DE5813 -rdip 127.0.0.1:27016 -mirror

How to change server information

In src/common/info_const.hpp, you can change the following constances to change the information. In the future, all these information will be configurable through a cfg file. Note that incorrect value of some variables may keep your fake server from being displayed in the browser. Or you can just use -mirror option to copy the redirect target server's information, when -mirror is enabled, information below is overridden.

//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 = 0;
_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;
_DECL_CONST SERVER_REGION = SERVER_REGION_ASIA;

FAQ

1. Client can't redirect to the target server, always get #Valve_Reject_Connect_From_Lobby error.

For solution to redirecting not working please refer to this issue.

2. Player count of my server in the browser is always 0

You can manually control the player count outside of the Internet tab of the browser, where player has to be authenticated by the server then the count number will change. This can help to authenticate players.

tiny-csgo-server's People

Contributors

yourmnbbn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.