Giter VIP home page Giter VIP logo

gamevis's Introduction

Gamevis

Gitter

Gamevis is an open-source Electron application for visualising gameplay data developed by Saul Rennison as part of his degree dissertation.

Gamevis is unopinionated and easily fits many genres of games, and includes importers for Counter-Strike: Global Offensive and Dota 2.

Screenshot

Screenshot demonstrating two layered heatmap visualisations:

Installation

1. Prerequisites

Node & npm are already expected to be installed:

brew install libpqxx
npm install -g gulp # required for building
npm install # install app dependencies
gulp # compile JavaScript and stylesheets

2. Database

A Postgres server is by default expected to be running on localhost. The config.json file can be updated at the root of the project to specify a non-default database IP/port.

By default the server is expected to have a database named gamevis with a username and password of gamevis.

Note that no tables need to be generated - the application will automatically generate.

3. Run the app

The application can be started with npm start. However, no sessions are available by default. The importers (see below) can be used to import game sessions into the database.

Visualisations

Multiple visualisations can be show on a single visualisation (as shown in the screenshot):

  • Heatmaps
  • Timeline events (e.g., round start)
  • Discontinuous points (e.g., death location)
  • Continuous points (e.g., player movement)

Importers

Game Path Comments
Counter-Strike: Global Offensive importers/csgo Run import.js with the path to the demo file as the argument.
Dota 2: Reborn importers/dota_reborn Run import.go with the path to the .dem replay file as the argument.

Release log

Gamevis is still a work-in-progress and is not expected to be in a production-ready state until Summer 2016. However, changes are committed frequently and any issues should be raised as bugs. Of course pull requests are welcome!

Database

Gamevis expects to connect to a Postgres database of version 9.3 or later due to JSONB querying features. This section details the structure of the database tables, that are automatically generated by the game client.

The full schema is detailed in high-level_architecture.md.

Documentation

License

This project is licensed under the MIT license, see LICENSE.md for the full legalese.

Acknowledgements

gamevis's People

Contributors

saul avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamevis's Issues

Add timeline visualisation

A timeline visualisation should be added with the following features:

  • Support multiple sessions within a single visualisation
  • Slider representing time within the game, allowing the user to 'scrub' through game time
  • Events should be able to be visualised on the slider (e.g., round_start). The events to be shown on the slider should be user selectable.
  • Spatial events should be able to be plotted on the overview (as connected lines)
  • Spatial events should be able to be plotted on the overview (as disparate points)

Fix performance bottlenecks

There is a significant performance issue when performing SQL queries with a large number of results.

Although the query itself takes only 500ms, it takes JS 5 seconds.

I believe there are also additional performance issues with adding many thousands of elements to an array of objects. Vue.js is trying to observe them all when it's not necessary.

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.