Raised This Month: $51 Target: $400
 12% 

[CS] Family Sharing Check/Block


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 06-01-2015 , 12:50   Re: [ANY] Family Sharing Check/Block
Reply With Quote #11

Quote:
Originally Posted by eric0279 View Post
I connect to shared account to my server L4D2:
With a closer look on the source code, I see this:

Code:
public SW_OnValidateClient(OwnerSteamID, ClientSteamID)
{    
    decl String:oSteamID[32];
    Format(oSteamID, sizeof(oSteamID),"STEAM_0:%d:%d", (OwnerSteamID & 1), (OwnerSteamID >> 1));
    
    decl String:cSteamID[32];
    Format(cSteamID, sizeof(cSteamID),"STEAM_0:%d:%d", (ClientSteamID & 1), (ClientSteamID >> 1));
While quite a few games uses STEAM_0:[...] (as you see in your own CS:S paste), L4D2 is actually using STEAM_1:[...].

Could you try replacing the STEAM_0's with STEAM_1 in the .sp, re-compile the plugin and let us know if that solves your issue on L4D2?
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 06-01-2015 , 14:56   Re: [ANY] Family Sharing Check/Block
Reply With Quote #12

edit: so, shared account is kicked but i have a problem...

If the account is purchased from a dealer (STEAM_1:1, Left 4 Dead 2 Retail ), it is kicked....

Last edited by eric0279; 06-01-2015 at 15:09.
eric0279 is offline
Nanochip
Senior Member
Join Date: Jan 2014
Old 06-01-2015 , 20:34   Re: [ANY] Family Sharing Check/Block
Reply With Quote #13

Quote:
Originally Posted by Darkness_ View Post
It can be used as a free method of evading community server bans.
Ah, didn't know, thanks for the info.
__________________
Nanochip is offline
etox
Junior Member
Join Date: Oct 2014
Old 06-09-2015 , 01:49   Re: [CS] Family Sharing Check/Block
Reply With Quote #14

I can't download the plugin for some reason
etox is offline
VirtualVelocity
Junior Member
Join Date: Mar 2014
Old 06-09-2015 , 03:03   Re: [CS] Family Sharing Check/Block
Reply With Quote #15

Quote:
Originally Posted by etox View Post
I can't download the plugin for some reason
Ah, all fixed now. Just download the attached .smx file.

Thanks
Attached Files
File Type: smx familysharing.smx (12.0 KB, 126 views)

Last edited by VirtualVelocity; 06-09-2015 at 03:03.
VirtualVelocity is offline
s.m.a.c head
Senior Member
Join Date: Apr 2012
Location: Liverpool
Old 07-04-2015 , 04:07   Re: [CS] Family Sharing Check/Block
Reply With Quote #16

any way to make this work for l4d2 I tried changing the steam id from 0 to 1 but the server crashed?
Also anyway to just log locally into a file rather than using a database?
s.m.a.c head is offline
TWIKI
New Member
Join Date: Feb 2018
Old 02-15-2018 , 07:45   Re: [CS] Family Sharing Check/Block
Reply With Quote #17

Thanks so much for posting this, it will be super-helpful!

I am trying to set this up for Day of Defeat:Source, does anyone know the STEAM_[#] for this game?

Thanks!
TWIKI is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-15-2018 , 08:34   Re: [CS] Family Sharing Check/Block
Reply With Quote #18

Quote:
Originally Posted by TWIKI View Post
Thanks so much for posting this, it will be super-helpful!

I am trying to set this up for Day of Defeat:Source, does anyone know the STEAM_[#] for this game?

Thanks!
It is always either _0, or _1 for that Steam ID format.

Join a server, then type "status" in console, and you'll see the right number for that specific game.

Some games has changed to format "[U:1xx]" though.


Seems like there's room for improvement to this plugin, to ensure automatic compatibility with most games on this plugin:

OP should switch to the new GetClientAuthId, or perhaps better, simply compare OwnerSteamID/ClientSteamID with GetSteamAccountID instead of converting between different Steam ID formats.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
TWIKI
New Member
Join Date: Feb 2018
Old 02-15-2018 , 23:27   Re: [CS] Family Sharing Check/Block
Reply With Quote #19

I am trying to mod the code, but the other issue I have is that the whole thing is set up for 32bit... and the Steam_ID is now 64bit.



Quote:
Originally Posted by arne1288 View Post
It is always either _0, or _1 for that Steam ID format.

Join a server, then type "status" in console, and you'll see the right number for that specific game.

Some games has changed to format "[U:1xx]" though.


Seems like there's room for improvement to this plugin, to ensure automatic compatibility with most games on this plugin:

OP should switch to the new GetClientAuthId, or perhaps better, simply compare OwnerSteamID/ClientSteamID with GetSteamAccountID instead of converting between different Steam ID formats.
TWIKI is offline
TWIKI
New Member
Join Date: Feb 2018
Old 02-15-2018 , 23:41   Re: [CS] Family Sharing Check/Block
Reply With Quote #20

I had a go at modifying the code, and now it will not compile. Finds all of the #includes except #steamworks :-(
TWIKI 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 22:15.


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