AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] DragoStats Coop (https://forums.alliedmods.net/showthread.php?t=320247)

Dragokas 12-11-2019 19:33

[L4D1 & L4D2] DragoStats Coop
 
5 Attachment(s)
Description:
It's extended and improved version of HxStats: Coop statistics with MySQL database.

Basic differences & features:

* L4D1 support
* Integration with VIP Core by R1KO (optional).
* Multi-threaded database (not freeze server anymore)
* New stat points awards
* Stat of week / month / VIP of week / month
* Menu
* ConVars
* Useful commands
* Natives
* Translation
* Backup ability
* Many fixes
Dependency:
- (optional) VIP Core by R1KO
Compatibility:
- L4D1.
- L4D2.

- Coop only.
- Versus is planned - waiting for your comments here, what statistics points do you want to see...
Commands:
Spoiler


Settings (ConVars):
Spoiler


Natives & Usage sample:
Spoiler


Using (Installation):
Spoiler


Troubleshooting (mostly Linux)
Spoiler



Credits:
* MAKS - original author
Related topics:
L4D2 HxStats
Languages:
- English
- Russian
ChangeLog


TODO:
- change column type from blob to name and find out why Russian letters recognized incorrectly in php using such type
- Read online admins from admins-simple.cfg / admins.cfg to populate "hide" option (for "sm_hx_unhide" command)

Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money

Dragokas 12-15-2019 03:51

Re: [L4D1/2] HxStats Coop Remastered
 
Quote:

1.0.5 (15-Dec-2019)
- Fixed hardcoded string not allowing to use "sm_hx_upgrade".

1.0.4 (14-Dec-2019)
- Added penalties:
* Survivor death
* Survivor Incap
* Friendly-fire

- Added ability to see "Rank of other player"

* DataBase Table version is now 2.2. Use "sm_hx_upgrade" to upgrade.

tlch0324 12-15-2019 12:06

Re: [L4D1/2] HxStats Coop Remastered
 
HI, I'm newbie how do I run it after setup a mysql server
Does it automatically create a database on the mysql server?

ur5efj 12-15-2019 12:57

Re: [L4D1/2] HxStats Coop Remastered
 
Code:

L 12/15/2019 - 19:49:52: SourceMod error session started
L 12/15/2019 - 19:49:52: Info (map "c2m3_coaster") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191215.log")
L 12/15/2019 - 19:49:52: [l4d2_hx_stats.smx] Field 'Name' doesn't have a default value
L 12/15/2019 - 19:55:15: Error log file session closed.


Dragokas 12-15-2019 13:28

Re: [L4D1/2] HxStats Coop Remastered
 
Quote:

Originally Posted by tlch0324 (Post 2677033)
HI, I'm newbie how do I run it after setup a mysql server
Does it automatically create a database on the mysql server?

You must have database name, user name and password.
Plugin automatically creates the table.

If, for some reason, it doesn't create one, use "sm_hx_sqlcreate" command.

Dragokas 12-15-2019 13:29

Re: [L4D1/2] HxStats Coop Remastered
 
ur5efj, does that error repeat for you?

ur5efj 12-15-2019 14:45

Re: [L4D1/2] HxStats Coop Remastered
 
This error on every map ( MySQL 5.7.28 )
Code:

L 12/15/2019 - 20:17:40: SourceMod error session started
L 12/15/2019 - 20:17:40: Info (map "c1m1_hotel") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191215.log")
L 12/15/2019 - 20:17:40: [l4d2_hx_stats.smx] Field 'Name' doesn't have a default value
L 12/15/2019 - 20:20:48: Error log file session closed.
L 12/15/2019 - 20:20:56: SourceMod error session started
L 12/15/2019 - 20:20:56: Info (map "c1m2_streets") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191215.log")
L 12/15/2019 - 20:20:56: [l4d2_hx_stats.smx] Field 'Name' doesn't have a default value
L 12/15/2019 - 20:28:35: Error log file session closed.
L 12/15/2019 - 20:28:43: SourceMod error session started
L 12/15/2019 - 20:28:43: Info (map "c1m3_mall") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191215.log")
L 12/15/2019 - 20:28:43: [l4d2_hx_stats.smx] Field 'Name' doesn't have a default value
L 12/15/2019 - 20:32:55: Error log file session closed.
L 12/15/2019 - 20:33:03: SourceMod error session started
L 12/15/2019 - 20:33:03: Info (map "c1m4_atrium") (file "C:\SteamCMD\SteamApps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\errors_20191215.log")
L 12/15/2019 - 20:33:03: [l4d2_hx_stats.smx] Field 'Name' doesn't have a default value
L 12/15/2019 - 20:41:29: Error log file session closed.


Dragokas 12-16-2019 03:09

Re: [L4D1/2] HxStats Coop Remastered
 
1 Attachment(s)
Thank you.
Looks like, this happened because your MySQL strictly follow standards.
Try this one:

tlch0324 12-16-2019 08:34

Re: [L4D1/2] HxStats Coop Remastered
 
Quote:

Originally Posted by Dragokas (Post 2677039)
You must have database name, user name and password.
Plugin automatically creates the table.

If, for some reason, it doesn't create one, use "sm_hx_sqlcreate" command.

thanks, I input below in the database.cfg, is it correct?

"l4d2_stats"
{
"driver" "mysql"
"host" "127.0.0.1"
"database" "l4d2_stats"
"user" "root"
"pass" "mypass"
}

Dragokas 12-16-2019 09:34

Re: [L4D1/2] HxStats Coop Remastered
 
It is intended to work with external MySQL database only.
If 127.0.0.1 not work for you, try to set server's public IP there.
I'm not completely sure. Still learning sm database stuff. This is my first experience.

Also, are you sure "database" "l4d2_stats" schema is exist on your server?
If you don't know what is it, it's better to read some manuals. I don't think this topic is appropriate place for such discussion. It's better you open separate thread in General forum and leave here a link.


All times are GMT -4. The time now is 08:16.

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