Raised This Month: $29 Target: $400
 7% 

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
__________________
Discord | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
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
CrazyHackGUT
AlliedModders Donor
Join Date: Feb 2016
Location: Izhevsk, Russia
Old 08-29-2019 , 16:24   Re: SourceTV Manager
Reply With Quote #77

Well, i found a problem source.
If recording started in next tick after OnMapStart(), it creates a crooked demo file. I don't know, why it has this behavior only on Linux, but on Windows it looks like works normally.

Sorry for wasting your time. Extension is great works, thanks.
__________________
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
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Old 04-20-2021 , 04:08   Re: SourceTV Manager
Reply With Quote #78

I got an error when running this extension on my TF2 server.
HTML Code:
[22] <FAILED> file "sourcetvmanager.ext.2.tf2.so": /game/tf/addons/sourcemod/extensions/sourcetvmanager.ext.2.tf2.so: undefined symbol: Warning
__________________
Sorry for my English.

Last edited by Mr_panica; 04-20-2021 at 04:09.
Mr_panica is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 05-07-2021 , 08:45   Re: SourceTV Manager
Reply With Quote #79

Thanks to shqke, you'll always find the latest builds of sourcetvmanager for download, which get build on every commit to the repository. I've added a link to the nightly builds to the first post too.

There are packages compiled against different SourceMod versions currently including binaries for all supported games: csgo, tf2, css, hl2dm, dods, l4d2, and l4d.
__________________
Peace-Maker is offline
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 15:50.


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