srcdslab / sm-plugin-FamilyShareManager

Manage players that have their game shared by another steam account
2 stars 1 forks source link

Cleanup the code #11

Open Rushaway opened 11 months ago

Rushaway commented 11 months ago

Author of plugin publish this changelog in 2022. https://forums.alliedmods.net/showpost.php?p=2778261&postcount=9 We should clean the code since only SteamWorks method can work.

Bug report on nide discord: https://discord.com/channels/579962159270985733/1176997500415127694

Rushaway commented 11 months ago

https://github.com/Rushaway/sm-plugin-FamilyShareManager/blob/clean/addons/sourcemod/scripting/FamilyShareManager.sp

Even with this small clean, bug still happen. Can it be the SteamWorks forward having an issue ? https://github.com/KyleSanderson/SteamWorks/pull/36

Rushaway commented 10 months ago

IsPlayingSharedGame : Obsolete, partners should use ISteamUser.CheckAppOwnership

maxime1907 commented 10 months ago
Rushaway commented 10 months ago

It seem with our current key API it doesnt work. 🤔 When this key work https://api.steampowered.com/ISteamUser/CheckAppOwnership/v2/?key=A182BE6994FEE94C0880A2FB2759E311&format=json&steamid=76561198448857469&appid=776510

Found on: https://www.cnblogs.com/sanyejun/p/8664729.html