sourcetvsupport icon indicating copy to clipboard operation
sourcetvsupport copied to clipboard

GetDynamicBaseline: FindStringIndex(0-Boomer) failed.

Open Skeletor opened this issue 1 year ago • 12 comments

Pretty mush title speaks for itself. Game crashes when attempting to load the source tv demo. Any fix?

Skeletor avatar Jan 18 '25 08:01 Skeletor

Sounds unusual, upload a demo first.

shqke avatar Jan 18 '25 13:01 shqke

L4D1 https://dropmefiles.com/HmpiR

Skeletor avatar Jan 18 '25 18:01 Skeletor

Does this happen with every demo or just one?

A1mDev avatar Jan 19 '25 02:01 A1mDev

Started happening a lot half a year ago. Nearly 50% demos are broken like that

Skeletor avatar Jan 19 '25 05:01 Skeletor

Do you know how to reproduce it?

A1mDev avatar Jan 19 '25 06:01 A1mDev

Do you have a working demo of l4d1, in versus mode?

A1mDev avatar Jan 19 '25 08:01 A1mDev

No idea how to reproduce it, have been trying to find any pattern but almost no result. For some reason most likely demo wont fail if there is only 1 player on the server.

Im running a survival-only server, so no, i dont have vs demo. I dont think gamemode has anything to do with it.

P.S. The demo begins as soon as the survival round starts with 'create_panic_event' hook. Sometimes multiple infected spawn simultaneously (all on the same tick - demo start and si spawns). Im starting to think that the source tv somehow cant handle the demo start process with multiple bot si spawns on the same tick but could be wrong. Will test early demo recordings later.

Skeletor avatar Jan 19 '25 08:01 Skeletor

Can that be due to (probably) broken sourcetv manager? I've been using that one https://github.com/peace-maker/sourcetvmanager Tested demos after switching to simply using tv_record and stoprecord commands, for now this issue doesnt seem to appear. Will report if this continues.

Skeletor avatar Jan 23 '25 10:01 Skeletor

Disable sourcetvmanager and rewrite using tv_record/stoprecord commands on same entry.

You want to use ServerExecute to maintain parity.

shqke avatar Jan 24 '25 14:01 shqke

Is it important to use ServerExecute instead of simple ServerCommand?

Skeletor avatar Jan 25 '25 18:01 Skeletor

It could be significant, yes.

ServerCommand inserts a command into a buffer to execute on next frame, while ServerExecute executes commands in the buffer immediately. Call ServerExecute after doing ServerCommand("tv_record ...") and you should have matching behavior with sourcetvmanager API.

shqke avatar Jan 25 '25 18:01 shqke

The issue still persists. This time string index was (209-Hunter). As soon as the round started there was a hunter spawn. I think my guess comes close to the truth that it has to do something with demo start and bot spawns.

Changed my code according to your suggestion. Was: ServerCommand("tv_record name.dem"); ... ServerCommand("tv_stoprecord");

Now: ServerCommand("tv_record name.dem"); ServerExecute(); ... ServerCommand("tv_stoprecord"); ServerExecute();

This is the most recent demo: https://dropmefiles.com/VgU2k

I dont know if there is a point in uploading my plugin code. Time to test early recordings (before horde event).

UPD: early demo didnt crash although there were si spawns later on. Added it to the link (crashtest.dem).

Skeletor avatar Jan 26 '25 12:01 Skeletor