shqke / sourcetvsupport

Fixes broadcasting/demo recording features in Left 4 Dead
GNU General Public License v3.0
49 stars 10 forks source link

Rare bug where you can't load a demo ? #25

Closed lunatixxx closed 3 years ago

lunatixxx commented 3 years ago

Could not a load demo of swamp fever map 1, almost instant come back to menu. The only thing i was seeing in console: SetConVar: No such cvar ( stripper_current_file set to c3m1_plankcountry), skipping

I tried a few minutes later with another more recent demo of the same map and it loaded without troubles.

shqke commented 3 years ago

Sounds cool, care to share a broken demo?

lunatixxx commented 3 years ago

https://www.file.io/download/YOLcBwhulq4E

shqke commented 3 years ago

"The file you requested has been deleted"

lunatixxx commented 3 years ago

Try this: https://drive.google.com/file/d/1Yt1Ykv-z_GaYDKnrcg4o2Y78Bubif9e7/view?usp=sharing

lunatixxx commented 3 years ago

Demo is small in size as i was just testing something, did not change anything between the working demo and this one.

shqke commented 3 years ago
playbackTime: 0.01666666753590107,
playbackTicks: 1,
playbackFrames: 1,

Looks like it just ended almost immediately. Do you know how much time has it shown in console?

Example:

tv_record t; tv_stoprecord
Recording SourceTV demo to t.dem...
String Table dictionary for downloadables should be rebuilt, only found 29 of 51 strings in dictionary
String Table dictionary for soundprecache should be rebuilt, only found 16098 of 19097 strings in dictionary
String Table dictionary for Scenes should be rebuilt, only found 13106 of 15775 strings in dictionary
Completed SourceTV demo "t.dem", recording time 0.0
lunatixxx commented 3 years ago

I played the intro of the map and played a few seconds after that. Could this be because of the delay ?

lunatixxx commented 3 years ago

I have a 10 seconds delay.

shqke commented 3 years ago

Demo clearly states length of 0.02 seconds. File size of 1.9MB roughly matches the length.

This demo has ended right after it started. Perhaps you've given me a wrong file, or recording has started way too late/got reset? If you've used tv_autorecord 1, then I suggest you look up other files to identify a correct demo file.

I have a 10 seconds delay.

No, demo recording doesn't use a delay.

lunatixxx commented 3 years ago

Maybe i downloaded the demo before it finished to be compiled but it will be surprising.

shqke commented 3 years ago

Nope, it wouldn't write into header playback* summary values then.