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
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:
Download Nightly build Sourcecode Gamedata Look here for examples how to use the natives. Thanks to GoD-Tony and asherkin. |
Re: SourceTV Manager
Looks good, absolutely useful :bacon:
Φ ϴ
|
Re: SourceTV Manager
Nice one. Goign to check it out later :)
|
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. |
Re: SourceTV Manager
1 Attachment(s)
Quote:
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. |
Re: SourceTV Manager
Yeah, forgot to mention I'm on Linux. New one works as expected; thanks!
|
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. |
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 |
Re: SourceTV Manager
Quote:
I'll have a look at the crash later. |
Re: SourceTV Manager
Quote:
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! :) |
Re: SourceTV Manager
sorry i'm noob
could some1 tell me when this extension would be of use? |
Re: SourceTV Manager
Quote:
Otherwise, it provides a few new possibilities:
Now that I'm thinking about it, I wonder how complicated it'd be to get chat messages from SourceTV. |
Re: SourceTV Manager
Quote:
|
Re: SourceTV Manager
Quote:
|
Re: SourceTV Manager
Quote:
Changes are:
|
Re: SourceTV Manager
Hey,
since the latest updates it is crashing again, when i am trying to do smth demo related (in this case i tried to get the tick). Sourcemod 1.7 OS: Debian 8 Crashlog: https://crash.limetech.org/fc36hjb5ip4m |
Re: SourceTV Manager
Just wanted to know if is possible to use this in L4D2 as it is not fully implemented.
|
Re: SourceTV Manager
1 Attachment(s)
Quote:
try adding this to the gamedata file Code:
"l4d2" |
Re: SourceTV Manager
Version 1.0.2 is out. Grab it here!
This only includes some fixes for CS:GO:
|
Re: SourceTV Manager
Thanks for the extension. It seems is loading but some errors do appear:
Quote:
|
Re: SourceTV Manager
Have you added the gamedata info for l4d2 to the gamedata file?
|
Re: SourceTV Manager
Hello Peace-Maker
The server keeps crashing.
Spoiler
|
Re: SourceTV Manager
Grab the latest gamedata from the repository.
|
Re: SourceTV Manager
Sadly, it keeps on crashing in CS:GO, even when using the latest gamedata.
System is a linux debian 7. Stacktrace: Code:
CRASH: Tue Aug 16 23:06:04 CEST 2016 |
Re: SourceTV Manager
I just checked the windows gamedata. I'll have a look at linux as well.
Updated. |
Re: SourceTV Manager
Still crashing:
Code:
---------------------------------------------- |
Re: SourceTV Manager
confirmed https://crash.limetech.org/hkthz6szy6f4
you can add me for testing: http://steamcommunity.com/id/therealkiko |
Re: SourceTV Manager
Seems like the code has to be changed... I tried changing the "read" value from 0 all up the way to 12, but the server crashed every time.
|
Re: SourceTV Manager
It would be really nice if we could get this extension working on linux too..
Wanting to install a plugin to auto record everything, only thing is that it's crashing the server (see log above). |
Re: SourceTV Manager
Updated to 1.0.3 to fix that crashing in CS:GO on linux. Sorry for the delay.
Future updates shouldn't require a new build but only gamedata changes now. Changes:
|
Re: SourceTV Manager
Thanks, works fine now!
|
Re: SourceTV Manager
Updated to Version 1.1
Adds spectator chat interaction! Changelog:
|
Re: SourceTV Manager
Code:
[SM] Unable to load extension "sourcetvmanager.ext": /home/server/tf/addons/sourcemod/extensions/sourcetvmanager.ext.2.tf2.so: undefined symbol: Warning Might need to be built with Clang? Had the same symbol message when I was testing out a modified SDKTools extension built on GCC. Edit: Looks like building with Clang did the trick. Edit 2: It's been a while since I worked with the extension, but since someone was trying to join a game from a relay, I decided to look into it again. A multi-forward bug appears to actually still be present; client appears to be forcing a reconnect (internet:27005:reconnect in the output below), but only when the extension is loaded. Increases by one connection between map changes. Here's sample output from sourcetv_test after a few map changes.
Spoiler
After reconnecting, the number of times the event is forwarded is reset. |
Re: SourceTV Manager
Oh, I used the older gcc-4.8 to avoid that, but there seem to be problems still.
The server forces the client to reconnect? Can you elaborate? Do you have tv_force_steamauth set to 1? I don't think I tested during mapchanges, so the extension might not catch the "disconnect" and keep hooking the client? |
Re: SourceTV Manager
Built it with clang-3.4 here.
I'm not sure which side is forcing the reconnection; all I know is that <ip>:<port>:reconnect shows up in the server console after reconnecting. No disconnect message before the map change, so it may be possible that the spectator disconnect on map change isn't being processed. Further testing; the forward count actually isn't being reset on reconnect, and the <ip>:<port>:reconnect message shows up whether I use retry or connect <serverip>:<tvport>. SourceTV_OnServerStart is also fired at some point after the map change, though I don't see SourceTV_OnServerShutdown being called. Haven't modified tv_force_steamauth; it's unchanged from 0. |
Re: SourceTV Manager
I've fixed part of it here. OnDisconnect isn't called for sourcetv spectators during mapchanges, but OnClientPutInServer is after they loaded the new map. Should I mimic the core forwards and always call the disconnect forwards on mapchange and the onconnect ones after mapchange? There is no "player_disconnect" event to catch actual disconnects for sourcetv clients though.
|
Re: SourceTV Manager
I don't think it'd matter too much if the extension forwards differ from the SourceMod core forwards.
Compiled and installed the latest source and seems to work as expected in testing (no multiple forward calls and client reconnections). I'll drop it into my normal server and see if I run into any issues there. Thanks! |
Re: SourceTV Manager
Did any gamedata update (I'm using the latest)? Simply testing FakeClientCommand(SourceTV_GetBotIndex(), "status") will crash my Linux server.
Quote:
|
Re: SourceTV Manager
Quote:
|
Re: SourceTV Manager
Quote:
|
All times are GMT -4. The time now is 06:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.