C0nw0nk / Garrys-Mod-Family-Sharing

Prevent players bypassing existing bans on Garrys Mod Servers via steam family sharing / shared accounts or buying a new GMod. Banned messages and banning lengths configurable with lots of extra useful custom features such as a ban tracker / tracking. This script is guaranteed to make players regret receiving a ban from your server in GarrysMod / GarryMod / Garry'sMod / Garry's Mod / G Mod / G-Mod familysharing alts / alternative are a thing of the past. familysharing / familyshared checks / checker / checked / checking. lua script addon addons
http://www.networkflare.com/
Other
34 stars 12 forks source link

[bug] Invalid Steam API Response #15

Open RalphORama opened 1 year ago

RalphORama commented 1 year ago

Getting this error in console when players join the server:

[anti_family_sharing] addons/anti_family_sharing/lua/autorun/server/sv_familysharing.lua:146: FamilySharing: Invalid Steam API response for rat when it sees sugar reward: | STEAM_0:1:30918607
  1. error - [C]:-1
   2. onsuccess - addons/anti_family_sharing/lua/autorun/server/sv_familysharing.lua:146
    3. unknown - lua/includes/modules/http.lua:29
[anti_family_sharing] addons/anti_family_sharing/lua/autorun/server/sv_familysharing.lua:146: FamilySharing: Invalid Steam API response for rat when it sees sugar reward: | STEAM_0:1:30918607
  1. error - [C]:-1
   2. onsuccess - addons/anti_family_sharing/lua/autorun/server/sv_familysharing.lua:146
    3. unknown - lua/includes/modules/http.lua:29

I am using the most recent version of the addon (installed yesterday). Here are my config settings:

SteamFamilySharing.APIKey = "<redacted (double checked)>"

SteamFamilySharing.kickmessage = "The account that lent you Garry's Mod is banned on this server"

SteamFamilySharing.banbypass = true

SteamFamilySharing.banlength = 0

SteamFamilySharing.banreason = "attempting to bypass a current/existing ban."

SteamFamilySharing.banip = true

SteamFamilySharing.blockfamilysharing = true

SteamFamilySharing.blockfamilysharingmessage = "Please connect to the server by a account that own's Garry's Mod."

SteamFamilySharing.extra_ban_checks = true

SteamFamilySharing.informative_ban_message = true

SteamFamilySharing.custom_ban_message = "You're banned!"

SteamFamilySharing.storage_path = "materials/"
SteamFamilySharing.file_type = ".vtf"
SteamFamilySharing.file_name = "car_as14"

local ban_tracker = true
RalphORama commented 1 year ago

Upon further research it appears IPlayerService/IsPlayingSharedGame is deprecated and no longer returns a response

BadgerCode commented 3 weeks ago

There is now an in-game way to retrieve this information, instead of using the steam API (no longer works)

https://wiki.facepunch.com/gmod/Player:OwnerSteamID64

See #14