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:
parent
1cb6d881b6
commit
365dd7fd38
2 changed files with 6 additions and 3 deletions
|
|
@ -18,8 +18,11 @@ var PacketStringTable = function (stream) {
|
||||||
PacketStringTable.prototype.parse = function () {
|
PacketStringTable.prototype.parse = function () {
|
||||||
//todo
|
//todo
|
||||||
// https://coldemoplayer.googlecode.com/svn/branches/2.0/code/plugins/CDP.Source/Messages/SvcCreateStringTable.cs
|
// https://coldemoplayer.googlecode.com/svn/branches/2.0/code/plugins/CDP.Source/Messages/SvcCreateStringTable.cs
|
||||||
|
this.stream._index = this.stream._view._view.length * 8;
|
||||||
return this.searchIds();
|
return {
|
||||||
|
packetType: 'stringTableTODO'
|
||||||
|
};
|
||||||
|
//return this.searchIds();
|
||||||
};
|
};
|
||||||
|
|
||||||
PacketStringTable.prototype.parsePlayerInfo = function () {
|
PacketStringTable.prototype.parsePlayerInfo = function () {
|
||||||
|
|
|
||||||
2
test.js
2
test.js
|
|
@ -1,7 +1,7 @@
|
||||||
var Demo = require('./demo');
|
var Demo = require('./demo');
|
||||||
var fs = require('fs');
|
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;
|
if (err) throw err;
|
||||||
var demo = Demo.fromNodeBuffer(data);
|
var demo = Demo.fromNodeBuffer(data);
|
||||||
var parser = demo.getParser();
|
var parser = demo.getParser();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue