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

SteamTools (v1.2.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-15-2015 , 02:32   Re: SteamTools (v1.0.1)
Reply With Quote #31

Steam API is really a pain. I guess module needs to check if steam is installed and then using steamclient.so from steam installation.

You have Ubuntu Desktop x64, right? Guess will try in a VM.
Do you have "steamclient.so" in something like ~/.steam/sdk32/?
__________________

Last edited by Arkshine; 04-15-2015 at 02:50.
Arkshine is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-15-2015 , 02:56   Re: SteamTools (v1.0.1)
Reply With Quote #32

Yes I have
zeus is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-15-2015 , 07:26   Re: SteamTools (v1.0.1)
Reply With Quote #33

Question :

Do they trigger at the same time ?

Code:
forward Steam_OnValidateClient(ownerAccountID, accountID);
vs
Code:
forward client_authorized(id);
zeus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-15-2015 , 08:15   Re: SteamTools (v1.0.1)
Reply With Quote #34

Yes, more or less.

What does AMXX: At player's connection, it checks if there is a valid steamID, if not, it will check each 0.7 seconds until engine returns a valid steamID for the player, then execute the forward.

What does the module: It checks at server frame when steam API notifies engine about a client being approved.

Usually you will have: client_authorized -> Steam_OnValidateClient -> CSteam3Server::OnGSClientApprove -> "Arkshine<2><STEAM_0:0:172726><>" STEAM USERID validated"
If you want to make sure a client is "officially" validated, you should probably use this module forward.
__________________

Last edited by Arkshine; 04-15-2015 at 08:20.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-15-2015 , 09:38   Re: SteamTools (v1.0.1)
Reply With Quote #35

Here a small update : v1.0.2

It fixes an issue when Steam is installed, module was using the wrong steamclient.so file (thanks zeus for your patience!) and add a feedback message in console if you're using the feature to set a game server account.

https://github.com/Arkshine/SteamToo...ses/tag/v1.0.2
__________________
Arkshine is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-15-2015 , 11:04   Re: SteamTools (v1.0.2)
Reply With Quote #36

Glad I could help. I will continue to test the functionality of this module as I have said ( check PM ).
zeus is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-16-2015 , 03:31   Re: SteamTools (v1.0.2)
Reply With Quote #37

About
Code:
forward Steam_OnValidateClient(ownerAccountID, accountID);
How do I get a player index ( id ) like in ?
Code:
forward client_authorized(id);
Both ownerAccountID and accountID return the same value.
zeus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2015 , 04:14   Re: SteamTools (v1.0.2)
Reply With Quote #38

I guess I could add a native for that. For now you will have to use Steam_CSteamIDToRenderedID to get a rendered steamID and use find_player to get a player's id.

ownerAccountID and accountID can be different value. This can be used to detect family sharing. It's similar to this plugin and some info about it from steam.
__________________
Arkshine is offline
zeus
Senior Member
Join Date: Jul 2008
Old 04-16-2015 , 04:18   Re: SteamTools (v1.0.2)
Reply With Quote #39

I thought of that also but doesn't it make it less efficient than using client_authorized(id) and get_user_authid ?
zeus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2015 , 04:48   Re: SteamTools (v1.0.2)
Reply With Quote #40

Both forwards are called one time per client connection. One. Not 500 times/seconds. This makes really no difference. Will make anyway later a native to convert CSteamID to game ID and maybe passing current player's index in this forward too.
__________________
Arkshine 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 15:11.


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