Giter Site home page Giter Site logo

Comments (3)

yaniv-aknin avatar yaniv-aknin commented on August 16, 2024

Heya, thanks for this idea!

Here's what I got to so far:

SELECT
  g.id game_id,
  g.startTime game_start_time,
  ROUND(TIMESTAMP_DIFF(g.endTime, g.startTime, SECOND)/60, 1) game_duration_minutes,
  g.replayUrl game_replay_url,
  ARRAY_LENGTH(g.playerStats_gamePlayerStats) game_total_players,
  validity game_validity,

  mapVersion_mapVersion.map_map.displayName map_name,
  faf.GEOMETRY_NAME(mapVersion_mapVersion.width, mapVersion_mapVersion.height) map_geometry,
  mapVersion_mapVersion.thumbnailUrlLarge map_thumbnail,

  ps.result player_result,
  faf.FACTION_NAME(ps.faction) player_faction,
  ps.player_player.id player_id,
  ps.player_player.login player_login,
  ROUND(ps.beforeMean - 3 * ps.beforeDeviation, 1) player_before_rating,
  ROUND(ps.afterMean - 3 * ps.afterDeviation, 1) player_after_rating,

FROM `fafalytics.faf.games_denorm` g
CROSS JOIN UNNEST(playerStats_gamePlayerStats) ps
WHERE featuredMod_featuredMod.displayName = "Coop"

This yields this data, which is quite surprising. Not that many games, and for example the top rated coop game is missing (!).

That's good, because you probably helped me find a problem in how I scraped data from FAF servers, but it will take me some time to look into what did I screw up and fix it. :)

from fafanalysis.

yaniv-aknin avatar yaniv-aknin commented on August 16, 2024

OK, I found the problem; the games_denorm view was using an INNER JOIN on the map, and apparently many coop games don't have a map associated with them (for reasons I still don't understand; but you can see that the top rated game from before has null for a mapversion relationship).

Once I switched to using LEFT JOIN, I found ~1.3M games with the above query, which makes a lot more sense. I'll let you know when might I finish the associated analyses (processing replays for 1.3M games might be a challenge).

from fafanalysis.

Itsgotime45 avatar Itsgotime45 commented on August 16, 2024

I appreciate the work your doing. I will be waiting for the analyses. Thanks again.

from fafanalysis.

Related Issues (15)

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.