sm-autodemo
                                
                                 sm-autodemo copied to clipboard
                                
                                    sm-autodemo copied to clipboard
                            
                            
                            
                        Recorded Ticks always -1
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": {}
        }
]
Created post in SourceTV official thread. Can't reproduce on Windows.
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.
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.