levelsranks / levels-ranks-core Goto Github PK
View Code? Open in Web Editor NEWStatistics plugin for servers on the Source Engine
License: GNU General Public License v3.0
Statistics plugin for servers on the Source Engine
License: GNU General Public License v3.0
I got a GOTV bot on my pug server , and It always shows 1/10 when the server is emety and 11/10 when the server is full. How to fix it ?
I typed this on the official thread on the forum, but I've been told that it's better to post it here. So here's my problem and conclusion/testing:
I've been testing for hours and hours. Here is my conclusion and when it appears:
I have 10 Competitive servers. All 10 Competitives have the latest version of the plugin and when all servers are online and they are all full (which they are 80% of the day), the sv value starts increasing. When all servers is full, the sv is up to over 60, which cause all players getting huge fps lag spikes.
The two first days I had the plugin, the sv went up to around 5-10 only when the round was over. But after a few days, the sv was going up to 30-40 all time which is too much, it shouldn't go over 4 or 5.
I disabled the rank plugins on all servers, and when the servers became full, the sv was stable at 3 on all servers.
It has to do with the rank plugin, and when I only have 6 servers online and 4 offline, the sv is only going up to 6. For people that have one or two servers, then this is not a problem for them. But for people that have more than 5, then it becomes a big problem.
Fixing this would be really awesome, I hope i helped with my testing and explanation. Hope you fix it, ask me if you have any questions, I can test on my servers!
Taken from addons/sourcemod/logs/errors_20200722.log
L 07/22/2020 - 23:09:42: [SM] Exception reported: Invalid index -1 (count: 18)
L 07/22/2020 - 23:09:42: [SM] Blaming: levelsranks.smx
L 07/22/2020 - 23:09:42: [SM] Call stack trace:
L 07/22/2020 - 23:09:42: [SM] [0] ArrayList.GetString
L 07/22/2020 - 23:09:42: [SM] [1] Line 291, levels_ranks/custom_functions.sp::CheckRank
L 07/22/2020 - 23:09:42: [SM] [2] Line 233, levels_ranks/custom_functions.sp::NotifClient
L 07/22/2020 - 23:09:42: [SM] [3] Line 103, levels_ranks/events.sp::Event_PlayerDeath
L 07/22/2020 - 23:10:18: [SM] Exception reported: Invalid index -1 (count: 18)
L 07/22/2020 - 23:10:18: [SM] Blaming: levelsranks.smx
L 07/22/2020 - 23:10:18: [SM] Call stack trace:
L 07/22/2020 - 23:10:18: [SM] [0] ArrayList.GetString
L 07/22/2020 - 23:10:18: [SM] [1] Line 291, levels_ranks/custom_functions.sp::CheckRank
L 07/22/2020 - 23:10:18: [SM] [2] Line 233, levels_ranks/custom_functions.sp::NotifClient
L 07/22/2020 - 23:10:18: [SM] [3] Line 234, levels_ranks/events.sp::Events_Rounds
L 07/22/2020 - 23:10:45: [SM] Exception reported: Invalid index -1 (count: 18)
L 07/22/2020 - 23:10:45: [SM] Blaming: levelsranks.smx
L 07/22/2020 - 23:10:45: [SM] Call stack trace:
L 07/22/2020 - 23:10:45: [SM] [0] ArrayList.GetString
L 07/22/2020 - 23:10:45: [SM] [1] Line 291, levels_ranks/custom_functions.sp::CheckRank
L 07/22/2020 - 23:10:45: [SM] [2] Line 233, levels_ranks/custom_functions.sp::NotifClient
L 07/22/2020 - 23:10:45: [SM] [3] Line 103, levels_ranks/events.sp::Event_PlayerDeath
L 07/22/2020 - 23:12:20: [SM] Exception reported: Invalid index -1 (count: 18)
L 07/22/2020 - 23:12:20: [SM] Blaming: levelsranks.smx
L 07/22/2020 - 23:12:20: [SM] Call stack trace:
L 07/22/2020 - 23:12:20: [SM] [0] ArrayList.GetString
L 07/22/2020 - 23:12:20: [SM] [1] Line 291, levels_ranks/custom_functions.sp::CheckRank
L 07/22/2020 - 23:12:20: [SM] [2] Line 233, levels_ranks/custom_functions.sp::NotifClient
L 07/22/2020 - 23:12:20: [SM] [3] Line 103, levels_ranks/events.sp::Event_PlayerDeath
L 07/22/2020 - 23:22:32: [SM] Exception reported: Invalid index -1 (count: 18)
L 07/22/2020 - 23:22:32: [SM] Blaming: levelsranks.smx
L 07/22/2020 - 23:22:32: [SM] Call stack trace:
L 07/22/2020 - 23:22:32: [SM] [0] ArrayList.GetString
L 07/22/2020 - 23:22:32: [SM] [1] Line 291, levels_ranks/custom_functions.sp::CheckRank
L 07/22/2020 - 23:22:32: [SM] [2] Line 233, levels_ranks/custom_functions.sp::NotifClient
L 07/22/2020 - 23:22:32: [SM] [3] Line 234, levels_ranks/events.sp::Events_Rounds
Я использую команду sm_lvl_reset
, но ошибка говорит о том, что она не существует.
Эта команда была отключена? Есть ли другой способ сбросить рейтинг без необходимости полного удаления базы данных с сервера?
Heya freak.exe_uLow, Koga73 here.
I'll just copy paste the post on SM.
Would be nice with some sort of inactivity punishment (losing (x)exp after x days, per day), other than just being able to hide them.
It would be very nice and useful to have ability of synchronization between levels ranks and gameme statistics so it would eliminate double stats collection. Idea and example taken from : https://github.com/CrazyHackGUT/CSGO_PhoenixRank
what is the bey way to implement an English README version?
This being explained I can send the pr to implement it.
Currently the option to reset the rank only works if you use the commands on the server console, at least when I use it inside the server it doesn't work, I change the map and the rank is still not reset.
value
, rank
).kills
, deaths
, shoots
, hits
, headshots
, assists
, round_win
, round_lose
).It would be interesting to implement the option to reset the rank within the same server, player with ROOT access uses the command and already resets.
It would also be good to implement this option in the !lvl
menu, in the Administrative Panel option.
https://github.com/levelsranks/levels-ranks-web/blob/alpha/web_dev/storage/assets/js/app.js#L410
if (avatar != 0) {
$.post("./app/includes/js_controller.php", {function: 'avatars', data: avatar}, function (e) {
for (var i = 0; i < avatar.length; i++) document.getElementById(avatar[i]).setAttribute("src", "storage/cache/img/avatars/" + avatar[i] + ".jpg")
})
};
Request Method: GET
Status Code: 404 Not Found
Почему Аватарка не подгружается?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./srcds_linux -game csgo -ip ******* +port 27015 +map de_dust2 -maxplayer'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000271f in ?? ()
#0 0x0000271f in ?? ()
#1 0xac21c782 in CForward::Execute(int*, SourceMod::IForwardFilter*) () from /home/****/game/csgo/addons/sourcemod/bin/sourcemod.logic.so
#2 0x2e726574 in ?? ()
#3 0x6f6d6d61 in ?? ()
#4 0x6b636970 in ?? ()
#5 0x10007075 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
eax 0xe0da360 235774816
ecx 0x0 0
edx 0xe0dc0fc 235782396
ebx 0xbf886958 -1081579176
esp 0xbf88653c 0xbf88653c
ebp 0xe0d9cb0 0xe0d9cb0
esi 0x0 0
edi 0xe0dc0f8 235782392
eip 0x271f 0x271f
eflags 0x10282 [ SF IF RF ]
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x63 99
From To Syms Read Shared Object Library
0xb776a460 0xb7794c06 Yes (*) /lib/libm.so.6
0xb7761a90 0xb776297c Yes (*) /lib/libdl.so.2
0xb774a780 0xb7756857 Yes (*) /lib/libpthread.so.0
0xb759c320 0xb76e291b Yes (*) /lib/libc.so.6
0xb74e05b0 0xb754fc74 Yes (*) /lib/libstdc++.so.6
0xb7486e04 0xb74964b8 Yes /home/****/game/bin/libgcc_s.so.1
0xb77c18a0 0xb77dc261 Yes (*) /lib/ld-linux.so.2
0xb7441460 0xb745e0cc Yes (*) /home/****/game/bin/libtier0.so
0xb73dc0b0 0xb7410a1c Yes (*) /home/****/game/bin/libvstdlib.so
0xb6ed9270 0xb6f6b08c Yes (*) /home/****/game/bin/dedicated.so
0xb6e99d60 0xb6eaf1b4 Yes (*) /home/****/game/bin/libsteam_api.so
0xb479f110 0xb4be30cc Yes (*) /home/****/game/bin/engine.so
0xb42fae00 0xb45afac4 Yes (*) /home/****/game/bin/libsteamnetworkingsockets.so
0xb42d0900 0xb42d3dca Yes (*) /lib/librt.so.1
0xb3c268d0 0xb3d1508c Yes (*) /home/****/game/bin/materialsystem.so
0xb36ada20 0xb376ce5c Yes (*) /home/****/game/bin/studiorender.so
0xb34d6e10 0xb360ad98 Yes (*) /home/****/game/bin/vphysics.so
0xb33ad620 0xb3434bf4 Yes (*) /home/****/game/bin/datacache.so
0xb32cb890 0xb334b554 Yes (*) /home/****/game/bin/vscript.so
0xb327d7d0 0xb329e5d0 Yes (*) /home/****/game/bin/shaderapiempty.so
0xb0d54040 0xb1f37ce4 Yes (*) /home/****/game/bin/steamclient.so
0xb0c0bba0 0xb0c49e34 Yes (*) /home/****/game/bin/crashhandler.so
0xb0740960 0xb07a2b58 Yes (*) /home/****/game/csgo/bin/matchmaking_ds.so
0xaf352c40 0xaff944a0 Yes (*) /home/****/game/csgo/bin/server.so
0xaef131e0 0xaef49590 Yes (*) /home/****/game/bin/soundemittersystem.so
0xb2705a40 0xb27254ac Yes (*) /home/****/game/bin/scenefilecache.so
0xaed444d0 0xaed4673d Yes (*) /home/****/game/csgo/addons/metamod/bin/server.so
0xae744830 0xae772d12 Yes (*) /home/****/game/csgo/addons/metamod/bin/metamod.2.csgo.so
0xaed40950 0xaed40eb8 Yes (*) /home/****/game/csgo/addons/sourcemod/bin/sourcemod_mm_i486.so
0xac2a05b0 0xac4286a9 Yes (*) /home/****/game/csgo/addons/sourcemod/bin/sourcemod.2.csgo.so
0xac1dc950 0xac234740 Yes (*) /home/****/game/csgo/addons/sourcemod/bin/sourcemod.logic.so
0xabf532d0 0xabf7d2fc Yes (*) /home/****/game/csgo/addons/sourcemod/bin/sourcepawn.jit.x86.so
0xaed3b4a0 0xaed3e334 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/updater.ext.so
0xaed0aa60 0xaed32e45 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/webternet.ext.so
0xa7e30a50 0xa7e37fb9 Yes (*) /lib/libnss_files.so.2
0xa7e28c00 0xa7e2c06e Yes (*) /lib/libnss_dns.so.2
0xa7e106a0 0xa7e1f694 Yes (*) /lib/libresolv.so.2
0xa7df3f80 0xa7e0505f Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/BanId_Fix.ext.2.csgo.so
0xa7bab350 0xa7beb0b2 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/sdktools.ext.2.csgo.so
0xa7e45ac0 0xa7e48274 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/bintools.ext.so
Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/processcmds.ext.2.csgo.so
0xa7b1fd70 0xa7b5a9b8 Yes (*) /home/****/game/libssl.so.1.0.0
0xa754f040 0xa7651328 Yes (*) /home/****/game/libcrypto.so.1.0.0
0xa78e0860 0xa78ed3a4 Yes (*) /lib/libz.so.1
0xa7cc3cc0 0xa7cc578d Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/cleaner.ext.2.csgo.so
0xa73b04b0 0xa744ee21 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/accelerator.ext.so
0xa504fac0 0xa518fc80 Yes /home/****/game/csgo/addons/sourcemod/extensions/curl.ext.so
0xa7347660 0xa736bb52 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/game.cstrike.ext.2.csgo.so
0xa7cb9700 0xa7cbfef8 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/topmenus.ext.so
0xa727c6f0 0xa72aef00 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/regex.ext.so
0xa7b84ae0 0xa7b897d4 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/clientprefs.ext.so
0xa4ea9a20 0xa4fbb440 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/dbi.sqlite.ext.so
0xa7b7ce90 0xa7b7f768 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/geoip.ext.so
0xa4a0f270 0xa4b32b2b Yes /home/****/game/csgo/addons/sourcemod/extensions/PTaH.ext.2.csgo.so
0xa47a5ee0 0xa47c57e2 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/sdkhooks.ext.2.csgo.so
0xa78c9060 0xa78d4c7c Yes /home/****/game/csgo/addons/sourcemod/extensions/SteamWorks.ext.so
0xa46e1930 0xa4770ebf Yes /home/****/game/csgo/addons/sourcemod/extensions/rip.ext.so
0xa46a0750 0xa46b1b38 Yes /home/****/game/csgo/addons/sourcemod/extensions/geoipcity.ext.so
0xa2e5bb40 0xa2ef0a35 Yes (*) /home/****/game/csgo/addons/sourcemod/extensions/dbi.mysql.ext.so
(*): Shared library is missing debugging information.
End of Source crash report
----------------------------------------------
Level Ranks collects points for having mvps but it does not save how many total mvps a player has earned in each match, so if it saves how many mvps a player earns each match that adds more detailed stats for level ranks.
Same for matches won, if it were to save to db how many matches a player has won, then that adds a more detailed view of a player.
I've been getting the following error in my logs:
L 12/13/2021 - 13:57:47: [levelsranks.smx] SQL_TransactionFailure (1): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE `SteamID` = 'STEAM_1:1:422490984'' at line 1 (1)
L 12/13/2021 - 14:27:52: Error log file session closed.
L 12/13/2021 - 14:27:58: SourceMod error session started
L 12/13/2021 - 14:27:58: Info (map "de_dust2") (file "/home/clientes/OGP_User_Files/whmcs/2975/csgo/addons/sourcemod/logs/errors_20211213.log")
L 12/13/2021 - 14:27:58: [levelsranks.smx] SQL_TransactionFailure (1): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE `SteamID` = 'STEAM_1:0:544956619'' at line 1 (1)
L 12/13/2021 - 15:20:33: Error log file session closed.
sm plugins list:
[SM] Listing 95 plugins:
01 "Basic Comm Control" (1.10.0.6513) by AlliedModders LLC
02 "NoBots Enforcer" (1.0) by Nikooo777
03 "SourceBans++ Discord" (1.7.0-51) by Kotik. Fork of RumbleFrog, SourceBans++ Dev Team.
04 "[SWGM] Command Listener" (1.2fix) by Someone, crashzk
05 "eItems" (0.20.3) by ESK0
06 "Fix Hint Color Messages" (1.2.2 Franc1sco franug github version) by Phoenix (˙·٠●Феникс●٠·˙)
07 "SourceBans++ Report Plugin" (1.7.0) by RumbleFrog, SourceBans++ Dev Team
08 "AFK Manager" (4.3.0) by Rothgar
09 "SourceTV / GOTV Protector" (1.0) by CrazyHackGUT aka Kruzya
10 "SourceBans++: SourceComms" (1.7.0) by Alex, SourceBans++ Dev Team
11 "Fun Commands" (1.10.0.6513) by AlliedModders LLC
12 "SourceBans++: SourceSleuth" (1.7.0) by ecca, SourceBans++ Dev Team
13 "Admin File Reader" (1.10.0.6513) by AlliedModders LLC
14 "Reserved Slots" (1.10.0.6513) by AlliedModders LLC
15 "[Levels Ranks] Core" (v3.1.7 Beta 1) by RoadSide Romeo & Wend4r
16 "Steam Works Group Manager" (1.9fix) by Someone, crashzk
17 "TecnoHard GC Level" (1.0.9) by abnerfs
18 "Admin Menu" (1.10.0.6513) by AlliedModders LLC
19 "Dano Só Granadas" (1.5.1) by abnerfs
20 "Fun Votes" (1.10.0.6513) by AlliedModders LLC
21 "Nextmap" (1.10.0.6513) by AlliedModders LLC
22 "Basic Chat" (1.10.0.6513) by AlliedModders LLC
23 "Default SM Text Replacer" (1.0) by Bacardi & Mitch - Edited: Cruze
24 "[ ZK Servidores™ ] Block Commands" (1.1) by Geison, crashzk
25 "TecnoHard TeamSelect Kick" (2.0.4fix) by abnerfs
26 "Simple Stealth" (1.0) by Potatoz
27 <Failed> "CS:GO Disable Agent Models" (1.1) by SAZONISCHE, 8guawong
28 "[CS:GO] Franug Agents Chooser" (1.2.0) by Franc1sco franug, Romeo, TrueProfessional, Teamkiller324
29 "No Dupe Account" (1.5.0) by azalty
30 "[Server-Redirect+] Core" (3.0.1) by Natanel 'LuqS'
31 "Anti-Flood" (1.10.0.6513) by AlliedModders LLC
32 "[ANY] Chat Responder" (1.3.4) by Headline
33 "Discord API" (0.1.106) by Deathknife
34 "Admin Help" (1.10.0.6513) by AlliedModders LLC
35 "[Lilac] Little Anti-Cheat" (1.7.1) by J_Tanzanite
36 "SourceBans++: Main Plugin" (1.7.0) by SourceBans Development Team, SourceBans++ Dev Team
37 <Failed> "eItems" (0.10) by ESK0 (Original author: SM9)
38 "SwapTeam" (1.2.6fix) by MistaGee, Rogue, crashzk
39 "SourceBans++: Admin Config Loader" (1.7.0) by AlliedModders LLC, SourceBans++ Dev Team
40 "TecnoHard No Ready Kicker" (1.4fix2) by abnerfs
41 "[ ZK Servidores™ ] Help Menu" (1.0.4) by chundo, emsit, joinedsenses, crashzk, biielzk
42 "[LR] Module - Unusual Kills" (v3.1.6 SR2) by Wend4r
43 "[LR] Module - Overlays" (v3.1) by RoadSide Romeo
44 "[LR] Module - TOP by KDR" (v3.1.5) by Wend4r
45 "[LR] Module - ExStats Maps" (3.1 F1) by RoadSide Romeo
46 <Failed> "[LR] Module - ExStats GeoIP" (v3.1) by RoadSide Romeo
47 "[LR] Module - ExStats Hits" (v3.1) by Wend4r
48 "[LR] Module - ExStats Weapons" (v3.1) by RoadSide Romeo & Wend4r
49 "Simple Chat Processor (Redux)" (2.3.0fix) by Simple Plugins, Mini
50 "Voice of Agents" (2.0) by Romeo
51 "[ ZK Servidores™ ] High Ping Kicker" (1.1) by Dr. Api, crashzk
52 "CSGO Advanced Drop" (1.3.1) by Phoenix (DropsSummoner), oppa, crashzk
53 "[Lilac] Auto SourceTV Recorder" (1.2.0) by J_Tanzanite
54 "[ ZK Servidores™ ] View all skins seeds on the console (!ws)" (1.0.0) by biielzk, crashzk
55 "Cronjobs" (2.0) by dordnung
56 "SM Franug Valve Sprays CSGO" (2.0) by Franc1sco franug, Romeo, crashzk
57 "Fix Competitive Warmup" (1.1) by Ilusion9
58 "REGEX word filter" (1.2) by Twilight Suzuka
59 "[VIP] Core" (3.1 DEV) by R1KO
60 "[ ZK Servidores™ ] Console Ads" (1.1) by biielzk, crashzk
61 "Weapons & Knives" (1.7.5) by kgns | oyunhost.net
62 "[BFG] WarMod | TecnoHard" (20.07.15.1214 + 4.2.9) by Versatile_BFG, abnerfs, crashzk
63 "TecnoHard™ Plugins Block" (1.2) by AbNeR @CSB
64 "Basic Info Triggers" (1.10.0.6513) by AlliedModders LLC
65 "[Discord] Map Notifications" (1.0.1) by Bara
66 "AntiDLL Handler" (1.7) by JDW
67 "Basic Votes" (1.10.0.6513) by AlliedModders LLC
68 "[CS:GO] Disable end match nextmap vote" (30.3.2021) by Bacardi
69 "TecnoHard Chat Tags" (1.7.1) by abnerfs
70 "[Redirect] Core" (1.0.1 Alpha) by Wend4r
71 "Chat Logging" (3.0) by R1KO
72 "Player Analytics" (1.4.2) by Dr. McKay / Bara / sneaK
73 "[ ZK Servidores™ ] Valve Menu" (1.0) by Franc1sco franug, crashzk
74 "SourceBans++: Bans Checker" (1.7.0) by psychonic, Ca$h Munny, SourceBans++ Dev Team
75 "MapChooser Extended" (1.10.2) by Powerlord, Zuko, and AlliedModders LLC
76 "Sound Commands" (1.10.0.6513) by AlliedModders LLC
77 "Client Preferences" (1.10.0.6513) by AlliedModders LLC
78 "[CS:GO] Weapon Stickers" (1.3) by quasemago and z1ntex
79 "Player Commands" (1.10.0.6513) by AlliedModders LLC
80 "Console Say" (1.0.1) by abnerfs
81 "Gloves" (1.0.5) by kgns | oyunhost.net
82 "[VIP] Additional [For VIP_CORE 3.0]" (1.0.1) by Drumanid
83 "[VIP] Admin" (1.2) by R1KO
84 "[VIP] FakeRank" (1.0.2) by TiNiK
85 "[VIP] Skybox" (1.2) by White Wolf, sekac, Rimmer, crashzk
86 "[VIP] COIN" (2.0.2) by Pheonix (˙·٠●Феникс●٠·˙) & R1KO, pracc
87 "[VIP] Exp Multiplier" (1.0) by R1KO (skype: vova.andrienko1)
88 "[VIP] Stats" (2.6) by R1KO
89 "[VIP] Music Kit" (1.1.4) by Pheonix, Felya, crashzk
90 "ServerAdvertisements3" (3.1.5) by ESK, Romeo
91 "Fix Disconnect Reason" (1.0.0) by FroidGaming.net
92 "[CS:GO] sv_password - bypass players and reserved cookie check" (23.2.2021) by Bacardi
93 "Auto Change Map" (1.4) by Mleczam, crashzk
94 "Tebex SourceMod" (0.0.1) by Tebex
95 "Basic Commands" (1.10.0.6513) by AlliedModders LLC
Errors:
disable_agent_models.smx (CS:GO Disable Agent Models): Required extension "modelch" file("modelch.ext") not running
eItems.smx (eItems): unexpected error 23 in AskPluginLoad callback
levels_ranks/levelsranks_exstats_geoip.smx ([LR] Module - ExStats GeoIP): Native "GeoipCity" was not found
Hello
First of all thank you for this awesome plugin.
I have a feature request .(of course if possible)
Прошу помочь с переходом со старой на более новую версию с 3.1.2 на 3.1.6. структура базы изменилось но плагин сам не вносит изменения
пожалуйста, помогите с решением
g_iPlayerInfo[iClient].iRoundExp += iExpChange = iOldExp - g_iPlayerInfo[iClient].iStats[ST_EXP];
This calculation is wrong.
This is resulting a opposite value (negative becomes positive, and the other way around).
Lets say:
iExpChange = 100
iOldExp = 1000
g_iPlayerInfo[iClient].iStats[ST_EXP] = 1000 + 100
+ 100
is because iExpChange
is added to this variable in line 189:if((g_iPlayerInfo[iClient].iStats[ST_EXP] += iExpChange) < iExpMin)
This makes the above calculation evaluate to this:
g_iPlayerInfo[iClient].iRoundExp += iExpChange = 1000 - 1100;
Making iExpChange
be equal -100 and wrongly decreasing g_iPlayerInfo[iClient].iRoundExp
also by this variable value.
Hello,
can you implement the ability to set up the Plugin to count Bots? Like in GameMe or RankMe. It should be have Cvars to turn it on and off.
That is the only reason why i cant use it.
It would be so nice when you can do that.
Greets,
BeG
[levelsranks.smx] SQL_Callback Error (50): UNIQUE constraint failed: lvl_base.steam
Latest version Commits on Apr 11, 2021
] sm version
SourceMod 1.10.0.6545, by AlliedModders LLC
To see running plugins, type "sm plugins"
To see credits, type "sm credits"
Visit http://www.sourcemod.net/
To prevent players in the DB with only a few minutes played it would be nice to have it so a player needs a specific amount of kills before they receive a rank.
For example:
lvl_required_kills "10"
L 05/19/2021 - 17:16:10: SourceMod error session started
L 05/19/2021 - 17:16:10: Info (map "de_dust2") (file "/srv/css-ffa/cstrike/addons/sourcemod/logs/errors_20210519.log")
L 05/19/2021 - 17:16:10: [levelsranks.smx] SQL_Callback Error (418): Incorrect string value: '\xF0\x9F\x85\x91\xF0\x9F...' for column 'name' at row 1
L 05/19/2021 - 17:17:59: Error log file session closed.
The error message should contain a querry.
Currently you have the option to remove players from the rank when they are banned from the server.
// Скрывать ли игрока в статистике, если он был забанен? [ 0 - нет, 1 - да ]
"lr_cleandb_banclient" "1"
It would be interesting to implement the option to automatically remove VAC ban players from the rank, or even hide them from the rank / top.
Add option to earn experience points, such as:
It would also be interesting to implement an option to score points for the whole team and points only for the specific player, example:
[levels_ranks/levelsranks.smx] SQL_Callback Error (1026): Дублирующаяся запись 'STEAM_0:0:1234567890' по ключу 'PRIMARY'
LevelsRanks Core 3.1.6
mariadb Ver 15.1 Distrib 10.6.5-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
SourceMod Version: 1.10.0.6528
Doubt, I'm using the latest version of Levels Ranks Core that is on GitHub:
"[Levels Ranks] Core" (v3.1.6) by RoadSide Romeo & Wend4r
Full list of the plugin and modules I use:
19 "[LR] Module - ExStats Weapons" (v3.1) by RoadSide Romeo & Wend4r
20 "[LR] Module - ExStats Maps" (3.1 F1) by RoadSide Romeo
21 "[LR] Module - Boost(Vip)" (v3.1.5) by Designed (Discord: .Designed#7985)
22 <Failed> "[LR] Module - ExStats GeoIP" (v3.1) by RoadSide Romeo
23 "[LR] Module - Overlays" (v3.1) by RoadSide Romeo
24 "[LR] Module - TOP by KDR" (v3.1.5) by Wend4r
25 "[LR] Module - ExStats Hits" (v3.1) by Wend4r
26 "[LR] Module - Unusual Kills" (v3.1.6 SR2) by Wend4r
69 "[Levels Ranks] Core" (v3.1.6) by RoadSide Romeo & Wend4r
Errors:
levels_ranks/levelsranks_exstats_geoip.smx ([LR] Module - ExStats GeoIP): Native "GeoipCity" was not found
I am always getting this error:
L 04/27/2021 - 10:08:12: [levelsranks.smx] SQL_Callback Error (15650): Incorrect string value: '\xF0\x9D\x92\x8C\xF0\x9D...' for column `zkservid_lvlrank`.`lvl_competitivo`.`name` at row 1
L 04/27/2021 - 10:33:38: [levelsranks.smx] SQL_Callback Error (15794): Incorrect string value: '\xF0\x9F\x8C\xAE' for column `zkservid_lvlrank`.`lvl_competitivo`.`name` at row 1
L 04/27/2021 - 11:35:43: [levelsranks.smx] SQL_Callback Error (16002): Incorrect string value: '\xF0\x9F\x8C\xAE' for column `zkservid_lvlrank`.`lvl_competitivo`.`name` at row 1
L 04/27/2021 - 16:00:50: [levelsranks.smx] SQL_Callback Error (18850): Incorrect string value: '\xF0\x9D\x95\xAF$\xF0...' for column `zkservid_lvlrank`.`lvl_competitivo`.`name` at row 1
L 04/27/2021 - 16:13:44: [levelsranks.smx] SQL_Callback Error (18850): Incorrect string value: '\xF0\x9D\x95\xAF$\xF0...' for column `zkservid_lvlrank`.`lvl_competitivo`.`name` at row 1
Any way to fix this? What can it be?
I have already completely deleted the tables and created the databases again and nothing to solve the problem.
Do you have the ability to show the statistics of the player watched when you die in a "hud message"?
On game, the plugin works right. But, when trying to send to my database the Infos about the round, return the error below:
L 03/26/2021 - 15:19:04: SourceMod error session started
L 03/26/2021 - 15:19:04: Info (map "de_dust2") (file "/home/srv814100/game/csgo/addons/sourcemod/logs/errors_20210326.log")
L 03/26/2021 - 15:19:04: [SM] Exception reported: Invalid forward handle 0 (error 4)
L 03/26/2021 - 15:19:04: [SM] Blaming: levelsranks.smx
L 03/26/2021 - 15:19:04: [SM] Call stack trace:
L 03/26/2021 - 15:19:04: [SM] [0] Call_StartForward
L 03/26/2021 - 15:19:04: [SM] [1] Line 448, levels_ranks/database.sp::SQL_TransactionCallback
can help me?
I am using levels-ranks plugin on my server with a MySQL 5.7 database. And if the server crash, The players' rank data will lost or mess up. Can u fix this?
hi, i'm trying to use this plugin for my Deathmatch FFA server but it doesn't seem to work. do not add points / exp to the database. already use "lr_allagainst_all 1"
FFA DM plugin : https://github.com/Maxximou5/csgo-deathmatch
How to use this native to get stats from DB when player -> OnClientPostAdminCheck?
/**
* Gets detailed statistics about the client.
*
* @param iClient Client index.
* @param StatsType Type data.
* @param bSession Output data from session.
*
* @return Data value.
*/
native int LR_GetClientInfo(int iClient, LR_StatsType StatsType, bool bSession = false);
Example usage:
player.Rank = LR_GetClientInfo(player.Index, ST_RANK);
float kills = float(LR_GetClientInfo(player.Index, ST_KILLS));
float deaths = float(LR_GetClientInfo(player.Index, ST_DEATHS));
I'm having a problem when it comes to earning points / xp when the player kills someone.
Currently, if a player kills the player normally, without any event like HS, NoScope and tals, he is not counting points for the player, he simply does not earn points, same thing if he dies, he does not lose points.
Only if you are gaining or losing points with the kills that you have the Unusual Kills module.
Full list of the plugin and modules I use:
"[Levels Ranks] Core" (v3.1.6) by RoadSide Romeo & Wend4r
19 "[LR] Module - ExStats Weapons" (v3.1) by RoadSide Romeo & Wend4r
20 "[LR] Module - ExStats Maps" (3.1 F1) by RoadSide Romeo
21 "[LR] Module - Boost(Vip)" (v3.1.5) by Designed (Discord: .Designed#7985)
22 <Failed> "[LR] Module - ExStats GeoIP" (v3.1) by RoadSide Romeo
23 "[LR] Module - Overlays" (v3.1) by RoadSide Romeo
24 "[LR] Module - TOP by KDR" (v3.1.5) by Wend4r
25 "[LR] Module - ExStats Hits" (v3.1) by Wend4r
26 "[LR] Module - Unusual Kills" (v3.1.6 SR2) by Wend4r
69 "[Levels Ranks] Core" (v3.1.6) by RoadSide Romeo & Wend4r
Errors:
levels_ranks/levelsranks_exstats_geoip.smx ([LR] Module - ExStats GeoIP): Native "GeoipCity" was not found
Follow the link to download the plugin and module I'm using, configuration included.
https://drive.google.com/file/d/1C6rUIradnMtxvrGT4yR9P7tvy6P38l93/view?usp=sharing
At this moment, LR use hard-coded array for menu for removing/adding player points.
addons/sourcemod/configs/levels_ranks/menu_points.ini
, and fill with content like:
-1000
-100
-10
10
100
1000
Without KeyValues, because this is simple to read with File
methodmap.
L 12/24/2019 - 16:02:27: [levelsranks.smx] SQL_Callback Error (2450): Incorrect string value: '\xF0\x9F\x93\x97^1...' for column oyntch_ntX0JkS
.lvl_base
.name
at row 1
Вообщем имеется дезран сервер, на нем когда человек умирает от мира(ловушек) не выдается очки террористу, опция для передачи фрагов для террориста соответственно включена в моде. Shop засчитывает, а ЛР не хочет.
Раньше в старых версиях всё выдавалось нормально. Сейчас бывает выдается опыт только на первой карте после запуска сервера(и то не всегда), дальше перестает выдавать как карта меняется.
Скажу сразу я уверен, что это не от плагина дезрана т.к перепробовал все плагины, и на всех одно и тоже. Это с какой-то версии ЛР стало так, а вот с какой фиг его знает.
При работе с релизным ядром 3.1.6 после установки его и модулей на чистую базу порой возникают подобные ошибки:
[levels_ranks/levelsranks_unusualkills.smx] SQL_Callback: error when sending the request (339) - Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='
.
Как их исправлять, ума не приложу. На одном из форумов человек решил проблему так, но, судя по исходнику модуля, они и так заключаются в правильные кавычки.
SM - 1.10.0.6490
MySQL - 5.5.68-MariaDB-cll-lve - MariaDB Server
"lr_db_character_type" "0"
Does not show the level menu to some people. Type the !lvl command and no menu appears.
Can it be from the server or from the player?
What can create this problem?
Thank you in advance!
My English not good
Such as I'm dead. but in !lvl dead:0
All are 0
sm version
SourceMod Version Information:
SourceMod Version: 1.10.0.6502
SourcePawn Engine: 1.10.0.6502, jit-x86 (build 1.10.0.6502)
SourcePawn API: v1 = 5, v2 = 12
Compiled on: Dec 18 2020 04:15:26
Built from: https://github.com/alliedmodders/sourcemod/commit/617fb77
Build ID: 6502:617fb77
http://www.sourcemod.net/
sm plugins list
27 "[LR] Module - ExStats Hits" (v3.1.6) by Wend4r
28 "[LR] Module - ExStats Maps" (v3.1 F1) by RoadSide Romeo
29 "[LR] Module - ExStats Weapons" (v3.1.6) by RoadSide Romeo & Wend4r
30 "[LR] Module - FakeRank" (v3.1.6) by Wend4r
31 "[LR] Module - Overlays" (v3.1.6) by RoadSide Romeo
32 "[Levels Ranks] Core" (v3.1.6) by RoadSide Romeo & Wend4r
Error logged:
L 02/26/2021 - 17:40:04: SourceMod error session started
L 02/26/2021 - 17:40:04: Info (map "de_mirage") (file "/srv/csgo5on5/csgo/addons/sourcemod/logs/errors_20210226.log")
L 02/26/2021 - 17:40:04: [levelsranks.smx] SQL_Callback Error (1234): Incorrect string value: '\xF0\x9F\x96\xA4' for column 'name' at row 1
L 02/26/2021 - 18:02:55: Error log file session closed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.