Code:[Oxide] 2:36 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Stats' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 2:36 AM [Debug] at Oxide.Plugins.Stats.OnEntityDeath (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Stats [Unmaintained]
Discussion in 'Plugin Support' started by Vilsol, Jun 29, 2015.
-
For the kill leaderboards that you are working on - will we be able to embed this in, say, a wordpress page? Also, it would be great to have some other stats on the leaderboard like top 10 gathers and builders.
Thanks for a great plugin.
[DOUBLEPOST=1437848403,1437840582][/DOUBLEPOST]Just got the following error in a popup when trying to view stats.php?stat=players.
Code:DataTables warning: table id=DataTables_Table_0 - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
Code:{"data":[],"draw":null,"recordsFiltered":"0","recordsTotal":"13","query":"SELECT SQL_CALC_FOUND_ROWS `id`, `name`, `online_seconds` FROM player ORDER BY LIMIT 0, 0"}
-
-
-
-
I would know exactly how to do that if it was on my own box. Not sure it's possible through cpanel?
-
-
Nothing relevant in the error log.
-
[DOUBLEPOST=1437857407][/DOUBLEPOST]@antisoma Ok, I found why its erroring, but I have no idea why its erroring... Basically, when you first open a stat, it will error, then try ordering the data by clicking on any of the columns, and then it will suddenly work. It might be that your database doesn't like to order data properly? I have no clue.
[DOUBLEPOST=1437857455][/DOUBLEPOST]Seems like your database doesn't like to order anything in an ascending sequence
[DOUBLEPOST=1437857530][/DOUBLEPOST]In the next version I will make it so it is ordered descending by default. -
Okay, thanks.
-
Leaderboards are coming tomorrow!
-
Latest update
Code:[Oxide] 6:23 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Stats' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 6:23 PM [Debug] at Oxide.Plugins.Stats.OnEntityDeath (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Last edited by a moderator: Jul 28, 2015 -
Sorting by Weapon on page Player -> Kills doesn't work.
https://yadi.sk/i/QTOUx2eCi8BJv -
A guide for a database noob on how to implement this awesome plugin would be excellent! ;-) Say....using a free database like MS SQL Express 2014 or MySQL, or whatever would be appropriate.
-
Hello I was having trouble setting up my Player Stats for my server, I was hoping somebody could help me. I seem to get no errors on my RUSTY console nor when I refresh the page it just seems to never upload anything is all.
Plugin being Used: http://oxidemod.org/plugins/stats.1188/
Webpage: http://www.alpineserver.net/www/ Basically displays the Dashboard but it will never update any stats. -
did u change the database.php and put in the token and mysql connection?
did u execute the sql file to ur database? -
Code:
<?php$TOKEN = "Token is written here";$DB_HOST = "107.180.34.199"; $DB_NAME = "Webpage_Stats"; $DB_USER = "madara94"; $DB_PASS = "";$pdo = new PDO("mysql:dbname=".$DB_NAME.";host=".$DB_HOST, $DB_USER, $DB_PASS); $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_NUM);
Code:{ "Query_URL": "http://www.alpineserver.net/www/", "Token": "Token is written here" }
-
is the mysql database on the same machine as the webserver? if yes try "localhost" as ip
Code:{ "Query_URL": "http://www.alpineserver.net/www/", "Token": "Token is written here" }
should be
Code:{ "Query_URL": "http://www.alpineserver.net/www/query.php", "Token": "Token is written here" }
-
I've just tried all your things, definitely your "Query.php" would be one issue I had
I'm not quite sure how long I have to wait. I have players currently on and dont want to restart the server. If I wait awhile will it automatically update?