Code Monkey home page Code Monkey logo

Comments (13)

pdinklag avatar pdinklag commented on July 17, 2024

Edit: it seems it will load someone once they login. It doesnt load anyone that was logged already when installed. Am I correct in saying this?

Nope, anybody should be eligible really. However, did all 259 people join in the last week? If they are from old server versions (before 1.13), they may not appear until they log in and their data is upgraded by the server. Or did you maybe use a --min-playtime and they simply didn't play that long?

How can I get a space in server name when doing --server-name. If I add a space to server name it wont work

Put it in quotes, e.g., --server-name "A name with spaces".

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

Edit: it seems it will load someone once they login. It doesnt load anyone that was logged already when installed. Am I correct in saying this?

Nope, anybody should be eligible really. However, did all 259 people join in the last week? If they are from old server versions (before 1.13), they may not appear until they log in and their data is upgraded by the server. Or did you maybe use a --min-playtime and they simply didn't play that long?

How can I get a space in server name when doing --server-name. If I add a space to server name it wont work

Put it in quotes, e.g., --server-name "A name with spaces".

Server was started on 1.14.2 everyone joined in the past 2 weeks yes. It's not loading some people. Min playtime is 60mins, but the people have over that I'll do the quotes thanks. Amazing thing you made here, really impressed with it

from minecraftstats.

pdinklag avatar pdinklag commented on July 17, 2024

Amazing thing you made here, really impressed with it.

Thank you! :-)

Server was started on 1.14.2 everyone joined in the past 2 weeks yes. It seems to load them once they relogged if I installed the stats while they were online so no issues there.

Hm, it's still strange and shouldn't be this way. Is there any log output that may hint that something's wrong?

What the script does to find players first is scan the server's usercache.json to map UUIDs and names. Are the affected players in that JSON file? If they aren't, they will be added once they relog, so that may be one cause.

After that, the script checks for statistic JSON files for each known UUID, but any player who ever joined the server will have a JSON file, so this shouldn't fail.

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

Amazing thing you made here, really impressed with it.

Thank you! :-)

Server was started on 1.14.2 everyone joined in the past 2 weeks yes. It seems to load them once they relogged if I installed the stats while they were online so no issues there.

Hm, it's still strange and shouldn't be this way. Is there any log output that may hint that something's wrong?

What the script does to find players first is scan the server's usercache.json to map UUIDs and names. Are the affected players in that JSON file? If they aren't, they will be added once they relog, so that may be one cause.

After that, the script checks for statistic JSON files for each known UUID, but any player who ever joined the server will have a JSON file, so this shouldn't fail.

I edited my comment as you were replying oops. "everyone joined in the past 2 weeks yes. It's not loading some people. Min playtime is 60mins, but the people have over that"

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

Ok just checked. Someone logged in, i ran update.py and they didnt appear. They relogged and i ran it again and they appeared. After running it the second time I see this "updating skin for xX_Brassman_Xx ...
"

from minecraftstats.

pdinklag avatar pdinklag commented on July 17, 2024

Hm well, the only idea I have right now is that the players aren't contained in the usercache.json for some reason and they only appear in there after relogging. Could you check if there are any players who appear in the usercache.json but not in the stat browser?

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

Where is that file located? It’s not located in root of the folder

from minecraftstats.

pdinklag avatar pdinklag commented on July 17, 2024

It should be in your server's folder - same as the Minecraft server jar, not Minecraft Stats.

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

The guy who isn’t displayed isn’t in usercache.json. His name is weedsmoker419

from minecraftstats.

pdinklag avatar pdinklag commented on July 17, 2024

OK, then that's the issue.
That file is maintained by the server to resolve player IDs to names. Minecraft Stats uses it for the same purpose.

If somebody doesn't show up there and isn't in the stats database yet, he won't be found until he logs into the server and is added to that file (possibly with some delay as for your Brassman example).

The cache entries usually a take a few weeks to expire, so not sure why your players aren't in there anymore. Maybe the file was deleted for some reason? Anyway, it's nothing that I can fix as it's part of the Minecraft server. You'll have to wait for your players to relog then. :\

(I could get the player name for an ID from the Mojang servers like I do for skins, but that would be too expensive to do every time update.py is used)

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

OK, then that's the issue.
That file is maintained by the server to resolve player IDs to names. Minecraft Stats uses it for the same purpose.

If somebody doesn't show up there and isn't in the stats database yet, he won't be found until he logs into the server and is added to that file (possibly with some delay as for your Brassman example).

The cache entries usually a take a few weeks to expire, so not sure why your players aren't in there anymore. Maybe the file was deleted for some reason? Anyway, it's nothing that I can fix as it's part of the Minecraft server. You'll have to wait for your players to relog then. :\

(I could get the player name for an ID from the Mojang servers like I do for skins, but that would be too expensive to do every time update.py is used)

Nah I never deleted it . Is there a way to add people manually? Also thanks for the fast replies, appreciate the support

from minecraftstats.

pdinklag avatar pdinklag commented on July 17, 2024

Is there a way to add people manually?

Not yet, but I opened #46 for that (name may be a bit cryptic :-D ). Won't get to implementing it before next week I'm afraid.

from minecraftstats.

lukeeexd avatar lukeeexd commented on July 17, 2024

They have shown up now

from minecraftstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.