AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   BrainBread Stats (https://forums.alliedmods.net/showthread.php?t=254762)

JonnyBoy0719 01-06-2015 06:00

BrainBread Stats
 
4 Attachment(s)
This plugin will only work for BrainBread


Description:
This plugin will save all of your stats to a MySQL server, which multiple servers can use w/o needing to copy players.lvl.


Tested on:
* brainbread v1.2 (metamod v1.21p37 + amxmodx 1.8.2)


Server requirements:
* brainbread
* amxmodx 1.8x
* mysqld


Client commands:
/autoload -- Will auto load the skills
/reset -- Resets your skills and in return it converts them back to points.
/loadpoints -- Load your points if you don't have autoload enabled
/rank -- Shows your current rank
/web -- Shows webstats url


How it works:
Simply copy the bb_stats.amxx to your plugins folder and add bb_stats.amxx under configs/plugins.ini file.

Now open configs/sql.cfg and add the new commands:
bb_host "127.0.0.1"
bb_user "root"
bb_pass ""
bb_type "mysql"
bb_dbname "my_database"
bb_table "bb_stats"
bb_rank_table "bb_stats_rank"


Web GUI:
Make sure you install the web gui on your apache folder (you can find all files under `web/` folder) and not copying it to your actual brainbread server!
You also need to make sure to setup the configurations on the config.php.


Web GUI Demo
If you want to see how the Web GUI looks like, you can do so by going to our official BrainBread Stats page for our server!
Demo: Click here!


Special Thanks:
* Noname for helping me fix the EXP bug
* XxAvalanchexX for his amazing brainbread include file


Bugs:
* None so far!


changelog:
v2.0-2.5 [2015-03-30]
* Added bb_rank_table
* Added web gui
* Fixed bb_stats saving (Replaced with UPDATE instead of REPLACE INTO)
v1.4-v2.0 [2015-01-09]
* Added new convars: bb_gameinfo, bb_webstats_url & bb_ranking
* Minor code changes
* Ranking supported. /top10 will be implemented when the radio menu gets fixed up for BrainBread
v1.3 [2015-01-06]
* Fixed EXP multiply loading problem
* Added a checker to make sure it won't override player.lvl (Player Data file)
* Added a new convar bb_filerewrite (default: 0) This convar will override the warning, if you want it to override and rewrite the player data file.
v1.2 [2015-01-06]
* Added a new client command "load points"
* Fixed some minor bugs
* It will now always start with "autoload" disabled when a new user has been created on the SQL.
v1.1 [2015-01-06]
* Fixed some typos on the SMA
* Added concommands
v1.0 [2015-01-06]
* Initial release


Notes:
This plugin is similar to noname's SQL plugin, but he never released it due to a HDD crash. And I want to thank him for helping me fixing the EXP bug! And I have also updated XxAvalanchexX brainbread.inc file, so now it can get and set/add new EXP.

download:
GitHub
or look on the attachments below!

Arkshine 01-06-2015 07:42

Re: BrainBread Stats
 
Removed AMXX file, you are not allowed to include compiled plugins.

JonnyBoy0719 01-06-2015 07:46

Re: BrainBread Stats
 
Quote:

Originally Posted by Arkshine (Post 2245428)
Removed AMXX file, you are not allowed to include compiled plugins.

The compiler can't compile the SMA due its using the custom include file, people have done this in the past due to this reason, why not now?
Code:

Plugin failed to compile! Please try contacting the author.Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team  /home/forums/content/files/1/7/8/5/2/4/141333.attach(2) : fatal error 100: cannot read from file: "brainbread"  Compilation aborted. 1 Error.
Anyway, all files can be found on the github instead if the amxx is such a huge problem.

YamiKaitou 01-06-2015 07:48

Re: BrainBread Stats
 
Because it was taken advantage of and a malicious plugin was distributed. We now no longer allow people, other than AM Staff, to attach AMXX files. People need to learn to compile the plugins themselves.

JonnyBoy0719 01-06-2015 07:50

Re: BrainBread Stats
 
Quote:

Originally Posted by YamiKaitou (Post 2245431)
Because it was taken advantage of and a malicious plugin was distributed. We now no longer allow people, other than AM Staff, to attach AMXX files. People need to learn to compile the plugins themselves.

That's a good reason, thanks for clearing it up.

tousif 01-06-2015 08:02

Re: BrainBread Stats
 
Nice Plugin

JonnyBoy0719 01-06-2015 08:09

Re: BrainBread Stats
 
Updated it, added some client commands, and fixed some typos on the actual plugin.

tousif 01-06-2015 08:17

Re: BrainBread Stats
 
is this plugin consists reset data or clear old one and start new For admins or server modretors from game

JonnyBoy0719 01-06-2015 09:03

Re: BrainBread Stats
 
Quote:

Originally Posted by tousif (Post 2245447)
is this plugin consists reset data or clear old one and start new For admins or server modretors from game

It doesn't clear any old data on your player.lvl. But I can make a checker if there is one, so it saves the data on the SQL.

And I updated the plugin again, fixed some minor bugs.

JonnyBoy0719 01-09-2015 01:10

Re: BrainBread Stats
 
Updated -- v2.0
Made a lot of changes when I was working on the ranking for the plugin, will insert the rest of the ranking system so it will have a functional /top10 with a menu.


All times are GMT -4. The time now is 23:48.

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