[WEB] Webstatistic for Minecraft v3.1 - mrplows

Discussion in 'Bukkit Tools' started by cky2250, Feb 19, 2012.

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

    dwi

    cky2250
    Good to hear that! Looking forward to it!
     
  2. Offline

    cky2250

    dwi
    test.PNG test1.PNG

    So would you like it like this? If not it looks like brown mushrooms are the only ones that have BS values
     
  3. Offline

    dwi

    Nah, thats too complicated. Giant Brown Mushroom is from one type of block (Brown Mushroom) or you can possibly split/merge it to Brown Mushroom Cap (0-9) and Brown Mushroom Stem (10).

    btw. main thing is, if you select stats for one material like http://mrplows-server.us/Stats/index.php?mode=material-stats&material=67 It should include all data values from block 67, so 67:1, 67:2 and 67:3 as well. Those stats are not working now anywhere unfortunetly, something is wrong there...

    Take a look:
    http://mrplowserver.x10.mx/Stats/index.php?mode=material-stats&material=67
    or
    http://stats.majncraft.cz/index.php?mode=material-stats&material=67
    or
    http://mrplows-server.us/Stats/index.php?mode=material-stats&material=67

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  4. Offline

    cky2250

    dwi
    i don't know the code for getting the get the stats below the craft table to work it looks fine. Just like the mcmmo.
    I know only c++ and I am having to look up code to fix mysql codes.
     
  5. Offline

    dwi

    cky2250
    I'm but confused about what are you saying, what is fine? There should be list of players:

    [​IMG]
     
  6. Offline

    cky2250

    dwi
    Yeh, I know that. I was just saying the code looks like it should work. I have no idea what i wrong with it.

    PHP:
    function set_material_destroy_table($material$search)
    {
        global 
    $image_control;
        
    $query mysql_query("SELECT player, category, stat, value FROM ".WS_CONFIG_STATS." WHERE category = 'blockdestroy' AND stat = '".encrypt($material)."' ".$search."");
        
    $output '';
        while(
    $row mysql_fetch_array($query))
        {     
            if(
    $image_control == true)
            {
                
    $image small_image($row[0]);
            }
            
    $output .= '<div style="clear: both;">';
            
    $output .= '<div class="content_line_small" align="left" style="width:250px;">'.$image.'&nbsp;&nbsp;<a href="index.php?mode=show-player&user='.$row[0].'" style="cursor:url(images/cursors/hover.cur),auto;" >'.$row[0].':</a></div>'
            
    $output .= '<div class="content_line_small" align="left" style="width:100px;">'.$row[3].'</div>';
            
    $output .= "\n";
            
    $output .= '</div>';
        }
        return 
    $output;
    }
    PHP:
    <div class="content_headline_small" style="width:373px;">
     
    <?php
     
     
     
    echo (set_material_destroy_table($_GET['material'], $_GET['search']));
     
    ?>
     
    </div>
     
  7. Offline

    cky2250

    for those who are watching the thread this webstats is now at v1.5
     
  8. Offline

    cky2250

    ok mcmmo is almost working. I have the player names working just the stats need to load with the name. It may be a little longer.

    v1.6 has mcmmo support :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  9. Offline

    beleg

    thats nice :O but I'm confused.. I need the stats plugin right? But thats not working, is it? And I need some pictures =) (how the mcmmo part is working..)
     
  10. Offline

    cky2250

    stats is not needed. It is a nice addon but not needed. But here you can see it mod edit - link removed mcmmo.PNG
     
  11. Offline

    beleg

    :confused: wait.. why do I know these guys? They are/were playing on my server too :D
     
  12. Offline

    cky2250

    fixed

    ok the mcmmo is now working if you provide me with the MySQL of the achievements plugin. I can use that to make a page layout.

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

    beleg

    actually thats my database?! :confused:
     
  14. well tried stats 1 and achievements 1 (sort to speak and neither is working with 1.1 R6 here.
     
  15. Offline

    ChrisX930

    will it work with 1.2.3?
     
  16. Offline

    cky2250

    This is a web interface. Has nothing to do with what version minecraft is.
     
  17. Offline

    ChrisX930

    Do you know where I can get a version for 1.2.3?
     
  18. Offline

    cky2250

    as of right now there are not stats plugins that will work. I do not know java so I am unable to help. Sorry. I do have the source code of the stats 2.0 if you would like to give it a shot
     
  19. Offline

    ChrisX930

    That would be nice, I would give it a look ;D
     
  20. Or give a shout to Codename_B to update Stats and Achievements. He might be able to help.
     
  21. ChrisX930
    I wrote replacements for Stats and Achievements when they broke for us last year, with the goal of making them more powerful and less prone to breaking on an update.

    http://dev.bukkit.org/server-mods/beardstat/
    http://dev.bukkit.org/server-mods/beardach/

    Both working on 1.1 R6/7, and had no reports of beta build issues (will check myself later on today)
    I need to prod my web monkey again :p, see if we can get the web API for it out with the next release, on the other hand if cky2250 wants to add support for reading the tables I will gladly provide the information needed to do so.
     
  22. Offline

    Antariano

    cky2250
    I am very interested in an implementation of this into SpaceBukkit.
    Before talking about technical issues, what would be the license / code adoption situation in my case?
     
  23. Offline

    cky2250

    @tehbeard I will look at your plugin, and see if it is working in the beta 1.2.3 Bukkit. Also is this based off of stats or stats 2.0. With stats 2.0 it allows for code to be added on my end to say the person broke a fence facing east.... stuff like that.

    @Antariano if you have SpaceBukkit as a *freeware. I will be fine with this, however please wait until I fix some code threw out the project, and that I will need to work with you in implementation of this into SpaceBukkit. For the most part I am moving to CSS3 and HTML5, which will fit your project.
    *If it is a pay ware this will need to be a separate plugin that will be easily added for server admins. Any other terms of use I am willing to work out.

    Thank you both for your statements and questions.

    **Do note that any missing craft tables and Items will be fixed ASAP, if brought up. This is due to my team aiming for a new style of the code as of now versus adding dictionary code.
     
  24. cky2250
    Structurally the database should be the same as stats, the main difference is that the plugin resolves block names and entity types using the Materials and EntityType enums, that and a few stats (playedfor, lastlogin,lastlogout) need extra processing to make them human readable (convert seconds to wk,d,hr,min). We already have an early version of our web code running here.

    BeardAch works off of two tables, achievements and ach_map. Achievements holds the player data, and ach_map links the full names, description to its unique "slug".

    We are working on having a php library for both of these plugins, so it would be fairly trivial to use these in a plugin for Webstatistic.
     
  25. Offline

    cky2250

    tehbeard

    Then the problem here is a bunch of if statements, if someone continues stats 2.0. So if you would like have your plugin put one row out in the table that says "stats" "BeardSta" It could solve that problem very fast. Unless you are going to add stats 2.0 code into your plugin so they are the same other than your block names and entity types. "69:8" would be a lever with high power. But this could take some time for me to add. It is also trivial, but is not on the top of the to do list.

    I am going threw the code now to change the way pages load so that the page does not need to refresh to open the data. May take some time, since the prev. dev. had a lot of odd code. So this will really be nothing like the original when I am done.

    @ tehbeard
    Also if you provide a dummy database it would be very quick to add what you need into the code.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  26. Offline

    jefe323

    I gotta say, that is a very impressive web interface
     
  27. Offline

    cky2250

    I have added a wiki forum for users to share and update the main translation of the website. http://code.google.com/p/webstatistic/w/list. More information for setting up files will be given at a latter time. For now just change your language file name to en and over-ride the other file (located in "language" folder.)

    Thank You.

    @jefe323 Indeed. I am aiming for a layout more like that.

    If anyone with PHP knowledge would like to join the team please contact me. I am overloaded with code to apply.

    Also I am adding an install page for the project so that anyone can easily whip up a working server config file.:)
    Though this will take time to fully develop. As of now there is a working mysql check and if statment for the config. No file reading or writing yet.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  28. Offline

    cky2250

  29. Offline

    cky2250

    ok, since this installer has taken over 40 hours to make. It will not be open to the public to download. I have lost many hours to this and there is no income. The installer will be a website hosted file downloader. Until enough revenue is made. Sorry if there is any confusion.
    :)
     
  30. Offline

    deimos161

    Is there away we can set this up for Essentials eco?
     
Thread Status:
Not open for further replies.

Share This Page