Coder Social home page Coder Social logo

ldstats's Introduction

ldstats - Ludum Dare Ratings

Ratings API for Ludum Dare. Check it out here

Compile and run the project

Quickly using docker:

docker-compose up

Without docker:

Requirements:

npm install

Now run the server:

MONGO_URL=mongodb://[Your-mongo-conn-string]/ldstats npm start

Getting totals of event for new LD WebAPI:

https://api.ludumdare.com/vx/stats/[EVENT_ID]?pretty

{
  // ...
    "stats": {
      // ...
      "jam": 1841,
      "compo": 1104,
      // ...
    }
}

And update latest LD and those totals in ./config.json

Contributors (thanks!)

ldstats's People

Contributors

ajayyy avatar aurel300 avatar ddrkirbyisq avatar ditam avatar pjnovas avatar sibirius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ldstats's Issues

[bug] Opted-out categories break charts

Bug description:

If an author has any category from which they have opted out in every event, the chart fails to display all category series lines after the empty category. For example, if someone (ahem ;)) has opted out of "audio" every event, the "mood" and "average" chart lines will not be displayed and can not be toggled.

Reproduction steps:

  1. Select any author who has empty categories. Examples: ditam (no audio score), peace-of-cake-games (no humor or mood scores).
  2. Note the missing lines, and the error in the console, Cannot read property 'pathCoordinates' of undefined.

Percentile computation incorrect?

First of all, thanks a lot for making the very useful LDstats page, it's very cool to be able to track one's progress over the different LDs.

On one tab, you are showing the percentiles of a given jam, like this:

image

It has been discussed on the LD github, and it's also my belief, that the percentiles can only fairly be calculated based on the number of ranked games, not all games, like it's currently done. I understand that it's nice to get a better percentile "score", but games that didn't receive the required votes are not really comparable to those that did.

Details here: JamBrain/JamBrain#990

I'd be happy to get your input on my reasoning or some insight on whether you think ranking over all games might still be the better choice.

LD42 results

LD42 results are out now :)

Any way the page could automatically detect results for new events?

Cache responses from new LD API

Now that we have several LD jams coming from new ld api we are fetching several times to get the graph (i.e 5 or 6 times) per read on the site/api so we need to setup a cache and merge it with the old entries one in the same db

regression post-LD#39?

(This may not be relevant to the issue, but: Thank you for creating the site, I've always had a soft spot for colourful graphs and the like.)

After the results of LD#39 had been posted, the site was working fine.

Something must have changed, because the same message as the one displayed during LD#39 (rating) is again given now for me if I select both author and user (or just user). The author field itself (the old site) is still working fine.

(See screenshots.)

The 'offending' screen:
ldstats_regress_example

With only the 'author' filled, for comparison:
ldstats_regress_working

I've tried this on other platforms (and browsers) and with the usernames of my friends as well. I know all of that worked as well post LD#39.

New site

I know this might take a while, but the new site is working for LD 38. It would be awesome if you could make this work with the new site!

LD42 results

LD42 results are out now :)

Any way the page could automatically detect results for new events?

LD41 results are out

Don't take this as pressure or anything to fix it, just wanted to inform you.

Standings percentile graph

I find the "% Standings table" mode one of the most useful statistics displayed. The graph is nice too, but even though it displays the black line indicating "total number of entries", there is no way to display a graph scaled to that total. Essentially I would like to see the data from the "% Standings table" in a graph as well.

LD44 results

(:

Actually if these updates are possible via PR, let me know. I'm not sure if you're hosting the full database here on git.

Tab for percentile standings

This would be a new tab same as current Standings Grid but showing the percentage of each position agains the total entries.
It could be a toggle button on the current tab for a better UX.

This dependes hardly if the position at the site is refered to all entries or compo/ jam totals. Related #3

Error loading from new site API (500 Status Code, 9999 error code)

When I try to load with any user in the new site field, I get a 500 response with this content:
{"code":9999,"error":"oh! I failed to fetch user pkenney from new LD API, please issue me at https://github.com/pjnovas/ldstats/issues"}

Error occurs with:
A person who has entered the just-starting LD: http://ldstats.info/pkenney/pkenney
A person I believe has not: http://ldstats.info/justinmullin/justinmullin
Or someone who doesn't exist: http://ldstats.info/pkenney/fakename12435

You get an OK result when leaving the new site username blank, and only loading from the old site:
http://ldstats.info/pkenney/ (200 or 304 response w valid content)

Errors loading users with new ldjam games

I am getting "Author or Username not found" errors with a 500 response code, and the response body:
{"code":9999,"error":"oh! I failed to fetch user steve from new LD API, please issue me at https://github.com/pjnovas/ldstats/issues"}

Here are two examples of failing calls:
http://ldstats.info/pkenney/pkenney
http://ldstats.info/steve/steve

Requests hitting only the old site (w no username specified for new site) don't have this issue, for example:
http://ldstats.info/pkenney/

Users which have no games on the new site at all don't fail even if you specify their name for the new site, for example:
http://ldstats.info/justinmullin/justinmullin

Some users which have some new games do still work, but I can't figure out exactly what the difference is, for example this is fine:
http://ldstats.info/managore/managore

9999 looks like the uncaught error in newAPI.js, but it wasn't clear from a quick check exactly what was going wrong.

HTTPS Link in Social Links

The links to ldstats.info/ are all https://ldstats.info when sharing to Google+, Facebook or Twitter, but your page does not seem to support https, so the browser will just display:

Unable to connect

in Firefox and

This webpage is not available
ERR_CONNECTION_REFUSED

in Chrome.

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.