Giter Club home page Giter Club logo

cs2-rank's Introduction

CS2 Rank

This project is functional but no longer maintained. If you need to use it, you must recompile the project.

b2.0.1 => b2.1.0

This version change change the database structure. Before installing version b2.1.0 if you are using an earlier beta version, you must import the sql file in https://github.com/Salvatore-Als/cs2-rank/tree/main/external/sql/migration-b201-b210.sql, without this proces you will lose all your rank and broke your database structure.

Be sure to backup your Database before.

Overview

CS2 Rank is an open source ranking plugin for Counter-Strike 2, relying on in-game events to award or deduct points. Player statistics are recorded in a MYSQL database.

Developed in partnership with VeryGames.

Feature

  • Global Ranking System: Track your rank, top standings, and statistics globally, by map name, and specifically for the current map in play.
  • Cross-Server Ranking: Enable cross-server ranking through rank referencing, allowing for a unified ranking experience across multiple servers.
  • Free-for-All (FFA) Support: Enjoy comprehensive support for Free-for-All gameplay, ensuring a competitive experience for all players.
  • Bot Compatibility: CS2 Rank seamlessly integrates with bots, enhancing the overall gaming environment.
  • Translation and Colorization: CS2 Rank introduces a robust translation system and colorization of phrases, providing a personalized and visually appealing experience.
  • Explore a Discord bot written in NodeJS, offering the ability to check specific player ranks, both personal and by map, as well as global and map-specific top rankings through rank referencing.
  • Access a PHP-powered web interface providing top rankings by map and globally. This interface also utilizes rank referencing for seamless integration.
  • Explore an API written in NodeJS, offering the ability to get players statistics per steam64 and name, get the top per map and global, get the available maps and groups.

Plugin

https://cs2rank.kriax.ovh/#/plugin

Required:
My server is crashing during the boot:

The plugin is unloaded when there is a problem (MySQL, schema, etc.). To generate a crash report, you can utilize this plugin: https://github.com/komashchenko/AcceleratorLocal

Here are the steps to troubleshoot:
  • Verify if mysql_mm is installed and functioning on your server by entering meta list.
  • Ensure that your MySQL configuration in your plugin is accurate.

If the issue persists and results in a crash, please create an issue with the plugin list and include the server logs.

Web page

https://cs2rank.kriax.ovh/#/web

https://github.com/Salvatore-Als/cs2-rank/tree/main/external/web

Discord Bot

https://cs2rank.kriax.ovh/#/discord

https://github.com/Salvatore-Als/cs2-rank/tree/main/external/discord

Discord API

https://cs2rank.kriax.ovh/#/public-api

https://github.com/Salvatore-Als/cs2-rank/tree/main/external/public-api

FAQ

https://cs2rank.kriax.ovh/#/faq


Thank to CS2Fixe project (Poggy & Xen) for providing many feature.

cs2-rank's People

Contributors

marechoux avatar pisex avatar rcon420 avatar salvatore-als avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cs2-rank's Issues

Copying the same player (web site module)

It duplicates the same player in the ranking section, but when I reload the page, the issue partially resolves. I think it could be a bug I am using the latest version.

image
image

Outdated HL2SDK

This plugin needs to update HL2SDK version and re-build.
This is four months old so plugin doesnt work due outdated version of the HL2SDK.

Compile error

o
[1439] clang++ -m64 -pipe -fno-strict-aliasing -Wall -Werror -Wno-uninitialized -Wno-unused -Wno-switch -msse -fPIC -fvisibility=hidden -Wno-implicit-int-float-conversion -Wno-tautological-overlap-compare -O3 -fno-omit-frame-pointer -g3 -std=c++14 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-delete-non-virtual-dtor -Wno-implicit-exception-spec-mismatch -Wno-expansion-to-defined -Wno-inconsistent-missing-override -Wno-deprecated-register --std=c++17 -frtti -Wno-register -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -DNDEBUG -D_LINUX -DPOSIX -D_FILE_OFFSET_BITS=64 -DSE_EPISODEONE=1 -DSE_ORANGEBOX=3 -DSE_CSS=6 -DSE_HL2DM=7 -DSE_DODS=8 -DSE_SDK2013=9 -DSE_TF2=12 -DSE_LEFT4DEAD=13 -DSE_NUCLEARDAWN=14 -DSE_LEFT4DEAD2=16 -DSE_DARKMESSIAH=2 -DSE_ALIENSWARM=17 -DSE_BLOODYGOODTIME=4 -DSE_EYE=5 -DSE_MCV=22 -DSE_CSGO=23 -DSE_PORTAL2=18 -DSE_BLADE=19 -DSE_INSURGENCY=20 -DSE_DOI=21 -DSE_CONTAGION=15 -DSE_BMS=11 -DSE_MOCK=999 -DSE_PVKII=10 -DSE_DOTA=24 -DSE_CS2=25 -DSOURCE_ENGINE=25 -DCOMPILER_GCC -DX64BITS -DPLATFORM_64BITS -DNO_HOOK_MALLOC -DNO_MALLOC_OVERRIDE -DMETA_IS_SOURCE2 -I /home/metamod/core -I /home/metamod/core/sourcehook -I /root/cs2-rank -I /home/metamod/hl2sdk-cs2/public -I /home/metamod/hl2sdk-cs2/public/engine -I /home/metamod/hl2sdk-cs2/public/mathlib -I /home/metamod/hl2sdk-cs2/public/vstdlib -I /home/metamod/hl2sdk-cs2/public/tier0 -I /home/metamod/hl2sdk-cs2/public/tier1 -I /home/metamod/hl2sdk-cs2/public/game/server -I /home/metamod/hl2sdk-cs2/game/shared -I /home/metamod/hl2sdk-cs2/common -I /root/cs2-rank/hl2sdk-cs2 -I /root/cs2-rank/hl2sdk-cs2/public/entity2 -I /root/cs2-rank/hl2sdk-cs2/game/server -I /root/cs2-rank/hl2sdk-cs2/game/shared -I /root/cs2-rank/src -I /root/cs2-rank/src/cs2_sdk -I /root/cs2-rank/src/utils -I /root/cs2-rank/vendor/funchook/include -I /root/cs2-rank/vendor/mysql/include -MD -MF src_basecommands.d -c /root/cs2-rank/src/basecommands.cpp -o src_basecommands.o
In file included from /root/cs2-rank/src/basecommands.cpp:2:
In file included from /root/cs2-rank/src/basecommands.h:2:
In file included from /root/cs2-rank/src/cs2_sdk/entity/ccsplayercontroller.h:5:
In file included from /root/cs2-rank/hl2sdk-cs2/game/server/player.h:13:
In file included from /root/cs2-rank/hl2sdk-cs2/game/server/basecombatcharacter.h:16:
In file included from /root/cs2-rank/hl2sdk-cs2/game/server/baseflex.h:15:
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:19:32: error: expected class name
class CAnimationLayer : public CMemZeroOnNew
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:22:2: error: unknown type name 'DECLARE_CLASS_NOBASE'
DECLARE_CLASS_NOBASE( CAnimationLayer );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:28:45: error: unknown type name 'CBaseAnimating'
void StudioFrameAdvance( float flInterval, CBaseAnimating *pOwner );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:29:27: error: unknown type name 'CBaseAnimating'
void DispatchAnimEvents( CBaseAnimating *eventHandler, CBaseAnimating *pOwner );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:29:57: error: unknown type name 'CBaseAnimating'
void DispatchAnimEvents( CBaseAnimating *eventHandler, CBaseAnimating *pOwner );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:53:20: error: unknown type name 'm_nSequence'
CNetworkVar( int, m_nSequence );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:53:2: error: C++ requires a type specifier for all declarations
CNetworkVar( int, m_nSequence );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:54:22: error: unknown type name 'm_flCycle'
CNetworkVar( float, m_flCycle );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:54:2: error: C++ requires a type specifier for all declarations
CNetworkVar( float, m_flCycle );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:55:22: error: unknown type name 'm_flPrevCycle'
CNetworkVar( float, m_flPrevCycle );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:55:2: error: C++ requires a type specifier for all declarations
CNetworkVar( float, m_flPrevCycle );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:56:22: error: unknown type name 'm_flWeight'
CNetworkVar( float, m_flWeight );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:56:2: error: C++ requires a type specifier for all declarations
CNetworkVar( float, m_flWeight );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:70:2: error: unknown type name 'Activity'
Activity m_nActivity;
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:74:20: error: unknown type name 'm_nOrder'
CNetworkVar( int, m_nOrder );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:74:2: error: C++ requires a type specifier for all declarations
CNetworkVar( int, m_nOrder );
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:139:2: error: use of undeclared identifier 'm_nSequence'; did you mean 'nSequence'?
m_nSequence = nSequence;
^~~~~~~~~~~
nSequence
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:137:52: note: 'nSequence' declared here
FORCEINLINE void CAnimationLayer::SetSequence( int nSequence )
^
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:139:14: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign]
m_nSequence = nSequence;
~~~~~~~~~~~ ^ ~~~~~~~~~
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:144:2: error: use of undeclared identifier 'm_flCycle'; did you mean 'flCycle'?
m_flCycle = flCycle;
^~~~~~~~~
flCycle
/root/cs2-rank/hl2sdk-cs2/game/server/BaseAnimatingOverlay.h:142:51: note: 'flCycle' declared here
FORCEINLINE void CAnimationLayer::SetCycle( float flCycle )
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Build failed: vgrank/linux-x86_64/src_basecommands.o

beta 2.0.1

Hello everyone.

You are lot on discord to ask me for news about this plugin.

I'm currently the only one working on it, apart from a few PRs for the translations and the web part (Thanks for that, it helps me a lot), so it's quite long since I do this in my free time.

Currently I am working on version 2.0.1, it includes various fixes and feature additions.
This version causes a server crash when connecting, so I advise you not to use this one.

The crash occurs by using the Escape function with the name, as example on this code.
It will take me a little time to debug this, although Poggu explained a few things to me that fixed other bugs regarding this function.

If someone finds the cause of the crash before me, I would appreciate it if you let me know, or make a PR of the fix :)

The plugin is eagerly awaited, and that's a pleasure, I'm doing my best to get the plugin out of its beta phase and provide a first stable release.

Regards,

b2.1.0

I am working on the new version of the plugin which will correct some problems concerning SQL queries in game, on the discord bot as well as the web interface.

This version will change the structure of the database, you will therefore need to launch a tools in order to migrate the structure, this will not be obligatory but without this migration your rank/top will be reset.

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.