nydus / heroprotocol

heroprotocol is a Javascript port of Blizzard/heroprotocol for Heroes of the Storm .StormReplay parsing
Other
19 stars 10 forks source link

Recent decoders are missing (since 2020/08) #26

Closed reaby closed 4 years ago

reaby commented 4 years ago
2020-08-28 20.07.08 Blackheart's Bay.StormReplay
{
  m_signature: 'Heroes of the Storm replay\u001b11',
  m_version: {
    m_flags: 1,
    m_major: 2,
    m_minor: 51,
    m_revision: 2,
    m_build: 81376,
    m_baseBuild: 81376
  },
  m_type: 2,
  m_elapsedGameLoops: 14493,
  m_useScaledTime: false,
  m_ngdpRootKey: { m_data: '\u000f\u000e���\u0018�is��)E' },
  m_dataBuildNum: 81376,
  m_replayCompatibilityHash: {
    m_data: '\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'
  }
}
TypeError: Cannot read property 'decodeReplayHeader' of undefined
    at openArchive (D:\dev\nodejs\herostats\node_modules\heroprotocol\index.js:104:58)
    at Object.exports.extractFileJS (D:\dev\nodejs\herostats\node_modules\heroprotocol\index.js:132:13)
    at Object.exports.get (D:\dev\nodejs\herostats\node_modules\heroprotocol\index.js:124:20)
    at Object.buildStats (D:\dev\nodejs\herostats\src\BuildStats.ts:59:42)
    at Object.<anonymous> (D:\dev\nodejs\herostats\src\index.ts:7:7)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Module.m._compile (D:\dev\nodejs\herostats\node_modules\ts-node\src\index.ts:858:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Object.require.extensions.<computed> [as .ts] (D:\dev\nodejs\herostats\node_modules\ts-node\src\index.ts:861:12)
    at Module.load (internal/modules/cjs/loader.js:1002:32)

Seems that last supported decoder is named protocol80702.js. For my use-case it's not a big loss, i just generate some stats for own use, so i miss just a month of replays. Anyway I think it's worth of mention most recent protocols are not supported.

jnovack commented 4 years ago

Did you re-run postinstall.js?

jnovack commented 4 years ago

Running postinstall.js grabs all the decoders from Blizzard's official repository. If they don't have it, you can't get it. Sorry, but Blizzard killed Heroes over 2 years ago. Nothing more I can do.