Raised This Month: $99 Target: $400
 24% 

SourceTV Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-02-2019 , 05:58   Re: SourceTV Manager
Reply With Quote #71

Here's an build against/for sourcemod 1.10. Link to sourcecode (and other informations like OS): https://github.com/peace-maker/sourcetvmanager/pull/10
__________________
Bara is online now
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 08-03-2019 , 12:22   Re: SourceTV Manager
Reply With Quote #72

Can somoone run latest build of this extension on Linux? I tried run on CS:S in October 2018 and now on TF2. Always extension doesn't loaded with error undefined symbol: Warning
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 08-03-2019 , 17:13   Re: SourceTV Manager
Reply With Quote #73

After recompiling with Clang, extension started on TF2.
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 08-14-2019 , 01:20   Re: SourceTV Manager
Reply With Quote #74

Ok, it looks strange, so i write here.
Game Team Fortress 2, SourceMod v1.9.0.6237, extension v1.1.1 (manually builded from sourcecode with CLang).

All works good, but SourceTV_GetRecordingTick() always return -1.
I have code:
Code:
void Recorder_Stop() {
  Recorder_Validate(); // this is stock just checks, recording in progress or not. if not - throws an error.

  int iRecordedTicks = SourceTV_GetRecordingTick();
  SourceTV_StopRecording();
  g_bRecording = false;
  g_iEndTime = GetTime();

  char szDemoPath[PLATFORM_MAX_PATH];
  int iPos = FormatEx(szDemoPath, sizeof(szDemoPath), "%s/%s", g_szBaseDemoPath, g_szDemoName);

  strcopy(szDemoPath[iPos], sizeof(szDemoPath)-iPos, ".json");
  JSONObject hMetaInfo = new JSONObject();
  hMetaInfo.SetInt("start_time",      g_iStartTime);
  hMetaInfo.SetInt("end_time",        g_iEndTime);
  hMetaInfo.SetInt("recorded_ticks",  iRecordedTicks);
  hMetaInfo.SetString("unique_id",    g_szDemoName);
  hMetaInfo.SetString("play_map",     g_szMapName);
  // ... more code for writing JSON too ...
  // ... saving JSON ...
}
Note: i write recorded_ticks with value from SourceTV_GetRecordingTicks(). Native called before stopping record.
All looks good, but in JSON:
Code:
{
    "start_time": 1565718510,
    "end_time": 1565722914,
    "recorded_ticks": -1,
    // more additional fields...
}
What i do wrong?
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 08-14-2019 , 07:57   Re: SourceTV Manager
Reply With Quote #75

Are you on windows or linux? I just downloaded a fresh tf2 server on windows and tested the native using the test plugin. "sm_recordtick" returns an increasing number, so I guess it's working? Are you sure you're actually recording?

Edit: Well, since you've recompiled using clang you're on linux. I'll see what's going on there too.
__________________

Last edited by Peace-Maker; 08-14-2019 at 07:58.
Peace-Maker is offline
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 08-14-2019 , 16:32   Re: SourceTV Manager
Reply With Quote #76

On Linux, yes. When i running test TF2 server on Windows, all looks good, as you said.
__________________
My english is very bad. I am live in Russia. Learning english language - very hard task for me...
CrazyHackGUT is offline
Send a message via ICQ to CrazyHackGUT Send a message via Skype™ to CrazyHackGUT
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:50.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode