1
0
Fork 0
mirror of https://github.com/demostf/demo.js synced 2026-06-04 00:54:14 +02:00

skip string table packets

This commit is contained in:
Robin Appelman 2015-02-04 22:18:55 +01:00
commit 365dd7fd38
2 changed files with 6 additions and 3 deletions

View file

@ -18,8 +18,11 @@ var PacketStringTable = function (stream) {
PacketStringTable.prototype.parse = function () {
//todo
// https://coldemoplayer.googlecode.com/svn/branches/2.0/code/plugins/CDP.Source/Messages/SvcCreateStringTable.cs
return this.searchIds();
this.stream._index = this.stream._view._view.length * 8;
return {
packetType: 'stringTableTODO'
};
//return this.searchIds();
};
PacketStringTable.prototype.parsePlayerInfo = function () {

View file

@ -1,7 +1,7 @@
var Demo = require('./demo');
var fs = require('fs');
fs.readFile("upward.dem", function (err, data) {
fs.readFile("bin/54cbce7f7479dmatch-20150130-1912-cp_process_final.dem", function (err, data) {
if (err) throw err;
var demo = Demo.fromNodeBuffer(data);
var parser = demo.getParser();