Raised This Month: $51 Target: $400
 12% 

[L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Mika Misori
Senior Member
Join Date: Sep 2022
Old 06-08-2023 , 06:12   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #91

Quote:
Originally Posted by pan0s View Post
it may conflict with some plugins, you need to check them.
Caught this error in the SourceMod logs today:
Code:
L 06/08/2023 - 01:41:28: SourceMod error session started
L 06/08/2023 - 01:41:28: Info (map "c13m4_cutthroatcreek") (file "/game/left4dead2/addons/sourcemod/logs/errors_20230608.log")
L 06/08/2023 - 01:41:28: [SM] Exception reported: Client index 4 is invalid (arg 2)
L 06/08/2023 - 01:41:28: [SM] Blaming: l4d2_srs.smx
L 06/08/2023 - 01:41:28: [SM] Call stack trace:
L 06/08/2023 - 01:41:28: [SM]   [0] LogMessage
L 06/08/2023 - 01:41:28: [SM]   [1] Line 551, addons\sourcemod\scripting\l4d2_srs.sp::OnSelectRow
L 06/08/2023 - 01:49:22: Error log file session closed.
Happened on a server with 100 tickrate, running on linux with the latest version of SourceMod and Left 4 DHooks Direct.

Didn't notice how it affected the game, but this is the first error that has occurred in all the time I've been using the plugin.
Mika Misori is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 06-18-2023 , 09:54   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #92

Quote:
Originally Posted by pan0s View Post
it may conflict with some plugins, you need to check them.
More and more often I see this error in the servers logs, any idea how to fix it?

Code:
L 06/17/2023 - 00:00:51: SourceMod error session started
L 06/17/2023 - 00:00:51: Info (map "c2m2_fairgrounds") (file /left4dead2/addons/sourcemod/logs/errors_20230617.log")
L 06/17/2023 - 00:00:51: [SM] Exception reported: Client index 2 is invalid (arg 2)
L 06/17/2023 - 00:00:51: [SM] Blaming: l4d2_srs.smx
L 06/17/2023 - 00:00:51: [SM] Call stack trace:
L 06/17/2023 - 00:00:51: [SM]   [0] LogMessage
L 06/17/2023 - 00:00:51: [SM]   [1] Line 552, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnSelectRow
L 06/17/2023 - 00:01:02: Error log file session closed.

...

L 06/17/2023 - 03:41:57: SourceMod error session started
L 06/17/2023 - 03:41:57: Info (map "p84m2_eltrain") (file /left4dead2/addons/sourcemod/logs/errors_20230617.log")
L 06/17/2023 - 03:41:57: [SM] Exception reported: Client index 1 is invalid (arg 2)
L 06/17/2023 - 03:41:57: [SM] Blaming: l4d2_srs.smx
L 06/17/2023 - 03:41:57: [SM] Call stack trace:
L 06/17/2023 - 03:41:57: [SM]   [0] LogMessage
L 06/17/2023 - 03:41:57: [SM]   [1] Line 552, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnSelectRow
L 06/17/2023 - 03:43:01: Error log file session closed.

...

L 06/12/2023 - 01:50:05: SourceMod error session started
L 06/12/2023 - 01:50:05: Info (map "c13m3_memorialbridge") (file \left4dead2/addons/sourcemod/logs/errors_20230612.log")
L 06/12/2023 - 01:50:05: [SM] Exception reported: Client index 3 is invalid (arg 2)
L 06/12/2023 - 01:50:05: [SM] Blaming: l4d2_srs.smx
L 06/12/2023 - 01:50:05: [SM] Call stack trace:
L 06/12/2023 - 01:50:05: [SM]   [0] LogMessage
L 06/12/2023 - 01:50:05: [SM]   [1] Line 465, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnInsertRow
L 06/12/2023 - 01:56:48: Error log file session closed.
I have Linux and Windows servers with latest SourceMod and Left 4 DHooks Direct.
Mika Misori is offline
pan0s
Senior Member
Join Date: Nov 2017
Old 06-24-2023 , 05:01   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #93

Quote:
Originally Posted by Mika Misori View Post
More and more often I see this error in the servers logs, any idea how to fix it?

Code:
L 06/17/2023 - 00:00:51: SourceMod error session started
L 06/17/2023 - 00:00:51: Info (map "c2m2_fairgrounds") (file /left4dead2/addons/sourcemod/logs/errors_20230617.log")
L 06/17/2023 - 00:00:51: [SM] Exception reported: Client index 2 is invalid (arg 2)
L 06/17/2023 - 00:00:51: [SM] Blaming: l4d2_srs.smx
L 06/17/2023 - 00:00:51: [SM] Call stack trace:
L 06/17/2023 - 00:00:51: [SM]   [0] LogMessage
L 06/17/2023 - 00:00:51: [SM]   [1] Line 552, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnSelectRow
L 06/17/2023 - 00:01:02: Error log file session closed.

...

L 06/17/2023 - 03:41:57: SourceMod error session started
L 06/17/2023 - 03:41:57: Info (map "p84m2_eltrain") (file /left4dead2/addons/sourcemod/logs/errors_20230617.log")
L 06/17/2023 - 03:41:57: [SM] Exception reported: Client index 1 is invalid (arg 2)
L 06/17/2023 - 03:41:57: [SM] Blaming: l4d2_srs.smx
L 06/17/2023 - 03:41:57: [SM] Call stack trace:
L 06/17/2023 - 03:41:57: [SM]   [0] LogMessage
L 06/17/2023 - 03:41:57: [SM]   [1] Line 552, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnSelectRow
L 06/17/2023 - 03:43:01: Error log file session closed.

...

L 06/12/2023 - 01:50:05: SourceMod error session started
L 06/12/2023 - 01:50:05: Info (map "c13m3_memorialbridge") (file \left4dead2/addons/sourcemod/logs/errors_20230612.log")
L 06/12/2023 - 01:50:05: [SM] Exception reported: Client index 3 is invalid (arg 2)
L 06/12/2023 - 01:50:05: [SM] Blaming: l4d2_srs.smx
L 06/12/2023 - 01:50:05: [SM] Call stack trace:
L 06/12/2023 - 01:50:05: [SM]   [0] LogMessage
L 06/12/2023 - 01:50:05: [SM]   [1] Line 465, \left4dead2\addons\sourcemod\scripting\l4d2_srs.sp::OnInsertRow
L 06/12/2023 - 01:56:48: Error log file session closed.
I have Linux and Windows servers with latest SourceMod and Left 4 DHooks Direct.
You can comment the log message in line 465 in the source.
__________________
pan0s is offline
z282846139
Member
Join Date: Aug 2018
Old 06-24-2023 , 05:32   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #94

Quote:
Originally Posted by kochifish View Post
I modified this to use MYSQL database. Make sure youre using MYSQL 8 otherwise it will throw an error.
pan0s if you find this inappropriate please remove it. Thank you!

make sure you setup databases.cfg

Code:
	"l4d2_srs"
	{
		"driver"			"default"
		"host"				"youserverip"
		"database"			"databasename"
		"user"				"databaseuser"
		"pass"				"databasepassword"
	}
I have some problems, if the player's nickname is in Chinese, the Name data passed into the database will become garbled characters. Could you help how can I solve it?
Attached Thumbnails
Click image for larger version

Name:	QQ截图20230624173755.png
Views:	77
Size:	61.7 KB
ID:	201024  

Last edited by z282846139; 06-24-2023 at 07:16.
z282846139 is offline
NeoTM
AlliedModders Donor
Join Date: Feb 2013
Location: Britain
Old 06-25-2023 , 16:45   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #95

I have 2 questions:

Is there a way to change the size of the text appearing in the center of the screen?
I play in 1440p and it's impossible to see clearly what is on screen.

what is the file to change and what to change to have the score in HUD1?
__________________
82.66.75.218:27015 - Walk In Dead Nightmare
82.66.75.218:27016 - Walk In Dead Rampage
82.66.75.218:27017 - Walk In Dead Vanilla

Last edited by NeoTM; 06-25-2023 at 22:13. Reason: add a question
NeoTM is offline
NeoTM
AlliedModders Donor
Join Date: Feb 2013
Location: Britain
Old 06-28-2023 , 07:08   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #96

I got this error at startup

Spoiler


I downloaded the last GeoLite2-City.mmdb and GeoLite2-Country.mmdb from the maxmind website but i did not fins where was the .dat iles requested.

Did someone know where i can get them?
__________________
82.66.75.218:27015 - Walk In Dead Nightmare
82.66.75.218:27016 - Walk In Dead Rampage
82.66.75.218:27017 - Walk In Dead Vanilla
NeoTM is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 06-29-2023 , 07:14   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #97

Quote:
Originally Posted by pan0s View Post
You can comment the log message in line 465 in the source.
Thank you.

One more question: how to transfer the database?
I often reinstall the server and all player stats are lost. What data file should I save before reinstalling the server to save all statistics?
Mika Misori is offline
Hawkins
Senior Member
Join Date: Jul 2021
Old 06-29-2023 , 17:18   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #98

Copy and paste the file "clientprefs-sqlite.sq3" from addons/sourcemod/data/sqlite directory
Hawkins is offline
pan0s
Senior Member
Join Date: Nov 2017
Old 06-29-2023 , 17:24   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #99

Quote:
Originally Posted by NeoTM View Post
I got this error at startup

Spoiler


I downloaded the last GeoLite2-City.mmdb and GeoLite2-Country.mmdb from the maxmind website but i did not fins where was the .dat iles requested.

Did someone know where i can get them?
Try using this #73
__________________
pan0s is offline
Jasonex
Junior Member
Join Date: Aug 2023
Old 09-16-2023 , 06:40   Re: [L4D2] Statistic and Ranking System (SRS) [v2.5 | 17 March 2022]
Reply With Quote #100

Is this correct?

Because I downloaded GeoCity and GeoCountry on their website
Attached Thumbnails
Click image for larger version

Name:	AAA.png
Views:	52
Size:	15.9 KB
ID:	201550  

Last edited by Jasonex; 09-16-2023 at 06:42.
Jasonex is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode