AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   SourceTV Manager (https://forums.alliedmods.net/showthread.php?t=280402)

Peace-Maker 03-15-2016 10:48

SourceTV Manager
 
SourceTV Manager

Interface to interact with the SourceTV server from SourcePawn.
https://github.com/peace-maker/sourcetvmanager

Lets you access SourceTV servers and interact with the spectators as well as handle demo recording.

API
There are a few natives and forwards in the include file for
  • Basic SourceTV information (stats, delay, active)
  • Interacting with spectators (chat/console messages, kick, ip, name)
  • Forcing camera shots on the director
  • Demo recording (filename, recording tick, print message to demo console)

Steam authentication
By default, SourceTV spectators aren't authenticated with Steam. This extension adds a
tv_force_steamauth convar to enable authentication on spectator clients.
Currently this prevents SourceTV relay proxy clients from connecting though :(

"status" command in demos
There is special effort done in this extension to have the "status" output recorded in SourceTV demos, so you can easily identify players when watching the demo. Just do
PHP Code:

FakeClientCommand(SourceTV_GetBotIndex(), "status"); 

I've only tested this in CS:GO and CS:S, but the TF2 gamedata was the same as CS:S, so odds are good it's working on all OBV games.

Download
Sourcecode
Gamedata

Look here for examples how to use the natives.

Thanks to GoD-Tony and asherkin.

Emp` 03-15-2016 12:58

Re: SourceTV Manager
 
Looks good, absolutely useful :bacon:

Φ ϴ

good_live 03-16-2016 02:24

Re: SourceTV Manager
 
Nice one. Goign to check it out later :)

nosoop 03-16-2016 19:06

Re: SourceTV Manager
 
The extension appears to be calling the SourceTV_OnSpectatorPutInServer forward multiple times for the same SourceTV client, an additional one per connect.

It also doesn't seem to be calling SourceTV_OnSpectatorDisconnect or the disconnected variation.

Edit: This is occurring on Team Fortress 2.

Here's some server console spew from the test plugin.

Client "Pikachu on LSD" connected (*:27005).
SourceTV client 1 connected. (isconnected 1)
SourceTV spectator is connecting! Name: Pikachu on LSD, pw: *, ip: *
*:27005:reconnect
Dropped Pikachu on LSD from server (Connection closing)
Client "Pikachu on LSD" connected (*:27005).
SourceTV client 1 connected. (isconnected 1)
SourceTV client 1 put in server.
SourceTV client 1 put in server.
SourceTV client 1 put in server.
SourceTV client 1 put in server.
SourceTV client 1 put in server.
SourceTV client 1 put in server.
[omitted a bunch more]
Dropped Pikachu on LSD from server (Disconnect by user.)
sm plugins unload sourcetv_test
[SM] Plugin sourcetv_test.smx unloaded successfully.


Awesome work though; I've been wanting some SourceTV support.

Peace-Maker 03-17-2016 07:38

Re: SourceTV Manager
 
1 Attachment(s)
Quote:

Originally Posted by nosoop (Post 2403132)
The extension appears to be calling the SourceTV_OnSpectatorPutInServer forward multiple times for the same SourceTV client, an additional one per connect.

It also doesn't seem to be calling SourceTV_OnSpectatorDisconnect or the disconnected variation.

Are you on linux?

EDIT: Try the attached version including this change. It's all been about not catching spectator disconnects, so they weren't unhooked. The extension added another hook on the same cached hltvclient instance when a new spectator joined on the same slot, so OnSpectatorPutInServer was called multiple times.

nosoop 03-17-2016 17:01

Re: SourceTV Manager
 
Yeah, forgot to mention I'm on Linux. New one works as expected; thanks!

good_live 04-11-2016 14:49

Re: SourceTV Manager
 
My Server keeps crashing, whenever im trying to start to record a demo.

Game: CS:GO
Sourcemod Version: 1.7

Root: Debian 8

Crashreport: https://crash.limetech.org/oomotcfsdgud

Would be nice if you could take a look at it.

iGANGNAM 04-12-2016 01:22

Re: SourceTV Manager
 
I haven't tried this yet, but I can say it would save alot of time...
Is there any possibility to cut demo?

I would love to see this extension cooperating with this plugin https://forums.alliedmods.net/showthread.php?t=279296

Peace-Maker 04-12-2016 04:16

Re: SourceTV Manager
 
Quote:

Originally Posted by iGANGNAM (Post 2410309)
I haven't tried this yet, but I can say it would save alot of time...
Is there any possibility to cut demo?

I would love to see this extension cooperating with this plugin https://forums.alliedmods.net/showthread.php?t=279296

Cut the demo? What do you have in mind?


I'll have a look at the crash later.

iGANGNAM 04-12-2016 13:28

Re: SourceTV Manager
 
Quote:

Originally Posted by Peace-Maker (Post 2410318)
Cut the demo? What do you have in mind?


I'll have a look at the crash later.

Let's say that map has 20 minutes and player was banned on 9 minute of the map so it could cut demo and it would be only from 4 minute to 9 min only (instead of 20 mins) and than it could be easily uploaded to sourcebans and attached as demo of course. (https://forums.alliedmods.net/showthread.php?t=279296)
So main thing that "MAIN" demo should not be stopped because other player can be banned like after few mins.

I bet 100% would love this feature! :)


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

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