Giter VIP home page Giter VIP logo

Comments (11)

Dantevg avatar Dantevg commented on August 24, 2024

Hi, are you sure that the statistic sources you have selected are actually populated? For the scoreboard you can check by displaying the scoreboard objective in the sidebar, for PlaceholderAPI you can check by running /papi parse me %placeholder%. If this doesn't show the statistics then that's the problem.

Otherwise, can you upload you config file here? (btw, merry Christmas :)

from webstats.

meistaGG avatar meistaGG commented on August 24, 2024

Hey, thanks for getting back.

Running /papi parse me %placeholder%. gives only the placeholder as a response, with no statistics/data.

In any case, I selected Deaths as the only statistic in the column so far and it shows no results, even when I intentionally trigger a player death. I have attached my config file. (GitHub doesn't support native .yml so I have to compress it as a .zip)

webstats_config.zip

Merry Christmas to you too! 😄

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

In the columns you specify which columns should show, not which statistics are actually gathered. That is configured further down in the file, under "objectives" and "placeholders". By default, WebStats will gather all available scoreboard objectives (that's the "*" under objectives). (I'll admit that the config file has become quite confusing/convoluted after adding so many features over the years)

Now, I think you don't have anything installed that gives any statistic. The vanillatweaks datapacks "track statistics" and "track raw statistics" put the Deaths statistic on the scoreboard, along with many more. When you have added those datapacks, WebStats should display the Deaths statistic with your current config. Hope this helps!

from webstats.

meistaGG avatar meistaGG commented on August 24, 2024

Hey, thanks for clarifying.

I have installed both datapacks from VanillaTweaks (Track Statistics and Track Raw Statistics) and restarted the server but the page still isn't updating.

This is the output when I checked what the datapacks were tracking:

image

Could I be missing something? Do I need to set up the datapack further? (I assumed it was plug and play)

Could I also suggest putting a requirement in this wiki to say that these datapacks are a necessary requirement? 😅

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

If you display the scoreboard objective on the sidebar (I think it's called ts_deaths: /scoreboard objectives setdisplay sidebar ts_deaths), does it show the amount of deaths? These datapacks only track statistics starting from the moment they are installed, so you may need to trigger a death :)

Thanks for the suggestion, I will see where I can put this in the wiki (probably multiple pages). These datapacks aren't directly required though. WebStats is just meant to display statistics that are already gathered (and I mean statistics in general, not the ones on the statistics screen in-game). You just need some plugin or datapack that provides statistics.

from webstats.

meistaGG avatar meistaGG commented on August 24, 2024

So I checked in-game and it shows the deaths, but on the web it's still not showing 🤔

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

Can you open ip:port/stats.json in your browser and see if the stats are present there?

from webstats.

meistaGG avatar meistaGG commented on August 24, 2024

Hey,

Server IP right? Nothing is found. :-/

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

The same ip and port you entered in index.html. If that doesn't return anything there may be an error in the server console.

from webstats.

meistaGG avatar meistaGG commented on August 24, 2024

There is an output/I can see player names and online players in scoreboard, but there doesn't seem to be any stats present.
example:

{
  "online": {
    "Maarloo": true,
    "Bacenzz": true,
    "ItzRainbowMC": true
  },
  "scoreboard": {
    "entries": [
      "buseton",
      "stikybamboo",
      "MeijoGG",
      "#continue",
      "100000",
      "Dinosymptom",
      "Bacenzz",
      "beugy",
      "Steeno44",
      "ArchydaCookie",
      "buyonly",
      "skils_",
      "Maarloo",
      "0PedroSantos0",
      "AugustForster45",
      "Siga_TBH",
      "Ethanyapl7",
      "#steps",
      "catgifmax",
      "MIGHTBEMEISTA",
      "Djenssen12",
      "Autismo_Veggies",
      "FoxRio",
      "killerpanda993",
      "kyuch",
      "100",
      "_V_O_V_",
      "1200",
      "klevmeister",
      "#doTileDrops",
      "ItzRainbowMC"
    ],
    "columns": [],
    "scores": {}
  },
  "playernames": [
    "MIGHTBEMEISTA"
  ],
  "units": {}
}```

from webstats.

Dantevg avatar Dantevg commented on August 24, 2024

I really don't know what is going on. It does find a list of players that have scores on the scoreboard, but not the actual scores...

I can't reproduce this behaviour on a new/clean paper 1.20.4-355 server with WebStats 1.10.0 and using your uploaded config file, maybe you're running a weird server version or some other plugin is messing with it?

from webstats.

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.