Coder Social home page Coder Social logo

csgo-heatmap-generator's Introduction

csgo-heatmap-generator

A NodeJS program to generate heatmaps of kills and deaths from Counter-Strike: Global Offensive Demos

Usage

Setting up env

  1. Make sure you set your csgo directory location in a file called .env.
  2. Move any demos you want to generate heatmaps for into the demos directory.

Running

$ npm install
$ npm run build
$ npm run start

Compiling the WebAssembly

Ensure you have wasm-pack installed

If not you can install it with

$ cargo install wasm-pack

Building

$ cd image-processor
$ wasm-pack build

csgo-heatmap-generator's People

Contributors

6432 avatar char avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

voidstar0 mbr001

csgo-heatmap-generator's Issues

<anonymous>

Os: Ubuntu Ubuntu 18.04.4 LTS
Npm: 6.14.4
Node: v14.2.0

debug log: https://pastebin.com/KLr5vC6g
Let me know if you need the demos.

game@nodejs:~/csgo-heatmap-generator$ npm run start

> [email protected] start /home/game/csgo-heatmap-generator
> node ./build/index.js

Parsing de_dust2...
Parsing de_mirage...
Parsing de_dust2...
Parsing de_mirage...
Parsing de_mirage...
Parsing de_cache...
Parsing de_inferno...
Parsing de_mirage...
Parsing de_mirage...
Parsing de_overpass...
Parsing de_train...
Parsing de_overpass...
Parsing de_inferno...
Parsing de_overpass...
Parsing de_inferno...
Parsing de_inferno...
Parsing de_mirage...
Parsing de_train...
Parsing de_mirage...
Parsing de_mirage...
Parsing de_train...
/home/game/csgo-heatmap-generator/build/parser.js:97
    var _a = player.position, x = _a.x, y = _a.y;
                    ^

TypeError: Cannot read property 'position' of null
    at pushDeathPoint (/home/game/csgo-heatmap-generator/build/parser.js:97:21)
    at GameEvents.<anonymous> (/home/game/csgo-heatmap-generator/build/parser.js:65:13)
    at GameEvents.emit (events.js:315:20)
    at /home/game/csgo-heatmap-generator/node_modules/demofile/dist/gameevents.js:30:22
    at Array.forEach (<anonymous>)
    at DemoFile.<anonymous> (/home/game/csgo-heatmap-generator/node_modules/demofile/dist/gameevents.js:29:30)
    at DemoFile.emit (events.js:327:22)
    at DemoFile._parseRecurse (/home/game/csgo-heatmap-generator/node_modules/demofile/dist/demo.js:250:18)
    at processImmediate (internal/timers.js:456:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./build/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/game/.npm/_logs/2020-05-14T19_13_25_941Z-debug.log

Update README

Hi,

I am very interested in using your project but since I am new to JS, it would be very cool if you could update your README to explain more about how to use the project.

Thanks in advance,

fsevents: unsupported platform

Hi,

I am trying to get this running on windows 10 pro with node version 10.15.3.
when i am doing a "npm install --only=dev" i get the following error:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN [email protected] No repository field.

Would it be a better idea to run it on a linux dist? ubuntu or like?

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.