Inactive [INFO/WEB] Netstats v5.0.4 - Keeps track of player playtime and online status [RB 1.1-R3]

Discussion in 'Inactive/Unsupported Plugins' started by Valrix, Feb 13, 2011.

  1. Offline

    Valrix

    Netstats v5:
    COMPLETE!
    Keep up with development in BukkitDev!
    Netstats - Player Monitoring Plugin:
    Plugin Version: v5.0
    Web Version: v3.0

    Netstats watches players as they join and leave the server and keeps track of how long they've been logged into the server as well as keeping track of their current online/offline status while using very little system resources. The information is stored in a database which is defined by the user. First time using Netstats it will create the config file then disable itself until you change the config to match your database. Then you can reload or restart the server and it'll start collecting information immediately.
    Source Code: Netstats

    OLD CHANGELOG (open)

    Version 4.7
    • Bug fixes
    • If you don't supply a "database" in the config it will attempt to make it's own database named "NetStats" then create the table "netstats" inside it.
    • Fixed repetitive code and unnecessary MySQL connections when doing multiple queries one-after-another (reduces database calls, speeds up the code, and uses less resources).
    • Reduced code complexity (simplified certain calls and removed hacky functions to improve code performance by around 5-10% in my tests)
    Version 4.6
    • Fixed the bug that happened when trying to change the name of your stats table.
    • Fixed the bug that messed up everyone's total play time (sorry)
    • Code improvements and uses less code for database calls
    Version 4.5
    • Fixed the bug where folders weren't being made.
    Version 4.4
    • Converts the total play time to be saved as seconds instead of milliseconds to increase maximum play time. This will now match the PHP code, so if you changed it, change it back.
    • Now disables and re-enables itself instead of reloading the server when doing a wipe
    • Some code improvements
    Version 4.3
    • No longer requires the /lib/ folder since CB already contains the needed drivers
    • v5 is close to being ready and will bring large speed improvements
    Version 4.2
    • Fixes the bug that creates .stats folders instead of files.
    Version 4.1
    • Many code improvements to improve speed and memory usage.
    • Thanks to @jascotty2 for the code to fix how player and mob kills are handled
    Version 4.0
    • Many bug fixes
    • Changed how total play time was saved to the database
    • Fixed a bug with timed events
    • A new and improved Web update is nearly finished
    Version 3.9
    • Should work with RB 617
    Version 3.8
    • Fixed an issue with how files were handled.
    Version 3.7
    • Fixes issue of logged-in users being shown as offline after a reload
    • Fixed file creation bug where .stat files weren't being made properly
    Version 3.6
    • Fixed a bug where, depending on your region, your IP address was logged twice in the database. This was more of an issue with how the IP address was being grabbed than a problem with how it was stored.
    • Few other small fixes to prevent possible future bugs.
    Version 3.5
    • Changed how paths are managed by the plugin to be more OS-independent, hopefully fixing all "file not found" errors.
    • Removed checking if a database password exists or not.
    Version 3.4
    • Improved error logger that create a special log file with the exact info I'll need to find out what caused the problem.
    • Numerous bug fixes and speed tweaks
    Version 3.3
    • Added tracking of distance traveled
    • Added tracking of number of monsters a player has killed
    • Added tracking of number of other players a player has killed
    • Added the date of when the player first joined the server (after this version of Netstats has been installed, will only be correct after a full wipe of other stats)
    • Database will auto-build if it doesn't exist, otherwise it'll add columns if they're needed (so you don't have to do anything to update your database)
    • Config file now auto-updates and allows for comments (they need their own line however)
    • Many other code improvements and fixes to help it run faster and more efficiently.
    Version 3.2
    • Fixed the problem with saving to the database that everyone's been getting. (Only need the JAR)
    Version 3.1
    • Changed the namespace to com.sparkedia.valrix since I did the Java bit.
    Version 3.0
    • Rebuild of v1 to be more efficient.
    • Customized tracking based on "true" or "false"
    • What you don't want tracked won't be watched which improves performance
    • Timed updates (default is 90 seconds)
    • Fixed updating based on total actions user has done (default is 32)
    • Numerous performance tweaks
    • A "pretty" config file
    • Improved web script performance and added customized tracking (make it match your main config, variables are named the same for simplicity)
    • Web view tells when a player is still online and makes their name green if online, red if offline
    • Uses the "hybrid" method of player data saving like v1 to put less strain on the database
    • When saving to a database it is done dynamically so that only changed things are saved to cut down on the code needed and make smaller, faster calls to the database when saving (this was a big improvement on all previous versions)
    • Table name has been changed to "netstats" to not conflict with any other tables
    • NOTICE: You will need to remove your old data since it is outdated and the table is named differently with a few field name changes so make sure to use the .sql file to add it to your database. Please, before complaining about losing all the old data, realize that there's a 99% chance that it's wrong.
    Version 2.0
    • Complete revamp!
    • Now uses only flatfiles to store data, no more database issues!
    • Lots of code removed and improved for faster speed and less resource use
    • Customizable timed updates (default is every 30 seconds)
    • Customized tracking also reduces resource use by registering (or not registering) events as per your config so it only watches events that you want it to.
    • Web script will search for your CraftBukkit server when you first look at the web page.
    • You can choose where the server will save every player's .stats file by setting the "path" option in the config. The path is relative to your main server folder (where the world folder should be at). So if you set "path=../players/" then the .stats files will be in a folder called "players" in the folder that your server is in.
    • Table of player data is built depending on what your tracking and will change as you change the Netstats config file, nice and easy!
    • There are a few rules to setting paths that are listed above, make sure to read them!
    Version 1.8
    • Various code fixes and changes to improve how it runs.
    • Creates a new blank config file if it can't find one.
    • Only JAR has been changed. Get the newest one above, which I'll just reference from now on since it's faster than posting the same link over and over again.
    Version 1.7
    • Changed how files are accessed which should fix the "Too many files open" bug on Linux machines. Update the [JAR]
    Version 1.6
    • Hopefully fixed bug with connecting multiple times to a property file for each user. Only [JAR] needs updating.
    Version 1.5
    • Fixed a critical bug where user property files (where it saved your data before moving it to the database) wasn't re-defined when the plugin was reloaded. Now it looks for it after everything you do to make sure your data is always being recorded. Only the [JAR] needs to be updated.
    Version 1.4
    • Updated the files to work with the new constructor. You'll need only the [JAR] for this update.
    Version 1.3
    • Fixed a bug with how the plugin saves user data after a server crash
    • Added an Update.sql to add new columns to database table [Web.zip] (only for those upgrading from v1.2)
    Version 1.2
    • Added tracking of blocks broken
    • Added tracking of blocks placed
    • Added tracking of player deaths
    • Added more frequent tracking of total time online
    • Implemented new "safety" storage system
    • New storage system reduces number of database calls
    • Improved the way data is stored to database to take less code
    • The table of data is now ordered by who is online
    Version 1.1
    • Added tracking of player's last used IP address
    Version 1.0
    • Release of Netstats
    WEB CHANGELOG (open)

    Version 2.1
    • Some code cleanup and fixes as well as a better auto-updater that makes sure that the updater is the latest version before doing the actual update process.
    • Localization support for 7 different languages.
    • File name changes to be more netstats-specific which will prevent clashes of CSS and other pages.
    • Better include() and require() calls so a page is only added once which speeds up all the pages and keeps them from destroying each other.
    Version 2.0
    • Improved layout
    • Automatic code updates
    Version 1.0
    • Initial release of web code

    Donations: Don't forget to give amd3th some love too since he helped in making Netstats and came up with the idea (you rock!) as well as @marshall007 since he's been awesome by helping me in his spare time.
     
    Phaedrus, Niemand, D-Lew and 5 others like this.
  2. Offline

    Lord Chaos

    Code:
    java.io.FileNotFoundException: plugins\Netstats\logs\NetErr_2011-03-29_01:05:14.log (The filename, directory name, or volume label syntax is incorrect)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileWriter.<init>(Unknown Source)
        at com.sparkedia.valrix.Netstats.ErrorLog.save(ErrorLog.java:38)
        at com.sparkedia.valrix.Netstats.Database.update(Database.java:143)
        at com.sparkedia.valrix.Netstats.NetRepeater.run(NetRepeater.java:47)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  3. Offline

    ThaMunsta

    That would be awesome! The essentials plugin stores money in a userdata/{playername}.yml file so it would probably be pretty difficult to grab it from that... However this is a good reason for me to switch to iConomy:

    Makes a lot of sense... Thanks for the explanation and info :D I might switch to iConomy :)
     
  4. Offline

    Lord Chaos

    Just errors all aroun them
     
  5. Offline

    Valrix

    Are you running a windows OS? It shouldn't be using "\" since Java prefers "/". I'll see if I can do a replace statement when making the files so it should patch up that issue. If it's not that, then for some reason it's not allowing special characters when making dates and I'll have to get rid of those, which I think I'll do anyway since the only time it matters is if it actually sends it to me. Since I've kinda learned data transfer over the internet with java (upload and download) then I might have the plugin try to send me the error report directly as well as storing it on your server so if you're connected it'll let me know exactly when you have the error and you won't be forced to log in and report it to me for me to work on a fix.

    Yeah, if you switch to iConomy I can just pull the data from the database like the example they provided above. Grabbing from a file, especially a .yml without me knowing how to parse YAML would indeed make it more difficult and would clutter up my table with their data. Just using the PHP makes it much, much easier and take up barely any more space.

    It looks like it's trying to insert the SQL twice, which makes no sense since the code always clears out previous queries before making a new one. But an easy fix is since I end each query with ";" then I'll have the sql be split at that and it'll prevent it from being any longer than one statement. It doesn't seem to be causing anything more than complaints from the MySQL server and take up a bit more overhead, but after this fix that will stop and things should all work perfectly. I'm glad I made the new error logger because now it tells me all I need to know including the whole statement that broke it.

    A big thanks to you guys (and/or ladies) who've been beta testing it for me, you've been a great help! I will do one more beta test fixing the few bugs you all found and if that works right then I'll release the official one.

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

    rad1game

    Where i can find sql file to import?
     
  7. Offline

    firewalled

    It still seems to work fine here (using the second newest beta).
    Good idea with that "auto submit", however, you should make a config variable to enable and disable it.
    I would recommend that it is OFF by default. Some people tend to dislike things that "call home".

    Great plugin so far :)
    Just curious - any donaters so far??

    It creates that automatically. See other posts here.

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

    Valrix

    Yeah, it would be a configurable option. I also don't like anything that "calls home" and it's only purpose would be to help me debug since it doesn't grab any personal information, that wouldn't be right in any kind of manner. Plus I keep all my code open source so if anyone did think I could be trying to steal information they can look at my code themselves and see that it's all nice and safe.

    Thanks for the compliments :)
    And yes actually, of which I've been very appreciative to those who've donated since it has helped me pay for the internet to keep getting these updates to you guys :D

    Like @firewalled said, it automatically builds everything for you. From the config to the /lib/ and even the database connector before building the table itself then populating it as players join. It's taken a lot of work to do mind you, but it makes it a lot easier on the end user to only have to download the plugin and the Web folder. All it takes to get the config to update after you've changed it is a /reload and if all goes well it'll do it's thing. Plus nearly everything can be customized to be just as dynamic as you want it to be.

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

    rad1game

    Thx. but 1 questhion left. What i need write in "path=" in config.txt? :)
     
  10. Offline

    firewalled

    Okay, cool; Hope this adds about half a month more time to continue your development

    I don't have a "path=" entry in my configuration file.

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

    Valrix

    That's from v2, you should probably delete the config and have it build you a new one to make sure everything sets up correctly.

    Thank you much! Actually, that'll pay for nearly a month more :)

    You shouldn't, it's from the old version and the auto-configure script should have rebuilt it automatically.

    Alright Beta testers, I just put up a new build which should fix all of your problems. The log files are now saved with only one underscore and the sql is now split before being executed to make sure it doesn't try to add those extra bits out of nowhere. If all goes well I'll fix the main link and update the version number as well as update the source in the repo. Future updates will of course be posted about in the main thread and on my Twitter.

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

    rad1game

    Code:
    2011-03-29 01:22:43 [INFO] [Netstats] v3.3 has been enabled.
    2011-03-29 01:22:43 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/config.txt
    java.io.FileNotFoundException: plugins/Netstats/config.txt (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at java.io.FileWriter.<init>(FileWriter.java:46)
        at com.sparkedia.valrix.Netstats.Property.save(Property.java:96)
        at com.sparkedia.valrix.Netstats.Property.<init>(Property.java:34)
        at com.sparkedia.valrix.Netstats.Netstats.onEnable(Netstats.java:49)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 01:22:43 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/config.txt
    java.io.FileNotFoundException: plugins/Netstats/config.txt (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at java.io.FileWriter.<init>(FileWriter.java:46)
        at com.sparkedia.valrix.Netstats.Property.save(Property.java:96)
        at com.sparkedia.valrix.Netstats.Property.setInt(Property.java:200)
        at com.sparkedia.valrix.Netstats.Netstats.onEnable(Netstats.java:56)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 01:22:43 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/config.txt
    java.io.FileNotFoundException: plugins/Netstats/config.txt (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at java.io.FileWriter.<init>(FileWriter.java:46)
        at com.sparkedia.valrix.Netstats.Property.save(Property.java:96)
        at com.sparkedia.valrix.Netstats.Property.setInt(Property.java:200)
        at com.sparkedia.valrix.Netstats.Netstats.onEnable(Netstats.java:57)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 01:22:43 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/config.txt
    java.io.FileNotFoundException: plugins/Netstats/config.txt (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
        at java.io.FileWriter.<init>(FileWriter.java:46)
        at com.sparkedia.valrix.Netstats.Property.save(Property.java:96)
        at com.sparkedia.valrix.Netstats.Netstats.onEnable(Netstats.java:67)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:92)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:70)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-29 01:22:43 [SEVERE] [Netstats] Your config isn't set up. Creating one and disabling Netstats.
    2011-03-29 01:22:43 [INFO] [Netstats] v3.3 has been disabled.
    
    
    Help please! :) I wanna use this plugin :)
     
  13. Offline

    Valrix

    I tried responding earlier and the forums were acting up on me so I had to do a quick restart. Anyway, to answer your question it looks like you're have write access permission problems. Make sure that the whole plugins directory and all folders inside have read and write access

    Since I haven't seen anyone post any problems after waiting a good while I shall assume that means that everything has gone ok. I'm going to release the official build now, thanks for the help!

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

    Letalis

    I have tried to get it to work for several hours now but this is the closest I get:
    Code:
    2011-03-29 06:59:21 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/
    config.txt
    java.io.FileNotFoundException: plugins\Netstats\config.txt (The system cannot fi
    nd the path specified)
    2011-03-29 06:59:21 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/
    config.txt
    java.io.FileNotFoundException: plugins\Netstats\config.txt (The system cannot fi
    nd the path specified)
    2011-03-29 06:59:21 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/
    config.txt
    java.io.FileNotFoundException: plugins\Netstats\config.txt (The system cannot fi
    nd the path specified)
    2011-03-29 06:59:21 [SEVERE] [Netstats]: Couldn't find file plugins/Netstats/
    config.txt
    java.io.FileNotFoundException: plugins\Netstats\config.txt (The system cannot fi
    nd the path specified)
    2011-03-29 06:59:21 [SEVERE] [Netstats] Your config isn't set up. Creating on
    e and disabling Netstats.
    2011-03-29 06:59:21 [INFO] [Netstats] v3.4 has been disabled.
    2011-03-29 06:59:21 [INFO] Reload complete.
    
    
    It downloads the mysql connector and puts it in lib folder.
    But it doesnt do much more.
    Running Windows 2008 R2 x64, and I have checked the write permissions.

    If I create the folders manually I get error that it cant find user at Line 1 as several people has mention here earlier.
     
  15. Offline

    Valrix

    For this I would blame windows for using "\" instead of "/" like *nix machines. I'll try a hotfix of forcing a replace of all "\" to "/" before trying to find the file, if that doesn't work then I'm not sure what would. It create everything on it's own. Would you mind trying to make the folders yourself and post the error it gives you so I can see that as well while I do the hotfix? It would be much appreciated.
     
  16. Offline

    Letalis

    ah. It works. I downloaded the netstats.jar again and pasted the netstats folder back to the plugin folder and it works like a charm. It didnt work with either 3.3 or 3.4b but the final 3.4 works if you, manually creates the folders and files.

    Thanks for a great plugin.
    But this maybe should be fixed for other windows users :-P
     
  17. Offline

    Valrix

    Hmm, I didn't have a chance to change anything yet, but I'm doing a few changes that should make it friendly to all Operating Systems. I'm glad you got it working and I'll put out 3.5 shortly which shouldn't make a difference to those who have everything working properly but may help those who keep getting errors about file names, etc.

    If you could, would you be able to try deleting or renaming one of the files or folders and see if it makes a new one automatically to be sure it wasn't just due to an older build? I would be quite thankful.
     
  18. Offline

    Direct1221

    @Valrix - I was wondering, Would there ever be a way, or a possibility of per-world stats? As I have a creative, survival and RPG servers all in one. I would like to get specific stats for each.

    Just thought this would be a great idea to throw at you. If not, is cool too :D

    Love this by the way ;)
     
  19. Offline

    Letalis

    I'll have a look into that when I get home after work today.
     
  20. Offline

    Valrix

    If you're running 3 different servers, each with their own /plugins/ folder then it's as easy as changing the config of each one to have it's own table. That's the beauty of the customized table names. Then for the Web folder just have one for each server and change the $mysql_table of each config.php to match the table you want to get the info from.

    Ok, I'll do a bit of testing on this myself and if it seems to work fine before you respond I'll update the JAR and keep a backup of 3.4 in case 3.5 actually causes any problems and 3.4 turns out to be fine.

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

    Direct1221

    Negatory. I am running them in same server. Just different worlds. Using MultiVerse.

    Also, IP's are showing up doubled. If you want a preview PM me as I am not about to make my users IP's publicly available lol.
     
  22. Offline

    reckst4r

    It's the same. I downloaded the new version and it's still not working :/ Same error
     
  23. Offline

    Valrix

    You even tried putting in "null" as the password and it still shows an error? Hmm, well I'll just disable checking for a password then.

    That could be a bit too complex then, especially with the customizability that Netstats allows for. It would probably be possible, but it would take a lot of code re-writing to also monitor which world the player is in and each world would need a different config possibly. If I can think up a way that won't either take weeks or cause me pain then I can try to add that in.

    The easiest way I can think it would work is the main config would change depending on a few different situations. For instance if you have something like "muliWorld=true" in the main config then Netstats would create a new folder inside the Netstats folder called "worlds" and in each one would be another folder named after the ID of the different worlds that players access Netstats from. Like usual each ID-named folder would contain it's own config where you'd set the table name and what you want to be tracked, etc. sans the database info which would just be access from the main config. Each ID-named folder would also have it's own players folder to individually track user data. The main downfall of all this is your MySQL database will be getting calls almost constantly which will put a literal 3x strain than one server running it. If all this sounds good then I'll try playing around with this while I have spare time and after I've done my other planned updates seeing how this will take up the most time.

    About the IPs, please do send a PM with a snapshot of what's showing up.

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

    Direct1221

    Don't worry about it, was just a request and if it is too much trouble, I would not want to bother you with it. Was just a suggestion. I appreciate the input on the subject.

    PM will be sent shortly with Info about IP logging.
     
  25. Offline

    Valrix

    Well it does seem like a good idea though and if I can find a feasible way of doing it, especially with a decent number of servers having multiple worlds it would be nice to have monitoring for each world.
     
  26. Offline

    Direct1221

    I agree, That is why I thought of this and brought it to your attention. The only problem now is trying to find a good balance between server & database. I am glad you see the potential in this as well. I hope to see this added one day, but until then, you still have one of the best and easiest to customize statistics database. I thank you for this.
     
  27. Offline

    Valrix

    Thanks for the compliment :) I thank you for the support.

    With help from Direct1221 I was able to find another bug for certain ISPs that handle IP addresses differently. What it did was make the IP address show up twice due to how I have it cleaned up before storage. Now I hopefully fixed that and will be posting a hotfix in just a few minutes.

    UPDATE: With his help I've solved the issue and have done a few more fixes to other bits of the code to prevent a few more future bugs that could possibly occur. With that I'm updating to v3.6 now.

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

    rad1game

    Just give me txt file. -_- I try This plugin at 3 comp's and file not created...
     
  29. Offline

    Valrix

    Try the newest version of Netstats and if you're still having trouble I'll give you a blank config, though if it can't generate one on it's own, that usually means it won't be able to write to it or to anything else later on. The newest build should work though.
     
  30. Offline

    rad1game

    F*ck, yea! I love u! It works!
    Big thx :D
     
  31. Offline

    firewalled

    Tried loading in 3.6.
    When upgrading from some beta (3.4 or was it 3.5?), all players are listed as offline if they are logged in at the time of a /reload.
     

Share This Page