BattleTracker 2.0
Battle Tracker 2?
Welcome to the new home of Battle Tracker. The original plugin Dev's discontinued this project and has been picked up by community members familiar with it. Expect bugs to be squashed, spankin' new features to be added, and new updates to keep coming! A new wiki is being setup with tutorials, information, and the likes as well as a brand new website. Thank you, - The BattleTracker2 team.
PvP Death messages
Customizable death messages for PvP deaths.
Allows use of Herochat channels for messages.
Records
Records stats for PvP and PvE kills
Stats include, wins,losses,ties, streak, maxstreak, ranking, maxranking
Examples:
- /pvp
- /pvp top [x] : show the top x highest rated players
- /pvp vs <other player> [x records] : shows the last x records vs another player
- /pvp vs <player1> <player2> [x records]: shows the records between player1 and player2
Leaderboard Signs
You can make leaderboard signs for PvP, PvE, or any other plugin that uses BattleTracker as a backend (like BattleArena). These signs will update every minute.
To make them, you make a sign where the first line is [ database name ] where database name is PvP,PvE, or if you have BattleArena, any of the databases from the configs, like Arena, Spleef.
The second line is what type of data will be shown. Examples: Rating, Wins,Kills,Losses,Deaths, Streak,MaxStreak,KDRatio,WLRatio,MaxRating
[PvP] Rating
Once that is done, the sign is complete and it will automatically convert signs above or below it into Top Signs, (though it won't convert signs that start with the character '[').
Picture:
Video Tutorial
Personal Stats
Clicking on a leaderboard sign will show you your personal stats. A big thanks to MCForger for the code to do this.
Developers
Has an api for storing your own stats. Allows you to make top lists, give elo to different events, etc.
Information Collection
To see what statistics this plugin may collect and send out from your server. See Information Collection. This can be disabled in BattlePluginsAPI/config.yml
Updating
This plugin checks for new bukkit release versions which can be disabled in the BattleTracker/config.yml
Help
You can ask us questions in real time on Discord when we're around. Please stick around if you don't get an answer right away. Most of us have lives and aren't online 24.7 :)
Join this Discord server here: https://discord.gg/J3Hjjb8
Versions
Credits:
This plugin was Originally Developed by: alkarinv , lDucks , and rasnyderiii over at The Battle Tracker page. All credits for the original BattleTracker go to them. :)
For anyone who still views these pages, despite previous comments both here and on the BattleArena page, none of these plugins are abandoned anymore. Work picked up on both BattleArena, BattleTracker and VirtualPlayers last year around this time after a few years of inactivity.
BattleTracker is currently undergoing a rewrite (thus the lack of updates) and should be completed soon. BattleArena is also going through a rewrite, but the current version will remain maintained until the rewrite is closer to release. With the release of 1.15 in just two days, all plugins will receive updates as soon as a Spigot version is out for 1.15.
I assume with abandoning BattleArena you are also abandoning BattleTracker? There are bugs in 1.11. Are you guys going to open source the code? Is the code on alkarinv's Github the latest? It hasn't been updated since 2014 so I'm guessing you have a newer codebase somewhere.
http://pastebin.com/pS5UQ7eL when we kill player via hand
@Europia79
Hmm, I tried it but it still seems to happen.
Do you have a empty database with the correct settings ?
@ZwPxBerserk
Yes, i posted the solution for this problem. It involves changing the datatype for ID & ID2 from VARCHAR(32) to VARCHAR(64)
https://www.sqlite.org/lang_altertable.html
// Open command prompt:
cd server/plugins/BattleTracker
sqlite3 tracker.sqlite
// See & remember the value for foreign_keys:
PRAGMA foreign_keys;
// Set the value to 0, FALSE, or OFF if necessary:
PRAGMA foreign_keys = 0;
BEGIN TRANSACTION;
.tables
.schema bt_PvE_overall
CREATE TABLE bt_PvE_overall_NEW (ID VARCHAR(64) NOT NULL ,Name VARCHAR(48) ,Wins INTEGER UNSIGNED ,Losses INTEGER UNSIGNED,Ties INTEGER UNSIGNED,Streak INTEGER UNSIGNED,maxStreak INTEGER UNSIGNED,Elo INTEGER UNSIGNED DEFAULT 1250,maxElo INTEGER UNSIGNED DEFAULT 1250,Count INTEGER UNSIGNED DEFAULT 1,Flags INTEGER UNSIGNED DEFAULT 0,PRIMARY KEY (ID));
INSERT INTO bt_PvE_overall_NEW SELECT * FROM bt_PvE_overall;
DROP TABLE bt_PvE_overall;
ALTER TABLE bt_PvE_overall_NEW RENAME TO bt_PvE_overall;
PRAGMA foreign_key_check(bt_PvE_overall);
END TRANSACTION;
BEGIN TRANSACTION;
.schema bt_PvE_versus
CREATE TABLE bt_PvE_versus_new (ID1 VARCHAR(32) NOT NULL ,ID2 VARCHAR(64) NOT NULL ,
Wins INTEGER UNSIGNED ,Losses INTEGER UNSIGNED,Ties INTEGER UNSIGNED,PRIMARY KEY
(ID1, ID2));
INSERT INTO bt_PvE_versus_new SELECT * FROM bt_PvE_versus;
DROP TABLE bt_PvE_versus;
ALTER TABLE bt_PvE_versus_new RENAME TO bt_PvE_versus;
CREATE UNIQUE INDEX bt_PvE_versus_idx ON bt_PvE_versus (ID1);
PRAGMA foreign_key_check(bt_PvE_versus);
END TRANSACTION;
// Set foreign_keys back to the original value:
PRAGMA foreign_keys = ...;
Hi, Im using sqlite.. and im getting the same error as LordKainzo with custom MythicMobs (or maybe long custom names for mobs?)
Is there a fix for this ??
Lord Kainzo , the author of herochat, are you able to use battletracker with herochat on 1.9+ ? Because I cannot !
https://github.com/BattlePlugins/BattleTracker/issues/15
@Europia79
Thanks !
@LordKainzo
http://pastie.org/10863643
The quickest fix is to alter your MySQL tables:
Here's the SQL command syntax:
ALTER TABLE table_name MODIFY column_name VARCHAR(64);
Here's what will fix your problem:
ALTER TABLE bt_PvE_overall MODIFY ID VARCHAR(64);
ALTER TABLE bt_PvE_versus MODIFY ID2 VARCHAR(64);
And if you want to be safe:
ALTER TABLE bt_PvE_versus MODIFY ID1 VARCHAR(64);
The underlying problem appears to be two-fold: The Bukkit API returning "ukkit.craftbukkit.v1_9_R2.entity.CraftSkeleton" which is 46 characters long while the max length of the MySQL column is 32. And the other problem is that BattleTracker isn't limiting the sizes of what it's trying to put into the database.
http://pastie.org/10863643
happens a bit ^ 1.9.4
Hi !
Another one after click on sign : http://pastebin.com/SUSczW9K
Thanks !
Hello
I have some issues when i am fragged like this : http://pastebin.com/ZJ1eiGLV
thanks
@c0wg0d
That doesn't sound right. Message me on Skype so that I can some more details from you & investigate. Nicodemis79
@c0wg0d
The ranking numbers that I believe you are talking about (the ones that start at 1250) use a system called ELO. It is a common system used in many games.
As for that CTF issue... Unless people leave, those uneven teams should not be happening in the first place.
Can we get the formulas you guys are using to calculate stats? Some of our players are confused as to how their ranking can change by over 1000 points in the short time they don't play any arena games. You don't seem to mention it anywhere on the wiki that I can see.
Also, one of my players wanted to share this with you guys, stating that the scoring in ArenaCTF needs to be changed because it "makes no sense". Perhaps you can comment on whether or not you agree and why so I can inform them.
alright ill give an example for this. This is how i think the coding works. Listen because this could get confusing. 1. If you have only 1 player on your team(you) then if you win or lose your rating and win and loss ratio will be effected. Even if the other team has 3 or 2 players you will still get a loss for losing. You will get a win as well but its still unfair. If both team score nothing nobody gets anything and if you tie at 1 you all get a win if you have 1 player on each team.
2. If you have 2 or more players on your team (you and someone else) you will never get a win or loss on your ratio. This is where i think this needs to be changed. 2v1. A 2v1 is where you are against 2 players. If they win: You get a loss they get nothing. if you win: you get a win and they get nothing.
Chances are unless your a really good ctfer your gonna lose. That means you will get a lot of loses for losing that which makes no sense.
An update for full 1.9 support would honestly be amazing :) Thanks for reading!
it using 20 sql thread, and sometimes is not updating the signs
I suggest changing battletracker to announce the mob-display name as the killer? or have a variable %mobname% instead of using the mob-type ?
Playing with Mythicmobs, sucks to see it say "soandso has been slain by zombie" when it was a boss of sorts
It could be nice to have command, so some people could disable deathmessages :)