Fluid MC Stats

Discussion in 'Bukkit Tools' started by Zachary DuBois, Mar 16, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Zachary DuBois

    GodsDead, I don't need any help right now, but if you have any changes you want to make, you can always fork on BitBucket. The raw HTML repo is here and the PHP repo is here.

    chris_61, Please open a feature request here :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 20, 2016
  2. Offline

    InsaneJ

    Using AccountProductions-fluid-mc-stats-212e89b4b05a I encountered the following issues.

    You include config.php more then once using require_once (which is bad practice) using the same relative path in header.php and serverstatusui.php. When header.php and serverstatusui.php are included by index.php, the ../config.php file does not exist at that location because it's included relatively to index.php. So the location should be omitted and you need to include just 'config.php'. Then when you visit a page other then index.php, the include path is correct again.

    Right now the page looks like this for me:
    Show Spoiler

    [​IMG]

    You can do several things to solve this issue. I would recommend loading all pages from the index.php script. So no matter which part of the application you're using, you're always loading index.php. A URL parameter can be used to tell the application which page to load. This way you never have problems including other .php files because the path will always be relative to index.php

    A more serious problem is that some stats seem to be incorrect. Here's the stats page:
    Show Spoiler

    [​IMG]

    This is the amount of total players according to the database:
    Show Spoiler
    [​IMG]

    Player deaths:
    Show Spoiler

    [​IMG]

    Player kills:
    Show Spoiler

    [​IMG]


    Also the server status mentions that the server is down, it is very much up. This is what I have in my config:
    Code:
    $server_name = 'HappyDiggers TFC';
    $mc_server_ip = 'tfc.happydiggers.net';
    $mc_server_port = '4000'; 
    $mc_server_disp_addr = 'tfc.happydiggers.net:4000';
     
    GodsDead likes this.
  3. Offline

    Lolmewn Retired Staff

  4. Offline

    moose517

    InsaneJ what i did to take care of the include errors is just set php error level in the header file i think it was and it took care of it for me, hopefully there won't be any problems like that in the next version :)
     
  5. Offline

    Zachary DuBois

    InsaneJ,

    Also, please read all information and all the descriptions on the install page. If you think you can fix something, please make a pull request on BitBucket and we will manually review the changes instead of telling us how to do our job (Or make an issue ticket).
    ~ Zachary DuBois.
     
  6. Offline

    GodsDead

    Came across http://cakemine.net/pages/player-list.php while looking at existing demos that work, your demo is broken.
    Clicking a player gives a proper full body image in detail for the player, I love this, Is this part of this stats UI or has that developer added it? This is how a players skin should be shown not just a giant version of their head.
     
  7. Offline

    Zachary DuBois

    GodsDead,
    The people who are running the site you have linked has severely customized that. You are forgetting that the v0.1.x series of Fluid MC Stats was just to see if people liked it. We are taking much more feedback for v0.2.x because people are liking the idea.
    In regards to my demo being down, I understand and I don't expect any of my servers online until the end of July.
     
  8. Offline

    apes

    can you expand a bit on exactly how you did this? cheers.
     
  9. Offline

    Zachary DuBois

    apes, All you need to do is turn off PHP debug.

    Add this to the top of config.php
    PHP:
    <?php
    error_reporting
    (0);
    // ... Rest of file ...
     
  10. Zachary DuBois Lolmewn All of your shortened links are broken, makes just about every link in the main post useless.
     
  11. Offline

    Zachary DuBois

    MinecraftZach443, All of my servers are down. Like I have said above. The commentary was unneeded. If you need something from one of the links, let me know and I can send you the real one. Once my servers are back online, all the links will work again.
     
  12. Offline

    GodsDead

    It looks like http://www.minecraft-api.com/ has shut down, Luckily the developer has released the PHP source code to use as a minecraft protocol on github https://github.com/IAmPhoenix/Minecraft-Protocol
    But I would HIGHLY suggest moving to a better system, integrating mcjsonapi, the script could display basic stats if this plugin is not active, and if it is activated display an array of insane data per-player alongside the stats.
    http://mcjsonapi.com/

    Please can you find out the HTML5 method to rendering the players skin in 3D in full, it looks SO much better.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 20, 2016
  13. Offline

    Zachary DuBois

    GodsDead, thanks for pointing this out to me. I will host my own Minecraft API on my nodes and ensure it stays online. Also, that skins aren't rendering with HTML5, they are rendering server side. Either on our servers or Minotar's. I will implement this feature in the future.


    Another note: People that are forking to repository and removing copyrights, recoding the interface, and etc. We did not use an open source license. Under no circumstance may you call it your own.
     
  14. Offline

    Lolmewn Retired Staff

  15. Offline

    moose517


    I'd suggest not hosting an API of your own honestly. Just put that code into the stats page and let the persons own web server query their own minecraft server.
     
  16. Offline

    Zachary DuBois

    moose517, Problem with that being, a lot of Minecraft server owners do not have the proper PHP setup because shared hosting blocks scripts like these from running. Sure the larger servers where they're actually managing VPS/DS will know how to use it. I will have to put some thought into it.

    Let me put it in simplest terms :p People are committing copyright infringement.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 20, 2016
  17. Offline

    GodsDead

    You really are new to writing scripts and releasing them on the internet!
    I also agree that I do not want to have to rely on a third party for server-status information, I already have my own system for displaying online status and user list.

    And like I already said, Just implemenet mcjsonapi support, it is literally already done for you http://us.php.net//manual/en/function.json-decode.php

    Please don't get all pissy about "copyright" bullshit on an pre-alpha php script, you are literally just pulling data from a mysql database which is populted by another plugin!!
    Im more worried that you are calling this YOUR work, when you are using Bootstrap, jQuery, Font Awesome and, d3js, you definitally cannot copyright these amazing open source tools and its a little rude to be doing so publicly.

    Like I have already said, I am willing to help code this, its in need of some love in its current state.
     
  18. Offline

    moose517


    So an option during install. Use API click select this, supply info select this.
     
  19. Offline

    Zachary DuBois

    moose517, Or we could just have a setup check considering I plan on adding caching support in this version so, it needs to check for writable directories and such. Another thing is, the new feedback system I have, I am going to have an option for it to collect data for the install (For statistical purposes, won't forget to put a disclaimer just like the global stats server).
     
  20. Offline

    maxlehot1234

    How can i add mu bunjeecords servers on web-end? Because i use spigot, so when i add my creative server, web-end says it is offline, but my creative server was online, do you have an idea for that?
     
  21. Offline

    Zachary DuBois

    maxlehot1234, It says it is offline because the API it is using to check is no longer available. Thanks for reminding me to discontinue support for the v0.1.X series because it was just a trial run to see how an interface like this would go for Bukkit & Spigot users. Since it went fairly well, I will be working on v0.2.0 (Already started on it a while ago). I have updated the thread with this information.
     
  22. Offline

    Lolmewn Retired Staff

    Yep, that's fine.
     
  23. Offline

    maxlehot1234

    No problem, is it available soon or no? Just to know, i remove stats plugin from my server due to mysql bug on my side :(
     
  24. Offline

    Zachary DuBois

    maxlehot1234, I am expecting to get a very early beta out before mid-August. This is a side-project for me because I have many more major things I need to code like my new sites and such. I will make a quick version to remove the online checks.

    maxlehot1234, please download the tagged version of "No-MinecraftAPI". It will remove a lot of information from the server section, but it will fix it temporary until the next version.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 20, 2016
  25. Offline

    GodsDead

    Can I see your wire-frames for the V2? So I know whether its worth me starting my own fork?
     
  26. Offline

    Zachary DuBois

    maxlehot1234, Sorry. I just noticed I forgot the "://" on the image link. You can re-download that updated tag or just edit line #25 of "inc/serverstatusui.php" to look like this:
    PHP:
            echo "http://" $_SERVER['SERVER_NAME'] . "/img/64.png";
     
  27. Offline

    dhannyjsb

    I can't Install to my server
    Code:
    Warning: fopen(../../config.php) [function.fopen]: failed to open stream: Inappropriate ioctl for device in /home/infernia/public_html/stats/pages/install/install.php on line 94
    This is my server website http://inferniaservers.com/stats/index.php
     
  28. Offline

    Zachary DuBois

    dhannyjsb,
    Please add this to the top of inc/header.php after <?php:
    PHP:
    <?php // After this
    error_reporting(0);
    // Rest of file
    Also, please use the tagged version of No-MinecraftAPI from here: https://bitbucket.org/AccountProductions/fluid-mc-stats/downloads

    Other than that, I no longer support this version of Fluid MC Stats. A new one is being made in my free time but, I haven't had a lot of that lately.
     
  29. Offline

    Zachary DuBois

    I released a quick fix to let it hold out till the next version.
    Available from the tags tab on the repository download page.
     
  30. Offline

    Flyingbadger135

    Zachary DuBois After I enter all the information including the MySQL info, and press install, The pages loads for about 5 seconds, then says it has an endless redirect loop. I have tried it with with Google Chrome and Firefox.
     
Thread Status:
Not open for further replies.

Share This Page