The New SCM Inspect links look like this:
steam://run/730//+csgo_econ_action_preview%208797442A0A1436869FBBA73D8DAF82B783BF5D25496984C74785EF86F790AD4DCFCB
This looks very similar to links generated by this Library:
steam://rungame/730/76561202255233023/+csgo_econ_action_preview%2000183C20BA0A280538DB97C3EC0340E906FB90AC60
But for some reason, the decoder does not work for both SCM + Inventory Inspect links. Heres a minimal Example:
import { CS2Inspect } from 'cs2-inspect-lib';
const cs2 = new CS2Inspect();
const scmLink = 'steam://run/730//+csgo_econ_action_preview%20CEDE6B35716D7FCFD6F2EE74C4E6CBFECAF6066E2A21CD8E50CBA6D0BED9C3D4632E'
const decoded = cs2.decodeMaskedUrl(scmLink)
console.log(decoded);
This throws:
DecodingError: Invalid wire type: 6
at new DecodingError (/home/liam/code/playground/inspecter/node_modules/cs2-inspect-lib/dist/errors.js:92:9)
at ProtobufReader.readTag (/home/liam/code/playground/inspecter/node_modules/cs2-inspect-lib/dist/protobuf-reader.js:153:19)
at ProtobufReader.decodeMaskedData (/home/liam/code/playground/inspecter/node_modules/cs2-inspect-lib/dist/protobuf-reader.js:330:56)
at decodeMaskedFromAnalyzed (/home/liam/code/playground/inspecter/node_modules/cs2-inspect-lib/dist/index.js:74:49)
at CS2Inspect.decodeMaskedUrl (/home/liam/code/playground/inspecter/node_modules/cs2-inspect-lib/dist/index.js:126:16)
at file:///home/liam/code/playground/inspecter/index.js:6:22
at ModuleJob.run (node:internal/modules/esm/module_job:430:25)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
code: 'DECODING_ERROR',
context: { fieldNumber: 220649, wireType: 6, tag: 1765198 }
}
Am i just lost in the sauce here or could there be a way to get this to work? I have seen that the SCM Links work on this site: https://cs2inspects.com/ so there should be a way to get this to work.
Thanks in advance for any help! :)
The New SCM Inspect links look like this:
steam://run/730//+csgo_econ_action_preview%208797442A0A1436869FBBA73D8DAF82B783BF5D25496984C74785EF86F790AD4DCFCBThis looks very similar to links generated by this Library:
steam://rungame/730/76561202255233023/+csgo_econ_action_preview%2000183C20BA0A280538DB97C3EC0340E906FB90AC60But for some reason, the decoder does not work for both SCM + Inventory Inspect links. Heres a minimal Example:
This throws:
Am i just lost in the sauce here or could there be a way to get this to work? I have seen that the SCM Links work on this site: https://cs2inspects.com/ so there should be a way to get this to work.
Thanks in advance for any help! :)