This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

SourceTV Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nosoop
Veteran Member
Join Date: Aug 2014
Old 03-16-2016 , 19:06   Re: SourceTV Manager
Reply With Quote #1

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.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 03-16-2016 at 20:15.
nosoop is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-17-2016 , 07:38   Re: SourceTV Manager
Reply With Quote #2

Quote:
Originally Posted by nosoop View Post
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.
Attached Files
File Type: zip sourcetvmanager_1.0.0-dev.zip (2.64 MB, 512 views)
__________________

Last edited by Peace-Maker; 03-17-2016 at 08:57.
Peace-Maker is offline
Reply



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 03:02.


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