demoparser icon indicating copy to clipboard operation
demoparser copied to clipboard

[CS2] EntityNotFound and IllegalPathOp

Open BlackYuzia opened this issue 7 months ago • 5 comments

Description

I use @laihoe/demoparser2 npm pkg with:

const event = parseEvent(buffer, "player_death");

Issues

  1. EntityNotFound 003751427519560024544_0081877035.dem
  2. IllegalPathOp 003751260557001359965_1985019266.dem

Error

const allEvents = parseEvents(pathToDemo, ["all"]); // same with parseEvent(buffer, "player_death") or parseTicks(buffer)
                  ^


Error: EntityNotFound
    at <anonymous> (D:\Work\My Work Set\My Repo\NodeJS\cs2-demo\src\index.ts:32:19)   
    at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5) { 
  co

Demos metadata (header & events list)

https://pastebin.com/inw6B9uR

Demo files

Both demos are fresh and made by valve (offical) HLTV

  1. http://replay187.valve.net/730/003751427519560024544_0081877035.dem.bz2
  2. http://replay273.valve.net/730/003751260557001359965_1985019266.dem.bz2

BlackYuzia avatar May 10 '25 20:05 BlackYuzia

I can confirm that this happens with POV demos, EntityNotFound.

Go into any server and run "record <name" and then "stop". That .dem file will get this error.

Porcellacion avatar May 20 '25 08:05 Porcellacion

I can confirm that this happens with POV demos, EntityNotFound.

Go into any server and run "record <name" and then "stop". That .dem file will get this error.

POV Demos i tried work just fine (tried to record in premier, dm and surf server). Do you have an example? is it maybe recorded on some custom server with some plugins?

LaihoE avatar May 29 '25 09:05 LaihoE

Hello, I have the same problem (EntityNotFound) when trying to parse player info.

Demo URL: http://replay388.valve.net/730/003754242146920563056_1898021594.dem.bz2

const players: PlayerType[] = parsePlayerInfo(demoFilePath);

paweldepta avatar Jun 20 '25 10:06 paweldepta

Hmm, seeing this locally but not in production

switz avatar Aug 19 '25 04:08 switz

Been having the same issue. Any luck how to debug this?

SoulxSlayer avatar Aug 20 '25 09:08 SoulxSlayer