mikeemoo / jsgo Goto Github PK
View Code? Open in Web Editor NEWA javascript library for reading CS:GO demo files
A javascript library for reading CS:GO demo files
Hi,
I know exist event on fire and death. I find in player.getData()
information about damage per player m_iMatchStats_Damage
. But i can't find informations about hits and damage per weapon. How to get this informations?
I installed it and tried running it on a few of my demos that I recorded today, but all it's logging is "cant find entity 4" or "cant find entity 7" etc. However, jsgo works perfectly fine with the .dem that's included in the npm package. Yes, I made sure that I have the latest jsgo.
I used the round scores example.
Hi, I tried to use 'npm i' to install the package, unfortunately, it is not up to date.
When attempting to run either browser examples the browser console will return Buffer is not defined. Wondering if their is any easy solution?
Hello,
It seems to not work with recent demos, somebody got this working? :)
Somewhere disappeared method signedVarInt32
/project/node_modules/jsgo/lib/jsgo.js:1209
return stream.signedVarInt32();
^
TypeError: Object #<BitStream> has no method 'signedVarInt32'
at Entity.decodeInt (/project/node_modules/jsgo/lib/jsgo.js:1209:31)
at Entity.decodeProperty (/project/node_modules/jsgo/lib/jsgo.js:1164:60)
at Entity.readFromStream (/project/node_modules/jsgo/lib/jsgo.js:1115:39)
at Demo.handlePacketEntities (/project/node_modules/jsgo/lib/jsgo.js:1843:48)
at Demo.parsePacket (/project/node_modules/jsgo/lib/jsgo.js:1768:30)
at Demo.parse (/project/node_modules/jsgo/lib/jsgo.js:1634:26)
at new CSGOParser (/project/parser/csgo.js:42:15)
at parse (/project/index.js:40:22)
at /project/index.js:102:13
at fs.js:272:14
at Object.oncomplete (fs.js:108:15)
I've found a problem with some demos:
After parsing 447 to 449 ticks, the parser while hang.
fs.readFile(args[0], function(err, data) {
var demo = new jsgo.Demo();
var tick_count = 0;
demo.on('tick', function() {
console.log(tick_count++);
});
demo,parse(data);
});
The parsing never finishes and the application just hangs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.