sm-autodemo icon indicating copy to clipboard operation
sm-autodemo copied to clipboard

Recorded Ticks always -1

Open CrazyHackGUT opened this issue 6 years ago • 3 comments

It looks like a bug in core. recorded_ticks in TF2 always -1 in latest Core version. Required to check in another games.

{
    "start_time": 1565718510,
    "end_time": 1565722914,
    "recorded_ticks": -1
}

At the same time, current tick detects normal in events:

[
        {
            "event_name": "Core:PlayerDeath",
            "time": 1565718720,
            "tick": 14009,
            "data": {
                "client": "x",
                "victim": "y"
            }
        },
        {
            "event_name": "Core:PlayerDeath",
            "time": 1565718723,
            "tick": 14191,
            "data": {
                "client": "x",
                "victim": "z"
            }
        },
        {
            "event_name": "Core:RoundEnd",
            "time": 1565718723,
            "tick": 14191,
            "data": {}
        }
]

CrazyHackGUT avatar Aug 14 '19 05:08 CrazyHackGUT

Created post in SourceTV official thread. Can't reproduce on Windows.

CrazyHackGUT avatar Aug 16 '19 17:08 CrazyHackGUT

Problem investigated. SourceTV manager isn't related. When demo record starts from map start, it can create this "bug", and broke demo file. Fix is required for AutoDemo_EventManager.

CrazyHackGUT avatar Aug 29 '19 20:08 CrazyHackGUT

For fixing this issue, we should determine, what event called when HLTV master is ready. In engine at this moment, called function CHLTVServer::StartMaster(CGameClient*). We need trigger at this moment without any detour hooks.

CrazyHackGUT avatar Sep 08 '19 06:09 CrazyHackGUT