Git Product home page Git Product logo

cs2-demo-recorder's Introduction

CS2--DemoRecoder

Requirements

Installation

Drag and drop from releases to game/csgo/addons/counterstrikesharp/plugins

Configuration

Configure the file DemoRecorder.json generated on addons/counterstrikesharp/configs/plugins/DemoRecorder

{
  "MinOnline": 4,
  "ServerId": 1,
  "DemosDir": "demos/",
  "Token": "your_web_app_token",
  "UploadUrl": "http://example.com:2053/upload"
}
  • MinOnline - 4: Minimum online requirement to start recording a demo.
  • ServerId - 1: Unique server ID.
  • DemosDir - "demos/": The folder for recording the demo on the server is created along the path addons/counterstrikesharp/data/
  • Token - "your_web_app_token": Your WEB token for uploading demo to the site.
  • UploadUrl - "http://example.com:2053/upload": Demo download handler address.

Commands

  • css_dr_reload - Reload config DemoRecorder.json. Access @css/root

Web-Server

Requirements

  • NodeJS (version 17.9.0 or higher)
  • npm (version 8.19.2 or higher)
  • pm2 (version 5.1.2 or higher)

Configuration

Configure the file Config.json

{
    "ssl": false,
    "sslCert": "",
    "sslKey": "",
    "port": "2053",
    "database": {
        "host":     "localhost",
        "user":     "db_user",
        "port":     "3306",
        "database": "db_name",
        "password": "pass"
    },
    "token": "your_web_app_token",
    "demos": {
        "CleanType": "count",
        "DaysOrCount": 500,
        "TimeClear": 60,
        "UploadDir": "path_toupload_demos"
    }
}
  • ssl - false: If you want to use ssl set true
  • sslCert - "": Path to the certificate file (need if ssl set true).
  • sslKey - "": Path to the certificate key file (need if ssl set true).
  • port - "2053": Web server launch port.
  • token - "your_web_app_token": Your WEB token for uploading demo.
  • CleanType - "count/time": Type of deletion of old demo recordings. count - Removal upon reaching quantity, time - Deletion upon reaching storage time.
  • DaysOrCount - 500: if CleanType = count the amount of demo storage is set, if CleanType = time the number of days for demo storage is set
  • UploadDir - "root/demos": Full demo storage path

Web Installation

Upload the Web server files to the desired folder, in the console go to the folder with the Web files, enter the command "npm i"

Launch commands

  • npm start - Start web server.
  • npm stop - Stop web server.
  • npm restart - Restart web server.

cs2-demo-recorder's People

Contributors

sapsandev avatar jmgraeffe 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.