Raised This Month: $52 Target: $400
 13% 

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-04-2016 , 02:00   Re: [ANY] SteamWorks
Reply With Quote #351

Will you consider adding SetCustomSteamID too?

E.g. like the asherkin uses with his Free2BeKicked plugin @ this attachment?

CODE

I haven't had any success finding any references to that function in your SteamWorks, and didn't seem to be able to find any alternative way of doing that kind of stuff using your SteamWorks?
__________________
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
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-04-2016 , 12:44   Re: [ANY] SteamWorks
Reply With Quote #352

Quote:
Originally Posted by KyleS View Post
I've added un-tested Game Coordinator Hooks.

PHP Code:
forward EGCResults:SteamWorks_GCSendMessage(unMsgType, const String:pubData[], cubData);
forward SteamWorks_GCMsgAvailable(cubData);
forward EGCResults:SteamWorks_RetreiveMessage(punMsgType, const String:pubDest[], cubDestpcubMsgSize); 
Retrieving a message through this interface will prevent it from reaching the engine, will it not?

Quote:
Originally Posted by arne1288 View Post
Will you consider adding SetCustomSteamID too?

E.g. like the asherkin uses with his Free2BeKicked plugin @ this attachment?

CODE

I haven't had any success finding any references to that function in your SteamWorks, and didn't seem to be able to find any alternative way of doing that kind of stuff using your SteamWorks?
I believe that the SetCustomSteamID stuff is a hack in SteamTools and isn't really possible in SteamWorks, but I could be wrong.
__________________
Dr. McKay is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-04-2016 , 12:51   Re: [ANY] SteamWorks
Reply With Quote #353

Quote:
Originally Posted by Dr. McKay View Post
Retrieving a message through this interface will prevent it from reaching the engine, will it not?
SourceHook hook.
KyleS is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-04-2016 , 12:59   Re: [ANY] SteamWorks
Reply With Quote #354

Quote:
Originally Posted by KyleS View Post
SourceHook hook.
Ah, very nice!
__________________
Dr. McKay is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-04-2016 , 14:53   Re: [ANY] SteamWorks
Reply With Quote #355

Quote:
Originally Posted by arne1288 View Post
Will you consider adding SetCustomSteamID too?
No. That's an ancient kludge from SteamTools, and is not required in any way shape or form in SteamWorks.

Quote:
Originally Posted by arne1288 View Post
if (Steam_CheckClientSubscription(USE_CUSTOM_STE AMID, 0) && !Steam_CheckClientDLC(USE_CUSTOM_STEAMID, 459))[/CODE][/SPOILER]
I haven't had any success finding any references to that function in your SteamWorks, and didn't seem to be able to find any alternative way of doing that kind of stuff using your SteamWorks?
I've just added SteamWorks_HasLicenseForAppId (asherkin pointed out you may be talking about this native?).

Last edited by KyleS; 03-04-2016 at 15:08.
KyleS is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-04-2016 , 21:06   Re: [ANY] SteamWorks
Reply With Quote #356

Quote:
Originally Posted by KyleS View Post
I've just added SteamWorks_HasLicenseForAppId (asherkin pointed out you may be talking about this native?).
The point of suggesting SetCustomSteamID to begin with was to be able to use commands with a "customized" Steam ID, rather than the client id.

The new SteamWorks_HasLicenseForAppId, simply requiring a Steam ID instead of a client id fixes the suggestion for that function though.


The F2P plugin actually does two SteamTools checks -

Code:
if (Steam_CheckClientSubscription(USE_CUSTOM_STEAMID, 0) && !Steam_CheckClientDLC(USE_CUSTOM_STEAMID, 459))
Is SteamWorks actually accounting for both App ID's and DLC ID's in one query?
__________________
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
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-04-2016 , 22:35   Re: [ANY] SteamWorks
Reply With Quote #357

Quote:
Originally Posted by arne1288 View Post
The point of suggesting SetCustomSteamID to begin with was to be able to use commands with a "customized" Steam ID, rather than the client id.

The new SteamWorks_HasLicenseForAppId, simply requiring a Steam ID instead of a client id fixes the suggestion for that function though.


The F2P plugin actually does two SteamTools checks -

Code:
if (Steam_CheckClientSubscription(USE_CUSTOM_STEAMID, 0) && !Steam_CheckClientDLC(USE_CUSTOM_STEAMID, 459))
Is SteamWorks actually accounting for both App ID's and DLC ID's in one query?
Those two checks are separate. The first checks whether the client owns TF2 through sub 0 (which is auto-granted to everyone). I believe the purpose of it is to check whether the client reports sub 0 as its ownership sub instead of something else like the Orange Box. Truth be told, I'm not sure whether it's required at all. I'd assume that the ticket includes all subs through which the client owns the game so that would always return true.

The second check (CheckClientDLC) is the meat and potatoes, and checks whether the client owns the Premium DLC. Checking appid 459 is all you should need I believe.
__________________
Dr. McKay is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 03-05-2016 , 01:16   Re: [ANY] SteamWorks
Reply With Quote #358

Quote:
Originally Posted by Dr. McKay View Post
The second check (CheckClientDLC) is the meat and potatoes, and checks whether the client owns the Premium DLC. Checking appid 459 is all you should need I believe.
I know all that.

The two quoted functions are SteamTools functions. SteamWorks only seem to have the HasLicenseForApp function, which would obviously sound to be the equivalent of SteamTools' CheckClientSubscription.

Actually, the real point of my previous post was whether or not SteamWorks would need to have introduced another one, a special equivalent of CheckClientDLC in order to query for DLC's such as 459.
__________________
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
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-05-2016 , 20:11   Re: [ANY] SteamWorks
Reply With Quote #359

Quote:
Originally Posted by arne1288 View Post
I know all that.

The two quoted functions are SteamTools functions. SteamWorks only seem to have the HasLicenseForApp function, which would obviously sound to be the equivalent of SteamTools' CheckClientSubscription.

Actually, the real point of my previous post was whether or not SteamWorks would need to have introduced another one, a special equivalent of CheckClientDLC in order to query for DLC's such as 459.
I'm pretty sure we confirmed DLC was indeed functional earlier in the thread?
KyleS is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-05-2016 , 20:16   Re: [ANY] SteamWorks
Reply With Quote #360

Quote:
Originally Posted by arne1288 View Post
The two quoted functions are SteamTools functions. SteamWorks only seem to have the HasLicenseForApp function, which would obviously sound to be the equivalent of SteamTools' CheckClientSubscription.
SteamWorks_HasLicenseForApp is the equivalent of Steam_CheckClientDLC.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

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 17:06.


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